diff options
author | Pete Fritchman <petef@FreeBSD.org> | 2001-12-25 02:54:40 +0000 |
---|---|---|
committer | Pete Fritchman <petef@FreeBSD.org> | 2001-12-25 02:54:40 +0000 |
commit | ffcde7bc3277d430873556dcd3aa39c62b3f06c3 (patch) | |
tree | 003641dcb3f53a125c3490e81f357c44c19736cb /devel/pcsc-lite | |
parent | 77681f685f9fbfb0a9afa14cc20b3269e20b85f3 (diff) | |
download | ports-ffcde7bc3277d430873556dcd3aa39c62b3f06c3.tar.gz ports-ffcde7bc3277d430873556dcd3aa39c62b3f06c3.zip |
Add pcsc-lite 1.0.1, a smartcard development library.
PR: 31856
Submitted by: Toni Andjelkovic <toni@ants.at>
Notes
Notes:
svn path=/head/; revision=52137
Diffstat (limited to 'devel/pcsc-lite')
-rw-r--r-- | devel/pcsc-lite/Makefile | 32 | ||||
-rw-r--r-- | devel/pcsc-lite/distinfo | 1 | ||||
-rw-r--r-- | devel/pcsc-lite/files/patch-etc::Makefile.in | 12 | ||||
-rw-r--r-- | devel/pcsc-lite/files/patch-src::dyn_bsd.c | 7 | ||||
-rw-r--r-- | devel/pcsc-lite/files/pcscd.sh | 29 | ||||
-rw-r--r-- | devel/pcsc-lite/files/pkg-message.in | 17 | ||||
-rw-r--r-- | devel/pcsc-lite/pkg-comment | 1 | ||||
-rw-r--r-- | devel/pcsc-lite/pkg-descr | 9 | ||||
-rw-r--r-- | devel/pcsc-lite/pkg-plist | 26 |
9 files changed, 134 insertions, 0 deletions
diff --git a/devel/pcsc-lite/Makefile b/devel/pcsc-lite/Makefile new file mode 100644 index 000000000000..8564088141bb --- /dev/null +++ b/devel/pcsc-lite/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: pcsc-lite +# Date created: 15 Oct 2001 +# Whom: Toni Andjelkovic <toni@ants.at> +# +# $FreeBSD$ +# + +PORTNAME= pcsc-lite +PORTVERSION= 1.0.1 +CATEGORIES= devel security +MASTER_SITES= http://www.linuxnet.com/middleware/files/ + +MAINTAINER= toni@ants.at + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_LIBTOOL= yes + +INSTALLS_SHLIB= yes +CONFIGURE_ARGS+= --enable-syslog --enable-daemon +PKGMESSAGE= ${WRKDIR}/pkg-message + +post-install: + ${INSTALL_DATA} ${WRKSRC}/etc/reader.conf \ + ${PREFIX}/etc/reader.conf.sample + ${INSTALL_SCRIPT} ${FILESDIR}/pcscd.sh \ + ${PREFIX}/etc/rc.d/pcscd.sh.sample + @${SED} 's,%%PREFIX%%,${PREFIX},g' < ${FILESDIR}/pkg-message.in > \ + ${WRKDIR}/pkg-message + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/devel/pcsc-lite/distinfo b/devel/pcsc-lite/distinfo new file mode 100644 index 000000000000..121229247ef7 --- /dev/null +++ b/devel/pcsc-lite/distinfo @@ -0,0 +1 @@ +MD5 (pcsc-lite-1.0.1.tar.gz) = 519f86b5cdddd7bfb9ab6330dd8966b3 diff --git a/devel/pcsc-lite/files/patch-etc::Makefile.in b/devel/pcsc-lite/files/patch-etc::Makefile.in new file mode 100644 index 000000000000..7db3876b4185 --- /dev/null +++ b/devel/pcsc-lite/files/patch-etc::Makefile.in @@ -0,0 +1,12 @@ +$FreeBSD$ + +--- etc/Makefile.in.dist Thu Nov 8 02:58:55 2001 ++++ etc/Makefile.in Thu Nov 8 02:59:36 2001 +@@ -74,5 +74,5 @@ + +-sysconf_DATA = reader.conf ++sysconf_DATA = + +-EXTRA_DIST = reader.conf StartupParameters.plist SmartcardServices ++EXTRA_DIST = StartupParameters.plist SmartcardServices + mkinstalldirs = $(SHELL) $(top_srcdir)/build/mkinstalldirs diff --git a/devel/pcsc-lite/files/patch-src::dyn_bsd.c b/devel/pcsc-lite/files/patch-src::dyn_bsd.c new file mode 100644 index 000000000000..de6af7c8d122 --- /dev/null +++ b/devel/pcsc-lite/files/patch-src::dyn_bsd.c @@ -0,0 +1,7 @@ +--- src/dyn_bsd.c.dist Thu Nov 8 16:40:00 2001 ++++ src/dyn_bsd.c Thu Nov 8 16:40:21 2001 +@@ -74,3 +74,3 @@ + *pvFHandle = 0; +- *pvFHandle = dlsym( pvLHandle, pcFunctionName ); ++ *pvFHandle = dlsym( pvLHandle, pcFunction ); + diff --git a/devel/pcsc-lite/files/pcscd.sh b/devel/pcsc-lite/files/pcscd.sh new file mode 100644 index 000000000000..716484f434c0 --- /dev/null +++ b/devel/pcsc-lite/files/pcscd.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# $FreeBSD$ + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in + + start) + if [ -x $PREFIX/sbin/pcscd ]; then + $PREFIX/sbin/pcscd -c $PREFIX/etc/reader.conf + echo -n ' pcscd' + fi + ;; + + stop) + /usr/bin/killall pcscd && echo -n ' pcscd' + ;; + + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac + diff --git a/devel/pcsc-lite/files/pkg-message.in b/devel/pcsc-lite/files/pkg-message.in new file mode 100644 index 000000000000..fb5705fe5159 --- /dev/null +++ b/devel/pcsc-lite/files/pkg-message.in @@ -0,0 +1,17 @@ +PC/SC-Lite has been installed. +Now you need to fetch a driver for your smartcard reader. + +Please see http://www.linuxnet.com/sourcedrivers.html + +After installing the driver, please update the pcscd configuration file: + + %%PREFIX%%/etc/reader.conf + + by using the default: + + %%PREFIX%%/etc/reader.conf.sample + + default start-up script for pcscd has been installed in the location + + %%PREFIX%%/etc/rc.d/pcscd.sh.sample + diff --git a/devel/pcsc-lite/pkg-comment b/devel/pcsc-lite/pkg-comment new file mode 100644 index 000000000000..fe72137164d9 --- /dev/null +++ b/devel/pcsc-lite/pkg-comment @@ -0,0 +1 @@ +A smartcard development library diff --git a/devel/pcsc-lite/pkg-descr b/devel/pcsc-lite/pkg-descr new file mode 100644 index 000000000000..9b1b687922b1 --- /dev/null +++ b/devel/pcsc-lite/pkg-descr @@ -0,0 +1,9 @@ +This is a port of the MUSCLE PC/SC-Lite architecture. +Allows easy porting of Windows smartcard software to other +operating systems. Supports many types of serial, PCMCIA, +and USB smartcard readers and cryptographic tokens. +Tested under Linux, Solaris 8, HPUX 11, OS X (10.1), +OpenBSD, FreeBSD 4. + +Author: David Corcoran <corcoran@linuxnet.com> +WWW: http://www.linuxnet.com/ diff --git a/devel/pcsc-lite/pkg-plist b/devel/pcsc-lite/pkg-plist new file mode 100644 index 000000000000..b8912f11c81e --- /dev/null +++ b/devel/pcsc-lite/pkg-plist @@ -0,0 +1,26 @@ +etc/rc.d/pcscd.sh.sample +etc/reader.conf.sample +include/atrhandler.h +include/configfile.h +include/debuglog.h +include/dyn_generic.h +include/eventhandler.h +include/hotplug.h +include/ifdhandler.h +include/ifdwrapper.h +include/pcsclite.h +include/prothandler.h +include/readerfactory.h +include/sys_generic.h +include/thread_generic.h +include/winscard.h +include/winscard_msg.h +include/winscard_svc.h +include/wintypes.h +lib/libpcsclite-core.a +lib/libpcsclite-core.so +lib/libpcsclite-core.so.0 +lib/libpcsclite.a +lib/libpcsclite.so +lib/libpcsclite.so.0 +sbin/pcscd |