aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2017-10-27 07:48:55 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2017-10-27 07:48:55 +0000
commit864f3b25f656ecf819a907276ee971ff16fa46b6 (patch)
tree8fde285ecc281769d3b15231cf2be23e1e4ebaaf /security
parentb071939c0ed67083c2caf89a114642f83d65a6a1 (diff)
downloadports-864f3b25f656ecf819a907276ee971ff16fa46b6.tar.gz
ports-864f3b25f656ecf819a907276ee971ff16fa46b6.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/opensc/Makefile46
-rw-r--r--security/opensc/files/patch-etc_Makefile.in2
-rw-r--r--security/opensc/pkg-plist2
3 files changed, 15 insertions, 35 deletions
diff --git a/security/opensc/Makefile b/security/opensc/Makefile
index 92bc143d990e..f177dc5aaadc 100644
--- a/security/opensc/Makefile
+++ b/security/opensc/Makefile
@@ -3,6 +3,7 @@
PORTNAME= opensc
PORTVERSION= 0.17.0
+PORTREVISION= 1
CATEGORIES= security devel
MASTER_SITES= https://github.com/OpenSC/OpenSC/releases/download/0.17.0/
@@ -15,6 +16,7 @@ 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
@@ -32,6 +34,17 @@ CONFIGURE_ENV= \
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 <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MMANPAGES}
@@ -44,37 +57,4 @@ 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 <bsd.port.mk>
diff --git a/security/opensc/files/patch-etc_Makefile.in b/security/opensc/files/patch-etc_Makefile.in
index e7c475009d64..99c3b4821d85 100644
--- a/security/opensc/files/patch-etc_Makefile.in
+++ b/security/opensc/files/patch-etc_Makefile.in
@@ -9,7 +9,7 @@
- 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"
diff --git a/security/opensc/pkg-plist b/security/opensc/pkg-plist
index fd273caf0f9d..0501369beec3 100644
--- a/security/opensc/pkg-plist
+++ b/security/opensc/pkg-plist
@@ -33,7 +33,7 @@ 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