aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2015-10-27 23:53:49 +0800
committersunpoet <sunpoet@FreeBSD.org>2015-10-27 23:53:49 +0800
commitf984ef6ec2d4f90086c3eaa2f02e8fa6db73a34e (patch)
tree4755a9c564ace2cb41f22242bba7eb7da11ef99a /dns
parent458d70f73abc6b6a35feb44df0e1bd5c561c0405 (diff)
downloadfreebsd-ports-gnome-f984ef6ec2d4f90086c3eaa2f02e8fa6db73a34e.tar.gz
freebsd-ports-gnome-f984ef6ec2d4f90086c3eaa2f02e8fa6db73a34e.tar.zst
freebsd-ports-gnome-f984ef6ec2d4f90086c3eaa2f02e8fa6db73a34e.zip
- Convert to new options helper
- Convert to new options target helper Approved by: portmgr (blanket)
Diffstat (limited to 'dns')
-rw-r--r--dns/opendnssec13/Makefile54
-rw-r--r--dns/opendnssec13/pkg-plist2
2 files changed, 17 insertions, 39 deletions
diff --git a/dns/opendnssec13/Makefile b/dns/opendnssec13/Makefile
index c4303e786af2..68f746ac8711 100644
--- a/dns/opendnssec13/Makefile
+++ b/dns/opendnssec13/Makefile
@@ -35,46 +35,24 @@ OPTIONS_DEFINE= SOFTHSM AUDITOR MYSQL
SOFTHSM_DESC= SoftHSM cryptographic store for PKCS \#11 interface
AUDITOR_DESC= Build with Auditor
OPTIONS_DEFAULT= AUDITOR
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMYSQL}
-CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
-CONFIGURE_ARGS+= --with-database-backend=mysql
-USE_MYSQL= compat
-PLIST_SUB+= SQLITE="@comment "
-PLIST_SUB+= MYSQL=""
-.else
-CONFIGURE_ARGS+= --with-sqlite3=${LOCALBASE}
-CONFIGURE_ARGS+= --with-database-backend=sqlite3
-USE_SQLITE= yes
-BUILD_DEPENDS+= sqlite3>=3.3.9:${PORTSDIR}/databases/sqlite3
-LIB_DEPENDS+= libsqlite3.so:${PORTSDIR}/databases/sqlite3
-PLIST_SUB+= SQLITE=""
-PLIST_SUB+= MYSQL="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MAUDITOR}
-BUILD_DEPENDS+= rubygem-soap4r>=0:${PORTSDIR}/devel/rubygem-soap4r
-BUILD_DEPENDS+= rubygem-dnsruby>=1.53:${PORTSDIR}/dns/rubygem-dnsruby
-USE_RUBY= yes
-PLIST_SUB+= AUDITOR=""
-.else
-CONFIGURE_ARGS+= --disable-auditor
-PLIST_SUB+= AUDITOR="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MSOFTHSM}
-CONFIGURE_ARGS+= --with-softhsm
-CONFIGURE_ARGS+= --with-pkcs11-softhsm=${LOCALBASE}/lib/softhsm/libsofthsm.so
-RUN_DEPENDS+= softhsm>=1.2.0:${PORTSDIR}/security/softhsm
-.endif
+OPTIONS_SUB= yes
+
+AUDITOR_BUILD_DEPENDS= rubygem-soap4r>=0:${PORTSDIR}/devel/rubygem-soap4r \
+ rubygem-dnsruby>=1.53:${PORTSDIR}/dns/rubygem-dnsruby
+AUDITOR_CONFIGURE_ENABLE= auditor
+AUDITOR_USE= RUBY=yes
+MYSQL_BUILD_DEPENDS_OFF=sqlite3>=3.3.9:${PORTSDIR}/databases/sqlite3
+MYSQL_CONFIGURE_OFF= --with-sqlite3=${LOCALBASE} --with-database-backend=sqlite3
+MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE} --with-database-backend=mysql
+MYSQL_LIB_DEPENDS_OFF= libsqlite3.so:${PORTSDIR}/databases/sqlite3
+MYSQL_USE= MYSQL=compat
+MYSQL_USE_OFF= SQLITE=yes
+SOFTHSM_CONFIGURE_ON= --with-softhsm --with-pkcs11-softhsm=${LOCALBASE}/lib/softhsm/libsofthsm.so
+SOFTHSM_RUN_DEPENDS= softhsm>=1.2.0:${PORTSDIR}/security/softhsm
PKGMESSAGE= ${WRKSRC}/MIGRATION
-pre-install:
-.if ${PORT_OPTIONS:MMYSQL}
- @${REINPLACE_CMD} -e '/REQUIRE:/ s|$$| mysql|' ${WRKDIR}/opendnssec
-.endif
+pre-install-MYSQL-on:
+ ${REINPLACE_CMD} -e '/REQUIRE:/ s|$$| mysql|' ${WRKDIR}/opendnssec
.include <bsd.port.mk>
diff --git a/dns/opendnssec13/pkg-plist b/dns/opendnssec13/pkg-plist
index 75daa9123297..02f085755a0c 100644
--- a/dns/opendnssec13/pkg-plist
+++ b/dns/opendnssec13/pkg-plist
@@ -38,7 +38,7 @@ sbin/ods-signer
sbin/ods-signerd
%%DATADIR%%/conf.rnc
%%DATADIR%%/conf.rng
-%%SQLITE%%%%DATADIR%%/database_create.sqlite3
+%%NO_MYSQL%%%%DATADIR%%/database_create.sqlite3
%%MYSQL%%%%DATADIR%%/database_create.mysql
%%DATADIR%%/kasp.rnc
%%DATADIR%%/kasp.rng