summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2014-10-25 16:45:48 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2014-10-25 16:45:48 +0000
commit4a67040b2416066d71bf6937bb40d842fa5ab330 (patch)
tree15eb69d48cd6599d357f3093a130b0efd4e9a327 /app-crypt
parentRemove old. (diff)
downloadgentoo-2-4a67040b2416066d71bf6937bb40d842fa5ab330.tar.gz
gentoo-2-4a67040b2416066d71bf6937bb40d842fa5ab330.tar.bz2
gentoo-2-4a67040b2416066d71bf6937bb40d842fa5ab330.zip
Add a systemd USE flag to use acls rather than the plugdev group to give access to the hidraw device.
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/libu2f-host/ChangeLog7
-rw-r--r--app-crypt/libu2f-host/libu2f-host-0.0-r1.ebuild14
-rw-r--r--app-crypt/libu2f-host/metadata.xml6
3 files changed, 23 insertions, 4 deletions
diff --git a/app-crypt/libu2f-host/ChangeLog b/app-crypt/libu2f-host/ChangeLog
index 5d3e59c23283..39acf2b0258f 100644
--- a/app-crypt/libu2f-host/ChangeLog
+++ b/app-crypt/libu2f-host/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-crypt/libu2f-host
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/libu2f-host/ChangeLog,v 1.3 2014/10/25 15:57:52 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/libu2f-host/ChangeLog,v 1.4 2014/10/25 16:45:48 flameeyes Exp $
+
+ 25 Oct 2014; Diego E. Pettenò <flameeyes@gentoo.org>
+ libu2f-host-0.0-r1.ebuild, metadata.xml:
+ Add a systemd USE flag to use acls rather than the plugdev group to give
+ access to the hidraw device.
*libu2f-host-0.0-r1 (25 Oct 2014)
diff --git a/app-crypt/libu2f-host/libu2f-host-0.0-r1.ebuild b/app-crypt/libu2f-host/libu2f-host-0.0-r1.ebuild
index 32de382374a3..c0a450d5a092 100644
--- a/app-crypt/libu2f-host/libu2f-host-0.0-r1.ebuild
+++ b/app-crypt/libu2f-host/libu2f-host-0.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/libu2f-host/libu2f-host-0.0-r1.ebuild,v 1.1 2014/10/25 15:57:52 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/libu2f-host/libu2f-host-0.0-r1.ebuild,v 1.2 2014/10/25 16:45:48 flameeyes Exp $
EAPI=5
@@ -13,22 +13,30 @@ SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="kernel_linux"
+IUSE="kernel_linux systemd"
RDEPEND="dev-libs/hidapi
dev-libs/json-c"
DEPEND="${RDEPEND}
virtual/pkgconfig"
+RDEPEND="${RDEPEND}
+ systemd? ( sys-apps/systemd[acl] )"
src_prepare() {
autotools-utils_src_prepare
sed -i -e 's:|\([^0]\):|0\1:g' 70-u2f.rules || die
+
+ sed -e 's:GROUP="plugdev":TAG+="uaccess":g' 70-u2f.rules > 70-u2f-systemd.rules || die
}
src_install() {
autotools-utils_src_install
if use kernel_linux; then
- udev_dorules 70-u2f.rules
+ if use systemd; then
+ udev_newrules 70-u2f-systemd.rules 70-u2f.rules
+ else
+ udev_dorules 70-u2f.rules
+ fi
fi
}
diff --git a/app-crypt/libu2f-host/metadata.xml b/app-crypt/libu2f-host/metadata.xml
index de3019a9d4dc..1b1e3adf7579 100644
--- a/app-crypt/libu2f-host/metadata.xml
+++ b/app-crypt/libu2f-host/metadata.xml
@@ -5,6 +5,12 @@
<maintainer>
<email>flameeyes@gentoo.org</email>
</maintainer>
+ <use>
+ <flag name="systemd">
+ Use user ACLs rather than plugdev group to give user access to the HIDRAW
+ device.
+ </flag>
+ </use>
<upstream>
<remote-id type="github">Yubico/libu2f-host</remote-id>
<bugs-to>https://github.com/Yubico/libu2f-host/issues</bugs-to>