diff options
author | erwin <erwin@FreeBSD.org> | 2012-10-23 20:34:03 +0800 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2012-10-23 20:34:03 +0800 |
commit | 72d265481ad5d47f48334bda0620f65622efa7e6 (patch) | |
tree | bb595de3122ad46d1fe6ded6eeaed577fcb4fc2f /dns/opendnssec | |
parent | e1b63b9afcf804b303edf5fdaab64ed47f5e9613 (diff) | |
download | freebsd-ports-gnome-72d265481ad5d47f48334bda0620f65622efa7e6.tar.gz freebsd-ports-gnome-72d265481ad5d47f48334bda0620f65622efa7e6.tar.zst freebsd-ports-gnome-72d265481ad5d47f48334bda0620f65622efa7e6.zip |
Convert to OPTIONSNG
PR: 172903
Submitted by: me
Approved by: Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Feature safe: yes
Diffstat (limited to 'dns/opendnssec')
-rw-r--r-- | dns/opendnssec/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/dns/opendnssec/Makefile b/dns/opendnssec/Makefile index 15856d02a2f6..34ee542066e9 100644 --- a/dns/opendnssec/Makefile +++ b/dns/opendnssec/Makefile @@ -32,13 +32,14 @@ MAN5= ods-timing.5 MAN7= opendnssec.7 MAN8= ods-control.8 ods-enforcerd.8 ods-signer.8 ods-signerd.8 -OPTIONS= SOFTHSM "Build/update SOFTHSM as well." Off \ - AUDITOR "Build with Auditor." On \ - MYSQL "Use with (experimental) MYSQL support" Off +OPTIONS_DEFINE= SOFTHSM AUDITOR MYSQL +SOFTHSM_DESC= Build/update SOFTHSM as well. +AUDITOR_DESC= Build with Auditor. +OPTIONS_DEFAULT= AUDITOR .include <bsd.port.options.mk> -.if defined(WITH_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} CONFIGURE_ARGS+= --with-mysql=${LOCALBASE} CONFIGURE_ARGS+= --with-database-backend=mysql USE_MYSQL= compat @@ -52,7 +53,7 @@ PLIST_SUB+= SQLITE="" PLIST_SUB+= MYSQL="@comment " .endif -.if defined(WITH_AUDITOR) +.if ${PORT_OPTIONS:MAUDITOR} BUILD_DEPENDS+= rubygem-dnsruby>=1.53:${PORTSDIR}/dns/rubygem-dnsruby USE_RUBY= yes PLIST_SUB+= AUDITOR="" @@ -62,7 +63,7 @@ CONFIGURE_ARGS+= --disable-auditor PLIST_SUB+= AUDITOR="@comment " .endif -.if defined(WITH_SOFTHSM) +.if ${PORT_OPTIONS:MSOFTHSM} CONFIGURE_ARGS+= --with-softhsm CONFIGURE_ARGS+= --with-pkcs11-softhsm=${LOCALBASE}/lib/libsofthsm.so RUN_DEPENDS+= softhsm>=1.2.0:${PORTSDIR}/security/softhsm @@ -71,7 +72,7 @@ RUN_DEPENDS+= softhsm>=1.2.0:${PORTSDIR}/security/softhsm PKGMESSAGE= ${WRKSRC}/MIGRATION pre-install: -.if defined(WITH_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} @${REINPLACE_CMD} -e '/REQUIRE:/ s|$$| mysql|' ${WRKDIR}/opendnssec .endif @@ -82,7 +83,7 @@ post-install: ${CHOWN} -R ${USERS}:${GROUPS} ${PREFIX}/var/opendnssec .include <bsd.port.pre.mk> -.if defined(WITH_AUDITOR) && ${RUBY_VER} == 1.9 +.if ${PORT_OPTIONS:MAUDITOR} && ${RUBY_VER} == 1.9 BROKEN= does not work with ruby 1.9 .endif .include <bsd.port.post.mk> |