2012-03-14 22:41:59 +01:00
|
|
|
# New ports collection makefile for: knot
|
|
|
|
# Date created: 29 February 2012
|
|
|
|
# Whom: Leo Vandewoestijne <freebsd@dns-lab.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= knot
|
2012-05-21 22:35:20 +02:00
|
|
|
PORTVERSION= 1.0.5
|
2012-03-14 22:41:59 +01:00
|
|
|
CATEGORIES= dns ipv6
|
|
|
|
MASTER_SITES= http://public.nic.cz/files/knot-dns/ \
|
|
|
|
http://www.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= urcu.1:${PORTSDIR}/sysutils/userspace-rcu
|
|
|
|
|
2012-05-21 22:35:20 +02:00
|
|
|
.if ${CC} == "clang"
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-configure
|
|
|
|
.endif
|
|
|
|
|
2012-03-14 22:41:59 +01:00
|
|
|
CONFIGURE_ARGS= --sysconfdir=${ETCDIR}
|
|
|
|
GNU_CONFIGURE= yes
|
2012-05-21 22:35:20 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2012-03-14 22:41:59 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
USE_RC_SUBR= ${PORTNAME}d
|
|
|
|
|
|
|
|
MAN8= knotc.8 knotd.8
|
|
|
|
|
|
|
|
PORTDOCS= AUTHORS ChangeLog CodingStyle COPYING \
|
|
|
|
INSTALL KNOWN_ISSUES NEWS README RELNOTES
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${ETCDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/samples/knot.min.conf ${ETCDIR}
|
2012-03-17 13:44:20 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/samples/knot.full.conf ${ETCDIR}
|
2012-03-14 22:41:59 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
|
|
|
|
.endif
|
2012-03-17 13:44:20 +01:00
|
|
|
@${CAT} ${WRKDIR}/pkg-message
|
2012-03-14 22:41:59 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|