flameeyes 14/10/25 16:45:48 Modified: metadata.xml libu2f-host-0.0-r1.ebuild ChangeLog Log: 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)
Revision Changes Path 1.3 app-crypt/libu2f-host/metadata.xml file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/libu2f-host/metadata.xml?rev=1.3&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/libu2f-host/metadata.xml?rev=1.3&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/libu2f-host/metadata.xml?r1=1.2&r2=1.3 Index: metadata.xml =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-crypt/libu2f-host/metadata.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- metadata.xml 25 Oct 2014 11:59:41 -0000 1.2 +++ metadata.xml 25 Oct 2014 16:45:48 -0000 1.3 @@ -5,6 +5,12 @@ <maintainer> <email>[email protected]</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> 1.2 app-crypt/libu2f-host/libu2f-host-0.0-r1.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/libu2f-host/libu2f-host-0.0-r1.ebuild?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/libu2f-host/libu2f-host-0.0-r1.ebuild?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/libu2f-host/libu2f-host-0.0-r1.ebuild?r1=1.1&r2=1.2 Index: libu2f-host-0.0-r1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-crypt/libu2f-host/libu2f-host-0.0-r1.ebuild,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- libu2f-host-0.0-r1.ebuild 25 Oct 2014 15:57:52 -0000 1.1 +++ libu2f-host-0.0-r1.ebuild 25 Oct 2014 16:45:48 -0000 1.2 @@ -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 @@ 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 } 1.4 app-crypt/libu2f-host/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/libu2f-host/ChangeLog?rev=1.4&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/libu2f-host/ChangeLog?rev=1.4&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/libu2f-host/ChangeLog?r1=1.3&r2=1.4 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-crypt/libu2f-host/ChangeLog,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ChangeLog 25 Oct 2014 15:57:52 -0000 1.3 +++ ChangeLog 25 Oct 2014 16:45:48 -0000 1.4 @@ -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ò <[email protected]> + 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)
