Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/libu2f-host/
Date: Sat, 25 Jun 2022 10:07:57
Message-Id: 1656151668.bc00377ad62649ab9ad00c42a3c00562b7b82e8f.marecki@gentoo
1 commit: bc00377ad62649ab9ad00c42a3c00562b7b82e8f
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 09:55:59 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 10:07:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc00377a
7
8 app-crypt/libu2f-host: call udev_reload
9
10 Also bump EAPI to 8.
11
12 Closes: https://bugs.gentoo.org/854246
13 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
14
15 app-crypt/libu2f-host/libu2f-host-1.1.10-r1.ebuild | 50 ++++++++++++++++++++++
16 1 file changed, 50 insertions(+)
17
18 diff --git a/app-crypt/libu2f-host/libu2f-host-1.1.10-r1.ebuild b/app-crypt/libu2f-host/libu2f-host-1.1.10-r1.ebuild
19 new file mode 100644
20 index 000000000000..c49ed0d65a11
21 --- /dev/null
22 +++ b/app-crypt/libu2f-host/libu2f-host-1.1.10-r1.ebuild
23 @@ -0,0 +1,50 @@
24 +# Copyright 1999-2022 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=8
28 +
29 +inherit linux-info udev
30 +
31 +DESCRIPTION="Yubico Universal 2nd Factor (U2F) Host C Library"
32 +HOMEPAGE="https://developers.yubico.com/libu2f-host/"
33 +SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.xz"
34 +
35 +LICENSE="LGPL-2"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
38 +IUSE="systemd"
39 +
40 +DEPEND="dev-libs/hidapi
41 + dev-libs/json-c:="
42 +# The U2F device node will be owned by group 'plugdev'
43 +# in non-systemd configurations
44 +RDEPEND="${DEPEND}
45 + !systemd? ( acct-group/plugdev )
46 + systemd? ( sys-apps/systemd[acl] )"
47 +BDEPEND="virtual/pkgconfig"
48 +
49 +CONFIG_CHECK="~HIDRAW"
50 +
51 +PATCHES=( "${FILESDIR}/${P}-json-boolean.patch" )
52 +
53 +src_install() {
54 + default
55 + if use kernel_linux; then
56 + udev_dorules 70-u2f.rules
57 + fi
58 +
59 + find "${ED}" -name '*.la' -delete || die
60 +}
61 +
62 +pkg_postinst() {
63 + udev_reload
64 +
65 + if ! use systemd; then
66 + elog "Users must be a member of the 'plugdev' group"
67 + elog "to be able to access U2F devices"
68 + fi
69 +}
70 +
71 +pkg_postrm() {
72 + udev_reload
73 +}