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:08:46 +0100
commit4371d3a63a1dfe1085b7e2bff670d25a1d5272bc (patch)
tree55451c03fec2f6fce78846d8dc3d19a6bb7ecfaf
parent617fd6ad3f157ee00b675c614622f9894ed2be09 (diff)
community/libu2f-host: create plugdev group (needed for udev rules)
-rw-r--r--community/libu2f-host/APKBUILD3
-rw-r--r--community/libu2f-host/libu2f-host.pre-install12
2 files changed, 14 insertions, 1 deletions
diff --git a/community/libu2f-host/APKBUILD b/community/libu2f-host/APKBUILD
index 7a373dc8169..f922d426278 100644
--- a/community/libu2f-host/APKBUILD
+++ b/community/libu2f-host/APKBUILD
@@ -2,12 +2,13 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=libu2f-host
pkgver=1.1.10
-pkgrel=3
+pkgrel=4
pkgdesc="Yubico Universal 2nd Factor (U2F) Host C Library"
url="https://developers.yubico.com/libu2f-host/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="hidapi-dev json-c-dev linux-headers eudev-dev"
+install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://developers.yubico.com/libu2f-host/Releases/libu2f-host-$pkgver.tar.xz
json-c-0.14.patch
diff --git a/community/libu2f-host/libu2f-host.pre-install b/community/libu2f-host/libu2f-host.pre-install
new file mode 100644
index 00000000000..a2ac1afb479
--- /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