summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-01-08 12:02:38 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-01-08 12:02:38 +0000
commit3410a8ab227e9252c4becf66a1a9a6a6d9568da2 (patch)
tree3434be6cff0aa2f4c3c4ce1958d88a1d68619ad9 /security
parentAdd spinner, a small util that draws a spinning ASCII character to keep ssh a... (diff)
Add opensc 0.7.0, ISO 7816 Smartcard API Library (OpenSSH Compatible).
PR: 42698 Submitted by: Bruce M Simpson <bms@spc.org>
Notes
Notes: svn path=/head/; revision=72738
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-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
7 files changed, 128 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 75966a3912c4..07aa539fce98 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -134,6 +134,7 @@
SUBDIR += nss
SUBDIR += oidentd
SUBDIR += op
+ SUBDIR += opensc
SUBDIR += openssh
SUBDIR += openssh-askpass
SUBDIR += openssh-portable
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