1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/dns/powerdns-recursor/Makefile
William Grzybowski 0cc51781f2 powerdns-recursor: update to 3.5.3
- Update to 3.5.3 [1]
- USES gmake
- Remove leading article from COMMENT
- Allow staging

PR:		ports/182368 [1]
Submitted by:	Sten Spans <sten blinkenlights.nl> (maintainer) [1]
2013-09-25 13:27:16 +00:00

76 lines
1.8 KiB
Makefile

# Created by: sten@blinkenlights.nl
# $FreeBSD$
PORTNAME= powerdns-recursor
PORTVERSION= 3.5.3
CATEGORIES= dns ipv6
MASTER_SITES= http://downloads.powerdns.com/releases/ \
http://mirrors.evolva.ro/powerdns.com/releases/
DISTNAME= pdns-recursor-${PORTVERSION}
MAINTAINER= sten@blinkenlights.nl
COMMENT= Advanced DNS recursor
BUILD_DEPENDS= bjam:${PORTSDIR}/devel/boost-jam \
${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
USE_BZIP2= yes
USES= gmake
OPTIONS_DEFINE= SETUID LUA STATIC
OPTIONS_DEFAULT= SETUID
SETUID_DESC= Run as pdns_recursor user
STATIC_DESC= Build static binaries
CXXFLAGS+= -I${PREFIX}/include
LDFLAGS+= -L${PREFIX}/lib
SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
USE_RC_SUBR+= pdns-recursor
.if ${PORT_OPTIONS:MSETUID}
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-setuid
USERS= pdns_recursor
GROUPS= pdns
.endif
.if ${PORT_OPTIONS:MLUA}
USE_LUA=5.1
LUA_COMPS=lua
MAKE_ENV+=LUA=1
MAKE_ENV+=LUA_CPPFLAGS_CONFIG=-I${PREFIX}/include/lua51
MAKE_ENV+="LUA_LIBS_CONFIG=-L${PREFIX}/lib/lua51/ -llua"
.endif
.if ${PORT_OPTIONS:MSTATIC}
MAKE_ENV+=STATIC=full
.endif
.if exists(/usr/include/ucontext.h)
UCONTEXT!= ${AWK} '/setcontext/ { print "YES" }' \
/usr/include/ucontext.h
.if ${UCONTEXT} == ""
BROKEN= requires setcontext()
.endif
.endif
post-patch:
@${REINPLACE_CMD} -e 's;SBINDIR=/usr/sbin/;SBINDIR=${PREFIX}/sbin/;' \
-e 's;BINDIR=/usr/bin/;BINDIR=${PREFIX}/bin/;' \
-e 's;CONFIGDIR="/etc/powerdns/";CONFIGDIR=${PREFIX}/etc/pdns/;' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's;"/etc/powerdns/";"${PREFIX}/etc/pdns/";' \
${WRKSRC}/config.h
post-install:
${INSTALL_MAN} ${WRKSRC}/*.8 ${STAGEDIR}${PREFIX}/man/man8/
.include <bsd.port.post.mk>