diff options
author | shannonjr <shannonjr@pkgsrc.org> | 2008-03-04 11:29:08 +0000 |
---|---|---|
committer | shannonjr <shannonjr@pkgsrc.org> | 2008-03-04 11:29:08 +0000 |
commit | d6204794ef32f7e23ff31ae47a5887f29da89356 (patch) | |
tree | 7b0114bed943785dbfad3080de3bbfec86f168f5 /security/pcsc-lite | |
parent | b56a38e922a00fd0b4a52c276a8e2f468200aab5 (diff) | |
download | pkgsrc-d6204794ef32f7e23ff31ae47a5887f29da89356.tar.gz |
The purpose of PC/SC Lite is to provide a Windows(R) SCard interface in a
very small form factor for communicating to smartcards and readers.
The PC/SC Lite library is used to connect to the PC/SC daemon from a
client application and provide access to the desired reader.
Diffstat (limited to 'security/pcsc-lite')
-rw-r--r-- | security/pcsc-lite/DESCR | 8 | ||||
-rw-r--r-- | security/pcsc-lite/Makefile | 44 | ||||
-rw-r--r-- | security/pcsc-lite/PLIST | 20 | ||||
-rw-r--r-- | security/pcsc-lite/buildlink3.mk | 21 | ||||
-rw-r--r-- | security/pcsc-lite/distinfo | 11 | ||||
-rw-r--r-- | security/pcsc-lite/options.mk | 12 | ||||
-rw-r--r-- | security/pcsc-lite/patches/patch-aa | 22 | ||||
-rw-r--r-- | security/pcsc-lite/patches/patch-ab | 10 | ||||
-rw-r--r-- | security/pcsc-lite/patches/patch-ac | 12 | ||||
-rw-r--r-- | security/pcsc-lite/patches/patch-ad | 13 | ||||
-rw-r--r-- | security/pcsc-lite/patches/patch-ae | 13 | ||||
-rw-r--r-- | security/pcsc-lite/patches/patch-af | 13 |
12 files changed, 199 insertions, 0 deletions
diff --git a/security/pcsc-lite/DESCR b/security/pcsc-lite/DESCR new file mode 100644 index 00000000000..4c8246a6a27 --- /dev/null +++ b/security/pcsc-lite/DESCR @@ -0,0 +1,8 @@ +The purpose of PC/SC Lite is to provide a +Windows(R) SCard interface in a very small +form factor for communicating to smartcards +and readers. + +The PC/SC Lite library is used to connect to +the PC/SC daemon from a client application +and provide access to the desired reader. diff --git a/security/pcsc-lite/Makefile b/security/pcsc-lite/Makefile new file mode 100644 index 00000000000..787a265ee23 --- /dev/null +++ b/security/pcsc-lite/Makefile @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/03/04 11:29:08 shannonjr Exp $ +# + +DISTNAME= pcsc-lite-1.4.99 +CATEGORIES= security +MASTER_SITES= http://alioth.debian.org/frs/download.php/2257/ + +MAINTAINER= shannonjr@NetBSD.org +HOMEPAGE= http://alioth.debian.org/frs/download.php/2257/ +COMMENT= Middleware to access a smart card using SCard API (PC/SC). + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config +USE_TOOLS+= autoconf automake aclocal autoheader +AUTOMAKE_REQD= 1.10 +AUTOCONF_REQD= 2.58 +USE_LANGUAGES= c c++ + +.include "options.mk" + +CONFIGURE_ARGS+= --sharedstatedir=${VARBASE:Q} +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} +CONFIGURE_ARGS+= --enable-ipcdir=${VARBASE}/pcsc-lite +CONFIGURE_ARGS+= --enable-usbdropdir=${PREFIX}/lib/pcsc-lite/drivers +MAKE_DIRS+= ${VARBASE}/pcsc-lite +MAKE_DIRS+= ${PREFIX}/lib/pcsc-lite +MAKE_DIRS+= ${PREFIX}/lib/pcsc-lite/drivers + +EGDIR= ${PREFIX}/share/examples/pcsc-lite +CONF_FILES+= ${EGDIR}/reader.conf ${PKG_SYSCONFDIR}/reader.conf + +PKGCONFIG_OVERRIDE+= src/libpcsclite.pc.in + +pre-configure: + cd ${WRKSRC} && ${SH} bootstrap + + +post-install: + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/etc/reader.conf ${EGDIR} + +.include "../../devel/libusb/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/security/pcsc-lite/PLIST b/security/pcsc-lite/PLIST new file mode 100644 index 00000000000..5d1cd92d33e --- /dev/null +++ b/security/pcsc-lite/PLIST @@ -0,0 +1,20 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/03/04 11:29:08 shannonjr Exp $ +include/PCSC/debuglog.h +include/PCSC/ifdhandler.h +include/PCSC/pcsclite.h +include/PCSC/reader.h +include/PCSC/winscard.h +include/PCSC/wintypes.h +lib/libpcsclite.la +lib/pkgconfig/libpcsclite.pc +man/man5/reader.conf.5 +man/man8/pcscd.8 +man/man8/update-reader.conf.8 +sbin/pcscd +share/doc/pcsc-lite/README.DAEMON +share/doc/pcsc-lite/ifdhandler-3.tex +share/doc/pcsc-lite/pcsc-lite.bib +share/doc/pcsc-lite/pcsc-lite.tex +share/examples/pcsc-lite/reader.conf +@dirrm share/doc/pcsc-lite +@dirrm include/PCSC diff --git a/security/pcsc-lite/buildlink3.mk b/security/pcsc-lite/buildlink3.mk new file mode 100644 index 00000000000..35d1a55c261 --- /dev/null +++ b/security/pcsc-lite/buildlink3.mk @@ -0,0 +1,21 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/03/04 11:29:08 shannonjr Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +PCSC_LITE_BUILDLINK3_MK:= ${PCSC_LITE_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= pcsc-lite +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npcsc-lite} +BUILDLINK_PACKAGES+= pcsc-lite +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}pcsc-lite + +.if ${PCSC_LITE_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.pcsc-lite+= pcsc-lite>=1.4.99 +BUILDLINK_PKGSRCDIR.pcsc-lite?= ../../local/pcsc-lite +.endif # PCSC_LITE_BUILDLINK3_MK + +.include "../../devel/libusb/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/security/pcsc-lite/distinfo b/security/pcsc-lite/distinfo new file mode 100644 index 00000000000..2a22da0e483 --- /dev/null +++ b/security/pcsc-lite/distinfo @@ -0,0 +1,11 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/03/04 11:29:08 shannonjr Exp $ + +SHA1 (pcsc-lite-1.4.99.tar.gz) = 7f5ff7d8e187c1d46f3bc26567d393107ac0e362 +RMD160 (pcsc-lite-1.4.99.tar.gz) = 689d99ae26a13dc78856670b0deafbd5fed517ab +Size (pcsc-lite-1.4.99.tar.gz) = 637727 bytes +SHA1 (patch-aa) = d58fa48e3778f5dc07fcc8234c9b8aa064a498db +SHA1 (patch-ab) = 61bf6dbc2b245e888cbb561dae0a380b14bb1700 +SHA1 (patch-ac) = 4404dec1418df59baafdc5c45fae9dc810418991 +SHA1 (patch-ad) = 3172e6063cc48b1302d08865cd8e9039b502a807 +SHA1 (patch-ae) = 79978e1a6e1b6cd11ba4411e69bbf6f7d83c90ae +SHA1 (patch-af) = 931c031eba226336ceb1c12bc2ffd9193cb24e44 diff --git a/security/pcsc-lite/options.mk b/security/pcsc-lite/options.mk new file mode 100644 index 00000000000..c2d37cd1105 --- /dev/null +++ b/security/pcsc-lite/options.mk @@ -0,0 +1,12 @@ +# $NetBSD: options.mk,v 1.1.1.1 2008/03/04 11:29:08 shannonjr Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.pcsc-lite +PKG_SUPPORTED_OPTIONS= extendedapdu + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mextendedapdu) +CONFIGURE_ARGS+= --enable-extendedapdu +.else +CONFIGURE_ARGS+= --enable-extendedapdu=no +.endif diff --git a/security/pcsc-lite/patches/patch-aa b/security/pcsc-lite/patches/patch-aa new file mode 100644 index 00000000000..815b850cc4c --- /dev/null +++ b/security/pcsc-lite/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/03/04 11:29:08 shannonjr Exp $ + +--- src/PCSC/reader.h.in.orig 2007-11-23 09:47:44.000000000 -0700 ++++ src/PCSC/reader.h.in +@@ -119,7 +119,7 @@ + + /* Set structure elements aligment on bytes + * http://gcc.gnu.org/onlinedocs/gcc/Structure_002dPacking-Pragmas.html */ +-#if defined(__APPLE__) | defined(sun) ++#if defined(__APPLE__) | defined(sun) | defined(__NetBSD__) + #pragma pack(1) + #else + #pragma pack(push, 1) +@@ -197,7 +197,7 @@ typedef struct + } PIN_MODIFY_STRUCTURE; + + /* restore default structure elements alignment */ +-#if defined(__APPLE__) | defined(sun) ++#if defined(__APPLE__) | defined(sun) | defined(__NetBSD__) + #pragma pack() + #else + #pragma pack(pop) diff --git a/security/pcsc-lite/patches/patch-ab b/security/pcsc-lite/patches/patch-ab new file mode 100644 index 00000000000..191b7a3e729 --- /dev/null +++ b/security/pcsc-lite/patches/patch-ab @@ -0,0 +1,10 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/03/04 11:29:08 shannonjr Exp $ + +--- src/Makefile.am.orig 2007-10-13 15:21:11.000000000 -0600 ++++ src/Makefile.am +@@ -150,3 +150,5 @@ tokenparser.c: tokenparser.l + + EXTRA_DIST = README_INTERNALS.txt dyn_win32.c thread_win32.c winscard_scf.c + ++install-data-local: ++ ${INSTALL} -d ${DESTDIR}${includedir}/PCSC diff --git a/security/pcsc-lite/patches/patch-ac b/security/pcsc-lite/patches/patch-ac new file mode 100644 index 00000000000..03330e43be1 --- /dev/null +++ b/security/pcsc-lite/patches/patch-ac @@ -0,0 +1,12 @@ +$NetBSD: patch-ac,v 1.1.1.1 2008/03/04 11:29:08 shannonjr Exp $ + +--- Makefile.am.orig 2007-10-13 15:21:11.000000000 -0600 ++++ Makefile.am +@@ -1,6 +1,6 @@ + # Process this file with automake to create Makefile.in. + +-SUBDIRS = m4 win32 src etc doc ++SUBDIRS = m4 win32 src doc + + ACLOCAL_AMFLAGS = -I m4 + diff --git a/security/pcsc-lite/patches/patch-ad b/security/pcsc-lite/patches/patch-ad new file mode 100644 index 00000000000..5a87d97c10f --- /dev/null +++ b/security/pcsc-lite/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2008/03/04 11:29:08 shannonjr Exp $ + +--- src/PCSC/pcsclite.h.in.orig 2007-11-23 09:48:26.000000000 -0700 ++++ src/PCSC/pcsclite.h.in +@@ -16,7 +16,7 @@ + #ifndef __pcsclite_h__ + #define __pcsclite_h__ + +-#include <wintypes.h> ++#include <PCSC/wintypes.h> + + #ifdef __cplusplus + extern "C" diff --git a/security/pcsc-lite/patches/patch-ae b/security/pcsc-lite/patches/patch-ae new file mode 100644 index 00000000000..e1afcb50109 --- /dev/null +++ b/security/pcsc-lite/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1.1.1 2008/03/04 11:29:08 shannonjr Exp $ + +--- src/PCSC/winscard.h.orig 2007-10-13 15:21:10.000000000 -0600 ++++ src/PCSC/winscard.h +@@ -16,7 +16,7 @@ + #ifndef __winscard_h__ + #define __winscard_h__ + +-#include <pcsclite.h> ++#include <PCSC/pcsclite.h> + + #ifdef __cplusplus + extern "C" diff --git a/security/pcsc-lite/patches/patch-af b/security/pcsc-lite/patches/patch-af new file mode 100644 index 00000000000..b6e458fc78b --- /dev/null +++ b/security/pcsc-lite/patches/patch-af @@ -0,0 +1,13 @@ +$NetBSD: patch-af,v 1.1.1.1 2008/03/04 11:29:08 shannonjr Exp $ + +--- src/PCSC/ifdhandler.h.orig 2007-10-20 07:56:43.000000000 -0600 ++++ src/PCSC/ifdhandler.h +@@ -16,7 +16,7 @@ + #ifndef _ifd_handler_h_ + #define _ifd_handler_h_ + +-#include <pcsclite.h> ++#include <PCSC/pcsclite.h> + + #ifdef __cplusplus + extern "C" |