mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Add pcsc-lite 1.0.1, a smartcard development library.
PR: 31856 Submitted by: Toni Andjelkovic <toni@ants.at>
This commit is contained in:
parent
77681f685f
commit
ffcde7bc32
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=52137
@ -473,6 +473,7 @@
|
||||
SUBDIR += pcl-cvs-emacs
|
||||
SUBDIR += pcl-cvs-emacs20
|
||||
SUBDIR += pcre
|
||||
SUBDIR += pcsc-lite
|
||||
SUBDIR += pear
|
||||
SUBDIR += pedisassem
|
||||
SUBDIR += perforce
|
||||
|
32
devel/pcsc-lite/Makefile
Normal file
32
devel/pcsc-lite/Makefile
Normal file
@ -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>
|
1
devel/pcsc-lite/distinfo
Normal file
1
devel/pcsc-lite/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (pcsc-lite-1.0.1.tar.gz) = 519f86b5cdddd7bfb9ab6330dd8966b3
|
12
devel/pcsc-lite/files/patch-etc::Makefile.in
Normal file
12
devel/pcsc-lite/files/patch-etc::Makefile.in
Normal file
@ -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
|
7
devel/pcsc-lite/files/patch-src::dyn_bsd.c
Normal file
7
devel/pcsc-lite/files/patch-src::dyn_bsd.c
Normal file
@ -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 );
|
||||
|
29
devel/pcsc-lite/files/pcscd.sh
Normal file
29
devel/pcsc-lite/files/pcscd.sh
Normal file
@ -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
|
||||
|
17
devel/pcsc-lite/files/pkg-message.in
Normal file
17
devel/pcsc-lite/files/pkg-message.in
Normal file
@ -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
|
||||
|
1
devel/pcsc-lite/pkg-comment
Normal file
1
devel/pcsc-lite/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A smartcard development library
|
9
devel/pcsc-lite/pkg-descr
Normal file
9
devel/pcsc-lite/pkg-descr
Normal file
@ -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/
|
26
devel/pcsc-lite/pkg-plist
Normal file
26
devel/pcsc-lite/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user