aboutsummaryrefslogtreecommitdiff
path: root/dns/opendnssec13
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-10-27 15:53:49 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-10-27 15:53:49 +0000
commitc182e0260c1caaaa50ce640bb10567f9e4fea17d (patch)
tree4755a9c564ace2cb41f22242bba7eb7da11ef99a /dns/opendnssec13
parent252d5ee2a27bdd54e3ceacece952e7dccf7117c3 (diff)
downloadports-c182e0260c1caaaa50ce640bb10567f9e4fea17d.tar.gz
ports-c182e0260c1caaaa50ce640bb10567f9e4fea17d.zip
Notes
Diffstat (limited to 'dns/opendnssec13')
-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