1 |
commit: 059fec95f6cd1a27e613da0bd5d7f318bf670857 |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 5 13:22:43 2018 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 5 13:23:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=059fec95 |
7 |
|
8 |
app-crypt/libu2f-host: version bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/631098 |
11 |
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
13 |
|
14 |
app-crypt/libu2f-host/Manifest | 1 + |
15 |
app-crypt/libu2f-host/libu2f-host-1.1.6.ebuild | 55 ++++++++++++++++++++++++++ |
16 |
2 files changed, 56 insertions(+) |
17 |
|
18 |
diff --git a/app-crypt/libu2f-host/Manifest b/app-crypt/libu2f-host/Manifest |
19 |
index 3bbb7de9007..1fc68dbc77b 100644 |
20 |
--- a/app-crypt/libu2f-host/Manifest |
21 |
+++ b/app-crypt/libu2f-host/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST libu2f-host-1.1.1.tar.xz 455652 BLAKE2B f5cc4dd7752d66790b4139e5b8e9262f6622b9608bc8b220640db773ce1e794b58eb3fdf855df4e73417aabf5f8e979218dfd1b068111c66c6d830ef4b7ebb97 SHA512 1f6d26d47cabd44391a780f03d88b6ab9ed996bab26e2605f1942bfff2203aa9a8e90fa80c010ccf2e575dbfca3bd03d3322381343cdf6def3829bbe45db8693 |
24 |
DIST libu2f-host-1.1.3.tar.xz 469480 BLAKE2B b2a002fa694972e71aef73191608d079f1c13d98a2f40e06d25a6e50a3175100099adbc5b5067e5f1fe027042f99e198a07282df735ab4ff2eec63a4f5daf59a SHA512 6729dd35beaae1c96283f81794ac6c058ed6446f935a5cee7dc1a3db594201c9f049de6a58ac2e544e1c6ac0c1e9815cce5e2e46a6e45372e419078307a57f55 |
25 |
+DIST libu2f-host-1.1.6.tar.xz 469380 BLAKE2B 7943b6dd61084952edb81ab2c93fd781d832f0ad07dff442c93464ecce57bde8a7b3d4aea5fa6801f39a5cbb272658ba86bf499f485bca35fa5fa314d609ff2f SHA512 499efac0243a7e5fadf6c456cc5530633337c07ab7dda52bd77b541b24ffd0337efe95cce499e73d6c46d312e737c044edcbdb4d41043b1e8721242d6e6ad20a |
26 |
|
27 |
diff --git a/app-crypt/libu2f-host/libu2f-host-1.1.6.ebuild b/app-crypt/libu2f-host/libu2f-host-1.1.6.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..edcf94b9118 |
30 |
--- /dev/null |
31 |
+++ b/app-crypt/libu2f-host/libu2f-host-1.1.6.ebuild |
32 |
@@ -0,0 +1,55 @@ |
33 |
+# Copyright 1999-2018 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit linux-info udev user |
39 |
+ |
40 |
+DESCRIPTION="Yubico Universal 2nd Factor (U2F) Host C Library" |
41 |
+HOMEPAGE="https://developers.yubico.com/libu2f-host/" |
42 |
+SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.xz" |
43 |
+ |
44 |
+LICENSE="LGPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="kernel_linux static-libs systemd" |
48 |
+ |
49 |
+DEPEND="dev-libs/hidapi |
50 |
+ dev-libs/json-c:=" |
51 |
+RDEPEND="${DEPEND} |
52 |
+ systemd? ( sys-apps/systemd[acl] )" |
53 |
+BDEPEND="virtual/pkgconfig" |
54 |
+ |
55 |
+CONFIG_CHECK="~HIDRAW" |
56 |
+ |
57 |
+pkg_setup() { |
58 |
+ # The U2F device node will be owned by group 'plugdev' |
59 |
+ # in non-systemd configurations |
60 |
+ if ! use systemd; then |
61 |
+ enewgroup plugdev |
62 |
+ fi |
63 |
+} |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ sed -e 's:TAG+="uaccess":MODE="0664", GROUP="plugdev":g' \ |
68 |
+ 70-u2f.rules > 70-u2f-udev.rules || die |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ default |
73 |
+ if use kernel_linux; then |
74 |
+ if use systemd; then |
75 |
+ udev_dorules 70-u2f.rules |
76 |
+ else |
77 |
+ udev_newrules 70-u2f-udev.rules 70-u2f.rules |
78 |
+ fi |
79 |
+ fi |
80 |
+} |
81 |
+ |
82 |
+pkg_postinst() { |
83 |
+ if ! use systemd; then |
84 |
+ elog "Users must be a member of the 'plugdev' group" |
85 |
+ elog "to be able to access U2F devices" |
86 |
+ fi |
87 |
+} |