freebsd-ports/dns/knot/Makefile
Pawel Pekala 2a79e82ed6 Update to version 1.4.3
PR:		ports/186968
Submitted by:	maintainer
2014-02-24 19:36:40 +00:00

55 lines
1.4 KiB
Makefile

# Created by: Leo Vandewoestijne <freebsd@dns-lab.com>
# $FreeBSD$
PORTNAME= knot
DISTVERSION= 1.4.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
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
USE_OPENSSL= yes
WITH_OPENSSL_PORT=yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-storage=/var/db/knot
CONFIGURE_ARGS+=--with-rundir=/var/run/knot
SUB_FILES= pkg-message
USE_RC_SUBR= ${PORTNAME}
INFO= knot
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
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 <bsd.port.mk>