diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-crypt/acr38u | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-crypt/acr38u')
-rw-r--r-- | app-crypt/acr38u/Manifest | 1 | ||||
-rw-r--r-- | app-crypt/acr38u/acr38u-1.7.11-r1.ebuild | 57 | ||||
-rw-r--r-- | app-crypt/acr38u/acr38u-1.7.11-r3.ebuild | 44 | ||||
-rw-r--r-- | app-crypt/acr38u/files/1.7.11-bis.rules | 15 | ||||
-rw-r--r-- | app-crypt/acr38u/files/1.7.11.rules | 12 | ||||
-rw-r--r-- | app-crypt/acr38u/files/acr38u-1.7.11-build.patch | 178 | ||||
-rw-r--r-- | app-crypt/acr38u/metadata.xml | 14 |
7 files changed, 321 insertions, 0 deletions
diff --git a/app-crypt/acr38u/Manifest b/app-crypt/acr38u/Manifest new file mode 100644 index 000000000000..70ff4c452d0c --- /dev/null +++ b/app-crypt/acr38u/Manifest @@ -0,0 +1 @@ +DIST ACR38_LINUX_100711_P.tar.bz2 274137 SHA256 7d7e4fa97def2415f4b5c9e90cfedc2f7acbe94ca8b1653a5d8a85e24fc0ab53 SHA512 c5d0e71ae383de515718d24110b825efa84cf1a150ec7249f80070446331fb4df4d157f5f4e96d45588346e51ab8e2012530edae92575b66891c7ee596d8d3f7 WHIRLPOOL d63f7d1a8ff51ff131e0e0bcf943bbb5c38773b707019e695377fc42b5a91029ac22736dae95f10342a8d44370f90f766c9bdbf23f5c445c8f41c051303f87c3 diff --git a/app-crypt/acr38u/acr38u-1.7.11-r1.ebuild b/app-crypt/acr38u/acr38u-1.7.11-r1.ebuild new file mode 100644 index 000000000000..2dcc78feab12 --- /dev/null +++ b/app-crypt/acr38u/acr38u-1.7.11-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit multilib eutils versionator autotools toolchain-funcs udev + +MY_P=ACR38_LINUX_$(get_version_component_range 1)00$(get_version_component_range 2)$(get_version_component_range 3)_P + +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}.tar.bz2" +# tarball release is encapsuled in a .zip file :-( +# http://www.acs.com.hk/drivers/eng/ACR38_Driver_Lnx_101_P.zip +# I'm waiting an answer from info@acs.com.hk about that ! +SRC_URI="http://www.linuxunderground.be/${MY_P}.tar.bz2" +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. +# Changed back from dev-libs/libusb-compat to virtual/libusb:0 because +# libusb-compat is marked stable and primary in the virtual. -ssuominen +RDEPEND=">=sys-apps/pcsc-lite-1.6.4 + virtual/libusb:0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_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 + + prune_libtool_files + + # note: for eudev support this pkg may always need to install rules to /usr + udev_newrules "${FILESDIR}"/${PV}.rules 92-pcscd-acr38u.rules +} diff --git a/app-crypt/acr38u/acr38u-1.7.11-r3.ebuild b/app-crypt/acr38u/acr38u-1.7.11-r3.ebuild new file mode 100644 index 000000000000..4c4104b8b7b3 --- /dev/null +++ b/app-crypt/acr38u/acr38u-1.7.11-r3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib eutils versionator toolchain-funcs udev autotools-utils + +MY_P=ACR38_LINUX_$(get_version_component_range 1)00$(get_version_component_range 2)$(get_version_component_range 3)_P + +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}.tar.bz2" +# tarball release is encapsuled in a .zip file :-( +# http://www.acs.com.hk/drivers/eng/ACR38_Driver_Lnx_101_P.zip +# I'm waiting an answer from info@acs.com.hk about that ! +SRC_URI="http://www.linuxunderground.be/${MY_P}.tar.bz2" +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. +# Changed back from dev-libs/libusb-compat to virtual/libusb:0 because +# libusb-compat is marked stable and primary in the virtual. -ssuominen +RDEPEND=">=sys-apps/pcsc-lite-1.6.4 + virtual/libusb:0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +IUSE="" + +AUTOTOOLS_AUTORECONF=yes +PATCHES=( "${FILESDIR}"/${P}-build.patch ) + +src_install() { + autotools-utils_src_install + + # note: for eudev support this pkg may always need to install rules to /usr + udev_newrules "${FILESDIR}"/${PV}-bis.rules 92-pcscd-acr38u.rules +} diff --git a/app-crypt/acr38u/files/1.7.11-bis.rules b/app-crypt/acr38u/files/1.7.11-bis.rules new file mode 100644 index 000000000000..784c606f4044 --- /dev/null +++ b/app-crypt/acr38u/files/1.7.11-bis.rules @@ -0,0 +1,15 @@ +# 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" + +# change group from default "root" to "pcscd" +ENV{ID_USB_INTERFACES}=="*:0b0000:*", ENV{PCSCD}="1" + +ATTRS{idVendor}=="072f", ATTRS{idProduct}=="9000", ENV{PCSCD}="1" +ATTRS{idVendor}=="072f", ATTRS{idProduct}=="9006", ENV{PCSCD}="1" +ATTRS{idVendor}=="072f", ATTRS{idProduct}=="90CF", ENV{PCSCD}="1" + +LABEL="pcscd_acr38u_rules_end" diff --git a/app-crypt/acr38u/files/1.7.11.rules b/app-crypt/acr38u/files/1.7.11.rules new file mode 100644 index 000000000000..eead6bd200e3 --- /dev/null +++ b/app-crypt/acr38u/files/1.7.11.rules @@ -0,0 +1,12 @@ +# 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" +ATTRS{idVendor}=="072f", ATTRS{idProduct}=="90CF", ENV{PCSCD}="1" + +LABEL="pcscd_acr38u_rules_end" diff --git a/app-crypt/acr38u/files/acr38u-1.7.11-build.patch b/app-crypt/acr38u/files/acr38u-1.7.11-build.patch new file mode 100644 index 000000000000..374ca2822c1d --- /dev/null +++ b/app-crypt/acr38u/files/acr38u-1.7.11-build.patch @@ -0,0 +1,178 @@ +Index: ACR38_LINUX_100711_P/configure.ac +=================================================================== +--- ACR38_LINUX_100711_P.orig/configure.ac ++++ ACR38_LINUX_100711_P/configure.ac +@@ -58,74 +58,21 @@ if test x${debug} = xtrue ; then + AC_DEFINE(USBDEBUG, 1, [enable USB debug messaging.]) + fi + +-# --enable-pcscdropdir=DIR ; pcsclite installation directory +-AC_ARG_ENABLE([pcscdropdir], +- AS_HELP_STRING([--enable-pcscdropdir=DIR], +- [installation directory of PCSCLITE (default to PREFIX)]), +- [pcscdropdir=$enableval], +- [pcscdropdir=false]) +- +-if test "${pcscdropdir}" = false ; then +- if test "$prefix" = NONE ; then +- pcscdropdir="$ac_default_prefix" +- else +- pcscdropdir="$prefix" +- fi +-fi +- +-# removed by ZETES +-# AC_SUBST([PKG_PCSC_CONFIG_PATH],[$pcscdropdir/lib/pkgconfig]) +-# removed by ZETES +-# AC_SUBST([PKG_PCSCLITE],[$pcscdropdir/lib/pkgconfig/libpcsclite.pc]) +- +-# added by ZETES ... +-PKG_PCSCLITE="libpcsclite" +-# ... added by ZETES +- +-# Check if pkg-config exists +-AC_CHECK_PROG([PKGCONFIG], [pkg-config], [yes]) +-if test "$PKGCONFIG" = "yes"; then +- if ! `pkg-config --print-errors --atleast-version=1.2.0 $PKG_PCSCLITE` +- then +- AC_MSG_ERROR([install pcsc-lite 1.2.0 or later]) +- fi +-fi +- +-# Check for libusb 0.1.12 +-PKG_LIBUSB="libusb" +-if test "$PKGCONFIG" = "yes"; then +- if ! `pkg-config --print-errors --atleast-version=0.1.12 $PKG_LIBUSB` +- then +- AC_MSG_ERROR([install libusb 0.1.12 or later]) +- fi +-fi ++PKG_INSTALLDIR() + +-# --enable-usbdropdir=DIR +-AC_ARG_ENABLE([usbdropdir], +- AC_HELP_STRING([--enable-usbdropdir=DIR], +- [directory containing USB drivers (default to pcscd config or $(prefix)/pcsc/drivers)]), +- [usbdropdir="${enableval}"], +- [usbdropdir=false]) +- +-if test "${usbdropdir}" = false ; then +- if test "$PKGCONFIG" = yes ; then +- usbdropdir=`pkg-config $PKG_PCSCLITE --variable=usbdropdir` +- else +- usbdropdir="" +- fi +- if test -z "$usbdropdir" ; then ++PKG_CHECK_MODULES([PCSCLITE], [libpcsclite >= 1.2.0]) ++PKG_CHECK_VAR([USBDROPDIR], [libpcsclite], [usbdropdir], [], [ + if test "$prefix" = NONE ; then +- usbdropdir="$ac_default_prefix/pcsc/drivers" ++ USBDROPDIR="$ac_default_prefix/pcsc/drivers" + else +- usbdropdir="$prefix/pcsc/drivers" ++ USBDROPDIR="$prefix/pcsc/drivers" + fi +- fi +-fi ++ ]) + +-AC_SUBST(usbdropdir) ++# Check for libusb 0.1.12 ++PKG_CHECK_MODULES([LIBUSB], [libusb >= 0.1.12]) + +-AC_MSG_RESULT([USB drop directory : $usbdropdir]) +-AC_DEFINE_UNQUOTED(PCSCLITE_HP_DROPDIR, "$usbdropdir", [directory containing USB drivers]) ++AC_DEFINE_UNQUOTED(PCSCLITE_HP_DROPDIR, "$USBDROPDIR", [directory containing USB drivers]) + + #AC_SUBST(CTRLLIBCFLAGS) + #AC_SUBST(CTRLLIBLIBS) +@@ -141,7 +88,7 @@ AC_DEFINE_UNQUOTED(PCSCLITE_HP_DROPDIR, + + # Checks for programs. + AC_PROG_CC +-AC_PROG_LIBTOOL ++AC_PROG_LIBTOOL([disable-static]) + + # Checks for libraries. + # FIXME: Replace `main' with a function in `-lpcsclite': +@@ -164,8 +111,8 @@ AC_CHECK_HEADERS([fcntl.h limits.h mallo + + # Setup the compiler and linker flag + OLD_CFLAGS=$CFLAGS +-CFLAGS="$CFLAGS `pkg-config --cflags $PKG_PCSCLITE`" +-CFLAGS="$CFLAGS `pkg-config --cflags $PKG_LIBUSB`" ++CFLAGS="$CFLAGS $PCSCLITE_CFLAGS" ++CFLAGS="$CFLAGS $LIBUSB_CFLAGS" + + # Check for pcsclite header files + # removed by ZETES NO_PCSC_MSG="Please install PCSCLITE 1.2.0 or later before building the driver!!" +@@ -173,12 +120,6 @@ CFLAGS="$CFLAGS `pkg-config --cflags $PK + + # removed by ZETES CFLAGS=$OLD_CFLAGS + +-AC_SUBST(LIBPCSCLITE) +-LIBPCSCLITE=`pkg-config --libs $PKG_PCSCLITE` +- +-AC_SUBST(LIBUSB) +-LIBUSB=`pkg-config --libs $PKG_LIBUSB` +- + # Select OS specific versions of source files. + AC_SUBST(BUNDLE_HOST) + AC_SUBST(DYN_LIB_EXT) +Index: ACR38_LINUX_100711_P/src/controllib/Makefile.am +=================================================================== +--- ACR38_LINUX_100711_P.orig/src/controllib/Makefile.am ++++ ACR38_LINUX_100711_P/src/controllib/Makefile.am +@@ -6,7 +6,7 @@ + + ACR38_CONTROLLIB = libacr38ucontrol.$(DYN_LIB_EXT) + +-AM_CPPFLAGS = -I../driver `pkg-config libpcsclite --cflags` ++AM_CPPFLAGS = -I$(srcdir)/../driver $(PCSCLITE_CFLAGS) + + lib_LTLIBRARIES = libacr38ucontrol.la + include_HEADERS = ACS38DrvTools.h +@@ -16,8 +16,6 @@ SRC_CONTROLLIB = ACS38DrvTools.c \ + ACS38DrvTools.h + + libacr38ucontrol_la_SOURCES = $(SRC_CONTROLLIB) +-libacr38ucontrol_la_CFLAGS = `pkg-config libpcsclite --cflags` ++libacr38ucontrol_la_CFLAGS = $(PCSCLITE_CFLAGS) + +-#pcdir= $(PKG_PCSC_CONFIG_PATH) +-pcdir= @prefix@/lib/pkgconfig +-pc_DATA = libacr38ucontrol.pc ++pkgconfig_DATA = libacr38ucontrol.pc +Index: ACR38_LINUX_100711_P/src/driver/Makefile.am +=================================================================== +--- ACR38_LINUX_100711_P.orig/src/driver/Makefile.am ++++ ACR38_LINUX_100711_P/src/driver/Makefile.am +@@ -9,7 +9,7 @@ DRIVER_LIB_NAME = lib$(DRIVER_NAME).$(DY + DRIVER_BUNDLE_DIR = $(DRIVER_NAME).bundle + DRIVER_INSTALL_HOME_DIR = pcsc/drivers/$(DRIVER_LIB_NAME).bundle/Contents/Linux + +-AM_CPPFLAGS = `pkg-config libpcsclite --cflags` ++AM_CPPFLAGS = $(PCSCLITE_CFLAGS) + + EXTRA_DIST = Info.plist + +@@ -34,13 +34,13 @@ SRC_USB = usbserial_linux.c \ + usbserial_linux.h + + libACR38UDriver_la_SOURCES = $(SRC_DRV) $(SRC_USB) +-libACR38UDriver_la_LIBADD = @LIBPCSCLITE@ @LIBUSB@ @COREFOUNDATION@ @IOKIT@ ++libACR38UDriver_la_LIBADD = @PCSCLITE_LIBS@ @LIBUSB_LIBS@ @COREFOUNDATION@ @IOKIT@ + + install: libACR38UDriver.la +- $(mkinstalldirs) $(usbdropdir)/$(DRIVER_BUNDLE_DIR)/Contents/$(BUNDLE_HOST)/ +- $(INSTALL) .libs/$(DRIVER_LIB_NAME) $(usbdropdir)/$(DRIVER_BUNDLE_DIR)/Contents/$(BUNDLE_HOST)/$(DRIVER_NAME) +- $(INSTALL) Info.plist $(usbdropdir)/$(DRIVER_BUNDLE_DIR)/Contents +-# chmod 755 $(usbdropdir)/$(DRIVER_BUNDLE_DIR)/Contents/$(BUNDLE_HOST)/$(DRIVER_LIB_NAME) ++ $(MKDIR_P) $(DESTDIR)$(USBDROPDIR)/$(DRIVER_BUNDLE_DIR)/Contents/$(BUNDLE_HOST)/ ++ $(INSTALL) .libs/$(DRIVER_LIB_NAME) $(DESTDIR)$(USBDROPDIR)/$(DRIVER_BUNDLE_DIR)/Contents/$(BUNDLE_HOST)/$(DRIVER_NAME) ++ $(INSTALL) $(srcdir)/Info.plist $(DESTDIR)$(USBDROPDIR)/$(DRIVER_BUNDLE_DIR)/Contents ++# chmod 755 $(DESTDIR)$(USBDROPDIR)/$(DRIVER_BUNDLE_DIR)/Contents/$(BUNDLE_HOST)/$(DRIVER_LIB_NAME) + + uninstall: +- rm -rf $(usbdropdir)/$(DRIVER_BUNDLE_DIR) ++ rm -rf $(DESTDIR)$(USBDROPDIR)/$(DRIVER_BUNDLE_DIR) diff --git a/app-crypt/acr38u/metadata.xml b/app-crypt/acr38u/metadata.xml new file mode 100644 index 000000000000..662ee8f7211f --- /dev/null +++ b/app-crypt/acr38u/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>crypto</herd> + <herd>proxy-maintainers</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> |