75057c7660
- Change MAINTAINER to tremere@cainites.net (maintainer approved) - Delete obsolete patches - Strip MASTER_SITES PR: 197590 Submitted by: Ralf van der Enden <tremere@cainites.net>
71 lines
1.6 KiB
Makefile
71 lines
1.6 KiB
Makefile
# Created by: sten@blinkenlights.nl
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= powerdns-recursor
|
|
PORTVERSION= 3.7.1
|
|
CATEGORIES= dns ipv6
|
|
MASTER_SITES= http://downloads.powerdns.com/releases/
|
|
DISTNAME= pdns-recursor-${PORTVERSION}
|
|
|
|
MAINTAINER= tremere@cainites.net
|
|
COMMENT= Advanced DNS recursor
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= bjam:${PORTSDIR}/devel/boost-jam \
|
|
${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
|
|
|
|
USES= gmake tar:bzip2
|
|
GNU_CONFIGURE= YES
|
|
|
|
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.options.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}
|
|
USES+= lua
|
|
MAKE_ENV+=LUA=1
|
|
MAKE_ENV+="LUA_CPPFLAGS_CONFIG=-I${LUA_INCDIR}"
|
|
MAKE_ENV+="LUA_LIBS_CONFIG=-L${LUA_LIBDIR} -llua-${LUA_VER}"
|
|
.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;SYSCONFDIR=/etc/powerdns/;SYSCONFDIR=${PREFIX}/etc/pdns/;' \
|
|
-e 's;/usr/share;${MANPREFIX};' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.include <bsd.port.mk>
|