aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2022-01-16 15:02:55 +0100
committerJakub Jirutka <jakub@jirutka.cz>2022-01-16 15:05:46 +0100
commitc040a5f63c56e68a9208f6984c269494578308ee (patch)
tree8ec6fdf4fc32de39c273cbf6b71588d992ac4f3e
parent026bb8d76c18fe33a4aeebaaaf4c049bc0ec8870 (diff)
downloadaports-c040a5f63c56e68a9208f6984c269494578308ee.tar.gz
aports-c040a5f63c56e68a9208f6984c269494578308ee.tar.bz2
aports-c040a5f63c56e68a9208f6984c269494578308ee.tar.xz
community/libu2f-host: create plugdev group (needed for udev rules)
-rw-r--r--community/libu2f-host/APKBUILD2
-rw-r--r--community/libu2f-host/libu2f-host.pre-install12
2 files changed, 13 insertions, 1 deletions
diff --git a/community/libu2f-host/APKBUILD b/community/libu2f-host/APKBUILD
index c71930be5f..b557db1dec 100644
--- a/community/libu2f-host/APKBUILD
+++ b/community/libu2f-host/APKBUILD
@@ -15,7 +15,7 @@ makedepends="
"
provides="$pkgname-libs=$pkgver-r$pkgrel" # for backward compatibility (Alpine <3.16)
replaces="$pkgname-libs" # for backward compatibility (Alpine <3.16)
-install="$pkgname.post-upgrade"
+install="$pkgname.pre-install $pkgname.post-upgrade"
subpackages="
$pkgname-dev
$pkgname-doc
diff --git a/community/libu2f-host/libu2f-host.pre-install b/community/libu2f-host/libu2f-host.pre-install
new file mode 100644
index 0000000000..a2ac1afb47
--- /dev/null
+++ b/community/libu2f-host/libu2f-host.pre-install
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+addgroup -S plugdev 2>/dev/null
+
+cat <<EOF
+*
+* To use U2F USB tokens (such as YubiKey), regular users must be members of
+* 'plugdev' group.
+*
+EOF
+
+exit 0