1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/dns/yadifa/Makefile
Muhammad Moinur Rahman fb0305ba88
dns/yadifa: Moved man to share/man
Approved by:    portmgr (blanket)
2024-02-23 17:54:11 +01:00

92 lines
2.6 KiB
Makefile

PORTNAME= yadifa
DISTVERSION= 2.6.5
PORTREVISION= 1
DISTVERSIONSUFFIX= -11201
CATEGORIES= dns
MASTER_SITES= https://www.yadifa.eu/sites/default/files/releases/ \
https://dns.company/downloads/yadifa/
MAINTAINER= freebsd@dns.company
COMMENT= Authoritative nameserver with DNSSEC capabilities
WWW= https://www.yadifa.eu/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c11 cpe libtool ssl
USE_RC_SUBR= ${PORTNAME}d
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_ARGS= --localstatedir=/var
SUB_LIST+= GROUPS="${GROUPS}" \
USERS="${USERS}"
USERS= yadifa
GROUPS= yadifa
PLIST_SUB= GROUPS="${GROUPS}" \
USERS="${USERS}"
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README VERSION
OPTIONS_DEFINE= CTRL DDNS DNSSECTOOLS DOCS ECDSA EXAMPLES KEYGEN \
LARGEFILE MASTER NSID RRL RRSIG TCL ZONESIGN
OPTIONS_DEFAULT= DDNS DNSSECTOOLS DOCS ECDSA EXAMPLES KEYGEN LARGEFILE \
MASTER NSID RRL RRSIG ZONESIGN
OPTIONS_SUB= yes
CTRL_DESC= Remote control
DDNS_DESC= Dynamic DNS support (DDNS)
DNSSECTOOLS_DESC= DNSSEC module
ECDSA_DESC= Elliptic Curve (ECDSA)
KEYGEN_DESC= Keygen tool
LARGEFILE_DESC= Support for largefiles
MASTER_DESC= Use as primary nameserver
NSID_DESC= Name Server Identifier Option
RRL_DESC= Response Rate Limiting
RRSIG_DESC= RRSIG management
ZONESIGN_DESC= Zonesign tool
CTRL_CONFIGURE_OFF= --disable-ctrl
DDNS_CONFIGURE_OFF= --disable-dynupdate
DNSSECTOOLS_CONFIGURE_OFF= --disable-dnssec-tools
ECDSA_CONFIGURE_OFF= --disable-ecdsa
KEYGEN_CONFIGURE_ENABLE= keygen
LARGEFILE_CONFIGURE_OFF= --disable-largefile
MASTER_CONFIGURE_OFF= --disable-master
NSID_CONFIGURE_OFF= --disable-nsid
RRL_CONFIGURE_OFF= --disable-rrl
RRSIG_CONFIGURE_OFF= --disable-rrsig-management
TCL_USES= tcl
ZONESIGN_CONFIGURE_ENABLE= zonesign
CTRL_IMPLIES= MASTER
MASTER_IMPLIES= DDNS RRSIG
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
pre-build:
cd ${WRKSRC} && ${MAKE_CMD} features
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
post-install:
${INSTALL_DATA} ${WRKSRC}/etc/yadifad.conf \
${STAGEDIR}${PREFIX}/etc/yadifad.conf.sample
${MV} ${STAGEDIR}/var/zones ${STAGEDIR}/var/${PORTNAME}
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
.for f in yadifa yadifad
${LN} -s ../../${EXAMPLESDIR_REL}/$f.bash_completion \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/$f.sh
.endfor
.include <bsd.port.mk>