[Midnightbsd-cvs] mports [15422] trunk/security/opensc: 0.13.0
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 8 17:24:32 EDT 2013
Revision: 15422
http://svnweb.midnightbsd.org/mports/?rev=15422
Author: laffer1
Date: 2013-09-08 17:24:31 -0400 (Sun, 08 Sep 2013)
Log Message:
-----------
0.13.0
Modified Paths:
--------------
trunk/security/opensc/Makefile
trunk/security/opensc/distinfo
trunk/security/opensc/files/patch-etc_Makefile.in
trunk/security/opensc/pkg-plist
Modified: trunk/security/opensc/Makefile
===================================================================
--- trunk/security/opensc/Makefile 2013-09-08 21:22:11 UTC (rev 15421)
+++ trunk/security/opensc/Makefile 2013-09-08 21:24:31 UTC (rev 15422)
@@ -1,99 +1,76 @@
-# New ports collection makefile for: opensc
-# Date created: 10 September 2002
-# Whom: Bruce M Simpson
-#
# $MidnightBSD: mports/security/opensc/Makefile,v 1.4 2009/09/20 04:09:53 laffer1 Exp $
-# $FreeBSD: ports/security/opensc/Makefile,v 1.30 2008/04/19 17:53:27 miwi Exp $
-#
PORTNAME= opensc
-PORTVERSION= 0.11.7
+PORTVERSION= 0.13.0
CATEGORIES= security devel
-MASTER_SITES= http://www.opensc-project.org/files/${PORTNAME}/ \
- http://www.opensc-project.org/files/${PORTNAME}/testing/
+MASTER_SITES= SF/${PORTNAME}/OpenSC/${DISTNAME}
MAINTAINER= ports at MidnightBSD.org
COMMENT= Libraries and utilities to access smart cards
-LICENSE= lgpl
-OPTIONS= OPENCT "Enable direct OpenCT backend support" on \
- PCSC "Enable PC/SC backend support" off \
- SIGNER "Enable signer browser plugin" off
+LICENSE= lgpl2.1
-USE_AUTOTOOLS= libltdl
-USE_ICONV= yes
+BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt \
+ ${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
+
+OPTIONS_SINGLE= BACKEND
+OPTIONS_SINGLE_BACKEND=PCSC OPENCT CTAPI
+OPTIONS_DEFINE= SM DOCS
+OPTIONS_DEFAULT=PCSC
+
+PCSC_DESC= Use PC/SC backend
+OPENCT_DESC= Use OpenCT backend
+CTAPI_DESC= Use CT-API backend
+SM_DESC= Enable secure messaging support
+
+USES= pkgconfig
USE_OPENSSL= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-USE_GNOME= pkgconfig
USE_LDCONFIG= yes
-CONFIGURE_ENV= LTLIB_CFLAGS="-I${LOCALBASE}/include" \
- LTLIB_LIBS="-L${LOCALBASE}/lib -lltdl" \
- ICONV_CFLAGS="-I${LOCALBASE}/include" \
- ICONV_LIBS="-L${LOCALBASE}/lib -liconv" \
+CONFIGURE_ENV= \
OPENSSL_CFLAGS="-I${OPENSSLINC}" \
- OPENSSL_LIBS="-L${OPENSSLLIB} -lssl"
+ OPENSSL_LIBS="-L${OPENSSLLIB} -lssl" \
+ XSLTPROC="${LOCALBASE}/bin/xsltproc"
+CONFIGURE_ARGS= --with-xsl-stylesheetsdir=${LOCALBASE}/share/xsl/docbook
+
PORTDOCS= *
MANCOMPRESSED= no
-MAN1= cardos-tool.1 cryptoflex-tool.1 netkey-tool.1 \
- opensc-config.1 opensc-explorer.1 opensc-tool.1 \
- pkcs11-tool.1 pkcs15-crypt.1 pkcs15-init.1 pkcs15-tool.1
-MAN3= sc_app_info_t.3 sc_append_record.3 sc_asn1_decode.3 \
- sc_asn1_encode.3 sc_asn1_entry.3 sc_asn1_find_tag.3 \
- sc_asn1_print_tags.3 sc_asn1_put_tag.3 sc_asn1_read_tag.3 \
- sc_asn1_skip_tag.3 sc_asn1_verify_tag.3 sc_base64_decode.3 \
- sc_base64_encode.3 sc_card_ctl.3 sc_card_t.3 \
- sc_card_valid.3 sc_check_sw.3 sc_connect_card.3 \
- sc_copy_asn1_entry.3 sc_create_file.3 sc_delete_file.3 \
- sc_delete_record.3 sc_der_clear.3 sc_der_copy.3 \
- sc_detect_card_presence.3 sc_disconnect_card.3 \
- sc_enum_apps.3 sc_establish_context.3 sc_file_dup.3 \
- sc_file_free.3 sc_file_new.3 sc_file_t.3 \
- sc_find_app_by_aid.3 sc_find_pkcs15_app.3 sc_format_apdu.3 \
- sc_format_asn1_entry.3 sc_free_apps.3 sc_get_cache_dir.3 \
- sc_get_challenge.3 sc_get_data.3 sc_list_files.3 \
- sc_lock.3 sc_make_cache_dir.3 sc_put_data.3 \
- sc_read_binary.3 sc_read_record.3 sc_release_context.3 \
- sc_select_file.3 sc_set_card_driver.3 sc_strerror.3 \
- sc_transmit_apdu.3 sc_unlock.3 sc_update_binary.3 \
- sc_update_dir.3 sc_update_record.3 sc_wait_for_event.3 \
- sc_write_binary.3 sc_write_record.3
+MAN1= cardos-tool.1 cryptoflex-tool.1 eidenv.1 iasecc-tool.1 \
+ netkey-tool.1 openpgp-tool.1 \
+ opensc-explorer.1 opensc-tool.1 piv-tool.1 \
+ pkcs11-tool.1 pkcs15-crypt.1 pkcs15-init.1 pkcs15-tool.1 \
+ sc-hsm-tool.1 westcos-tool.1
MAN5= pkcs15-profile.5
-.include <bsd.port.pre.mk>
+.include <bsd.mport.options.mk>
-.if !defined(WITHOUT_OPENCT)
-LIB_DEPENDS+= openct.1:${PORTSDIR}/security/openct
+.if ${PORT_OPTIONS:MOPENCT}
+LIB_DEPENDS+= openct:${PORTSDIR}/security/openct
CONFIGURE_ARGS+=--enable-openct
.endif
-.if defined(WITH_PCSC)
-LIB_DEPENDS+= pcsclite.1:${PORTSDIR}/devel/pcsc-lite
-CONFIGURE_ARGS+=--enable-pcsc
+.if ${PORT_OPTIONS:MPCSC}
+LIB_DEPENDS+= pcsclite:${PORTSDIR}/devel/pcsc-lite
+.else
+CONFIGURE_ARGS+=--disable-pcsc
.endif
-.if defined(WITH_SIGNER)
-BUILD_DEPENDS+= ${LOCALBASE}/lib/libassuan.a:${PORTSDIR}/security/libassuan
-PINENTRY?= ${LOCALBASE}/bin/pinentry
-RUN_DEPENDS+= pinentry:${PORTSDIR}/security/pinentry
-USE_XORG= x11
-CONFIGURE_ARGS+=--enable-nsplugin \
- --with-libassuan-prefix=${LOCALBASE} \
- --with-plugindir=${WEBPLUGINS_DIR} \
- --with-pinentry=${PINENTRY}
-PLIST_SUB+= SIGNER=""
+.if ${PORT_OPTIONS:MCTAPI}
+CONFIGURE_ARGS+=--enable-ctapi
+.endif
-USE_WEBPLUGINS= gecko*
-WEBPLUGINS_FILES=opensc-signer.so
-.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
+.if ${PORT_OPTIONS:MSM}
+CONFIGURE_ARGS+=--enable-sm
+PLIST_SUB+= SM=""
.else
-PLIST_SUB+= SIGNER="@comment "
+PLIST_SUB+= SM="@comment "
.endif
-.ifndef(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+=--enable-doc
.endif
@@ -100,15 +77,11 @@
post-patch:
@${REINPLACE_CMD} 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
${WRKSRC}/configure
-.if !defined(WITH_SIGNER)
- @${REINPLACE_CMD} 's|install-data-am: install-pluginDATA|install-data-am:|' \
- ${WRKSRC}/src/signer/Makefile.in
-.endif
-.ifdef(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} 's|install-data-am: install-dist_docDATA|install-data-am:|' \
${WRKSRC}/Makefile.in
- @${REINPLACE_CMD} 's|install-data-am: install-dist_docDATA install-dist_htmlDATA|install-data-am:|' \
- ${WRKSRC}/doc/Makefile.in
+ @${REINPLACE_CMD} 's|install-data-am: install-htmlDATA install-man|install-data-am: install-man|' \
+ ${WRKSRC}/doc/Makefile.in ${WRKSRC}/doc/tools/Makefile.in
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Modified: trunk/security/opensc/distinfo
===================================================================
--- trunk/security/opensc/distinfo 2013-09-08 21:22:11 UTC (rev 15421)
+++ trunk/security/opensc/distinfo 2013-09-08 21:24:31 UTC (rev 15422)
@@ -1,3 +1,2 @@
-SHA256 (opensc-0.11.7.tar.gz) = 6dab273cbdba8e92c59207715199f48f4f9e541e6d873561e30154bd40c4011d
-RMD160 (opensc-0.11.7.tar.gz) = 29b221be2e7cfb8ffaeb8e848071e17e6f14cfeb
-SIZE (opensc-0.11.7.tar.gz) = 1422696
+SHA256 (opensc-0.13.0.tar.gz) = abde46ae53b12b3273e40c532ffd4f7d423a51e0919a5234761453c17c089b14
+SIZE (opensc-0.13.0.tar.gz) = 1946899
Modified: trunk/security/opensc/files/patch-etc_Makefile.in
===================================================================
--- trunk/security/opensc/files/patch-etc_Makefile.in 2013-09-08 21:22:11 UTC (rev 15421)
+++ trunk/security/opensc/files/patch-etc_Makefile.in 2013-09-08 21:24:31 UTC (rev 15422)
@@ -1,15 +1,15 @@
---- etc/Makefile.in.orig 2008-08-26 15:53:25.000000000 +0200
-+++ etc/Makefile.in 2008-08-26 15:53:42.000000000 +0200
-@@ -423,11 +423,7 @@
- -e 's|@DEFAULT_PCSC_PROVIDER[@]|$(DEFAULT_PCSC_PROVIDER)|g' \
- < $< > $@
- install-exec-hook: install-sysconfDATA opensc.conf
+--- etc/Makefile.in.orig 2012-12-04 15:43:57.000000000 +0100
++++ etc/Makefile.in 2012-12-05 10:07:46.000000000 +0100
+@@ -429,11 +429,7 @@
+
+ install-exec-hook: opensc.conf
+ $(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
- 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_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf-sample"; \
++ $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf-sample"
+
# 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:
Modified: trunk/security/opensc/pkg-plist
===================================================================
--- trunk/security/opensc/pkg-plist 2013-09-08 21:22:11 UTC (rev 15421)
+++ trunk/security/opensc/pkg-plist 2013-09-08 21:24:31 UTC (rev 15422)
@@ -1,9 +1,9 @@
-bin/cardos-info
bin/cardos-tool
bin/cryptoflex-tool
bin/eidenv
+bin/iasecc-tool
bin/netkey-tool
-bin/opensc-config
+bin/openpgp-tool
bin/opensc-explorer
bin/opensc-tool
bin/piv-tool
@@ -11,66 +11,51 @@
bin/pkcs15-crypt
bin/pkcs15-init
bin/pkcs15-tool
-bin/rutoken-tool
+bin/sc-hsm-tool
+bin/westcos-tool
etc/opensc.conf-sample
-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-opensc.h
-include/opensc/pkcs11.h
-include/opensc/pkcs15-init.h
-include/opensc/pkcs15.h
-include/opensc/scconf.h
-include/opensc/types.h
-include/opensc/ui.h
-libdata/pkgconfig/libopensc.pc
-libdata/pkgconfig/libpkcs15init.pc
-libdata/pkgconfig/libscconf.pc
-%%SIGNER%%%%WEBPLUGINS_DIR%%/opensc-signer.so
-%%SIGNER%%lib/opensc-signer.a
-%%SIGNER%%lib/opensc-signer.la
-%%SIGNER%%lib/opensc-signer.so
lib/libopensc.a
lib/libopensc.la
lib/libopensc.so
-lib/libopensc.so.2
-lib/libpkcs15init.a
-lib/libpkcs15init.la
-lib/libpkcs15init.so
-lib/libpkcs15init.so.2
-lib/libscconf.a
-lib/libscconf.la
-lib/libscconf.so
-lib/libscconf.so.2
-lib/onepin-opensc-pkcs11.la
-lib/onepin-opensc-pkcs11.so
+lib/libopensc.so.3
+%%SM%%lib/libsmm-local.a
+%%SM%%lib/libsmm-local.la
+%%SM%%lib/libsmm-local.so
+%%SM%%lib/libsmm-local.so.3
lib/opensc-pkcs11.la
lib/opensc-pkcs11.so
lib/pkcs11-spy.la
lib/pkcs11-spy.so
-lib/pkcs11/onepin-opensc-pkcs11.so
lib/pkcs11/opensc-pkcs11.so
lib/pkcs11/pkcs11-spy.so
%%DATADIR%%/asepcos.profile
+%%DATADIR%%/authentic.profile
%%DATADIR%%/cardos.profile
%%DATADIR%%/cyberflex.profile
%%DATADIR%%/entersafe.profile
+%%DATADIR%%/epass2003.profile
%%DATADIR%%/flex.profile
%%DATADIR%%/gpk.profile
+%%DATADIR%%/ias_adele_admin1.profile
+%%DATADIR%%/ias_adele_admin2.profile
+%%DATADIR%%/ias_adele_common.profile
+%%DATADIR%%/iasecc_admin_eid.profile
+%%DATADIR%%/iasecc_generic_oberthur.profile
+%%DATADIR%%/iasecc_generic_pki.profile
+%%DATADIR%%/iasecc.profile
%%DATADIR%%/incrypto34.profile
%%DATADIR%%/jcop.profile
%%DATADIR%%/miocos.profile
%%DATADIR%%/muscle.profile
+%%DATADIR%%/myeid.profile
%%DATADIR%%/oberthur.profile
+%%DATADIR%%/openpgp.profile
%%DATADIR%%/pkcs15.profile
%%DATADIR%%/rutoken.profile
+%%DATADIR%%/rutoken_ecp.profile
+%%DATADIR%%/sc-hsm.profile
%%DATADIR%%/setcos.profile
%%DATADIR%%/starcos.profile
-%%SIGNER%%@dirrmtry %%WEBPLUGINS_DIR%%
- at dirrm include/opensc
+%%DATADIR%%/westcos.profile
@dirrm lib/pkcs11
@dirrm %%DATADIR%%
More information about the Midnightbsd-cvs
mailing list