summaryrefslogtreecommitdiff
path: root/security/openct
diff options
context:
space:
mode:
authorhasso <hasso>2009-10-02 12:38:44 +0000
committerhasso <hasso>2009-10-02 12:38:44 +0000
commit55d3ac84bded5269d238698063e7862c5f220d38 (patch)
treec8f38e03311cf8606bb6b86d1ca2648586f8c707 /security/openct
parent18e10761887afd8841eeef900e2b7a2ab66d8519 (diff)
downloadpkgsrc-55d3ac84bded5269d238698063e7862c5f220d38.tar.gz
Adapt reader.conf handling to pcsc-lite changes.
Diffstat (limited to 'security/openct')
-rw-r--r--security/openct/DEINSTALL10
-rw-r--r--security/openct/INSTALL10
-rw-r--r--security/openct/Makefile5
-rw-r--r--security/openct/distinfo3
-rw-r--r--security/openct/patches/patch-ab20
5 files changed, 46 insertions, 2 deletions
diff --git a/security/openct/DEINSTALL b/security/openct/DEINSTALL
new file mode 100644
index 00000000000..f2f2ecc461e
--- /dev/null
+++ b/security/openct/DEINSTALL
@@ -0,0 +1,10 @@
+#!/bin/sh
+# $NetBSD: DEINSTALL,v 1.1 2009/10/02 12:38:44 hasso Exp $
+
+case ${STAGE} in
+POST-DEINSTALL)
+ if [ -x ${PREFIX}/sbin/update-reader.conf ]; then
+ ${PREFIX}/sbin/update-reader.conf
+ fi
+ ;;
+esac
diff --git a/security/openct/INSTALL b/security/openct/INSTALL
new file mode 100644
index 00000000000..ad8b55af816
--- /dev/null
+++ b/security/openct/INSTALL
@@ -0,0 +1,10 @@
+#!/bin/sh
+# $NetBSD: INSTALL,v 1.1 2009/10/02 12:38:44 hasso Exp $
+
+case ${STAGE} in
+POST-INSTALL)
+ if [ -x ${PREFIX}/sbin/update-reader.conf ]; then
+ ${PREFIX}/sbin/update-reader.conf
+ fi
+ ;;
+esac
diff --git a/security/openct/Makefile b/security/openct/Makefile
index db21fa45f8d..75735de7541 100644
--- a/security/openct/Makefile
+++ b/security/openct/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2009/09/25 08:36:05 hasso Exp $
+# $NetBSD: Makefile,v 1.6 2009/10/02 12:38:44 hasso Exp $
DISTNAME= openct-0.6.18
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.opensc-project.org/files/openct/
@@ -23,8 +24,10 @@ RCD_SCRIPTS= openct
MAKE_DIRS+= ${VARBASE}/openct
MAKE_DIRS+= ${VARBASE}/openct/run
MAKE_DIRS+= ${VARBASE}/openct/run/openct
+MAKE_DIRS+= ${PKG_SYSCONFDIR}/reader.conf.d
EGDIR= ${PREFIX}/share/examples/openct
CONF_FILES+= ${EGDIR}/openct.conf ${PKG_SYSCONFDIR}/openct.conf
+CONF_FILES+= ${EGDIR}/reader.conf ${PKG_SYSCONFDIR}/reader.conf.d/openct-reader.conf
BUILD_DEFS+= VARBASE
INSTALLATION_DIRS= ${EGDIR}
diff --git a/security/openct/distinfo b/security/openct/distinfo
index ec58b18f1dc..163fddc30bc 100644
--- a/security/openct/distinfo
+++ b/security/openct/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2009/09/25 08:36:05 hasso Exp $
+$NetBSD: distinfo,v 1.5 2009/10/02 12:38:44 hasso Exp $
SHA1 (openct-0.6.18.tar.gz) = b0c5bfa92683fd6c608e21eb07559dfd666f1883
RMD160 (openct-0.6.18.tar.gz) = 377fe50775a5bd104aadf7770f14f494047a099a
Size (openct-0.6.18.tar.gz) = 688931 bytes
SHA1 (patch-aa) = d44e8daa9cc402c8276bf385a5fbbe5a498b37bb
+SHA1 (patch-ab) = 117d4a1636620f65feb130deb295a31c4cb90d5a
diff --git a/security/openct/patches/patch-ab b/security/openct/patches/patch-ab
new file mode 100644
index 00000000000..7716f826fdb
--- /dev/null
+++ b/security/openct/patches/patch-ab
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.1 2009/10/02 12:38:44 hasso Exp $
+
+--- etc/reader.conf.in.orig 2009-10-02 15:25:50 +0300
++++ etc/reader.conf.in 2009-10-02 15:26:17 +0300
+@@ -1,9 +1,9 @@
+ # OpenCT configuration file for pcsc-lite
+ # http://www.opensc.org/openct/
+-
+-FRIENDLYNAME "OpenCT"
+-DEVICENAME /dev/null
+-LIBPATH @libdir@/openct-ifd.so
+-CHANNELID 0
+-
++#
++# FRIENDLYNAME "OpenCT"
++# DEVICENAME /dev/null
++# LIBPATH @libdir@/openct-ifd.so
++# CHANNELID 0
++#
+ # End of file