Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/libu2f-host/
Date: Thu, 18 Feb 2016 21:58:55
Message-Id: 1455832717.1c9527119adce86e9b569ff564a919caa3052908.mrueg@gentoo
1 commit: 1c9527119adce86e9b569ff564a919caa3052908
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 18 21:58:37 2016 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 18 21:58:37 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c952711
7
8 app-crypt/libu2f-host: Version bump
9
10 Package-Manager: portage-2.2.27
11
12 app-crypt/libu2f-host/Manifest | 1 +
13 app-crypt/libu2f-host/libu2f-host-1.1.0.ebuild | 64 ++++++++++++++++++++++++++
14 2 files changed, 65 insertions(+)
15
16 diff --git a/app-crypt/libu2f-host/Manifest b/app-crypt/libu2f-host/Manifest
17 index dd95ae6..1ed2a04 100644
18 --- a/app-crypt/libu2f-host/Manifest
19 +++ b/app-crypt/libu2f-host/Manifest
20 @@ -1,3 +1,4 @@
21 DIST libu2f-host-0.0.2.tar.xz 444176 SHA256 c9e5478f5d139c30603afe65ea7ef52b0b18c93df60103b1dafeb7f3d17acbd8 SHA512 1b10a5c8d3d071b0d5576a2247b2cc40327fe6fe7370a7680cede7ebda72bd7f0edfa1661b78074a85654a5d979f757c64c090360c69feddb9c3212dc0438deb WHIRLPOOL f8cc5d7524c8ed7943945af44e5b93b43463118b06b186460090df3c69871319e0a347c94a28467b782eb09e2653ef72ab98478d8acf720b86b807223b1ee0b1
22 DIST libu2f-host-0.0.4.tar.xz 446604 SHA256 852231611bd5c526406b984ae3c92ce3423ffc7a0ef01f6a060a43b64725ead6 SHA512 09406f45bea4cbca2fd26a4ad546b2233f56e1df098976cbd24dcab08e27bf9131fdc52557b4c701b8ce27b0ece7b405e8cda889591a5e3dc9420611336d1060 WHIRLPOOL 84ac2c5e4170ff45ecb9595c73dabd6a34f79bdcf4ef9bf3ceb32c481febe0537e3ab129fcd7a63c73389b3dbc0742834574b739ed36c419b6bc84b5c01a4d5b
23 DIST libu2f-host-1.0.0.tar.xz 454376 SHA256 18c56b9b5cfea2566925bba45b25a4e20b3ef8696905d8f2a06116316e164374 SHA512 ef953ffd8179e5ed4bcd1e02ccc82e671a7979b03a61ac73098be6509ab9d6badd6bb4e3e805de4ddbddbae3e8be71b091344f4230657464f6ba4ac3af171387 WHIRLPOOL cc76b778bcf20ef696900dd0ea65c0925052360a22e505a34ecb8738289d7bbaa88b31f2b25b91b6a1a22a240d01784bc6ef1cb9774c818fa0570328e9f13183
24 +DIST libu2f-host-1.1.0.tar.xz 455424 SHA256 441bb832ee42acf3a5e5a229444c610218da381eb7daaf2aa750c004dc756d86 SHA512 3861ea748ff6ae0bae756182c6c4bd9a25dafc6e28eec3d6aad0eb700dcddc56ba61ed0c6a60395b8a296764c83b3fadb6954f9001cfb880e93758aaeecf34df WHIRLPOOL b6a91afd99a70db8c78a2a72950f210bbcbea0322780b768611aa528ad0159647bdc7446e1dffd91f8d9b6bcbd8105b8b38c9eb5d9eb2db9ef7d193c97096f3e
25
26 diff --git a/app-crypt/libu2f-host/libu2f-host-1.1.0.ebuild b/app-crypt/libu2f-host/libu2f-host-1.1.0.ebuild
27 new file mode 100644
28 index 0000000..f3567fa
29 --- /dev/null
30 +++ b/app-crypt/libu2f-host/libu2f-host-1.1.0.ebuild
31 @@ -0,0 +1,64 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +inherit autotools-utils 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"
47 +IUSE="kernel_linux static-libs systemd"
48 +
49 +RDEPEND="
50 + dev-libs/hidapi
51 + dev-libs/json-c"
52 +DEPEND="${RDEPEND}
53 + virtual/pkgconfig"
54 +RDEPEND="${RDEPEND}
55 + systemd? ( sys-apps/systemd[acl] )"
56 +
57 +CONFIG_CHECK="~HIDRAW"
58 +
59 +pkg_setup() {
60 + # The U2F device node will be owned by group 'plugdev'
61 + # in non-systemd configurations
62 + if ! use systemd; then
63 + enewgroup plugdev
64 + fi
65 +}
66 +
67 +src_prepare() {
68 + autotools-utils_src_prepare
69 +
70 + sed -e 's:TAG+="uaccess":MODE="0664", GROUP="plugdev":g' \
71 + 70-u2f.rules > 70-u2f-udev.rules || die
72 +}
73 +
74 +src_configure() {
75 + autotools-utils_src_configure
76 +}
77 +
78 +src_install() {
79 + autotools-utils_src_install
80 +
81 + if use kernel_linux; then
82 + if use systemd; then
83 + udev_dorules 70-u2f.rules
84 + else
85 + udev_newrules 70-u2f-udev.rules 70-u2f.rules
86 + fi
87 + fi
88 +}
89 +
90 +pkg_postinst() {
91 + if ! use systemd; then
92 + elog "Users must be a member of the 'plugdev' group"
93 + elog "to be able to access U2F devices"
94 + fi
95 +}