View | Details | Raw Unified | Return to bug 211148 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-40 / +24 lines)
Lines 2-12 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	recursor
4
PORTNAME=	recursor
5
PORTVERSION=	3.7.3
5
PORTVERSION=	4.0.0
6
CATEGORIES=	dns ipv6
6
CATEGORIES=	dns ipv6
7
MASTER_SITES=	http://downloads.powerdns.com/releases/
7
MASTER_SITES=	http://downloads.powerdns.com/releases/
8
PKGNAMEPREFIX=	powerdns-
8
PKGNAMEPREFIX=	powerdns-
9
DISTNAME=	pdns-${PORTNAME}-${PORTVERSION}
9
DISTNAME=	pdns-${PORTNAME}-${PORTVERSION}
10
#DISTNAME=	pdns-${PORTNAME}-${PORTVERSION:C/r([0-9]+)/-rc\1/}
10
11
11
MAINTAINER=	tremere@cainites.net
12
MAINTAINER=	tremere@cainites.net
12
COMMENT=	Advanced DNS recursor
13
COMMENT=	Advanced DNS recursor
Lines 13-74 Link Here
13
14
14
LICENSE=	GPLv2
15
LICENSE=	GPLv2
15
16
16
BUILD_DEPENDS=	bjam:devel/boost-jam \
17
BUILD_DEPENDS=	${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
17
		${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
18
18
19
USES=		cpe gmake tar:bzip2
19
BROKEN_sparc64=	Does not compile on sparc64
20
21
USES=		cpe gmake pkgconfig tar:bzip2
22
USE_OPENSSL=	YES
20
GNU_CONFIGURE=	YES
23
GNU_CONFIGURE=	YES
21
24
22
CPE_VENDOR=	powerdns
25
CPE_VENDOR=	powerdns
23
26
24
OPTIONS_DEFINE=	SETUID LUA STATIC
27
OPTIONS_DEFINE=	SETUID
25
OPTIONS_DEFAULT=	SETUID
28
OPTIONS_DEFAULT=	LUA SETUID
29
OPTIONS_RADIO=	LUA_RG
30
OPTIONS_RADIO_LUA_RG=	LUA LUAJIT
31
LUAJIT_DESC=		Enable LuaJIT
32
LUA_RG_DESC=		Lua Engine
26
SETUID_DESC=		Run as pdns_recursor user
33
SETUID_DESC=		Run as pdns_recursor user
27
STATIC_DESC=		Build static binaries
28
34
29
CXXFLAGS+=	-I${PREFIX}/include
35
CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/pdns
30
LDFLAGS+=	-L${PREFIX}/lib
36
#ETCDIR=		${PREFIX}/etc/pdns
37
#LDFLAGS+=	-L${PREFIX}/lib
31
38
32
SUB_FILES=	pkg-message
39
SUB_FILES=	pkg-message
33
40
34
.include <bsd.port.options.mk>
41
LUA_CONFIGURE_WITH=	lua
42
LUA_USES=		lua
35
43
36
.if ${ARCH} == "sparc64"
44
LUAJIT_CONFIGURE_WITH=	luajit
37
BROKEN=		Does not compile on sparc64
45
LUAJIT_LIB_DEPENDS=	libluajit-5.1.so.2:lang/luajit
38
.endif
39
46
47
SETUID_EXTRA_PATCHES=	${PATCHDIR}/extrapatch-setuid
48
40
USE_RC_SUBR+=	pdns-recursor
49
USE_RC_SUBR+=	pdns-recursor
41
50
51
.include <bsd.port.options.mk>
52
42
.if ${PORT_OPTIONS:MSETUID}
53
.if ${PORT_OPTIONS:MSETUID}
43
EXTRA_PATCHES+=	${PATCHDIR}/extrapatch-setuid
44
USERS=		pdns_recursor
54
USERS=		pdns_recursor
45
GROUPS=		pdns
55
GROUPS=		pdns
46
.endif
56
.endif
47
57
48
.if ${PORT_OPTIONS:MLUA}
49
USES+=		lua
50
MAKE_ENV+=LUA=1
51
MAKE_ENV+="LUA_CPPFLAGS_CONFIG=-I${LUA_INCDIR}"
52
MAKE_ENV+="LUA_LIBS_CONFIG=-L${LUA_LIBDIR} -llua-${LUA_VER}"
53
.endif
54
55
.if ${PORT_OPTIONS:MSTATIC}
56
MAKE_ENV+=STATIC=full
57
.endif
58
59
.if exists(/usr/include/ucontext.h)
60
UCONTEXT!=	${AWK} '/setcontext/ { print "YES" }' \
61
		/usr/include/ucontext.h
62
.if ${UCONTEXT} == ""
63
BROKEN=		requires setcontext()
64
.endif
65
.endif
66
67
post-patch:
68
	@${REINPLACE_CMD} -e 's;SBINDIR=/usr/sbin/;SBINDIR=${PREFIX}/sbin/;' \
69
	   -e 's;BINDIR=/usr/bin/;BINDIR=${PREFIX}/bin/;' \
70
	   -e 's;SYSCONFDIR=/etc/powerdns/;SYSCONFDIR=${PREFIX}/etc/pdns/;' \
71
	   -e 's;/usr/share;${MANPREFIX};' \
72
		${WRKSRC}/Makefile.in
73
74
.include <bsd.port.mk>
58
.include <bsd.port.mk>
(-)distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (pdns-recursor-3.7.3.tar.bz2) = 859ca6071147dd2e2ac1b2a5c3d5c2cbff0f5cbc501660db4259e7cbf27fea11
1
TIMESTAMP = 1468341010
2
SIZE (pdns-recursor-3.7.3.tar.bz2) = 245192
2
SHA256 (pdns-recursor-4.0.0.tar.bz2) = 900a5d5858c9caa825afd9df657dadebcc1842e3068754c19562eeaab8c791fd
3
SIZE (pdns-recursor-4.0.0.tar.bz2) = 1034944
(-)files/pdns-recursor.in (+1 lines)
Lines 23-28 Link Here
23
rcvar=pdns_recursor_enable
23
rcvar=pdns_recursor_enable
24
24
25
command=%%PREFIX%%/sbin/pdns_recursor
25
command=%%PREFIX%%/sbin/pdns_recursor
26
command_args="--daemon=yes"
26
27
27
# set defaults
28
# set defaults
28
29

Return to bug 211148