1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/dns/opendnssec13/Makefile
Erwin Lansing cfe88cb1ad - Fix location of libsofthsm.so [1]
-Update to 1.3.18 [2]

Updates:

OPENDNSSEC-620: conf.xml: New options: <PidFile> for both enforcer and signer, and <SocketFile> for the signer.
Build: Fixed various OpenBSD compatibility issues found by Patrik Lundin <patrik.lundin.swe () gmail.com>.
New tool: ods-getconf: to retrieve a configuration value from conf.xml given an expression.

Bugfixes:

OPENDNSSEC-632: ods-ksmutil: 'zone add' command when zonelist.xml.backup can't be written zone is still added to database, solved it by checking the zonelist.xml.backup is writable before adding zones, and add error message when add zone failed.
OPENDNSSEC-624: memory leak when signer failed, solved it by add ldns_rr_free(signature) in libhsm.c
simple-dnskey-mailer.sh: Fix syntax error. (by Patrik Lundin https://github.com/eest)
libhsm: Fixed a few other memory leaks.

PR:		191272 [1], 192022 [2]
Submitted by:	Andrew Fyfe <andrew@neptune-one.net> [1],
		Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer) [2]
2014-07-23 08:05:33 +00:00

80 lines
1.9 KiB
Makefile

# Created by: Jaap Akkerhuis <jaap@NLnetLabs.nl>
# $FreeBSD$
PORTNAME= opendnssec
PORTVERSION= 1.3.18
CATEGORIES= dns
MASTER_SITES= http://dist.opendnssec.org/source/ \
http://dist.opendnssec.org/source/testing/
PKGNAMESUFFIX= 13
MAINTAINER= jaap@NLnetLabs.nl
COMMENT= Tool suite for maintaining DNSSEC
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ldns>=1.6.16:${PORTSDIR}/dns/ldns
LIB_DEPENDS= libldns.so:${PORTSDIR}/dns/ldns
GNU_CONFIGURE= yes
USE_RC_SUBR= opendnssec
USE_GNOME= libxml2
USES= perl5
USE_OPENSSL= yes
USE_LDCONFIG= yes
USERS= ${PORTNAME}
GROUPS= ${PORTNAME}
PLIST_SUB+= USER=${USERS} GROUP=${GROUPS}
CONFLICTS= opendnssec-1.4*
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
PKGMESSAGE= ${WRKSRC}/MIGRATION
pre-install:
.if ${PORT_OPTIONS:MMYSQL}
@${REINPLACE_CMD} -e '/REQUIRE:/ s|$$| mysql|' ${WRKDIR}/opendnssec
.endif
.include <bsd.port.mk>