freebsd-ports/dns/yadifa/Makefile

87 lines
2.5 KiB
Makefile
Raw Normal View History

PORTNAME= yadifa
DISTVERSION= 2.5.3
DISTVERSION= 2.5.4
DISTVERSIONSUFFIX= -10442
CATEGORIES= dns
dns/yadifa: update to 2.4.1 * YADIFA 2.4.1-public: - Fixes an issue in dnscore where a DNS TCP query would not return the real DNS error code. - Fixes an issue that could happen when a network model isn't supported. - Fixes the propagation of sendmmsg/recvmmsg function availability detection. - Fixes an issue where yadifad would issue a warning when a key with algorithm > 7 is used with an NSEC zone. - Fixes an issue that will occur on a chrooted environment where a managed-path would be used incorrectly. - Fixes CNAME answers not following the aliases chain. - Fixes CNAME recursion not returning the same answer as named in NXDOMAIN cases (reported by https://github.com/SivaKesava1, see https://github.com/yadifa/yadifa/issues/11) - Adds patch for musl support - Adds stack size fix for musl support (the default size is way too small) - Now imports a custom version of stdatomic.h for systems where it is missing, located in dnscore/thirdpary/stdatomic.h. Made for CentOS 7 and any other release where that file is missing. The import is only active if strictly needed and will only be visible during the build. At the moment, it is not being installed with the other headers. * YAKEYROLLD 2.4.1: - Fixes the handling of incomplete TCP queries. - Fixes a possible race-condition when initialising the keyroll context error codes. - The keyroll now has another automatic recovery layer where it completely restarts the handling of a domain, generating a one-step update to put the zone in the expected state. Full changelog at https://github.com/yadifa/yadifa/blob/master/ChangeLog And while here, reformat Makefile according to portfmt and portclippy PR: 252107 Submitted by: Leo Vandewoestijne <freebsd@dns.company> (maintainer) Reviewed by: osa (mentor) Approved by: osa (mentor) Differential Revision: https://reviews.freebsd.org/D27808
2020-12-31 19:04:11 +01:00
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
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c11 cpe libtool ssl
dns/yadifa: update to 2.4.1 * YADIFA 2.4.1-public: - Fixes an issue in dnscore where a DNS TCP query would not return the real DNS error code. - Fixes an issue that could happen when a network model isn't supported. - Fixes the propagation of sendmmsg/recvmmsg function availability detection. - Fixes an issue where yadifad would issue a warning when a key with algorithm > 7 is used with an NSEC zone. - Fixes an issue that will occur on a chrooted environment where a managed-path would be used incorrectly. - Fixes CNAME answers not following the aliases chain. - Fixes CNAME recursion not returning the same answer as named in NXDOMAIN cases (reported by https://github.com/SivaKesava1, see https://github.com/yadifa/yadifa/issues/11) - Adds patch for musl support - Adds stack size fix for musl support (the default size is way too small) - Now imports a custom version of stdatomic.h for systems where it is missing, located in dnscore/thirdpary/stdatomic.h. Made for CentOS 7 and any other release where that file is missing. The import is only active if strictly needed and will only be visible during the build. At the moment, it is not being installed with the other headers. * YAKEYROLLD 2.4.1: - Fixes the handling of incomplete TCP queries. - Fixes a possible race-condition when initialising the keyroll context error codes. - The keyroll now has another automatic recovery layer where it completely restarts the handling of a domain, generating a one-step update to put the zone in the expected state. Full changelog at https://github.com/yadifa/yadifa/blob/master/ChangeLog And while here, reformat Makefile according to portfmt and portclippy PR: 252107 Submitted by: Leo Vandewoestijne <freebsd@dns.company> (maintainer) Reviewed by: osa (mentor) Approved by: osa (mentor) Differential Revision: https://reviews.freebsd.org/D27808
2020-12-31 19:04:11 +01:00
USE_RC_SUBR= ${PORTNAME}d
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var
SUB_LIST+= GROUPS="${GROUPS}" \
USERS="${USERS}"
USERS= yadifa
GROUPS= yadifa
PLIST_SUB= GROUPS="${GROUPS}" \
USERS="${USERS}"
dns/yadifa: update to 2.4.1 * YADIFA 2.4.1-public: - Fixes an issue in dnscore where a DNS TCP query would not return the real DNS error code. - Fixes an issue that could happen when a network model isn't supported. - Fixes the propagation of sendmmsg/recvmmsg function availability detection. - Fixes an issue where yadifad would issue a warning when a key with algorithm > 7 is used with an NSEC zone. - Fixes an issue that will occur on a chrooted environment where a managed-path would be used incorrectly. - Fixes CNAME answers not following the aliases chain. - Fixes CNAME recursion not returning the same answer as named in NXDOMAIN cases (reported by https://github.com/SivaKesava1, see https://github.com/yadifa/yadifa/issues/11) - Adds patch for musl support - Adds stack size fix for musl support (the default size is way too small) - Now imports a custom version of stdatomic.h for systems where it is missing, located in dnscore/thirdpary/stdatomic.h. Made for CentOS 7 and any other release where that file is missing. The import is only active if strictly needed and will only be visible during the build. At the moment, it is not being installed with the other headers. * YAKEYROLLD 2.4.1: - Fixes the handling of incomplete TCP queries. - Fixes a possible race-condition when initialising the keyroll context error codes. - The keyroll now has another automatic recovery layer where it completely restarts the handling of a domain, generating a one-step update to put the zone in the expected state. Full changelog at https://github.com/yadifa/yadifa/blob/master/ChangeLog And while here, reformat Makefile according to portfmt and portclippy PR: 252107 Submitted by: Leo Vandewoestijne <freebsd@dns.company> (maintainer) Reviewed by: osa (mentor) Approved by: osa (mentor) Differential Revision: https://reviews.freebsd.org/D27808
2020-12-31 19:04:11 +01:00
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
dns/yadifa: update to 2.4.1 * YADIFA 2.4.1-public: - Fixes an issue in dnscore where a DNS TCP query would not return the real DNS error code. - Fixes an issue that could happen when a network model isn't supported. - Fixes the propagation of sendmmsg/recvmmsg function availability detection. - Fixes an issue where yadifad would issue a warning when a key with algorithm > 7 is used with an NSEC zone. - Fixes an issue that will occur on a chrooted environment where a managed-path would be used incorrectly. - Fixes CNAME answers not following the aliases chain. - Fixes CNAME recursion not returning the same answer as named in NXDOMAIN cases (reported by https://github.com/SivaKesava1, see https://github.com/yadifa/yadifa/issues/11) - Adds patch for musl support - Adds stack size fix for musl support (the default size is way too small) - Now imports a custom version of stdatomic.h for systems where it is missing, located in dnscore/thirdpary/stdatomic.h. Made for CentOS 7 and any other release where that file is missing. The import is only active if strictly needed and will only be visible during the build. At the moment, it is not being installed with the other headers. * YAKEYROLLD 2.4.1: - Fixes the handling of incomplete TCP queries. - Fixes a possible race-condition when initialising the keyroll context error codes. - The keyroll now has another automatic recovery layer where it completely restarts the handling of a domain, generating a one-step update to put the zone in the expected state. Full changelog at https://github.com/yadifa/yadifa/blob/master/ChangeLog And while here, reformat Makefile according to portfmt and portclippy PR: 252107 Submitted by: Leo Vandewoestijne <freebsd@dns.company> (maintainer) Reviewed by: osa (mentor) Approved by: osa (mentor) Differential Revision: https://reviews.freebsd.org/D27808
2020-12-31 19:04:11 +01:00
ECDSA_CONFIGURE_OFF= --disable-ecdsa
KEYGEN_CONFIGURE_ENABLE= keygen
dns/yadifa: update to 2.4.1 * YADIFA 2.4.1-public: - Fixes an issue in dnscore where a DNS TCP query would not return the real DNS error code. - Fixes an issue that could happen when a network model isn't supported. - Fixes the propagation of sendmmsg/recvmmsg function availability detection. - Fixes an issue where yadifad would issue a warning when a key with algorithm > 7 is used with an NSEC zone. - Fixes an issue that will occur on a chrooted environment where a managed-path would be used incorrectly. - Fixes CNAME answers not following the aliases chain. - Fixes CNAME recursion not returning the same answer as named in NXDOMAIN cases (reported by https://github.com/SivaKesava1, see https://github.com/yadifa/yadifa/issues/11) - Adds patch for musl support - Adds stack size fix for musl support (the default size is way too small) - Now imports a custom version of stdatomic.h for systems where it is missing, located in dnscore/thirdpary/stdatomic.h. Made for CentOS 7 and any other release where that file is missing. The import is only active if strictly needed and will only be visible during the build. At the moment, it is not being installed with the other headers. * YAKEYROLLD 2.4.1: - Fixes the handling of incomplete TCP queries. - Fixes a possible race-condition when initialising the keyroll context error codes. - The keyroll now has another automatic recovery layer where it completely restarts the handling of a domain, generating a one-step update to put the zone in the expected state. Full changelog at https://github.com/yadifa/yadifa/blob/master/ChangeLog And while here, reformat Makefile according to portfmt and portclippy PR: 252107 Submitted by: Leo Vandewoestijne <freebsd@dns.company> (maintainer) Reviewed by: osa (mentor) Approved by: osa (mentor) Differential Revision: https://reviews.freebsd.org/D27808
2020-12-31 19:04:11 +01:00
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
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
dns/yadifa: update to 2.4.1 * YADIFA 2.4.1-public: - Fixes an issue in dnscore where a DNS TCP query would not return the real DNS error code. - Fixes an issue that could happen when a network model isn't supported. - Fixes the propagation of sendmmsg/recvmmsg function availability detection. - Fixes an issue where yadifad would issue a warning when a key with algorithm > 7 is used with an NSEC zone. - Fixes an issue that will occur on a chrooted environment where a managed-path would be used incorrectly. - Fixes CNAME answers not following the aliases chain. - Fixes CNAME recursion not returning the same answer as named in NXDOMAIN cases (reported by https://github.com/SivaKesava1, see https://github.com/yadifa/yadifa/issues/11) - Adds patch for musl support - Adds stack size fix for musl support (the default size is way too small) - Now imports a custom version of stdatomic.h for systems where it is missing, located in dnscore/thirdpary/stdatomic.h. Made for CentOS 7 and any other release where that file is missing. The import is only active if strictly needed and will only be visible during the build. At the moment, it is not being installed with the other headers. * YAKEYROLLD 2.4.1: - Fixes the handling of incomplete TCP queries. - Fixes a possible race-condition when initialising the keyroll context error codes. - The keyroll now has another automatic recovery layer where it completely restarts the handling of a domain, generating a one-step update to put the zone in the expected state. Full changelog at https://github.com/yadifa/yadifa/blob/master/ChangeLog And while here, reformat Makefile according to portfmt and portclippy PR: 252107 Submitted by: Leo Vandewoestijne <freebsd@dns.company> (maintainer) Reviewed by: osa (mentor) Approved by: osa (mentor) Differential Revision: https://reviews.freebsd.org/D27808
2020-12-31 19:04:11 +01:00
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
dns/yadifa: update to 2.4.1 * YADIFA 2.4.1-public: - Fixes an issue in dnscore where a DNS TCP query would not return the real DNS error code. - Fixes an issue that could happen when a network model isn't supported. - Fixes the propagation of sendmmsg/recvmmsg function availability detection. - Fixes an issue where yadifad would issue a warning when a key with algorithm > 7 is used with an NSEC zone. - Fixes an issue that will occur on a chrooted environment where a managed-path would be used incorrectly. - Fixes CNAME answers not following the aliases chain. - Fixes CNAME recursion not returning the same answer as named in NXDOMAIN cases (reported by https://github.com/SivaKesava1, see https://github.com/yadifa/yadifa/issues/11) - Adds patch for musl support - Adds stack size fix for musl support (the default size is way too small) - Now imports a custom version of stdatomic.h for systems where it is missing, located in dnscore/thirdpary/stdatomic.h. Made for CentOS 7 and any other release where that file is missing. The import is only active if strictly needed and will only be visible during the build. At the moment, it is not being installed with the other headers. * YAKEYROLLD 2.4.1: - Fixes the handling of incomplete TCP queries. - Fixes a possible race-condition when initialising the keyroll context error codes. - The keyroll now has another automatic recovery layer where it completely restarts the handling of a domain, generating a one-step update to put the zone in the expected state. Full changelog at https://github.com/yadifa/yadifa/blob/master/ChangeLog And while here, reformat Makefile according to portfmt and portclippy PR: 252107 Submitted by: Leo Vandewoestijne <freebsd@dns.company> (maintainer) Reviewed by: osa (mentor) Approved by: osa (mentor) Differential Revision: https://reviews.freebsd.org/D27808
2020-12-31 19:04:11 +01:00
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>