# 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: # # opensc # opensc/pkg-descr # opensc/distinfo # opensc/Makefile # opensc/pkg-comment # opensc/pkg-plist # opensc/files # opensc/files/patch-src::libopensc::card-gpk.c # echo c - opensc mkdir -p opensc > /dev/null 2>&1 echo x - opensc/pkg-descr sed 's/^X//' >opensc/pkg-descr << 'END-of-opensc/pkg-descr' XFrom the website:- X Xlibopensc is a library for accessing SmartCard devices using PC/SC XLite middleware package. It is also the core library of the OpenSC Xproject. Basic functionality (e.g. SELECT FILE, READ BINARY) should Xwork on any ISO 7816-4 compatible SmartCard. Encryption and decryption Xusing private keys on the SmartCard is possible with PKCS #15 Xcompatible cards, such as the FINEID (Finnish Electronic IDentity) Xcard. Swedish Posten eID cards have also been confirmed to work. X XWWW: http://www.opensc.org/ X XI have also included a small patch to allow the 'IBM Smart Card Security Kit' Xto be used out-of-the-box. This kit contains a card which is actually a Xrebranded Gemplus GPK4000 card with a slightly different ATR. X XBruce X END-of-opensc/pkg-descr echo x - opensc/distinfo sed 's/^X//' >opensc/distinfo << 'END-of-opensc/distinfo' XMD5 (opensc-0.7.0.tar.gz) = 12a6afb94a947065d9d0a4eaf91cb15e END-of-opensc/distinfo echo x - opensc/Makefile sed 's/^X//' >opensc/Makefile << 'END-of-opensc/Makefile' X# New ports collection makefile for: opensc X# Date created: 10 September 2002 X# Whom: Bruce M Simpson X# X# $FreeBSD$ X# X XPORTNAME= opensc XPORTVERSION= 0.7.0 XCATEGORIES= security devel XMASTER_SITES= http://www.opensc.org/files/ X XMAINTAINER= bms@spc.org X XLIB_DEPENDS= pcsclite.0:${PORTSDIR}/devel/pcsc-lite \ X ldap.2:${PORTSDIR}/net/openldap2 X XINSTALLS_SHLIB= yes XUSE_OPENSSL= YES XUSE_GMAKE= yes XGNU_CONFIGURE= yes XCONFIGURE_ARGS= --with-pcsclite=${LOCALBASE} \ X --with-ldap-lib=openldap \ X --with-ldap-dir=${LOCALBASE} X XMAN1= pkcs15-crypt.1 pkcs15-init.1 XMAN5= pkcs15-profile.5 XMAN7= pkcs15.7 X X.include END-of-opensc/Makefile echo x - opensc/pkg-comment sed 's/^X//' >opensc/pkg-comment << 'END-of-opensc/pkg-comment' XAnother ISO 7816 Smartcard API Library (OpenSSH Compatible) END-of-opensc/pkg-comment echo x - opensc/pkg-plist sed 's/^X//' >opensc/pkg-plist << 'END-of-opensc/pkg-plist' Xbin/opensc-config Xbin/opensc-tool Xbin/opensc-explorer Xbin/pkcs15-tool Xbin/pkcs15-crypt Xbin/cryptoflex-tool Xbin/pkcs15-init Xinclude/opensc/scconf.h Xinclude/opensc/scldap.h Xinclude/opensc/scrandom.h Xinclude/opensc/opensc.h Xinclude/opensc/pkcs15.h Xinclude/opensc/emv.h Xinclude/opensc/errors.h Xinclude/opensc/types.h Xinclude/opensc/cardctl.h Xinclude/opensc/asn1.h Xinclude/opensc/log.h Xinclude/opensc/pkcs15-init.h Xlib/libscconf.so.0 Xlib/libscconf.so Xlib/libscconf.la Xlib/libscconf.a Xlib/libscldap.so.0 Xlib/libscldap.so Xlib/libscldap.la Xlib/libscldap.a Xlib/libscrandom.a Xlib/libopensc.so.0 Xlib/libopensc.so Xlib/libopensc.la Xlib/libopensc.a Xlib/libpkcs15init.so.0 Xlib/libpkcs15init.so Xlib/libpkcs15init.la Xlib/libpkcs15init.a Xlib/libscam.so Xlib/libscam.la Xlib/libscam.a Xlib/security/pam_opensc.so Xlib/security/pam_opensc.la Xlib/security/pam_opensc.a Xlib/pkcs11/opensc-pkcs11.so Xshare/opensc/opensc.conf.example Xshare/opensc/scldap.conf.example Xshare/opensc/flex.profile Xshare/opensc/gpk.profile Xshare/opensc/miocos.profile Xshare/opensc/pkcs15.profile X@dirrm include/opensc X@dirrm share/opensc X@dirrm lib/security X@dirrm lib/pkcs11 END-of-opensc/pkg-plist echo c - opensc/files mkdir -p opensc/files > /dev/null 2>&1 echo x - opensc/files/patch-src::libopensc::card-gpk.c sed 's/^X//' >opensc/files/patch-src::libopensc::card-gpk.c << 'END-of-opensc/files/patch-src::libopensc::card-gpk.c' X--- src/libopensc/card-gpk.c.orig Thu May 2 14:54:27 2002 X+++ src/libopensc/card-gpk.c Tue Sep 10 15:18:38 2002 X@@ -35,6 +35,7 @@ X GPK4000_s, X GPK4000_sp, X GPK4000_sdo, X+ GPK4000_su40, X GPK8000 = 8000, X GPK8000_8K, X GPK8000_16K, X@@ -101,6 +102,7 @@ X } atrlist[] = { X { "\x3B\x27\x00\x80\x65\xA2\x04\x01\x01\x37", 10, GPK4000_s }, X { "\x3B\x27\x00\x80\x65\xA2\x05\x01\x01\x37", 10, GPK4000_sp }, X+ { "\x3B\x27\x00\x80\x65\xA2\x06\x01\x01\x37", 10, GPK4000_su40 }, X { "\x3B\x27\x00\x80\x65\xA2\x0C\x01\x01\x37", 10, GPK4000_su256 }, X { "\x3B\xA7\x00\x40\x14\x80\x65\xA2\x14\x01\x01\x37", 12, GPK4000_sdo }, X { "\x3B\xA7\x00\x40\x18\x80\x65\xA2\x08\x01\x01\x52", 12, GPK8000_8K }, X@@ -1440,6 +1442,7 @@ X X SC_FUNC_CALLED(card->ctx, 1); X switch (priv->variant) { X+ case GPK4000_su40: X case GPK4000_su256: X case GPK4000_sdo: X offset = 0x6B; /* courtesy gemplus hotline */ END-of-opensc/files/patch-src::libopensc::card-gpk.c exit