Date: Thu, 8 Nov 2001 17:13:00 +0100 (CET) From: Toni Andjelkovic <toni@soth.at> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/31856: New port: security/pcsc-lite Message-ID: <200111081613.fA8GD0D24352@titan.soth.at>
next in thread | raw e-mail | index | archive | help
>Number: 31856 >Category: ports >Synopsis: New port: security/pcsc-lite >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 08 08:20:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Toni Andjelkovic >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD titan.soth.at 4.4-STABLE FreeBSD 4.4-STABLE #3: Mon Nov 5 05:42:18 CET 2001 soth@titan.soth.at:/usr/obj/usr/src/sys/TITAN i386 >Description: This is a port for the PCSC-Lite Smartcard development framework, see http://www.linuxnet.com >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pcsc-lite/ # pcsc-lite/pkg-comment # pcsc-lite/Makefile # pcsc-lite/distinfo # pcsc-lite/pkg-descr # pcsc-lite/pkg-plist # pcsc-lite/files # pcsc-lite/files/patch-aa # pcsc-lite/files/patch-ab # pcsc-lite/files/pcscd.sh # pcsc-lite/pkg-message # echo c - pcsc-lite/ mkdir -p pcsc-lite/ > /dev/null 2>&1 echo x - pcsc-lite/pkg-comment sed 's/^X//' >pcsc-lite/pkg-comment << 'END-of-pcsc-lite/pkg-comment' XA smartcard development library END-of-pcsc-lite/pkg-comment echo x - pcsc-lite/Makefile sed 's/^X//' >pcsc-lite/Makefile << 'END-of-pcsc-lite/Makefile' X# New ports collection makefile for: pcsc-lite X# Date created: 15 Oct 2001 X# Whom: Toni Andjelkovic <toni@ants.at> X# X# $FreeBSD$ X# X XPORTNAME= pcsc-lite XPORTVERSION= 1.0.1 XCATEGORIES= security XMASTER_SITES= http://www.linuxnet.com/middleware/files/ X XMAINTAINER= toni@ants.at X XGNU_CONFIGURE= yes XUSE_GMAKE= yes X#USE_AUTOMAKE= yes X XINSTALLS_SHLIB= yes XCONFIGURE_ARGS+= --enable-syslog --enable-debug --enable-daemon X#CONFIGURE_ARGS+= --enable-debugatr X#CONFIGURE_ARGS+= --enable-threadsafe X#CFLAGS+= -pthread -g3 XCFLAGS+= -g3 X X#pre-fetch: X#post-patch: X#pre-install: X Xpost-install: X @if [ ! -f ${PREFIX}/etc/reader.conf.sample ]; then \ X ${INSTALL_DATA} ${WRKSRC}/etc/reader.conf ${PREFIX}/etc/reader.conf.sample; \ X fi X @${SED} "s|%%PREFIX%%|${PREFIX}|g" \ X < ${FILESDIR}/pcscd.sh \ X > ${PREFIX}/etc/rc.d/pcscd.sh.sample ; \ X ${CHMOD} 750 ${PREFIX}/etc/rc.d/pcscd.sh.sample ; \ X ${CAT} ${PKGMESSAGE} ; \ X fi X X.include <bsd.port.mk> END-of-pcsc-lite/Makefile echo x - pcsc-lite/distinfo sed 's/^X//' >pcsc-lite/distinfo << 'END-of-pcsc-lite/distinfo' XMD5 (pcsc-lite-1.0.1.tar.gz) = 519f86b5cdddd7bfb9ab6330dd8966b3 END-of-pcsc-lite/distinfo echo x - pcsc-lite/pkg-descr sed 's/^X//' >pcsc-lite/pkg-descr << 'END-of-pcsc-lite/pkg-descr' XThis is a port of the MUSCLE PC/SC-Lite architecture. XAllows easy porting of Windows smartcard software to other Xoperating systems. Supports many types of serial, PCMCIA, Xand USB smartcard readers and cryptographic tokens. XTested under Linux, Solaris 8, HPUX 11, OS X (10.1), XOpenBSD, FreeBSD 4. X XAuthor: David Corcoran <corcoran@linuxnet.com> XWWW: http://www.linuxnet.com/ END-of-pcsc-lite/pkg-descr echo x - pcsc-lite/pkg-plist sed 's/^X//' >pcsc-lite/pkg-plist << 'END-of-pcsc-lite/pkg-plist' Xlib/libpcsclite-core.so.0 Xlib/libpcsclite-core.so Xlib/libpcsclite-core.la Xlib/libpcsclite-core.a Xlib/libpcsclite.so.0 Xlib/libpcsclite.so Xlib/libpcsclite.la Xlib/libpcsclite.a Xinclude/dyn_generic.h Xinclude/atrhandler.h Xinclude/configfile.h Xinclude/debuglog.h Xinclude/eventhandler.h Xinclude/hotplug.h Xinclude/ifdhandler.h Xinclude/ifdwrapper.h Xinclude/pcsclite.h Xinclude/prothandler.h Xinclude/readerfactory.h Xinclude/sys_generic.h Xinclude/thread_generic.h Xinclude/winscard.h Xinclude/winscard_msg.h Xinclude/winscard_svc.h Xinclude/wintypes.h Xsbin/pcscd END-of-pcsc-lite/pkg-plist echo c - pcsc-lite/files mkdir -p pcsc-lite/files > /dev/null 2>&1 echo x - pcsc-lite/files/patch-aa sed 's/^X//' >pcsc-lite/files/patch-aa << 'END-of-pcsc-lite/files/patch-aa' X--- etc/Makefile.in.dist Thu Nov 8 02:58:55 2001 X+++ etc/Makefile.in Thu Nov 8 02:59:36 2001 X@@ -74,5 +74,5 @@ X X-sysconf_DATA = reader.conf X+sysconf_DATA = X X-EXTRA_DIST = reader.conf StartupParameters.plist SmartcardServices X+EXTRA_DIST = StartupParameters.plist SmartcardServices X mkinstalldirs = $(SHELL) $(top_srcdir)/build/mkinstalldirs END-of-pcsc-lite/files/patch-aa echo x - pcsc-lite/files/patch-ab sed 's/^X//' >pcsc-lite/files/patch-ab << 'END-of-pcsc-lite/files/patch-ab' X--- src/dyn_bsd.c.dist Thu Nov 8 16:40:00 2001 X+++ src/dyn_bsd.c Thu Nov 8 16:40:21 2001 X@@ -74,3 +74,3 @@ X *pvFHandle = 0; X- *pvFHandle = dlsym( pvLHandle, pcFunctionName ); X+ *pvFHandle = dlsym( pvLHandle, pcFunction ); X END-of-pcsc-lite/files/patch-ab echo x - pcsc-lite/files/pcscd.sh sed 's/^X//' >pcsc-lite/files/pcscd.sh << 'END-of-pcsc-lite/files/pcscd.sh' X#!/bin/sh X Xcase "$1" in X X start) X if [ -x %%PREFIX%%/sbin/pcscd ]; then X %%PREFIX%%/sbin/pcscd -c %%PREFIX%%/etc/reader.conf X echo -n ' pcscd' X fi X ;; X X stop) X /usr/bin/killall pcscd && echo -n ' pcscd' X ;; X X *) X echo "" X echo "Usage: `basename $0` { start | stop }" X echo "" X exit 64 X ;; Xesac X END-of-pcsc-lite/files/pcscd.sh echo x - pcsc-lite/pkg-message sed 's/^X//' >pcsc-lite/pkg-message << 'END-of-pcsc-lite/pkg-message' X X PC/SC-Lite has been installed. X Now you need to fetch a driver for X your smartcard reader. X X please see http://www.linuxnet.com/sourcedrivers.html X X After installing the driver, please X update the pcscd configuration file X X /usr/local/etc/reader.conf X X by using the default X X /usr/local/etc/reader.conf.sample X X A default start-up script for pcscd X has been installed in the location X X /usr/local/etc/rc.d/pcscd.sh.sample X END-of-pcsc-lite/pkg-message exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111081613.fA8GD0D24352>