[Midnightbsd-cvs] mports: mports/devel: Add pcsc-lite for opensc related ports.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Sep 18 11:37:19 EDT 2008


Log Message:
-----------
Add pcsc-lite for opensc related ports.

Modified Files:
--------------
    mports/devel:
        Makefile (r1.242 -> r1.243)

Added Files:
-----------
    mports/devel/pcsc-lite:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/devel/pcsc-lite/files:
        patch-ltmain.sh (r1.1)
        pcscd.in (r1.1)
        pkg-message.in (r1.1)

-------------- next part --------------
--- /dev/null
+++ 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. 
+
+Authors:	David Corcoran <corcoran at linuxnet.com>,
+		Ludovic Rousseau <ludovic.rousseau at free.fr>
+
+WWW:		http://alioth.debian.org/projects/pcsclite/
--- /dev/null
+++ devel/pcsc-lite/pkg-plist
@@ -0,0 +1,28 @@
+etc/reader.conf.sample
+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.a
+lib/libpcsclite.so
+lib/libpcsclite.so.1
+lib/pcsc/drivers/.keep_me
+lib/pcsc/services/.keep_me
+libdata/pkgconfig/libpcsclite.pc
+sbin/pcscd
+sbin/update-reader.conf
+%%DOCSDIR%%/README.DAEMON
+%%DOCSDIR%%/pcsc-lite.tex
+%%DOCSDIR%%/pcsc-lite.bib
+%%DOCSDIR%%/ifdhandler-3.tex
+%%EXAMPLESDIR%%/Makefile.am
+%%EXAMPLESDIR%%/Makefile.in
+%%EXAMPLESDIR%%/pcsc_demo.c
+ at dirrm include/PCSC
+ at dirrm %%DOCSDIR%%
+ at dirrm %%EXAMPLESDIR%%
+ at dirrm lib/pcsc/drivers
+ at dirrm lib/pcsc/services
+ at dirrm lib/pcsc
--- /dev/null
+++ devel/pcsc-lite/Makefile
@@ -0,0 +1,72 @@
+# New ports collection makefile for:   pcsc-lite
+# Date created:                15 Oct 2001
+# Whom:                        Toni Andjelkovic <toni at soth.at>
+#
+# $MidnightBSD: mports/devel/pcsc-lite/Makefile,v 1.1 2008/09/18 15:37:17 laffer1 Exp $
+# $FreeBSD: ports/devel/pcsc-lite/Makefile,v 1.39 2008/03/20 09:37:20 pav Exp $
+#
+
+PORTNAME=	pcsc-lite
+PORTVERSION=	1.4.4
+CATEGORIES=	devel security
+MASTER_SITES=	http://alioth.debian.org/frs/download.php/2106/
+DISTNAME=	pcsc-lite-${PORTVERSION:S/.b./-beta/}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	A smartcard development library
+LICENSE=	bsd3
+
+GNU_CONFIGURE=	yes
+USE_GMAKE=	yes
+USE_GNOME=	gnomehack pkgconfig
+USE_RC_SUBR=	pcscd
+
+USE_LDCONFIG=	yes
+CONFIGURE_ENV+=	LIBS="${LIBS} ${PTHREAD_LIBS}" \
+		CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
+CONFIGURE_ARGS+=--enable-debug \
+		--enable-syslog \
+		--enable-runpid=/var/run/pcscd.pid \
+		--enable-ipcdir=/var/tmp/ \
+		--enable-confdir=${PREFIX}/etc/ \
+		--enable-usbdropdir=${PREFIX}/lib/pcsc/drivers/ \
+		--enable-muscledropdir=${PREFIX}/lib/pcsc/services/ \
+		--enable-threadsafe
+
+PKGMESSAGE=	${WRKDIR}/pkg-message
+MAN5=		reader.conf.5
+MAN8=		pcscd.8 update-reader.conf.8
+
+.if !defined(WITHOUT_USB)
+LIB_DEPENDS+=	usb-0.1.8:${PORTSDIR}/devel/libusb
+CONFIGURE_ARGS+=--enable-libusb=${LOCALBASE}
+.endif
+
+post-patch:
+	${REINPLACE_CMD} -e "s,^datadir,#datadir,; s,^data_DATA,#data_DATA," ${WRKSRC}/doc/Makefile.in
+	${REINPLACE_CMD} -e "s,^confdir,#sysconfdir,; s,^conf_DATA,#sysconf_DATA,; s,^EXTRA_DIST,#EXTRA_DIST," ${WRKSRC}/etc/Makefile.in
+
+pre-everything::
+.if !defined(WITHOUT_USB)
+	@${ECHO_MSG}
+	@${ECHO_MSG} "pcsc-lite has the following option(s):"
+	@${ECHO_MSG} "  WITHOUT_USB=yes            Disable USB support"
+	@${ECHO_MSG}
+.endif
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/doc/README.DAEMON ${DOCSDIR}
+	@${MKDIR} ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/example/Makefile.am ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/example/Makefile.in ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/example/pcsc_demo.c ${EXAMPLESDIR}
+	@${MKDIR} ${PREFIX}/lib/pcsc/drivers
+	@${MKDIR} ${PREFIX}/lib/pcsc/services
+	${TOUCH} ${PREFIX}/lib/pcsc/drivers/.keep_me
+	${TOUCH} ${PREFIX}/lib/pcsc/services/.keep_me
+	${INSTALL_DATA} ${WRKSRC}/etc/reader.conf \
+		${PREFIX}/etc/reader.conf.sample
+	@${SED} 's,%%PREFIX%%,${PREFIX},g' < ${FILESDIR}/pkg-message.in > \
+		${WRKDIR}/pkg-message
+
+.include <bsd.port.mk>
--- /dev/null
+++ devel/pcsc-lite/distinfo
@@ -0,0 +1,3 @@
+MD5 (pcsc-lite-1.4.4.tar.gz) = 6710141d878c12d3b701dc88b9c688c0
+SHA256 (pcsc-lite-1.4.4.tar.gz) = 9d48114ced4e32f60668f7db72231b5ce9104e460269f72f378e2fec7575291d
+SIZE (pcsc-lite-1.4.4.tar.gz) = 627128
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/devel/Makefile,v
retrieving revision 1.242
retrieving revision 1.243
diff -L devel/Makefile -L devel/Makefile -u -r1.242 -r1.243
--- devel/Makefile
+++ devel/Makefile
@@ -234,6 +234,7 @@
     SUBDIR += pccts
     SUBDIR += pcre
     SUBDIR += pcre-utf8
