From fb5ffb3b2ee97c6590c36e24f05666939fafb904 Mon Sep 17 00:00:00 2001 From: Wolfram Schlich Date: Sun, 25 Jul 2010 12:45:21 +0000 Subject: this time really fix udev rules (Portage version: 2.2_rc67/cvs/Linux i686) --- dev-libs/cyberjack/ChangeLog | 8 ++- dev-libs/cyberjack/cyberjack-3.3.5-r1.ebuild | 83 ---------------------------- dev-libs/cyberjack/cyberjack-3.3.5-r2.ebuild | 83 ++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+), 84 deletions(-) delete mode 100644 dev-libs/cyberjack/cyberjack-3.3.5-r1.ebuild create mode 100644 dev-libs/cyberjack/cyberjack-3.3.5-r2.ebuild (limited to 'dev-libs/cyberjack') diff --git a/dev-libs/cyberjack/ChangeLog b/dev-libs/cyberjack/ChangeLog index ddd9d603b7bb..8cdc8fa57a80 100644 --- a/dev-libs/cyberjack/ChangeLog +++ b/dev-libs/cyberjack/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/cyberjack # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/ChangeLog,v 1.13 2010/07/24 21:12:11 wschlich Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/ChangeLog,v 1.14 2010/07/25 12:45:21 wschlich Exp $ + +*cyberjack-3.3.5-r2 (25 Jul 2010) + + 25 Jul 2010; Wolfram Schlich + -cyberjack-3.3.5-r1.ebuild, +cyberjack-3.3.5-r2.ebuild: + this time really fix udev rules *cyberjack-3.3.5-r1 (14 Jul 2010) diff --git a/dev-libs/cyberjack/cyberjack-3.3.5-r1.ebuild b/dev-libs/cyberjack/cyberjack-3.3.5-r1.ebuild deleted file mode 100644 index 4e1a0d97e273..000000000000 --- a/dev-libs/cyberjack/cyberjack-3.3.5-r1.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/cyberjack-3.3.5-r1.ebuild,v 1.1 2010/07/24 21:12:11 wschlich Exp $ - -EAPI=2 -inherit autotools eutils flag-o-matic - -MY_P=ctapi-${P} - -DESCRIPTION="REINER SCT cyberJack pinpad/e-com USB user space driver library" -HOMEPAGE="http://www.reiner-sct.de/ http://www.libchipcard.de/" -SRC_URI="http://support.reiner-sct.de/downloads/LINUX/V${PV}/${MY_P}.tar.gz" - -LICENSE="GPL-2 LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="fox pcsc-lite +udev" - -RDEPEND="virtual/libusb:1 - sys-fs/sysfsutils - fox? ( >=x11-libs/fox-1.6 ) - pcsc-lite? ( sys-apps/pcsc-lite )" -DEPEND="${RDEPEND} - pcsc-lite? ( dev-util/pkgconfig )" - -S=${WORKDIR}/${MY_P} - -pkg_setup() { - use udev && enewgroup ${PN} -} - -src_prepare() { - if use udev; then - epatch "${FILESDIR}"/${PN}-3.3.2-udev.patch - cp "${FILESDIR}"/cyberjack.sh etc/udev/ || die - cp "${FILESDIR}"/cyberjack.rules etc/udev/rules.new || die - AT_M4DIR="m4" eautoreconf - fi -} - -src_configure() { - append-flags -fno-strict-aliasing - - local with_usbdropdir - use pcsc-lite && with_usbdropdir="--with-usbdropdir=$(pkg-config libpcsclite --variable=usbdropdir)" - - econf \ - --sysconfdir=/etc/${PN} \ - --disable-dependency-tracking \ - --disable-hal \ - $(use_enable pcsc-lite pcsc) \ - $(use_enable fox) \ - $(use_enable udev) \ - ${with_usbdropdir} -} - -src_install() { - emake DESTDIR="${D}" install || die - dodoc ChangeLog NEWS doc/README.txt - use udev && rm -rf "${D}"/usr/hotplug -} - -pkg_postinst() { - local conf="/etc/${PN}/${PN}.conf" - elog - elog "To configure logging, key beep behaviour etc. you need to" - elog "copy ${conf}.default" - elog "to ${conf}" - elog "and modify the latter as needed." - elog - if use udev; then - elog "To be able to use the cyberJack device, you need to" - elog "be a member of the group 'cyberjack' which has just" - elog "been added to your system. You can add your user to" - elog "the group by running the following command as root:" - elog - elog " gpasswd -a youruser cyberjack" - elog - elog "Please be aware that you need to re-login to your" - elog "system for the group membership to take effect." - elog - fi -} diff --git a/dev-libs/cyberjack/cyberjack-3.3.5-r2.ebuild b/dev-libs/cyberjack/cyberjack-3.3.5-r2.ebuild new file mode 100644 index 000000000000..30ff1ecf7cd7 --- /dev/null +++ b/dev-libs/cyberjack/cyberjack-3.3.5-r2.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/cyberjack-3.3.5-r2.ebuild,v 1.1 2010/07/25 12:45:21 wschlich Exp $ + +EAPI=2 +inherit autotools eutils flag-o-matic + +MY_P=ctapi-${P} + +DESCRIPTION="REINER SCT cyberJack pinpad/e-com USB user space driver library" +HOMEPAGE="http://www.reiner-sct.de/ http://www.libchipcard.de/" +SRC_URI="http://support.reiner-sct.de/downloads/LINUX/V${PV}/${MY_P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="fox pcsc-lite +udev" + +RDEPEND="virtual/libusb:1 + sys-fs/sysfsutils + fox? ( >=x11-libs/fox-1.6 ) + pcsc-lite? ( sys-apps/pcsc-lite )" +DEPEND="${RDEPEND} + pcsc-lite? ( dev-util/pkgconfig )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + use udev && enewgroup ${PN} +} + +src_prepare() { + if use udev; then + epatch "${FILESDIR}"/${PN}-3.3.2-udev.patch + cp "${FILESDIR}"/cyberjack.sh etc/udev/ || die + cp "${FILESDIR}"/cyberjack.rules-r1 etc/udev/rules.new || die + AT_M4DIR="m4" eautoreconf + fi +} + +src_configure() { + append-flags -fno-strict-aliasing + + local with_usbdropdir + use pcsc-lite && with_usbdropdir="--with-usbdropdir=$(pkg-config libpcsclite --variable=usbdropdir)" + + econf \ + --sysconfdir=/etc/${PN} \ + --disable-dependency-tracking \ + --disable-hal \ + $(use_enable pcsc-lite pcsc) \ + $(use_enable fox) \ + $(use_enable udev) \ + ${with_usbdropdir} +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc ChangeLog NEWS doc/README.txt + use udev && rm -rf "${D}"/usr/hotplug +} + +pkg_postinst() { + local conf="/etc/${PN}/${PN}.conf" + elog + elog "To configure logging, key beep behaviour etc. you need to" + elog "copy ${conf}.default" + elog "to ${conf}" + elog "and modify the latter as needed." + elog + if use udev; then + elog "To be able to use the cyberJack device, you need to" + elog "be a member of the group 'cyberjack' which has just" + elog "been added to your system. You can add your user to" + elog "the group by running the following command as root:" + elog + elog " gpasswd -a youruser cyberjack" + elog + elog "Please be aware that you need to re-login to your" + elog "system for the group membership to take effect." + elog + fi +} -- cgit v1.2.3-65-gdbad