2013-11-23 14:13:15 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= yadifa
|
2019-02-14 15:47:31 +00:00
|
|
|
DISTVERSION= 2.3.9
|
|
|
|
DISTVERSIONSUFFIX= -8497
|
2019-10-09 10:34:56 +00:00
|
|
|
CATEGORIES= dns
|
2016-09-05 13:51:32 +00:00
|
|
|
MASTER_SITES= http://cdn.yadifa.eu/sites/default/files/releases/
|
2013-11-23 14:13:15 +00:00
|
|
|
|
2018-03-22 14:13:11 +00:00
|
|
|
MAINTAINER= freebsd@dns.company
|
2015-04-30 14:27:24 +00:00
|
|
|
COMMENT= Authoritative nameserver with DNSSEC capabilities
|
2013-11-23 14:13:15 +00:00
|
|
|
|
2014-09-19 17:53:21 +00:00
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2015-04-30 14:27:24 +00:00
|
|
|
|
2019-02-14 15:47:31 +00:00
|
|
|
USES= libtool ssl
|
|
|
|
|
2015-04-30 14:27:24 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --localstatedir=/var
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= CTRL DOCS EXAMPLES TCL RRL MESSAGES NSID
|
2014-09-19 17:53:21 +00:00
|
|
|
OPTIONS_DEFAULT= RRL NSID
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2015-04-30 14:27:24 +00:00
|
|
|
CTRL_DESC= Remote control
|
2014-09-19 17:53:21 +00:00
|
|
|
RRL_DESC= Response Rate Limiting
|
|
|
|
MESSAGES_DESC= Use messages instead of send (if many ip aliases)
|
|
|
|
NSID_DESC= Name Server Identifier Option
|
2013-11-23 14:13:15 +00:00
|
|
|
|
2015-04-30 14:27:24 +00:00
|
|
|
CTRL_CONFIGURE_ENABLE= ctrl
|
2013-11-23 14:13:15 +00:00
|
|
|
TCL_USES= tcl
|
|
|
|
TCL_CONFIGURE_ENABLE= tcl
|
2014-09-19 17:53:21 +00:00
|
|
|
RRL_CONFIGURE_ENABLE= rrl
|
|
|
|
MESSAGES_CONFIGURE_ENABLE= messages
|
|
|
|
NSID_CONFIGURE_ENABLE= nsid
|
2013-11-23 14:13:15 +00:00
|
|
|
|
|
|
|
USE_RC_SUBR= ${PORTNAME}d
|
|
|
|
|
|
|
|
PORTDOCS= AUTHORS COPYING ChangeLog \
|
|
|
|
INSTALL NEWS README TODO VERSION
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} -e 's|^docdir = .*|docdir = ${EXAMPLESDIR}|' ${WRKSRC}/etc/Makefile
|
|
|
|
${REINPLACE_CMD} -e 's|/usr/local/var|/var|' -e 's|/var/zones|/var/${PORTNAME}|' ${WRKSRC}/etc/yadifad.conf.example
|
|
|
|
|
2016-12-21 15:38:27 +00:00
|
|
|
pre-build:
|
2019-03-10 19:48:01 +00:00
|
|
|
cd ${WRKSRC} && ${MAKE_CMD} features
|
2016-12-21 15:38:27 +00:00
|
|
|
|
2013-11-23 14:13:15 +00:00
|
|
|
post-install:
|
2019-03-10 19:48:01 +00:00
|
|
|
${CP} ${WRKSRC}/etc/yadifad.conf \
|
2014-08-28 09:14:12 +00:00
|
|
|
${STAGEDIR}${PREFIX}/etc/yadifad.conf.sample
|
2019-03-10 19:48:01 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-11-23 14:13:15 +00:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2019-03-10 19:48:01 +00:00
|
|
|
${MV} ${STAGEDIR}/var/zones ${STAGEDIR}/var/${PORTNAME}
|
2013-11-23 14:13:15 +00:00
|
|
|
|
2016-09-05 13:51:32 +00:00
|
|
|
post-install-EXAMPLES-on:
|
2019-03-10 19:48:01 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
|
2016-09-05 13:51:32 +00:00
|
|
|
.for f in yadifa yadifad
|
2019-03-10 19:48:01 +00:00
|
|
|
${LN} -s ../../${EXAMPLESDIR_REL}/$f.bash_completion \
|
2016-09-05 13:51:32 +00:00
|
|
|
${STAGEDIR}${PREFIX}/etc/bash_completion.d/$f.sh
|
|
|
|
.endfor
|
|
|
|
|
2013-11-23 14:13:15 +00:00
|
|
|
.include <bsd.port.mk>
|