Date: Tue, 27 Oct 2015 15:53:49 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r400305 - head/dns/opendnssec13 Message-ID: <201510271553.t9RFrnCd059334@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Tue Oct 27 15:53:49 2015 New Revision: 400305 URL: https://svnweb.freebsd.org/changeset/ports/400305 Log: - Convert to new options helper - Convert to new options target helper Approved by: portmgr (blanket) Modified: head/dns/opendnssec13/Makefile head/dns/opendnssec13/pkg-plist Modified: head/dns/opendnssec13/Makefile ============================================================================== --- head/dns/opendnssec13/Makefile Tue Oct 27 15:53:44 2015 (r400304) +++ head/dns/opendnssec13/Makefile Tue Oct 27 15:53:49 2015 (r400305) @@ -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 +OPTIONS_SUB= yes -.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 +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> Modified: head/dns/opendnssec13/pkg-plist ============================================================================== --- head/dns/opendnssec13/pkg-plist Tue Oct 27 15:53:44 2015 (r400304) +++ head/dns/opendnssec13/pkg-plist Tue Oct 27 15:53:49 2015 (r400305) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510271553.t9RFrnCd059334>