blob: 915b491aaabed9e1d872aabd6ea8d94223b8ab06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $NetBSD: Makefile,v 1.9 2013/02/19 22:35:15 joerg Exp $
#
DISTNAME= pdns-recursor-3.3
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
LICENSE= gnu-gpl-v2
MAKE_JOBS_SAFE= no
USE_TOOLS= gmake
USE_LANGUAGES= c c++
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
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CXXFLAGS+= -std=c++11
.endif
.include "options.mk"
post-patch:
${SED} -e "s:/etc/powerdns:${PKG_SYSCONFDIR}:" \
${WRKSRC}/config.h >${WRKSRC}/config.h.new
${MV} ${WRKSRC}/config.h.new ${WRKSRC}/config.h
${LN} -s FreeBSD.inc ${WRKSRC}/sysdeps/NetBSD.inc
${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"
|