aboutsummaryrefslogtreecommitdiffstats
path: root/security/opensc
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-01-08 20:02:38 +0800
committerperky <perky@FreeBSD.org>2003-01-08 20:02:38 +0800
commite076dbfc570e21f3b2ecf8b13564d18fac1992f8 (patch)
treec4e445a14527816ec0f3b686c877936fec0bf1d0 /security/opensc
parentdbc065d7339ebe130edcf1208b865d1049ce457e (diff)
downloadfreebsd-ports-gnome-e076dbfc570e21f3b2ecf8b13564d18fac1992f8.tar.gz
freebsd-ports-gnome-e076dbfc570e21f3b2ecf8b13564d18fac1992f8.tar.zst
freebsd-ports-gnome-e076dbfc570e21f3b2ecf8b13564d18fac1992f8.zip
Add opensc 0.7.0, ISO 7816 Smartcard API Library (OpenSSH Compatible).
PR: 42698 Submitted by: Bruce M Simpson <bms@spc.org>
Diffstat (limited to 'security/opensc')
-rw-r--r--security/opensc/Makefile30
-rw-r--r--security/opensc/distinfo1
-rw-r--r--security/opensc/files/patch-src::libopensc::card-gpk.c26
-rw-r--r--security/opensc/pkg-comment1
-rw-r--r--security/opensc/pkg-descr16
-rw-r--r--security/opensc/pkg-plist53
6 files changed, 127 insertions, 0 deletions
diff --git a/security/opensc/Makefile b/security/opensc/Makefile
new file mode 100644
index 000000000000..4d8c65145407
--- /dev/null
+++ b/security/opensc/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: opensc
+# Date created: 10 September 2002
+# Whom: Bruce M Simpson <bms@spc.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= opensc
+PORTVERSION= 0.7.0
+CATEGORIES= security devel
+MASTER_SITES= http://www.opensc.org/files/
+
+MAINTAINER= bms@spc.org
+
+LIB_DEPENDS= pcsclite.0:${PORTSDIR}/devel/pcsc-lite \
+ ldap.2:${PORTSDIR}/net/openldap2
+
+INSTALLS_SHLIB= yes
+USE_OPENSSL= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-pcsclite=${LOCALBASE} \
+ --with-ldap-lib=openldap \
+ --with-ldap-dir=${LOCALBASE}
+
+MAN1= pkcs15-crypt.1 pkcs15-init.1
+MAN5= pkcs15-profile.5
+MAN7= pkcs15.7
+
+.include <bsd.port.mk>
diff --git a/security/opensc/distinfo b/security/opensc/distinfo
new file mode 100644
index 000000000000..af2098ce3920
--- /dev/null
+++ b/security/opensc/distinfo
@@ -0,0 +1 @@
+MD5 (opensc-0.7.0.tar.gz) = 12a6afb94a947065d9d0a4eaf91cb15e
diff --git a/security/opensc/files/patch-src::libopensc::card-gpk.c b/security/opensc/files/patch-src::libopensc::card-gpk.c
new file mode 100644
index 000000000000..491b707f8d7d
--- /dev/null
+++ b/security/opensc/files/patch-src::libopensc::card-gpk.c
@@ -0,0 +1,26 @@
+--- src/libopensc/card-gpk.c.orig Thu May 2 14:54:27 2002
++++ src/libopensc/card-gpk.c Tue Sep 10 15:18:38 2002
+@@ -35,6 +35,7 @@
+ GPK4000_s,
+ GPK4000_sp,
+ GPK4000_sdo,
++ GPK4000_su40,
+ GPK8000 = 8000,
+ GPK8000_8K,
+ GPK8000_16K,
+@@ -101,6 +102,7 @@
+ } atrlist[] = {
+ { "\x3B\x27\x00\x80\x65\xA2\x04\x01\x01\x37", 10, GPK4000_s },
+ { "\x3B\x27\x00\x80\x65\xA2\x05\x01\x01\x37", 10, GPK4000_sp },
++ { "\x3B\x27\x00\x80\x65\xA2\x06\x01\x01\x37", 10, GPK4000_su40 },
+ { "\x3B\x27\x00\x80\x65\xA2\x0C\x01\x01\x37", 10, GPK4000_su256 },
+ { "\x3B\xA7\x00\x40\x14\x80\x65\xA2\x14\x01\x01\x37", 12, GPK4000_sdo },
+ { "\x3B\xA7\x00\x40\x18\x80\x65\xA2\x08\x01\x01\x52", 12, GPK8000_8K },
+@@ -1440,6 +1442,7 @@
+
+ SC_FUNC_CALLED(card->ctx, 1);
+ switch (priv->variant) {
++ case GPK4000_su40:
+ case GPK4000_su256:
+ case GPK4000_sdo:
+ offset = 0x6B; /* courtesy gemplus hotline */
diff --git a/security/opensc/pkg-comment b/security/opensc/pkg-comment
new file mode 100644
index 000000000000..43434311c9ad
--- /dev/null
+++ b/security/opensc/pkg-comment
@@ -0,0 +1 @@
+ISO 7816 Smartcard API Library (OpenSSH Compatible)
diff --git a/security/opensc/pkg-descr b/security/opensc/pkg-descr
new file mode 100644
index 000000000000..a88c5ad37c71
--- /dev/null
+++ b/security/opensc/pkg-descr
@@ -0,0 +1,16 @@
+libopensc is a library for accessing SmartCard devices using PC/SC
+Lite middleware package. It is also the core library of the OpenSC
+project. Basic functionality (e.g. SELECT FILE, READ BINARY) should
+work on any ISO 7816-4 compatible SmartCard. Encryption and decryption
+using private keys on the SmartCard is possible with PKCS #15
+compatible cards, such as the FINEID (Finnish Electronic IDentity)
+card. Swedish Posten eID cards have also been confirmed to work.
+
+WWW: http://www.opensc.org/
+
+I have also included a small patch to allow the 'IBM Smart Card Security Kit'
+to be used out-of-the-box. This kit contains a card which is actually a
+rebranded Gemplus GPK4000 card with a slightly different ATR.
+
+Bruce
+<bms@spc.org>
diff --git a/security/opensc/pkg-plist b/security/opensc/pkg-plist
new file mode 100644
index 000000000000..bd817f8f8dff
--- /dev/null
+++ b/security/opensc/pkg-plist
@@ -0,0 +1,53 @@
+bin/cryptoflex-tool
+bin/opensc-config
+bin/opensc-explorer
+bin/opensc-tool
+bin/pkcs15-crypt
+bin/pkcs15-init
+bin/pkcs15-tool
+include/opensc/asn1.h
+include/opensc/cardctl.h
+include/opensc/emv.h
+include/opensc/errors.h
+include/opensc/log.h
+include/opensc/opensc.h
+include/opensc/pkcs15-init.h
+include/opensc/pkcs15.h
+include/opensc/scconf.h
+include/opensc/scldap.h
+include/opensc/scrandom.h
+include/opensc/types.h
+lib/libopensc.a
+lib/libopensc.la
+lib/libopensc.so
+lib/libopensc.so.0
+lib/libpkcs15init.a
+lib/libpkcs15init.la
+lib/libpkcs15init.so
+lib/libpkcs15init.so.0
+lib/libscam.a
+lib/libscam.la
+lib/libscam.so
+lib/libscconf.a
+lib/libscconf.la
+lib/libscconf.so
+lib/libscconf.so.0
+lib/libscldap.a
+lib/libscldap.la
+lib/libscldap.so
+lib/libscldap.so.0
+lib/libscrandom.a
+lib/pkcs11/opensc-pkcs11.so
+lib/security/pam_opensc.a
+lib/security/pam_opensc.la
+lib/security/pam_opensc.so
+share/opensc/flex.profile
+share/opensc/gpk.profile
+share/opensc/miocos.profile
+share/opensc/opensc.conf.example
+share/opensc/pkcs15.profile
+share/opensc/scldap.conf.example
+@dirrm include/opensc
+@dirrm share/opensc
+@dirrm lib/security
+@dirrm lib/pkcs11