pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/openct Drivers for several smart card readers...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/391ef3743aba
branches:  trunk
changeset: 555230:391ef3743aba
user:      hasso <hasso%pkgsrc.org@localhost>
date:      Thu Feb 26 10:07:49 2009 +0000

description:
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:

 security/openct/DESCR            |   4 ++++
 security/openct/Makefile         |  37 +++++++++++++++++++++++++++++++++++++
 security/openct/PLIST            |  34 ++++++++++++++++++++++++++++++++++
 security/openct/buildlink3.mk    |  31 +++++++++++++++++++++++++++++++
 security/openct/distinfo         |   6 ++++++
 security/openct/files/openct.sh  |  22 ++++++++++++++++++++++
 security/openct/options.mk       |  23 +++++++++++++++++++++++
 security/openct/patches/patch-aa |  18 ++++++++++++++++++
 8 files changed, 175 insertions(+), 0 deletions(-)

diffs (207 lines):

diff -r 8c2124ac7c0f -r 391ef3743aba security/openct/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openct/DESCR     Thu Feb 26 10:07:49 2009 +0000
@@ -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 -r 8c2124ac7c0f -r 391ef3743aba security/openct/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openct/Makefile  Thu Feb 26 10:07:49 2009 +0000
@@ -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@localhost
+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 -r 8c2124ac7c0f -r 391ef3743aba security/openct/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openct/PLIST     Thu Feb 26 10:07:49 2009 +0000
@@ -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 -r 8c2124ac7c0f -r 391ef3743aba security/openct/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openct/buildlink3.mk     Thu Feb 26 10:07:49 2009 +0000
@@ -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 -r 8c2124ac7c0f -r 391ef3743aba security/openct/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openct/distinfo  Thu Feb 26 10:07:49 2009 +0000
@@ -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 -r 8c2124ac7c0f -r 391ef3743aba security/openct/files/openct.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openct/files/openct.sh   Thu Feb 26 10:07:49 2009 +0000
@@ -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 -r 8c2124ac7c0f -r 391ef3743aba security/openct/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openct/options.mk        Thu Feb 26 10:07:49 2009 +0000
@@ -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 -r 8c2124ac7c0f -r 391ef3743aba security/openct/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openct/patches/patch-aa  Thu Feb 26 10:07:49 2009 +0000
@@ -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 \



Home | Main Index | Thread Index | Old Index