summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD14
-rw-r--r--softu2f.install11
-rw-r--r--softu2f_system.preset3
4 files changed, 29 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6ff469caf04..b57c2a50c2f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
-
diff --git a/PKGBUILD b/PKGBUILD
index 07ea25fbf00..0d8d112f72d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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 00000000000..6a5df59f2d0
--- /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 00000000000..f99b3884d57
--- /dev/null
+++ b/softu2f_system.preset
@@ -0,0 +1,3 @@
+# This file is part of softu2f-system-daemon
+
+enable softu2f.socket