View | Details | Raw Unified | Return to bug 93336
Collapse All | Expand All

(-)powerdns/Makefile (-21 / +6 lines)
Lines 8-14 Link Here
8
PORTNAME=	powerdns
8
PORTNAME=	powerdns
9
PORTVERSION=	2.9.19
9
PORTVERSION=	2.9.19
10
CATEGORIES=	dns ipv6
10
CATEGORIES=	dns ipv6
11
MASTER_SITES=	http://downloads.powerdns.com/releases/
11
MASTER_SITES=	http://downloads.powerdns.com/releases/ \
12
		http://mirrors.evolva.ro/powerdns.com/releases/
12
DISTNAME=	pdns-${PORTVERSION}
13
DISTNAME=	pdns-${PORTVERSION}
13
14
14
MAINTAINER=	tremere@cainites.net
15
MAINTAINER=	tremere@cainites.net
Lines 18-27 Link Here
18
19
19
USE_GMAKE=	YES
20
USE_GMAKE=	YES
20
USE_SUBMAKE=	YES
21
USE_SUBMAKE=	YES
21
USE_REINPLACE=	YES
22
USE_AUTOTOOLS=	libtool:15
22
USE_AUTOTOOLS=	libtool:15
23
INSTALLS_SHLIB=	YES
23
INSTALLS_SHLIB=	YES
24
CXXFLAGS+=	-I${LOCALBASE}/include 
24
CXXFLAGS+=	-I${LOCALBASE}/include
25
LDFLAGS+=	-L${LOCALBASE}/lib
25
LDFLAGS+=	-L${LOCALBASE}/lib
26
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
26
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
27
CONFIGURE_ARGS+=	--with-modules="${CONFIGURE_MODULES} pipe" \
27
CONFIGURE_ARGS+=	--with-modules="${CONFIGURE_MODULES} pipe" \
Lines 38-55 Link Here
38
38
39
.include <bsd.port.pre.mk>
39
.include <bsd.port.pre.mk>
40
40
41
.if ${OSVERSION} >= 500037
41
USE_RC_SUBR+=	pdns
42
USE_RCORDER=	pdns.sh
43
RC_DIR=		/etc/rc.d
44
RC_SUFX=
45
.else
46
USE_RC_SUBR+=	pdns.sh
47
RC_DIR=		${PREFIX}/etc/rc.d
48
RC_SUFX=	.sh
49
.endif
50
51
PLIST_SUB+=	RC_DIR=${RC_DIR} \
52
		RC_SUFX=${RC_SUFX}
53
42
54
# use user config if possible
43
# use user config if possible
55
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
44
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
Lines 102-112 Link Here
102
.endif
91
.endif
103
92
104
.if defined(POWERDNS_WITH_RECURSOR)
93
.if defined(POWERDNS_WITH_RECURSOR)
105
.if ${OSVERSION} >= 500037
94
USE_RC_SUBR+=	pdns_recursor
106
USE_RCORDER+=	pdns_recursor.sh
107
.else
108
USE_RC_SUBR+=	pdns_recursor.sh
109
.endif
110
CONFIGURE_ARGS+=	--enable-recursor
95
CONFIGURE_ARGS+=	--enable-recursor
111
PLIST_SUB+=		RECURSOR=""
96
PLIST_SUB+=		RECURSOR=""
112
.else
97
.else
Lines 118-124 Link Here
118
UCONTEXT!=	${AWK} '/setcontext/ { print "YES" }' \
103
UCONTEXT!=	${AWK} '/setcontext/ { print "YES" }' \
119
		/usr/include/ucontext.h
104
		/usr/include/ucontext.h
