diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-10-30 14:05:01 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-10-30 14:05:01 +0000 |
commit | de94c86a5ffd2f7a9086f2bf2b78911da803816d (patch) | |
tree | f84c43bdedf1c278504ca62bbf827a8bf65cd7f7 /dev-libs/cyberjack | |
parent | Version bump pylibmc to 1.2.2, bug 388559. (diff) | |
download | gentoo-2-de94c86a5ffd2f7a9086f2bf2b78911da803816d.tar.gz gentoo-2-de94c86a5ffd2f7a9086f2bf2b78911da803816d.tar.bz2 gentoo-2-de94c86a5ffd2f7a9086f2bf2b78911da803816d.zip |
Install udev rules file wrt #388329 by Christoph Brill
(Portage version: 2.2.0_alpha71_p73/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/cyberjack')
-rw-r--r-- | dev-libs/cyberjack/ChangeLog | 6 | ||||
-rw-r--r-- | dev-libs/cyberjack/cyberjack-3.99.5_p02.ebuild | 16 | ||||
-rw-r--r-- | dev-libs/cyberjack/files/cyberjack.rules | 10 |
3 files changed, 27 insertions, 5 deletions
diff --git a/dev-libs/cyberjack/ChangeLog b/dev-libs/cyberjack/ChangeLog index 39795f782be7..310f844ff96f 100644 --- a/dev-libs/cyberjack/ChangeLog +++ b/dev-libs/cyberjack/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-libs/cyberjack # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/ChangeLog,v 1.19 2011/10/13 19:34:36 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/ChangeLog,v 1.20 2011/10/30 14:05:00 ssuominen Exp $ + + 30 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> + cyberjack-3.99.5_p02.ebuild, +files/cyberjack.rules: + Install udev rules file wrt #388329 by Christoph Brill 13 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> cyberjack-3.99.5_p02.ebuild: diff --git a/dev-libs/cyberjack/cyberjack-3.99.5_p02.ebuild b/dev-libs/cyberjack/cyberjack-3.99.5_p02.ebuild index c3db7261721f..384407b801ba 100644 --- a/dev-libs/cyberjack/cyberjack-3.99.5_p02.ebuild +++ b/dev-libs/cyberjack/cyberjack-3.99.5_p02.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/cyberjack-3.99.5_p02.ebuild,v 1.2 2011/10/13 19:34:36 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/cyberjack-3.99.5_p02.ebuild,v 1.3 2011/10/30 14:05:00 ssuominen Exp $ EAPI=4 inherit toolchain-funcs @@ -14,13 +14,15 @@ SRC_URI="http://support.reiner-sct.de/downloads/LINUX/V${PV/_p/_SP}/${MY_P}.tar. LICENSE="GPL-2 LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="fox xml" +IUSE="fox kernel_linux xml" -RDEPEND="sys-apps/pcsc-lite +COMMON_DEPEND="sys-apps/pcsc-lite virtual/libusb:1 fox? ( >=x11-libs/fox-1.6 ) xml? ( dev-libs/libxml2 )" -DEPEND="${RDEPEND} +RDEPEND="${COMMON_DEPEND} + kernel_linux? ( sys-fs/udev )" +DEPEND="${COMMON_DEPEND} dev-util/pkgconfig" S=${WORKDIR}/${MY_P/_/-} @@ -49,6 +51,12 @@ src_install() { rm -f "${D}"usr/lib*/cyberjack/pcscd_init.diff find "${D}"usr -name '*.la' -exec rm -f {} + + + # http://bugs.gentoo.org/388329 + if use kernel_linux; then + insinto /lib/udev/rules.d + newins "${FILESDIR}"/${PN}.rules 99-${PN}.rules + fi } pkg_postinst() { diff --git a/dev-libs/cyberjack/files/cyberjack.rules b/dev-libs/cyberjack/files/cyberjack.rules new file mode 100644 index 000000000000..ac94b1b663f5 --- /dev/null +++ b/dev-libs/cyberjack/files/cyberjack.rules @@ -0,0 +1,10 @@ +# If not adding the device, go away +ACTION!="add", GOTO="cyberjack_rules_end" +SUBSYSTEM!="usb", GOTO="cyberjack_rules_end" +ENV{DEVTYPE}!="usb_device", GOTO="cyberjack_rules_end" + +# Tested on cyberJack RFID standard +ATTRS{idVendor}=="0c4b", ATTRS{idProduct}=="0500", ENV{PCSCD}="1" + +# All done +LABEL="cyberjack_rules_end" |