+    SUBDIR += pcsc-lite
     SUBDIR += pecl-json
     SUBDIR += performance
     SUBDIR += perltidy
--- /dev/null
+++ devel/pcsc-lite/files/patch-ltmain.sh
@@ -0,0 +1,15 @@
+--- ltmain.sh.orig	Mon Jan  2 14:34:57 2006
++++ ltmain.sh	Mon Jan  2 14:37:12 2006
+@@ -5667,10 +5667,12 @@
+ 	fi
+ 
+ 	# Install the pseudo-library for information purposes.
++	if /usr/bin/false; then
+ 	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ 	instname="$dir/$name"i
+ 	$show "$install_prog $instname $destdir/$name"
+ 	$run eval "$install_prog $instname $destdir/$name" || exit $?
++	fi
+ 
+ 	# Maybe install the static library, too.
+ 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
--- /dev/null
+++ devel/pcsc-lite/files/pkg-message.in
@@ -0,0 +1,24 @@
+PC/SC-Lite has been installed.
+You can fetch drivers from http://www.linuxnet.com/sourcedrivers.html
+or install one of the following ports:
+devel/libccid
+security/ifd-gempc410
+security/ifd-slb_rf60
+
+After installing the driver, please update the pcscd configuration file
+%%PREFIX%%/etc/reader.conf by using the default
+%%PREFIX%%/etc/reader.conf.sample
+
+For USB cardreaders add the following lines to /etc/devd.conf to enable
+hotplugging.
+
+attach 100 {
+        device-name "ugen[0-9]+";
+        action "/usr/local/sbin/pcscd -H";
+};
+
+detach 100 {
+        device-name "ugen[0-9]+";
+        action "/usr/local/sbin/pcscd -H";
+};
+------------------------------------------------------------------------
--- /dev/null
+++ devel/pcsc-lite/files/pcscd.in
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/devel/pcsc-lite/files/pcscd.in,v 1.1 2007/01/22 16:56:16 arved Exp $
+#
+# PROVIDE:	pcscd
+# REQUIRE:	LOGIN
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# pcscd_enable="YES"
+
+. %%RC_SUBR%%
+
+name="pcscd"
+rcvar="pcscd_enable"
+
+command="%%PREFIX%%/sbin/pcscd"
+
+load_rc_config "$name"
+run_rc_command "$1"


More information about the Midnightbsd-cvs mailing list