diff options
author | Mantas Mikulėnas | 2021-02-21 19:44:30 +0200 |
---|---|---|
committer | Mantas Mikulėnas | 2021-02-21 19:49:57 +0200 |
commit | 3f6f50703dc3168f136350e4f65ef6167dbd3592 (patch) | |
tree | d6649243a0bf28ce27d288b287a3f2cfbc1284f7 | |
parent | 537f1370da4f46b451c8d670b2636e450d83ffed (diff) | |
download | aur-3f6f50703dc3168f136350e4f65ef6167dbd3592.tar.gz |
release 0.4.0.r25
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 14 | ||||
-rw-r--r-- | softu2f.install | 11 | ||||
-rw-r--r-- | softu2f_system.preset | 3 |
4 files changed, 29 insertions, 7 deletions
@@ -1,8 +1,9 @@ pkgbase = softu2f pkgdesc = Software U2F HID token daemon (rust-u2f) - pkgver = 0.4.0.r16.g90034bf + pkgver = 0.4.0.r25.g45a073f pkgrel = 1 url = https://github.com/danstiner/rust-u2f + install = softu2f.install arch = x86_64 makedepends = clang makedepends = llvm @@ -10,8 +11,9 @@ pkgbase = softu2f depends = libdbus depends = libsystemd depends = openssl - source = git+https://github.com/danstiner/rust-u2f#commit=90034bf0651738426ff15f90c2229c9222af706a + source = git+https://github.com/danstiner/rust-u2f#commit=45a073f9283026dcf74f99536d0f2899b6caee99 + source = softu2f_system.preset sha256sums = SKIP + sha256sums = 194758607e4d9dccd6a22382264db643aff5c08cfa9c2fa0a69caa4a2d03432e pkgname = softu2f - @@ -1,14 +1,17 @@ pkgname=softu2f -pkgver=0.4.0.r16.g90034bf +pkgver=0.4.0.r25.g45a073f pkgrel=1 pkgdesc="Software U2F HID token daemon (rust-u2f)" url="https://github.com/danstiner/rust-u2f" arch=(x86_64) depends=(libdbus libsystemd openssl) makedepends=(clang llvm rust) -_commit=90034bf0651738426ff15f90c2229c9222af706a -source=("git+https://github.com/danstiner/rust-u2f#commit=$_commit") -sha256sums=(SKIP) +_commit=45a073f9283026dcf74f99536d0f2899b6caee99 +source=("git+https://github.com/danstiner/rust-u2f#commit=$_commit" + softu2f_system.preset) +sha256sums=('SKIP' + '194758607e4d9dccd6a22382264db643aff5c08cfa9c2fa0a69caa4a2d03432e') +install=$pkgname.install pkgver() { cd rust-u2f @@ -41,6 +44,9 @@ package() { install -Dm 644 system-daemon/softu2f-tmpfiles.conf \ "$pkgdir"/usr/lib/tmpfiles.d/softu2f.conf + + install -Dm 644 "$srcdir"/softu2f_system.preset \ + "$pkgdir"/usr/lib/systemd/system-preset/90-softu2f.preset } # vim: ts=2:sw=2:et diff --git a/softu2f.install b/softu2f.install new file mode 100644 index 000000000000..6a5df59f2d01 --- /dev/null +++ b/softu2f.install @@ -0,0 +1,11 @@ +post_upgrade() { + post_install +} + +post_install() { + systemctl preset softu2f.socket + if systemctl --quiet is-enabled softu2f.socket; then + systemctl start softu2f.socket + fi + echo " * You also need to start 'softu2f.service' via 'systemctl --user'." +} diff --git a/softu2f_system.preset b/softu2f_system.preset new file mode 100644 index 000000000000..f99b3884d576 --- /dev/null +++ b/softu2f_system.preset @@ -0,0 +1,3 @@ +# This file is part of softu2f-system-daemon + +enable softu2f.socket |