Changeset View
Changeset View
Standalone View
Standalone View
dns/knot2/Makefile
# Created by: Leo Vandewoestijne <freebsd@dns.company> | # Created by: Leo Vandewoestijne <freebsd@dns.company> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= knot | PORTNAME= knot | ||||
DISTVERSION= 2.7.3 | DISTVERSION= 2.7.3 | ||||
PORTREVISION= 1 | PORTREVISION= 1 | ||||
CATEGORIES= dns ipv6 | CATEGORIES= dns ipv6 | ||||
MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \ | MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \ | ||||
https://dns.company/downloads/knot-dns/ | https://dns.company/downloads/knot-dns/ | ||||
PKGNAMESUFFIX= 2 | PKGNAMESUFFIX= 2 | ||||
MAINTAINER= freebsd@dns.company | MAINTAINER= freebsd@dns.company | ||||
COMMENT= High performance authoritative-only DNS server | COMMENT= High performance authoritative-only DNS server | ||||
LICENSE= GPLv3 | LICENSE= GPLv3 | ||||
NOT_FOR_ARCHS= i386 | |||||
NOT_FOR_ARCHS_REASON_i386=Uses 64 bit atomics that clang cannot generate on i386 on FreeBSD >= 11.2 | |||||
LIB_DEPENDS= libgnutls.so:security/gnutls \ | LIB_DEPENDS= libgnutls.so:security/gnutls \ | ||||
libidn2.so:dns/libidn2 \ | libidn2.so:dns/libidn2 \ | ||||
liblmdb.so:databases/lmdb \ | liblmdb.so:databases/lmdb \ | ||||
libnettle.so:security/nettle \ | libnettle.so:security/nettle \ | ||||
liburcu.so:sysutils/liburcu | liburcu.so:sysutils/liburcu | ||||
CONFLICTS= knot-1.* knot1-[0-6].* | CONFLICTS= knot-1.* knot1-[0-6].* | ||||
Show All 28 Lines | |||||
# script, provide it here explicitly as patching those files would result | # script, provide it here explicitly as patching those files would result | ||||
# in higher line count. Ideally this bug should be fixed upstream. | # in higher line count. Ideally this bug should be fixed upstream. | ||||
DNSTAP_CPPFLAGS= -I${LOCALBASE}/include | DNSTAP_CPPFLAGS= -I${LOCALBASE}/include | ||||
FASTPARSER_DESC= Fast zone parser (demanding compilation) | FASTPARSER_DESC= Fast zone parser (demanding compilation) | ||||
FASTPARSER_CONFIGURE_ENABLE= fastparser | FASTPARSER_CONFIGURE_ENABLE= fastparser | ||||
IDN_CONFIGURE_WITH= libidn | IDN_CONFIGURE_WITH= libidn | ||||
IDN_LIB_DEPENDS= libidn.so:dns/libidn | IDN_LIB_DEPENDS= libidn.so:dns/libidn | ||||
.include <bsd.port.options.mk> | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1120000 | |||||
NOT_FOR_ARCHS= i386 | |||||
NOT_FOR_ARCHS_REASON_i386=Uses 64 bit atomics that clang cannot generate on i386 on FreeBSD >= 11.2 | |||||
.endif | |||||
jbeich: DragonFly dropped i386 support eons ago. If conditional is really desired it should be limited… | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} 's|$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|#$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|' \ | @${REINPLACE_CMD} 's|$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|#$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|' \ | ||||
${WRKSRC}/src/Makefile.in | ${WRKSRC}/src/Makefile.in | ||||
@${REINPLACE_CMD} 's|$$(INSTALL) -d $$(DESTDIR)/\@storage_dir\@|#$$(INSTALL) -d $$(DESTDIR)/\@storage_dir\@|' \ | @${REINPLACE_CMD} 's|$$(INSTALL) -d $$(DESTDIR)/\@storage_dir\@|#$$(INSTALL) -d $$(DESTDIR)/\@storage_dir\@|' \ | ||||
${WRKSRC}/src/Makefile.in | ${WRKSRC}/src/Makefile.in | ||||
@${RM} -r ${WRKSRC}/src/zscanner/scanner.c | @${RM} -r ${WRKSRC}/src/zscanner/scanner.c | ||||
post-install: | post-install: | ||||
${MV} ${STAGEDIR}${ETCDIR}/knot.sample.conf \ | ${MV} ${STAGEDIR}${ETCDIR}/knot.sample.conf \ | ||||
${STAGEDIR}${ETCDIR}/knot.conf.sample | ${STAGEDIR}${ETCDIR}/knot.conf.sample | ||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
@${MKDIR} ${STAGEDIR}/var/run/knot ${STAGEDIR}/var/db/knot | @${MKDIR} ${STAGEDIR}/var/run/knot ${STAGEDIR}/var/db/knot | ||||
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ | ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
DragonFly dropped i386 support eons ago. If conditional is really desired it should be limited to ${CHOSEN_COMPILER_TYPE} == clang.