Index: head/security/opensc/Makefile =================================================================== --- head/security/opensc/Makefile (revision 452965) +++ head/security/opensc/Makefile (revision 452966) @@ -1,80 +1,60 @@ # Created by: Bruce M Simpson # $FreeBSD$ PORTNAME= opensc PORTVERSION= 0.17.0 +PORTREVISION= 1 CATEGORIES= security devel MASTER_SITES= https://github.com/OpenSC/OpenSC/releases/download/0.17.0/ MAINTAINER= ale@FreeBSD.org COMMENT= Libraries and utilities to access smart cards LICENSE= LGPL21 OPTIONS_SINGLE= BACKEND OPTIONS_SINGLE_BACKEND=PCSC OPENCT CTAPI OPTIONS_DEFINE= SM DOCS MANPAGES OPTIONS_DEFAULT=PCSC SM MANPAGES +OPTIONS_SUB= yes PCSC_DESC= Use PC/SC backend OPENCT_DESC= Use OpenCT backend CTAPI_DESC= Use CT-API backend SM_DESC= Enable secure messaging support USES= libtool pkgconfig gmake ssl GNU_CONFIGURE= yes USE_LDCONFIG= yes INSTALL_TARGET= install-strip CONFIGURE_ENV= \ OPENSSL_CFLAGS="-I${OPENSSLINC}" \ OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto" PORTDOCS= * +MANPAGES_CONFIGURE_ARGS_OFF=--disable-man + +OPENCT_LIB_DEPENDS= libopenct.so:security/openct +OPENCT_CONFIGURE_ARGS= --enable-openct + +PCSC_LIB_DEPENDS= libpcsclite.so:devel/pcsc-lite +PCSC_CONFIGURE_ARGS_OFF=--disable-pcsc +CTAPI_CONFIGURE_ARGS= --enable-ctapi +SM_CONFIGURE_ARGS_OFF= --disable-sm +DOCS_CONFIGURE_ARGS+= --enable-doc + .include .if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MMANPAGES} BUILD_DEPENDS+= xsltproc:textproc/libxslt \ ${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:textproc/docbook-xsl CONFIGURE_ENV+= XSLTPROC="${LOCALBASE}/bin/xsltproc" CONFIGURE_ARGS+=--with-xsl-stylesheetsdir=${LOCALBASE}/share/xsl/docbook .else CONFIGURE_ENV+= XSLTPROC="${FALSE}" CONFIGURE_ARGS+=--without-xsl-stylesheetsdir -.endif - -.if ${PORT_OPTIONS:MMANPAGES} -PLIST_SUB+= MANPAGES="" -.else -CONFIGURE_ARGS+=--disable-man -PLIST_SUB+= MANPAGES="@comment " -.endif - -.if ${PORT_OPTIONS:MOPENCT} -LIB_DEPENDS+= libopenct.so:security/openct -CONFIGURE_ARGS+=--enable-openct -.endif - -.if ${PORT_OPTIONS:MPCSC} -LIB_DEPENDS+= libpcsclite.so:devel/pcsc-lite -.else -CONFIGURE_ARGS+=--disable-pcsc -.endif - -.if ${PORT_OPTIONS:MCTAPI} -CONFIGURE_ARGS+=--enable-ctapi -.endif - -.if ${PORT_OPTIONS:MSM} -PLIST_SUB+= SM="" -.else -CONFIGURE_ARGS+=--disable-sm -PLIST_SUB+= SM="@comment " -.endif - -.if ${PORT_OPTIONS:MDOCS} -CONFIGURE_ARGS+=--enable-doc .endif .include Index: head/security/opensc/files/patch-etc_Makefile.in =================================================================== --- head/security/opensc/files/patch-etc_Makefile.in (revision 452965) +++ head/security/opensc/files/patch-etc_Makefile.in (revision 452966) @@ -1,15 +1,15 @@ --- etc/Makefile.in.orig 2017-07-19 07:30:34 UTC +++ etc/Makefile.in @@ -548,11 +548,7 @@ opensc.conf: opensc.conf.in force 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" uninstall-hook: opensc.conf rm -f "$(DESTDIR)$(sysconfdir)/opensc.conf.new" "$(DESTDIR)$(sysconfdir)/opensc.conf" Index: head/security/opensc/pkg-plist =================================================================== --- head/security/opensc/pkg-plist (revision 452965) +++ head/security/opensc/pkg-plist (revision 452966) @@ -1,100 +1,100 @@ bin/cardos-tool bin/cryptoflex-tool bin/dnie-tool bin/eidenv bin/gids-tool bin/iasecc-tool bin/netkey-tool bin/npa-tool bin/openpgp-tool bin/opensc-explorer bin/opensc-tool bin/piv-tool bin/pkcs11-tool bin/pkcs15-crypt bin/pkcs15-init bin/pkcs15-tool bin/sc-hsm-tool bin/westcos-tool etc/bash_completion.d/cardos-tool etc/bash_completion.d/cryptoflex-tool etc/bash_completion.d/dnie-tool etc/bash_completion.d/eidenv etc/bash_completion.d/gids-tool etc/bash_completion.d/iasecc-tool etc/bash_completion.d/netkey-tool etc/bash_completion.d/openpgp-tool etc/bash_completion.d/opensc-explorer etc/bash_completion.d/opensc-tool etc/bash_completion.d/piv-tool etc/bash_completion.d/pkcs11-tool etc/bash_completion.d/pkcs15-crypt etc/bash_completion.d/pkcs15-init etc/bash_completion.d/pkcs15-tool etc/bash_completion.d/sc-hsm-tool etc/bash_completion.d/westcos-tool -etc/opensc.conf-sample +@sample etc/opensc.conf.sample lib/libopensc.a lib/libopensc.so lib/libopensc.so.5 lib/libopensc.so.5.0.0 %%SM%%lib/libsmm-local.so %%SM%%lib/libsmm-local.so.5 %%SM%%lib/libsmm-local.so.5.0.0 lib/onepin-opensc-pkcs11.so lib/opensc-pkcs11.so lib/pkcs11-spy.so lib/pkcs11/onepin-opensc-pkcs11.so lib/pkcs11/opensc-pkcs11.so lib/pkcs11/pkcs11-spy.so libdata/pkgconfig/opensc-pkcs11.pc %%DATADIR%%/asepcos.profile %%DATADIR%%/authentic.profile %%DATADIR%%/cardos.profile %%DATADIR%%/cyberflex.profile %%DATADIR%%/entersafe.profile %%DATADIR%%/epass2003.profile %%DATADIR%%/flex.profile %%DATADIR%%/gids.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%%/isoApplet.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 %%DATADIR%%/westcos.profile %%MANPAGES%%man/man1/cardos-tool.1.gz %%MANPAGES%%man/man1/cryptoflex-tool.1.gz %%MANPAGES%%man/man1/dnie-tool.1.gz %%MANPAGES%%man/man1/eidenv.1.gz %%MANPAGES%%man/man1/gids-tool.1.gz %%MANPAGES%%man/man1/iasecc-tool.1.gz %%MANPAGES%%man/man1/netkey-tool.1.gz %%MANPAGES%%man/man1/npa-tool.1.gz %%MANPAGES%%man/man1/openpgp-tool.1.gz %%MANPAGES%%man/man1/opensc-explorer.1.gz %%MANPAGES%%man/man1/opensc-tool.1.gz %%MANPAGES%%man/man1/piv-tool.1.gz %%MANPAGES%%man/man1/pkcs11-tool.1.gz %%MANPAGES%%man/man1/pkcs15-crypt.1.gz %%MANPAGES%%man/man1/pkcs15-init.1.gz %%MANPAGES%%man/man1/pkcs15-tool.1.gz %%MANPAGES%%man/man1/sc-hsm-tool.1.gz %%MANPAGES%%man/man1/westcos-tool.1.gz %%MANPAGES%%man/man5/pkcs15-profile.5.gz