120
.if ${UCONTEXT} == ""
105
.if ${UCONTEXT} == ""
121
BROKEN=		"setcontext for recursor not found or FreeBSD version lower than 5.0"
106
BROKEN=		setcontext for recursor not found or FreeBSD version lower than 5.0
122
.endif
107
.endif
123
.endif
108
.endif
124
.endif
109
.endif
(-)powerdns/Makefile.inc (+1 lines)
Line 0 Link Here
1
WITH_POSTGRESQL_DRIVER=YES
(-)powerdns/files/pdns.in (+35 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/dns/powerdns/files/pdns.in,v 1.2 2005/11/04 10:27:39 kwm Exp $
4
#
5
6
# PROVIDE: pdns_server
7
# REQUIRE: DAEMON
8
# KEYWORD: FreeBSD shutdown
9
10
#
11
# Add the following lines to /etc/rc.conf to enable powerdns:
12
#
13
#pdns_enable="YES"
14
#
15
# See pdns_server(8) for flags.
16
#
17
18
. %%RC_SUBR%%
19
20
name=pdns
21
rcvar=`set_rcvar`
22
23
command=%%PREFIX%%/sbin/pdns_server
24
25
# set defaults
26
27
pdns_enable=${pdns_enable:-"NO"}
28
pdns_conf=${pdns_conf:-"%%PREFIX%%/etc/pdns.conf"}
29
pdns_flags=${pdns_flags:-""}
30
31
load_rc_config ${name}
32
33
required_files=${pdns_conf}
34
35
run_rc_command "$1"
(-)powerdns/files/pdns.sh.in (-35 lines)
Lines 1-35 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/dns/powerdns/files/pdns.sh.in,v 1.2 2005/11/04 10:27:39 kwm Exp $
4
#
5
6
# PROVIDE: pdns_server
7
# REQUIRE: DAEMON
8
# KEYWORD: FreeBSD shutdown
9
10
#
11
# Add the following lines to /etc/rc.conf to enable powerdns:
12
#
13
#pdns_enable="YES"
14
#
15
# See pdns_server(8) for flags.
16
#
17
18
. %%RC_SUBR%%
19
20
name=pdns
21
rcvar=`set_rcvar`
22
23
command=%%PREFIX%%/sbin/pdns_server
24
25
# set defaults
26
27
pdns_enable=${pdns_enable:-"NO"}
28
pdns_conf=${pdns_conf:-"%%PREFIX%%/etc/pdns.conf"}
29
pdns_flags=${pdns_flags:-""}
30
31
load_rc_config ${name}
32
33
required_files=${pdns_conf}
34
35
run_rc_command "$1"
(-)powerdns/files/pdns_recursor.in (+35 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/dns/powerdns/files/pdns_recursor.in,v 1.2 2005/11/04 10:27:39 kwm Exp $
4
#
5
6
# PROVIDE: pdns_recursor
7
# REQUIRE: DAEMON
8
# KEYWORD: FreeBSD shutdown
9
10
#
11
# Add the following lines to /etc/rc.conf to enable pdns_recursor:
12
#
13
#pdns_recursor_enable="YES"
14
#
15
# See http://rtfm.powerdns.com for flags.
16
#
17
18
. %%RC_SUBR%%
19
20
name=pdns_recursor
21
rcvar=`set_rcvar`
22
23
command=%%PREFIX%%/sbin/pdns_recursor
24
25
# set defaults
26
27
pdns_recursor_enable=${pdns_recursor_enable:-"NO"}
28
pdns_recursor_conf=${pdns_recursor_conf:-"%%PREFIX%%/etc/recursor.conf"}
29
pdns_recursor_flags=${pdns_recursor_flags:-""}
30
31
load_rc_config ${name}
32
33
required_files=${pdns_recursor_conf}
34
35
run_rc_command "$1"
(-)powerdns/files/pdns_recursor.sh.in (-35 lines)
Lines 1-35 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/dns/powerdns/files/pdns_recursor.sh.in,v 1.2 2005/11/04 10:27:39 kwm Exp $
4
#
5
6
# PROVIDE: pdns_recursor
7
# REQUIRE: DAEMON
8
# KEYWORD: FreeBSD shutdown
9
10
#
11
# Add the following lines to /etc/rc.conf to enable pdns_recursor:
12
#
13
#pdns_recursor_enable="YES"
14
#
15
# See http://rtfm.powerdns.com for flags.
16
#
17
18
. %%RC_SUBR%%
19
20
name=pdns_recursor
21
rcvar=`set_rcvar`
22
23
command=%%PREFIX%%/sbin/pdns_recursor
24
25
# set defaults
26
27
pdns_recursor_enable=${pdns_recursor_enable:-"NO"}
28
pdns_recursor_conf=${pdns_recursor_conf:-"%%PREFIX%%/etc/recursor.conf"}
29
pdns_recursor_flags=${pdns_recursor_flags:-""}
30
31
load_rc_config ${name}
32
33
required_files=${pdns_recursor_conf}
34
35
run_rc_command "$1"

Return to bug 93336