diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-03-17 00:26:54 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-03-17 00:26:54 +0000 |
commit | b6e315e0e09ca0085dadfd9272f9c0a9e1f04058 (patch) | |
tree | 2fedb19e7b8d64126a4aa56621cf0e58ac5634a0 /app-crypt/acr38u | |
parent | Bump to OpenOffice.org 3.3.0 (diff) | |
download | gentoo-2-b6e315e0e09ca0085dadfd9272f9c0a9e1f04058.tar.gz gentoo-2-b6e315e0e09ca0085dadfd9272f9c0a9e1f04058.tar.bz2 gentoo-2-b6e315e0e09ca0085dadfd9272f9c0a9e1f04058.zip |
Initial import of acr38u. thanks to Vincent Hardy in bug #187422 for writing the ebuild and proxy-maintaining it.
(Portage version: 2.2.0_alpha27/cvs/Linux x86_64)
Diffstat (limited to 'app-crypt/acr38u')
-rw-r--r-- | app-crypt/acr38u/ChangeLog | 11 | ||||
-rw-r--r-- | app-crypt/acr38u/acr38u-1.7.10-r1.ebuild | 52 | ||||
-rw-r--r-- | app-crypt/acr38u/files/92-pcscd-acr38u.rules | 11 | ||||
-rw-r--r-- | app-crypt/acr38u/metadata.xml | 13 |
4 files changed, 87 insertions, 0 deletions
diff --git a/app-crypt/acr38u/ChangeLog b/app-crypt/acr38u/ChangeLog new file mode 100644 index 000000000000..c5df65129fab --- /dev/null +++ b/app-crypt/acr38u/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-crypt/acr38u +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/acr38u/ChangeLog,v 1.1 2011/03/17 00:26:54 flameeyes Exp $ + +*acr38u-1.7.10-r1 (17 Mar 2011) + + 17 Mar 2011; Diego E. Pettenò <flameeyes@gentoo.org> + +files/92-pcscd-acr38u.rules, +acr38u-1.7.10-r1.ebuild, +metadata.xml: + Initial import of acr38u. thanks to Vincent Hardy in bug #187422 for writing + the ebuild and proxy-maintaining it. + diff --git a/app-crypt/acr38u/acr38u-1.7.10-r1.ebuild b/app-crypt/acr38u/acr38u-1.7.10-r1.ebuild new file mode 100644 index 000000000000..3d2d05333d11 --- /dev/null +++ b/app-crypt/acr38u/acr38u-1.7.10-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/acr38u/acr38u-1.7.10-r1.ebuild,v 1.1 2011/03/17 00:26:54 flameeyes Exp $ + +EAPI=3 + +inherit multilib eutils versionator autotools + +MY_P=ACR38U_driver_Lnx_$(get_version_component_range 1)$(get_version_component_range 2)$(get_version_component_range 3)_P.tar.gz + +SLOT="0" +LICENSE="LGPL-2.1" +KEYWORDS="~amd64 ~x86" +DESCRIPTION="Non CCID driver for ACR38 AC1038-based Smart Card Reader." + +SRC_URI="http://www.acs.com.hk/drivers/eng/${MY_P}" +HOMEPAGE="http://www.acs.com.hk" + +# Make this safe from collisions, require a version of pcsc-lite that +# uses libusb-1.0 and use the wrapper library instead. +RDEPEND=">=sys-apps/pcsc-lite-1.6.4 + dev-libs/libusb-compat" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +S="${WORKDIR}/ACR38_LINUX_$(get_version_component_range 1)00$(get_version_component_range 2)$(get_version_component_range 3)_P" + +IUSE="" + +src_prepare() { + epatch_user + + sed -i -e '/pcdir/s:@prefix@/lib:$(libdir):' src/controllib/Makefile.am + + eautoreconf +} + +src_configure() { + econf \ + --enable-static=false \ + --enable-usbdropdir="${D}/usr/$(get_libdir)/readers/usb" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + # Remove useless .la files + find "${D}" -name '*.la' -delete + + insinto /$(get_libdir)/udev/rules.d + doins "${FILESDIR}/92-pcscd-acr38u.rules" +} diff --git a/app-crypt/acr38u/files/92-pcscd-acr38u.rules b/app-crypt/acr38u/files/92-pcscd-acr38u.rules new file mode 100644 index 000000000000..52077baf3f13 --- /dev/null +++ b/app-crypt/acr38u/files/92-pcscd-acr38u.rules @@ -0,0 +1,11 @@ +# udev rules to set the access rights of non CCID ACR38u smart card readers +# so they can be used by pcscd + +ACTION!="add", GOTO="pcscd_acr38u_rules_end" +SUBSYSTEM!="usb", GOTO="pcscd_acr38u_rules_end" +ENV{DEVTYPE}!="usb_device", GOTO="pcscd_acr38u_rules_end" + +ATTRS{idVendor}=="072f", ATTRS{idProduct}=="9000", ENV{PCSCD}="1" +ATTRS{idVendor}=="072f", ATTRS{idProduct}=="9006", ENV{PCSCD}="1" + +LABEL="pcscd_acr38u_rules_end" diff --git a/app-crypt/acr38u/metadata.xml b/app-crypt/acr38u/metadata.xml new file mode 100644 index 000000000000..22c4ee670762 --- /dev/null +++ b/app-crypt/acr38u/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>crypto</herd> + <maintainer> + <email>vincent.hardy.be@gmail.com</email> + <description>Proxied maintainer, assign bugs to him</description> + </maintainer> + <maintainer> + <email>flameeyes@gentoo.org</email> + <description>Proxy-maintainer, CC him on bugs</description> + </maintainer> +</pkgmetadata> |