diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2006-10-07 11:28:45 +0000 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2006-10-07 11:28:45 +0000 |
commit | f8bcea55aaf992316fb79c0189869ebbc98cb06d (patch) | |
tree | 1e6d6539854a69fa93bd4670ae0ec6208da29423 /sys-apps/pcsc-slb-rf72-drv | |
parent | Added two bugfixes, see Bug #147267. Added option for more niceness of noad-p... (diff) | |
download | historical-f8bcea55aaf992316fb79c0189869ebbc98cb06d.tar.gz historical-f8bcea55aaf992316fb79c0189869ebbc98cb06d.tar.bz2 historical-f8bcea55aaf992316fb79c0189869ebbc98cb06d.zip |
Reassigning to crypt herd, approved by vapier, fix ebuild to actually work
Package-Manager: portage-2.1.1
Diffstat (limited to 'sys-apps/pcsc-slb-rf72-drv')
8 files changed, 142 insertions, 6 deletions
diff --git a/sys-apps/pcsc-slb-rf72-drv/ChangeLog b/sys-apps/pcsc-slb-rf72-drv/ChangeLog index c1d6ad1a5a22..004a81e77454 100644 --- a/sys-apps/pcsc-slb-rf72-drv/ChangeLog +++ b/sys-apps/pcsc-slb-rf72-drv/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sys-apps/pcsc-slb-rf72-drv -# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-slb-rf72-drv/ChangeLog,v 1.4 2004/06/24 22:22:02 agriffis Exp $ +# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-slb-rf72-drv/ChangeLog,v 1.5 2006/10/07 11:28:45 alonbl Exp $ + +*pcsc-slb-rf72-drv-1.1.0-r1 (07 Oct 2006) + + 07 Oct 2006; Alon Bar-Lev <alonbl@gentoo.org> + +files/pcsc-slb-rf72-drv-1.1.0-build.patch, +files/reader.conf, + metadata.xml, +pcsc-slb-rf72-drv-1.1.0-r1.ebuild: + Reassigning to crypt herd, approved by vapier, fix ebuild to actually work, + using required dependency, removed binary dependency, modifying text reallocation issues, + adding configuration file, removing samples since they are not related to pcsc. *pcsc-slb-rf72-drv-1.1.0 (15 Nov 2002) diff --git a/sys-apps/pcsc-slb-rf72-drv/Manifest b/sys-apps/pcsc-slb-rf72-drv/Manifest index b20c8ba01900..952fd1f72619 100644 --- a/sys-apps/pcsc-slb-rf72-drv/Manifest +++ b/sys-apps/pcsc-slb-rf72-drv/Manifest @@ -1,4 +1,31 @@ +AUX pcsc-slb-rf72-drv-1.1.0-build.patch 912 RMD160 10b7b6c2e48fbafe94600ca6d39544c8151dc3e2 SHA1 8d765b24041952a6adb6c3ce0a672d6109cc61e0 SHA256 3e6a1d856e729ecf144701286a4a3c60fcde7d68942e6778f4698d297e797370 +MD5 c91d49bba1cd8621d46ced4f7849cd4c files/pcsc-slb-rf72-drv-1.1.0-build.patch 912 +RMD160 10b7b6c2e48fbafe94600ca6d39544c8151dc3e2 files/pcsc-slb-rf72-drv-1.1.0-build.patch 912 +SHA256 3e6a1d856e729ecf144701286a4a3c60fcde7d68942e6778f4698d297e797370 files/pcsc-slb-rf72-drv-1.1.0-build.patch 912 +AUX reader.conf 275 RMD160 2d829c6c6262387783030e32ad1543af9d7a8a39 SHA1 744d8645869db60104e734fdfd82fe5a91a8b217 SHA256 98ae5f9a09fd11325c9996da0ed74eb93e6b78e70984ba1f30f3d71de89ea242 +MD5 f8a33412b6b64b9f33d7a1082b29994f files/reader.conf 275 +RMD160 2d829c6c6262387783030e32ad1543af9d7a8a39 files/reader.conf 275 +SHA256 98ae5f9a09fd11325c9996da0ed74eb93e6b78e70984ba1f30f3d71de89ea242 files/reader.conf 275 +DIST slb_rf72-drv-1.1.0.tar.gz 53110 RMD160 16d67114eb002b9c8f8ebd39940430c31e2594ef SHA1 f39eef22ab2adf6bc6d9ece54c34854b17d51f87 SHA256 9b1abb82fa805377472d158b79bea58abf3532b0559de540ff448b6d8939835c +EBUILD pcsc-slb-rf72-drv-1.1.0-r1.ebuild 1568 RMD160 65bc519b2ca0cb4337be874094f64915874c22a0 SHA1 5d716f36ba75d2a7e3104c70a253f958f3474d29 SHA256 a85ae6c697c3fb9371ce9b23d5a7c537f06b6b3f922f3837dc145b219741a731 +MD5 0347ddea5f0f8b829f9d494a84a5ab1c pcsc-slb-rf72-drv-1.1.0-r1.ebuild 1568 +RMD160 65bc519b2ca0cb4337be874094f64915874c22a0 pcsc-slb-rf72-drv-1.1.0-r1.ebuild 1568 +SHA256 a85ae6c697c3fb9371ce9b23d5a7c537f06b6b3f922f3837dc145b219741a731 pcsc-slb-rf72-drv-1.1.0-r1.ebuild 1568 +EBUILD pcsc-slb-rf72-drv-1.1.0.ebuild 832 RMD160 64c0629adab916dc0971fc6822529e4a02a34a9c SHA1 3765577192182521ecc25ed56ba6c91f6447ce83 SHA256 831edc39addf5f14d3a6c80c777e101c061fdde816eb7c309413f5b69c8b5daf MD5 01a075622910012628b191d7e07df60e pcsc-slb-rf72-drv-1.1.0.ebuild 832 -MD5 0849d72ac09e1d5ea2e6e2a07926f0a4 ChangeLog 833 -MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 -MD5 4ff10cfe375a944a7db0113db9587224 files/digest-pcsc-slb-rf72-drv-1.1.0 69 +RMD160 64c0629adab916dc0971fc6822529e4a02a34a9c pcsc-slb-rf72-drv-1.1.0.ebuild 832 +SHA256 831edc39addf5f14d3a6c80c777e101c061fdde816eb7c309413f5b69c8b5daf pcsc-slb-rf72-drv-1.1.0.ebuild 832 +MISC ChangeLog 1293 RMD160 4801177334a485dc306867ad5460a5f3082d3baf SHA1 d9b56e5a8b2c7c77856d5ab664101811852b5213 SHA256 8211e741acdcdf733d95cf19815bd57a70774663a511b7466b84b110fe8c2cc1 +MD5 2aab14606304aaa387ce319ba9b2e370 ChangeLog 1293 +RMD160 4801177334a485dc306867ad5460a5f3082d3baf ChangeLog 1293 +SHA256 8211e741acdcdf733d95cf19815bd57a70774663a511b7466b84b110fe8c2cc1 ChangeLog 1293 +MISC metadata.xml 159 RMD160 7f0018281c6308f73c2d95b3690e3804f0c353c5 SHA1 09baadee9aeb270d0a7f31be07db9db5c105abbc SHA256 fabd15e2740a2a68e0bda738d0cd4300b133ff11239802afe7e60aa3862c9c03 +MD5 243e4cd9809545d12f991b2d417040e1 metadata.xml 159 +RMD160 7f0018281c6308f73c2d95b3690e3804f0c353c5 metadata.xml 159 +SHA256 fabd15e2740a2a68e0bda738d0cd4300b133ff11239802afe7e60aa3862c9c03 metadata.xml 159 +MD5 b2f67e5e1847890bf155aa36acdb3696 files/digest-pcsc-slb-rf72-drv-1.1.0 253 +RMD160 1a4a8919d1298ba8be80413eff66c57a787e593f files/digest-pcsc-slb-rf72-drv-1.1.0 253 +SHA256 f2fc91849771b5edc00ce27a8ef8ccc1665f61b8ffa876aa6e36b616a77144a7 files/digest-pcsc-slb-rf72-drv-1.1.0 253 +MD5 b2f67e5e1847890bf155aa36acdb3696 files/digest-pcsc-slb-rf72-drv-1.1.0-r1 253 +RMD160 1a4a8919d1298ba8be80413eff66c57a787e593f files/digest-pcsc-slb-rf72-drv-1.1.0-r1 253 +SHA256 f2fc91849771b5edc00ce27a8ef8ccc1665f61b8ffa876aa6e36b616a77144a7 files/digest-pcsc-slb-rf72-drv-1.1.0-r1 253 diff --git a/sys-apps/pcsc-slb-rf72-drv/files/digest-pcsc-slb-rf72-drv-1.1.0 b/sys-apps/pcsc-slb-rf72-drv/files/digest-pcsc-slb-rf72-drv-1.1.0 index 1bc3e2a2728d..04e0dbf283a9 100644 --- a/sys-apps/pcsc-slb-rf72-drv/files/digest-pcsc-slb-rf72-drv-1.1.0 +++ b/sys-apps/pcsc-slb-rf72-drv/files/digest-pcsc-slb-rf72-drv-1.1.0 @@ -1 +1,3 @@ MD5 32a3ff9997f92b96a43861ea121f5d3f slb_rf72-drv-1.1.0.tar.gz 53110 +RMD160 16d67114eb002b9c8f8ebd39940430c31e2594ef slb_rf72-drv-1.1.0.tar.gz 53110 +SHA256 9b1abb82fa805377472d158b79bea58abf3532b0559de540ff448b6d8939835c slb_rf72-drv-1.1.0.tar.gz 53110 diff --git a/sys-apps/pcsc-slb-rf72-drv/files/digest-pcsc-slb-rf72-drv-1.1.0-r1 b/sys-apps/pcsc-slb-rf72-drv/files/digest-pcsc-slb-rf72-drv-1.1.0-r1 new file mode 100644 index 000000000000..04e0dbf283a9 --- /dev/null +++ b/sys-apps/pcsc-slb-rf72-drv/files/digest-pcsc-slb-rf72-drv-1.1.0-r1 @@ -0,0 +1,3 @@ +MD5 32a3ff9997f92b96a43861ea121f5d3f slb_rf72-drv-1.1.0.tar.gz 53110 +RMD160 16d67114eb002b9c8f8ebd39940430c31e2594ef slb_rf72-drv-1.1.0.tar.gz 53110 +SHA256 9b1abb82fa805377472d158b79bea58abf3532b0559de540ff448b6d8939835c slb_rf72-drv-1.1.0.tar.gz 53110 diff --git a/sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-build.patch b/sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-build.patch new file mode 100644 index 000000000000..0e6a7db2baf0 --- /dev/null +++ b/sys-apps/pcsc-slb-rf72-drv/files/pcsc-slb-rf72-drv-1.1.0-build.patch @@ -0,0 +1,24 @@ +diff -urNp slb_rf72.org/ifdhandler.c slb_rf72/ifdhandler.c +--- slb_rf72.org/ifdhandler.c 2001-08-23 17:19:22.000000000 +0300 ++++ slb_rf72/ifdhandler.c 2006-10-07 12:57:43.000000000 +0200 +@@ -37,6 +37,7 @@ + #ifdef HAVE_PTHREAD_H + #include <pthread.h> + #endif ++#include <openct/ctapi.h> + + /* + * Not exported constants definition +diff -urNp slb_rf72.org/Makefile slb_rf72/Makefile +--- slb_rf72.org/Makefile 2001-09-05 18:22:00.000000000 +0300 ++++ slb_rf72/Makefile 2006-10-07 13:05:20.000000000 +0200 +@@ -16,7 +16,7 @@ clean: + rm -f test *.o *.lo *.so + + lib: $(OBJ) +- $(LD) -G ifdhandler.o lib/libctapi.a -o libslb_rf72.so ++ $(CC) -shared `pkg-config --libs-only-L libopenct` -lopenctapi ifdhandler.o -o libslb_rf72.so + + ifdhandler.o: ifdhandler.h ifdhandler.c +- $(CC) $(CFLAGS) -c ifdhandler.c $(INCLUDES) ++ $(CC) $(CFLAGS) `pkg-config --cflags libopenct` -fPIC -DHAVE_PTHREAD_H -c ifdhandler.c $(INCLUDES) diff --git a/sys-apps/pcsc-slb-rf72-drv/files/reader.conf b/sys-apps/pcsc-slb-rf72-drv/files/reader.conf new file mode 100644 index 000000000000..fbf7898ba65e --- /dev/null +++ b/sys-apps/pcsc-slb-rf72-drv/files/reader.conf @@ -0,0 +1,11 @@ +# Configuration file for pcsc-lite +# + +# Schlumberger Reflex 72 reader +FRIENDLYNAME "Schlumberger Reflex 72" +# Update the following to the right COM port +DEVICENAME /dev/null +LIBPATH %PCSC_DRIVERS_DIR%/serial/libslb_rf72.so +CHANNELID 1 + +# End of file diff --git a/sys-apps/pcsc-slb-rf72-drv/metadata.xml b/sys-apps/pcsc-slb-rf72-drv/metadata.xml index 96a2d586367d..d68fe974c15a 100644 --- a/sys-apps/pcsc-slb-rf72-drv/metadata.xml +++ b/sys-apps/pcsc-slb-rf72-drv/metadata.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<herd>base-system</herd> +<herd>crypto</herd> </pkgmetadata> diff --git a/sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r1.ebuild b/sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r1.ebuild new file mode 100644 index 000000000000..09080e594242 --- /dev/null +++ b/sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-slb-rf72-drv/pcsc-slb-rf72-drv-1.1.0-r1.ebuild,v 1.1 2006/10/07 11:28:45 alonbl Exp $ + +inherit eutils + +MY_P="slb_rf72" +S=${WORKDIR}/${MY_P} +DESCRIPTION="Schlumberger Reflex 72 Serial Smartcard Reader" +HOMEPAGE="http://www.linuxnet.com/sourcedrivers.html" +LICENSE="as-is" +KEYWORDS="~x86 ~amd64" +IUSE="" +SLOT="0" +SRC_URI="http://www.linuxnet.com/drivers/readers/files/slb_rf72-drv-1.1.0.tar.gz" +RDEPEND="sys-apps/pcsc-lite + dev-libs/openct" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}/${P}-build.patch" +} + +src_install () { + local pcscdir="$(pkg-config --variable=usbdropdir libpcsclite)" + local conf="/etc/reader.conf.d/${PN}.conf" + + dodoc ERRATA LICENSE README + + dodir "${pcscdir}/serial" + insinto "${pcscdir}/serial" + insopts -m755 + doins libslb_rf72.so + + dodir "$(dirname "${conf}")" + insinto "$(dirname "${conf}")" + newins "${FILESDIR}/reader.conf" "$(basename "${conf}")" + sed -i "s#%PCSC_DRIVERS_DIR%#${pcscdir}#g" "${D}/${conf}" + + einfo "NOTICE:" + einfo "1. modify ${conf}" + einfo "2. run update-reader.conf, yes this is a command..." + einfo "3. restart pcscd" +} + +pkg_postrm() { + # + # Without this, pcscd will not start next time. + # + local conf="/etc/reader.conf.d/${PN}.conf" + if ! [ -f "$(grep LIBPATH "${conf}" | sed 's/LIBPATH *//' | sed 's/ *$//g')" ]; then + rm "${conf}" + update-reader.conf + einfo "NOTICE:" + einfo "You need to restart pcscd" + fi +} + |