diff options
author | hasso <hasso> | 2009-02-26 10:50:05 +0000 |
---|---|---|
committer | hasso <hasso> | 2009-02-26 10:50:05 +0000 |
commit | c82d042b71c2146cfe8cfe85935bb197f3e67dcd (patch) | |
tree | 7f86b20e831b111082d04bcddf5e1dae62da4641 /security | |
parent | 887b646df9d105cba47e0a22a75f4c35aff34b3a (diff) | |
download | pkgsrc-c82d042b71c2146cfe8cfe85935bb197f3e67dcd.tar.gz |
OpenSC provides a set of libraries and utilities to access smart cards.
Its main focus is on cards that support cryptographic operations, and
facilitate their use in security applications such as mail encryption,
authentication, and digital signature. OpenSC implements the PKCS#11 API
so applications supporting this API such as Mozilla Firefox and Thunderbird
can use it. OpenSC implements the PKCS#15 standard and aims to be compatible
with every software that does so, too.
Diffstat (limited to 'security')
-rw-r--r-- | security/opensc/DESCR | 7 | ||||
-rw-r--r-- | security/opensc/Makefile | 21 | ||||
-rw-r--r-- | security/opensc/Makefile.common | 27 | ||||
-rw-r--r-- | security/opensc/PLIST | 130 | ||||
-rw-r--r-- | security/opensc/buildlink3.mk | 26 | ||||
-rw-r--r-- | security/opensc/distinfo | 6 | ||||
-rw-r--r-- | security/opensc/options.mk | 22 | ||||
-rw-r--r-- | security/opensc/patches/patch-aa | 19 |
8 files changed, 258 insertions, 0 deletions
diff --git a/security/opensc/DESCR b/security/opensc/DESCR new file mode 100644 index 00000000000..d110dd2cbfb --- /dev/null +++ b/security/opensc/DESCR @@ -0,0 +1,7 @@ +OpenSC provides a set of libraries and utilities to access smart cards. +Its main focus is on cards that support cryptographic operations, and +facilitate their use in security applications such as mail encryption, +authentication, and digital signature. OpenSC implements the PKCS#11 API +so applications supporting this API such as Mozilla Firefox and Thunderbird +can use it. OpenSC implements the PKCS#15 standard and aims to be compatible +with every software that does so, too. diff --git a/security/opensc/Makefile b/security/opensc/Makefile new file mode 100644 index 00000000000..8698613b81b --- /dev/null +++ b/security/opensc/Makefile @@ -0,0 +1,21 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/02/26 10:50:05 hasso Exp $ + +PKGREVISION= 2 +COMMENT= Smart Card drivers and middleware + +.include "../../security/opensc/Makefile.common" + +PKG_DESTDIR_SUPPORT= user-destdir + +CONFIGURE_ARGS+= --disable-nsplugin + +EGDIR= ${PREFIX}/share/examples/opensc +CONF_FILES+= ${EGDIR}/opensc.conf ${PKG_SYSCONFDIR}/opensc.conf + +INSTALLATION_DIRS= ${EGDIR} +post-install: + ${INSTALL_DATA} ${WRKSRC}/etc/opensc.conf ${DESTDIR}${EGDIR} + +.include "../../devel/libltdl/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/security/opensc/Makefile.common b/security/opensc/Makefile.common new file mode 100644 index 00000000000..c5490d21934 --- /dev/null +++ b/security/opensc/Makefile.common @@ -0,0 +1,27 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2009/02/26 10:50:05 hasso Exp $ +# +# used by security/opensc/Makefile +# used by security/opensc-signer/Makefile + +OPENSC_PKG_VERSION= 0.11.6 +DISTNAME= opensc-${OPENSC_PKG_VERSION} +CATEGORIES= security +MASTER_SITES= http://www.opensc-project.org/files/opensc/ + +MAINTAINER= hasso@NetBSD.org +HOMEPAGE= http://www.opensc-project.org/opensc/ + +PKG_DESTDIR_SUPPORT= user-destdir + +BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.7 + +GNU_CONFIGURE= YES +USE_LIBTOOL= YES +USE_OLD_DES_API= YES +USE_TOOLS+= gmake pkg-config + +.include "options.mk" + +CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q} +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} +CONFIGURE_ARGS+= --disable-sensitive-logging diff --git a/security/opensc/PLIST b/security/opensc/PLIST new file mode 100644 index 00000000000..ea06bca913c --- /dev/null +++ b/security/opensc/PLIST @@ -0,0 +1,130 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/02/26 10:50:05 hasso Exp $ +bin/cardos-info +bin/cryptoflex-tool +bin/eidenv +bin/netkey-tool +bin/opensc-config +bin/opensc-explorer +bin/opensc-tool +bin/piv-tool +bin/pkcs11-tool +bin/pkcs15-crypt +bin/pkcs15-init +bin/pkcs15-tool +bin/rutoken-tool +include/opensc/asn1.h +include/opensc/cardctl.h +include/opensc/compression.h +include/opensc/emv.h +include/opensc/errors.h +include/opensc/log.h +include/opensc/opensc.h +include/opensc/pkcs11.h +include/opensc/pkcs11-opensc.h +include/opensc/pkcs15-init.h +include/opensc/pkcs15.h +include/opensc/scconf.h +include/opensc/types.h +include/opensc/ui.h +lib/libopensc.la +lib/libpkcs15init.la +lib/libscconf.la +lib/onepin-opensc-pkcs11.la +lib/opensc-pkcs11.la +lib/pkcs11-spy.la +lib/pkcs11/onepin-opensc-pkcs11.so +lib/pkcs11/opensc-pkcs11.so +lib/pkcs11/pkcs11-spy.so +lib/pkgconfig/libopensc.pc +lib/pkgconfig/libpkcs15init.pc +lib/pkgconfig/libscconf.pc +man/man1/cardos-info.1 +man/man1/cryptoflex-tool.1 +man/man1/netkey-tool.1 +man/man1/opensc-config.1 +man/man1/opensc-explorer.1 +man/man1/opensc-tool.1 +man/man1/pkcs11-tool.1 +man/man1/pkcs15-crypt.1 +man/man1/pkcs15-init.1 +man/man1/pkcs15-tool.1 +man/man3/sc_app_info_t.3 +man/man3/sc_append_record.3 +man/man3/sc_asn1_decode.3 +man/man3/sc_asn1_encode.3 +man/man3/sc_asn1_entry.3 +man/man3/sc_asn1_find_tag.3 +man/man3/sc_asn1_print_tags.3 +man/man3/sc_asn1_put_tag.3 +man/man3/sc_asn1_read_tag.3 +man/man3/sc_asn1_skip_tag.3 +man/man3/sc_asn1_verify_tag.3 +man/man3/sc_base64_decode.3 +man/man3/sc_base64_encode.3 +man/man3/sc_card_ctl.3 +man/man3/sc_card_t.3 +man/man3/sc_card_valid.3 +man/man3/sc_check_sw.3 +man/man3/sc_connect_card.3 +man/man3/sc_copy_asn1_entry.3 +man/man3/sc_create_file.3 +man/man3/sc_delete_file.3 +man/man3/sc_delete_record.3 +man/man3/sc_der_clear.3 +man/man3/sc_der_copy.3 +man/man3/sc_detect_card_presence.3 +man/man3/sc_disconnect_card.3 +man/man3/sc_enum_apps.3 +man/man3/sc_establish_context.3 +man/man3/sc_file_dup.3 +man/man3/sc_file_free.3 +man/man3/sc_file_new.3 +man/man3/sc_file_t.3 +man/man3/sc_find_app_by_aid.3 +man/man3/sc_find_pkcs15_app.3 +man/man3/sc_format_apdu.3 +man/man3/sc_format_asn1_entry.3 +man/man3/sc_free_apps.3 +man/man3/sc_get_cache_dir.3 +man/man3/sc_get_challenge.3 +man/man3/sc_get_data.3 +man/man3/sc_list_files.3 +man/man3/sc_lock.3 +man/man3/sc_make_cache_dir.3 +man/man3/sc_put_data.3 +man/man3/sc_read_binary.3 +man/man3/sc_read_record.3 +man/man3/sc_release_context.3 +man/man3/sc_select_file.3 +man/man3/sc_set_card_driver.3 +man/man3/sc_strerror.3 +man/man3/sc_transmit_apdu.3 +man/man3/sc_unlock.3 +man/man3/sc_update_binary.3 +man/man3/sc_update_dir.3 +man/man3/sc_update_record.3 +man/man3/sc_wait_for_event.3 +man/man3/sc_write_binary.3 +man/man3/sc_write_record.3 +man/man5/pkcs15-profile.5 +share/doc/opensc/NEWS +share/doc/opensc/README +share/examples/opensc/opensc.conf +share/opensc/asepcos.profile +share/opensc/cardos.profile +share/opensc/cyberflex.profile +share/opensc/entersafe.profile +share/opensc/flex.profile +share/opensc/gpk.profile +share/opensc/incrypto34.profile +share/opensc/jcop.profile +share/opensc/miocos.profile +share/opensc/muscle.profile +share/opensc/oberthur.profile +share/opensc/pkcs15.profile +share/opensc/rutoken.profile +share/opensc/setcos.profile +share/opensc/starcos.profile +@dirrm share/doc/opensc +@dirrm share/opensc +@dirrm include/opensc diff --git a/security/opensc/buildlink3.mk b/security/opensc/buildlink3.mk new file mode 100644 index 00000000000..67d059f6813 --- /dev/null +++ b/security/opensc/buildlink3.mk @@ -0,0 +1,26 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/02/26 10:50:05 hasso Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +OPENSC_BUILDLINK3_MK:= ${OPENSC_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= opensc +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nopensc} +BUILDLINK_PACKAGES+= opensc +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}opensc + +.if !empty(OPENSC_BUILDLINK3_MK:M+) +BUILDLINK_API_DEPENDS.opensc+= opensc>=0.11.5 +BUILDLINK_PKGSRCDIR.opensc?= ../../security/opensc +pkgbase := opensc +.include "../../mk/pkg-build-options.mk" +.endif # OPENSC_BUILDLINK3_MK + +.include "../../devel/libltdl/buildlink3.mk" +.if !empty(PKG_BUILD_OPTIONS.opensc:Mopenct) +.include "../../security/openct/buildlink3.mk" +.endif + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/security/opensc/distinfo b/security/opensc/distinfo new file mode 100644 index 00000000000..e533fd7bbfb --- /dev/null +++ b/security/opensc/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/02/26 10:50:05 hasso Exp $ + +SHA1 (opensc-0.11.6.tar.gz) = 0aa3b6a57a730f8e06f138537220c30ee709037f +RMD160 (opensc-0.11.6.tar.gz) = de838d827030f187ffa57028dbaf5013f6c82e68 +Size (opensc-0.11.6.tar.gz) = 1452763 bytes +SHA1 (patch-aa) = 50d7f7a8320541d1d7286e4fd482d63eeb166e86 diff --git a/security/opensc/options.mk b/security/opensc/options.mk new file mode 100644 index 00000000000..d0d2c9c59a2 --- /dev/null +++ b/security/opensc/options.mk @@ -0,0 +1,22 @@ +# $NetBSD: options.mk,v 1.1.1.1 2009/02/26 10:50:05 hasso Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.opensc +PKG_SUPPORTED_OPTIONS= openct pcsc-lite +PKG_SUGGESTED_OPTIONS= pcsc-lite + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mpcsc-lite) +.include "../../security/pcsc-lite/buildlink3.mk" +CONFIGURE_ARGS+= --enable-pcsc +CONFIGURE_ARGS+= --with-pcsc-provider=${BUILDLINK_PREFIX.pcsc-lite}/lib/libpcsclite.la +.else +CONFIGURE_ARGS+= --disable-pcsc +.endif + +.if !empty(PKG_OPTIONS:Mopenct) +.include "../../security/openct/buildlink3.mk" +CONFIGURE_ARGS+= --enable-openct +.else +CONFIGURE_ARGS+= --disable-openct +.endif diff --git a/security/opensc/patches/patch-aa b/security/opensc/patches/patch-aa new file mode 100644 index 00000000000..7cd65532ded --- /dev/null +++ b/security/opensc/patches/patch-aa @@ -0,0 +1,19 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/02/26 10:50:05 hasso Exp $ + +--- etc/Makefile.in.orig 2008-08-06 01:38:42 +0300 ++++ etc/Makefile.in 2008-08-06 01:39:11 +0300 +@@ -422,12 +422,8 @@ opensc.conf: opensc.conf.in force + -e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \ + -e 's|@DEFAULT_PCSC_PROVIDER[@]|$(DEFAULT_PCSC_PROVIDER)|g' \ + < $< > $@ +-install-exec-hook: install-sysconfDATA opensc.conf +- if [ -f "$(DESTDIR)$(sysconfdir)/opensc.conf" ]; then \ +- $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf.new"; \ +- else \ +- $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf"; \ +- fi ++install-exec-hook: ++ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: |