2010-01-29 14:26:45 +01:00
|
|
|
# $NetBSD: Makefile,v 1.6 2010/01/29 13:26:45 roy Exp $
|
2009-04-21 16:16:47 +02:00
|
|
|
#
|
|
|
|
|
2010-01-29 14:26:45 +01:00
|
|
|
DISTNAME= pdns-recursor-3.1.7.2
|
2009-04-21 16:16:47 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://downloads.powerdns.com/releases/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MAINTAINER= roy@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.powerdns.com/
|
|
|
|
COMMENT= PowerDNS resolver/recursing nameserver
|
2009-05-19 10:59:00 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2009-04-21 16:16:47 +02:00
|
|
|
|
2009-06-30 02:07:09 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2009-04-21 16:16:47 +02:00
|
|
|
USE_TOOLS= gmake
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
RCD_SCRIPTS+= pdns_recursor
|
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/pdns-recursor
|
|
|
|
|
|
|
|
BUILD_MAKE_FLAGS+= CONFIGDIR=${PKG_SYSCONFDIR} OPTFLAGS=
|
|
|
|
|
|
|
|
INSTALL_MAKE_FLAGS+= BINDIR=${PREFIX}/bin SBINDIR=${PREFIX}/sbin
|
|
|
|
INSTALL_MAKE_FLAGS+= CONFIGDIR=${EGDIR} MANDIR=${PREFIX}/${PKGMANDIR}
|
|
|
|
|
|
|
|
CONF_FILES+= ${EGDIR}/recursor.conf-dist \
|
|
|
|
${PKG_SYSCONFDIR}/recursor.conf
|
|
|
|
|
2009-12-23 14:00:41 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.include "options.mk"
|
|
|
|
|
2009-04-21 16:16:47 +02:00
|
|
|
post-patch:
|
|
|
|
${SED} -e "s:/etc/powerdns:${PKG_SYSCONFDIR}:" \
|
|
|
|
${WRKSRC}/config.h >${WRKSRC}/config.h.new
|
|
|
|
${MV} ${WRKSRC}/config.h.new ${WRKSRC}/config.h
|
2009-04-22 00:52:37 +02:00
|
|
|
${LN} -s FreeBSD.inc ${WRKSRC}/sysdeps/NetBSD.inc
|
2009-04-21 16:16:47 +02:00
|
|
|
${MV} ${WRKSRC}/pdns_recursor.1 ${WRKSRC}/pdns_recursor.8
|
|
|
|
${MV} ${WRKSRC}/rec_control.1 ${WRKSRC}/rec_control.8
|
|
|
|
|
|
|
|
.include "../../devel/boost-headers/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|