aboutsummaryrefslogtreecommitdiffstats
path: root/dns/powerdns/Makefile
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-07-18 20:59:51 +0800
committerpav <pav@FreeBSD.org>2005-07-18 20:59:51 +0800
commitb589802b82edfdc2472922886dcc4269e3953324 (patch)
treec51326c95b9783ce79a3d0cfa9b3e8ee5d6de5eb /dns/powerdns/Makefile
parent5ba339a69b022e7934a708c3a013addb11f9d1b8 (diff)
downloadfreebsd-ports-gnome-b589802b82edfdc2472922886dcc4269e3953324.tar.gz
freebsd-ports-gnome-b589802b82edfdc2472922886dcc4269e3953324.tar.zst
freebsd-ports-gnome-b589802b82edfdc2472922886dcc4269e3953324.zip
- Update to 2.9.18
PR: ports/83605 Submitted by: Ralf van der Enden <tremere@cainites.net> (maintainer)
Diffstat (limited to 'dns/powerdns/Makefile')
-rw-r--r--dns/powerdns/Makefile43
1 files changed, 28 insertions, 15 deletions
diff --git a/dns/powerdns/Makefile b/dns/powerdns/Makefile
index b07dff8d1f2f..b98468facf87 100644
--- a/dns/powerdns/Makefile
+++ b/dns/powerdns/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= powerdns
-PORTVERSION= 2.9.17
+PORTVERSION= 2.9.18
CATEGORIES= dns ipv6
MASTER_SITES= http://downloads.powerdns.com/releases/
DISTNAME= pdns-${PORTVERSION}
@@ -14,10 +14,13 @@ DISTNAME= pdns-${PORTVERSION}
MAINTAINER= tremere@cainites.net
COMMENT= An advanced DNS server with SQL backend
+LIB_DEPENDS= boost_regex.2:${PORTSDIR}/devel/boost
+
USE_GMAKE= YES
USE_SUBMAKE= YES
USE_REINPLACE= YES
GNU_CONFIGURE= YES
+CXXFLAGS+= -I${PREFIX}/include
CONFIGURE_ARGS+= --with-modules="${CONFIGURE_MODULES} pipe" \
--with-dynmodules=""
# --enable-debug
@@ -27,11 +30,24 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
DISTNAME="${DISTNAME}" \
POWERDNS_OPTIONS="${POWERDNS_OPTIONS}"
MAN8= pdns_control.8 pdns_server.8 zone2sql.8
-STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/pdns.sh.sample
-LIBMAP_CONF= /etc/libmap.conf
+
+SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
+.if ${OSVERSION} >= 500037
+USE_RCORDER= pdns.sh
+RC_DIR= /etc/rc.d
+RC_SUFX=
+.else
+USE_RC_SUBR+= pdns.sh
+RC_DIR= ${PREFIX}/etc/rc.d
+RC_SUFX= .sh
+.endif
+
+PLIST_SUB+= RC_DIR=${RC_DIR} \
+ RC_SUFX=${RC_SUFX}
+
# use user config if possible
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
@@ -72,7 +88,7 @@ PLIST_SUB+= WITHLDAP="@comment "
.endif
.if defined(WITH_SQLITE)
-LIB_DEPENDS= sqlite.2:${PORTSDIR}/databases/sqlite2
+LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2
CONFIGURE_ARGS+= --enable-sqlite
CONFIGURE_MODULES+= "gsqlite"
.else
@@ -80,6 +96,11 @@ CONFIGURE_ARGS+= --disable-sqlite
.endif
.if defined(POWERDNS_WITH_RECURSOR)
+.if ${OSVERSION} >= 500037
+USE_RCORDER+= pdns_recursor.sh
+.else
+USE_RC_SUBR+= pdns_recursor.sh
+.endif
CONFIGURE_ARGS+= --enable-recursor
PLIST_SUB+= RECURSOR=""
.else
@@ -91,15 +112,13 @@ PLIST_SUB+= RECURSOR="@comment "
UCONTEXT!= ${AWK} '/setcontext/ { print "YES" }' \
/usr/include/ucontext.h
.if ${UCONTEXT} == ""
-BROKEN= setcontext for recursor not found or FreeBSD version lower than 5.0
+BROKEN= "setcontext for recursor not found or FreeBSD version lower than 5.0"
.endif
.endif
.endif
-.if defined(POWERDNS_WITH_RECURSOR) || defined(WITH_LDAP)
.if ${OSVERSION} < 500039
-USE_GCC=3.2
-.endif
+USE_GCC=3.4
.endif
.if defined(NO_DESCRIBE)
@@ -136,12 +155,6 @@ post-install:
${INSTALL_DATA} ${FILESDIR}/$i ${EXAMPLESDIR}/
.endfor
.endif
-.if !exists(${STARTUP_SCRIPT})
- @${ECHO_MSG} "Installing ${STARTUP_SCRIPT} startup file."
- ${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
- ${FILESDIR}/pdns.sh.sample \
- > ${WRKSRC}/pdns.sh.sample
- ${INSTALL_SCRIPT} ${WRKSRC}/pdns.sh.sample ${STARTUP_SCRIPT}
-.endif
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>