diff options
author | hasso <hasso@pkgsrc.org> | 2009-02-26 10:07:49 +0000 |
---|---|---|
committer | hasso <hasso@pkgsrc.org> | 2009-02-26 10:07:49 +0000 |
commit | 3526e6134b445d4d6cd21a61f041bc88ee0d9674 (patch) | |
tree | 15e969cf0583d48fa6b0d8e124d5de005cfa5b2f /security/openct | |
parent | 5460ad270db288cece3bb6e10124afa8fc08687a (diff) | |
download | pkgsrc-3526e6134b445d4d6cd21a61f041bc88ee0d9674.tar.gz |
Drivers for several smart card readers. OpenCT comes as driver in ifdhandler
format for PC/SC-Lite, as CT-API driver, or as a small and lean middleware,
so applications can use it with minimal overhead. OpenCT also has a primitive
mechanism to export smart card readers to remote machines via TCP/IP.
Diffstat (limited to 'security/openct')
-rw-r--r-- | security/openct/DESCR | 4 | ||||
-rw-r--r-- | security/openct/Makefile | 37 | ||||
-rw-r--r-- | security/openct/PLIST | 34 | ||||
-rw-r--r-- | security/openct/buildlink3.mk | 31 | ||||
-rw-r--r-- | security/openct/distinfo | 6 | ||||
-rw-r--r-- | security/openct/files/openct.sh | 22 | ||||
-rw-r--r-- | security/openct/options.mk | 23 | ||||
-rw-r--r-- | security/openct/patches/patch-aa | 18 |
8 files changed, 175 insertions, 0 deletions
diff --git a/security/openct/DESCR b/security/openct/DESCR new file mode 100644 index 00000000000..b997c6ee508 --- /dev/null +++ b/security/openct/DESCR @@ -0,0 +1,4 @@ +Drivers for several smart card readers. OpenCT comes as driver in ifdhandler +format for PC/SC-Lite, as CT-API driver, or as a small and lean middleware, +so applications can use it with minimal overhead. OpenCT also has a primitive +mechanism to export smart card readers to remote machines via TCP/IP. diff --git a/security/openct/Makefile b/security/openct/Makefile new file mode 100644 index 00000000000..ab6196e9794 --- /dev/null +++ b/security/openct/Makefile @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/02/26 10:07:49 hasso Exp $ + +DISTNAME= openct-0.6.15 +PKGREVISION= 1 +CATEGORIES= security +MASTER_SITES= http://www.opensc-project.org/files/openct/ + +MAINTAINER= hasso@NetBSD.org +HOMEPAGE= http://www.opensc-project.org/openct/ +COMMENT= Smart Card Reader drivers and middleware + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= YES +USE_LIBTOOL= YES +USE_TOOLS+= gmake pkg-config + +.include "options.mk" + +CONFIGURE_ARGS+= --localstatedir=${VARBASE}/openct +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} +RCD_SCRIPTS= openct +MAKE_DIRS+= ${VARBASE}/openct +MAKE_DIRS+= ${VARBASE}/openct/run +MAKE_DIRS+= ${VARBASE}/openct/run/openct +EGDIR= ${PREFIX}/share/examples/openct +CONF_FILES+= ${EGDIR}/openct.conf ${PKG_SYSCONFDIR}/openct.conf + +BUILD_DEFS+= VARBASE +INSTALLATION_DIRS= ${EGDIR} + +post-install: + ${INSTALL_DATA} ${WRKSRC}/etc/openct.conf ${DESTDIR}${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/etc/reader.conf ${DESTDIR}${EGDIR} + +.include "../../devel/libltdl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/security/openct/PLIST b/security/openct/PLIST new file mode 100644 index 00000000000..b4f140aec20 --- /dev/null +++ b/security/openct/PLIST @@ -0,0 +1,34 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/02/26 10:07:49 hasso Exp $ +bin/openct-tool +include/openct/apdu.h +include/openct/buffer.h +include/openct/conf.h +include/openct/ctapi.h +include/openct/device.h +include/openct/driver.h +include/openct/error.h +include/openct/ifd.h +include/openct/logging.h +include/openct/openct.h +include/openct/path.h +include/openct/protocol.h +include/openct/server.h +include/openct/socket.h +include/openct/tlv.h +include/openct/types.h +lib/libopenct.la +lib/libopenctapi.la +${PLIST.pcsc-lite}lib/openct-ifd.la +lib/pkgconfig/libopenct.pc +man/man1/openct-tool.1 +sbin/ifdhandler +sbin/ifdproxy +sbin/openct-control +share/doc/openct/NEWS +share/doc/openct/README +share/examples/openct/openct.conf +share/examples/openct/reader.conf +share/examples/rc.d/openct +@dirrm share/doc/openct +@dirrm share/examples/openct +@dirrm include/openct diff --git a/security/openct/buildlink3.mk b/security/openct/buildlink3.mk new file mode 100644 index 00000000000..e1932998569 --- /dev/null +++ b/security/openct/buildlink3.mk @@ -0,0 +1,31 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/02/26 10:07:49 hasso Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +OPENCT_BUILDLINK3_MK:= ${OPENCT_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= openct +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nopenct} +BUILDLINK_PACKAGES+= openct +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}openct + +.if !empty(OPENCT_BUILDLINK3_MK:M+) +BUILDLINK_API_DEPENDS.openct+= openct>=0.6.15 +BUILDLINK_PKGSRCDIR.openct?= ../../security/openct +pkgbase := openct +.include "../../mk/pkg-build-options.mk" +.endif # OPENCT_BUILDLINK3_MK + +.if !empty(PKG_BUILD_OPTIONS.openct:Mpcsc-lite) +.include "../../security/pcsc-lite/buildlink3.mk" +.endif + +.if !empty(PKG_BUILD_OPTIONS.openct:Mlibusb) +.include "../../devel/libusb/buildlink3.mk" +.endif + +.include "../../devel/libltdl/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/security/openct/distinfo b/security/openct/distinfo new file mode 100644 index 00000000000..f8bf2475d4e --- /dev/null +++ b/security/openct/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/02/26 10:07:49 hasso Exp $ + +SHA1 (openct-0.6.15.tar.gz) = 17e5326bdacd79df52a16355084cc8d9927ea205 +RMD160 (openct-0.6.15.tar.gz) = a646dda412963de2e36e5bff64fce948c06bc761 +Size (openct-0.6.15.tar.gz) = 673265 bytes +SHA1 (patch-aa) = d44e8daa9cc402c8276bf385a5fbbe5a498b37bb diff --git a/security/openct/files/openct.sh b/security/openct/files/openct.sh new file mode 100644 index 00000000000..041f160c586 --- /dev/null +++ b/security/openct/files/openct.sh @@ -0,0 +1,22 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: openct.sh,v 1.1.1.1 2009/02/26 10:07:49 hasso Exp $ +# + +# PROVIDE: openct +# REQUIRE: DAEMON +# KEYWORD: shutdown + +. /etc/rc.subr + +name="openct" +rcvar=$name +command="@PREFIX@/sbin/openct-control" +required_files="@PKG_SYSCONFDIR@/openct.conf" + +start_cmd="${command} init" +stop_cmd="${command} shutdown" +status_cmd="${command} status" + +load_rc_config $name +run_rc_command $1 diff --git a/security/openct/options.mk b/security/openct/options.mk new file mode 100644 index 00000000000..0c23b59b365 --- /dev/null +++ b/security/openct/options.mk @@ -0,0 +1,23 @@ +# $NetBSD: options.mk,v 1.1.1.1 2009/02/26 10:07:49 hasso Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.openct +PKG_SUPPORTED_OPTIONS= pcsc-lite libusb +PKG_SUGGESTED_OPTIONS= pcsc-lite +PLIST_VARS+= pcsc-lite + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mpcsc-lite) +.include "../../security/pcsc-lite/buildlink3.mk" +CONFIGURE_ARGS+= --enable-pcsc +PLIST.pcsc-lite= yes +.else +CONFIGURE_ARGS+= --disable-pcsc +.endif + +.if !empty(PKG_OPTIONS:Mlibusb) +.include "../../devel/libusb/buildlink3.mk" +CONFIGURE_ARGS+= --enable-usb +.else +CONFIGURE_ARGS+= --disable-usb +.endif diff --git a/security/openct/patches/patch-aa b/security/openct/patches/patch-aa new file mode 100644 index 00000000000..7eb14a222b3 --- /dev/null +++ b/security/openct/patches/patch-aa @@ -0,0 +1,18 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/02/26 10:07:49 hasso Exp $ + +--- etc/Makefile.in.orig 2008-08-06 00:53:45 +0300 ++++ etc/Makefile.in 2008-08-06 00:54:01 +0300 +@@ -458,12 +458,7 @@ uninstall-am: uninstall-hotplugDATA unin + ps ps-am uninstall uninstall-am uninstall-hotplugDATA \ + uninstall-nodist_udevSCRIPTS uninstall-sysconfDATA + +-install-exec-hook: install-sysconfDATA openct.conf +- if [ -f "$(DESTDIR)$(sysconfdir)/openct.conf" ]; then \ +- $(INSTALL_DATA) openct.conf "$(DESTDIR)$(sysconfdir)/openct.conf.new"; \ +- else \ +- $(INSTALL_DATA) openct.conf "$(DESTDIR)$(sysconfdir)/openct.conf"; \ +- fi ++install-exec-hook: + + .in: + sed \ |