2012-12-18 13:36:46 +01:00
|
|
|
# Created by: Leo Vandewoestijne <freebsd@dns-lab.com>
|
2012-03-14 22:41:59 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= knot
|
2016-08-10 03:37:40 +02:00
|
|
|
PORTVERSION= 1.6.8
|
2017-08-22 14:56:03 +02:00
|
|
|
PORTREVISION= 3
|
2012-03-14 22:41:59 +01:00
|
|
|
CATEGORIES= dns ipv6
|
2012-12-18 01:13:03 +01:00
|
|
|
MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \
|
2013-10-01 18:02:12 +02:00
|
|
|
http://dns-lab.com/downloads/knot-dns/
|
2015-08-07 10:09:28 +02:00
|
|
|
PKGNAMESUFFIX= 1
|
2012-03-14 22:41:59 +01:00
|
|
|
|
|
|
|
MAINTAINER= freebsd@dns-lab.com
|
2015-04-13 19:43:12 +02:00
|
|
|
COMMENT= High performance authoritative-only DNS server
|
2012-03-14 22:41:59 +01:00
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS= flex>=2.5.35_1:textproc/flex
|
|
|
|
LIB_DEPENDS= liburcu.so:sysutils/liburcu
|
2012-03-14 22:41:59 +01:00
|
|
|
|
2015-08-07 10:09:28 +02:00
|
|
|
CONFLICTS= knot-2.* knot2-.*
|
2015-05-18 13:21:06 +02:00
|
|
|
|
2017-02-05 22:20:24 +01:00
|
|
|
USES= alias bison libtool pkgconfig ssl tar:xz
|
2015-04-13 19:43:12 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-storage=/var/db/knot \
|
|
|
|
--with-rundir=/var/run/knot \
|
2017-08-22 14:56:03 +02:00
|
|
|
--with-openssl=${OPENSSLBASE} \
|
|
|
|
--enable-recvmmsg=no
|
|
|
|
|
2013-06-13 18:15:29 +02:00
|
|
|
USE_LDCONFIG= yes
|
2014-02-13 14:26:03 +01:00
|
|
|
|
2014-08-20 16:38:02 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
|
2015-04-13 19:43:12 +02:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
USERS= knot
|
|
|
|
GROUPS= knot
|
|
|
|
SUB_LIST+= USERS="${USERS}" GROUPS="${GROUPS}"
|
2012-06-18 01:59:05 +02:00
|
|
|
|
2015-04-13 19:43:12 +02:00
|
|
|
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS
|
2014-02-13 14:26:03 +01:00
|
|
|
|
2015-06-25 11:46:00 +02:00
|
|
|
OPTIONS_DEFINE= DNSTAP IDN LMDB
|
2014-06-01 05:32:02 +02:00
|
|
|
|
2015-04-13 19:43:12 +02:00
|
|
|
DNSTAP_DESC= dnstap support (see dnstap.info)
|
|
|
|
LMDB_DESC= Enable LMDB backend
|
2014-06-01 05:32:02 +02:00
|
|
|
|
2015-04-13 19:43:12 +02:00
|
|
|
DNSTAP_CONFIGURE_ENABLE= dnstap
|
2016-04-01 16:00:51 +02:00
|
|
|
DNSTAP_LIB_DEPENDS= libfstrm.so:devel/fstrm \
|
|
|
|
libprotobuf-c.so:devel/protobuf-c
|
2014-06-01 05:32:02 +02:00
|
|
|
|
2015-04-13 19:43:12 +02:00
|
|
|
IDN_CONFIGURE_WITH= libidn
|
2016-04-01 16:00:51 +02:00
|
|
|
IDN_LIB_DEPENDS= libidn.so:dns/libidn
|
2012-03-14 22:41:59 +01:00
|
|
|
|
2015-04-13 19:43:12 +02:00
|
|
|
LMDB_CONFIGURE_ENABLE= lmdb
|
2016-04-01 16:00:51 +02:00
|
|
|
LMDB_LIB_DEPENDS= liblmdb.so:databases/lmdb
|
2013-06-13 18:15:29 +02:00
|
|
|
|
2014-02-13 14:26:03 +01:00
|
|
|
post-patch:
|
2014-06-01 05:32:02 +02:00
|
|
|
@${REINPLACE_CMD} 's|$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|#$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|' \
|
2014-02-13 14:26:03 +01:00
|
|
|
${WRKSRC}/src/Makefile.in
|
2014-06-01 05:32:02 +02:00
|
|
|
@${REINPLACE_CMD} 's|$$(INSTALL) -d $$(DESTDIR)/\@storage_dir\@|#$$(INSTALL) -d $$(DESTDIR)/\@storage_dir\@|' \
|
2014-02-13 14:26:03 +01:00
|
|
|
${WRKSRC}/src/Makefile.in
|
2016-10-21 14:51:40 +02:00
|
|
|
@${RM} -r ${WRKSRC}/src/zscanner/scanner.c
|
2012-03-14 22:41:59 +01:00
|
|
|
|
|
|
|
post-install:
|
2015-04-13 19:43:12 +02:00
|
|
|
${MV} ${STAGEDIR}${ETCDIR}/knot.sample.conf \
|
|
|
|
${STAGEDIR}${ETCDIR}/knot.conf.sample
|
2014-06-01 05:32:02 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-10-01 18:02:12 +02:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
|
2012-03-14 22:41:59 +01:00
|
|
|
|
2013-06-13 18:15:29 +02:00
|
|
|
.include <bsd.port.mk>
|