# Created by: Leo Vandewoestijne # $FreeBSD: head/dns/knot/Makefile 381230 2015-03-13 20:04:21Z pawel $ PORTNAME= knot PORTVERSION= 1.6.3 CATEGORIES= dns ipv6 MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \ http://dns-lab.com/downloads/knot-dns/ MAINTAINER= freebsd@dns-lab.com COMMENT= Knot DNS is a high performance authoritative-only DNS server LICENSE= GPLv3 BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison \ flex>=2.5.35_1:${PORTSDIR}/textproc/flex LIB_DEPENDS= liburcu.so:${PORTSDIR}/sysutils/liburcu USES= alias libtool tar:xz USE_LDCONFIG= yes USE_OPENSSL= yes INSTALL_TARGET= install-strip GNU_CONFIGURE= yes CONFIGURE_ARGS+= --with-storage=/var/db/knot \ --with-rundir=/var/run/knot \ --with-openssl=${OPENSSLBASE} OPTIONS_DEFINE= DNSTAP FASTPARSER GOST IDNA LMDB OPTIONS_DEFAULT= GOST DNSTAP_DESC= dnstap support (see dnstap.info) DNSTAP_CONFIGURE_ENABLE= dnstap DNSTAP_LIB_DEPENDS= libfstrm.so:${PORTSDIR}/devel/fstrm \ libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c FASTPARSER_DESC= Fast zone parser (demanding compilation) FASTPARSER_CONFIGURE_ENABLE= fastparser GOST_DESC= Enable GOST ciphers (requires OpenSSL >= 1.0.0) IDNA_DESC= IDN support in knot utilities IDNA_CONFIGURE_WITH= libidn IDNA_LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn LMDB_DESC= LMDB backend LMDB_CONFIGURE_ENABLE= lmdb LMDB_LIB_DEPENDS= liblmdb.so:${PORTSDIR}/databases/lmdb .include .if ${PORT_OPTIONS:MGOST} . if ${OPENSSL_PORT} == security/libressl IGNORE= the (not impossible) combination of LibreSSL and GOST is not implemented (yet). Either disable GOST or use OpenSSL . endif . if ${OSVERSION} < 1000015 WITH_OPENSSL_PORT= yes . endif .endif SUB_FILES= pkg-message USE_RC_SUBR= ${PORTNAME} PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS USERS= knot GROUPS= knot SUB_LIST+= USERS="${USERS}" GROUPS="${GROUPS}" post-patch: @${REINPLACE_CMD} 's|$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|#$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|' \ ${WRKSRC}/src/Makefile.in @${REINPLACE_CMD} 's|$$(INSTALL) -d $$(DESTDIR)/\@storage_dir\@|#$$(INSTALL) -d $$(DESTDIR)/\@storage_dir\@|' \ ${WRKSRC}/src/Makefile.in @${RM} -rf ${WRKSRC}/src/zscanner/scanner.c post-install: @${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/samples/knot.sample.conf ${STAGEDIR}${ETCDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ .include