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

Collapse All | Expand All

(-)Makefile (-38 / +32 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.1
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
USES+=		compiler:c++11-lib
23
USE_OPENSSL=	YES
20
GNU_CONFIGURE=	YES
24
GNU_CONFIGURE=	YES
21
25
22
CPE_VENDOR=	powerdns
26
CPE_VENDOR=	powerdns
23
27
24
OPTIONS_DEFINE=	SETUID LUA STATIC
28
OPTIONS_DEFINE=	SETUID
25
OPTIONS_DEFAULT=	SETUID
29
OPTIONS_DEFAULT=	LUA SETUID
30
OPTIONS_RADIO=	LUA_RG
31
OPTIONS_RADIO_LUA_RG=	LUA LUAJIT
32
LUAJIT_DESC=		Enable LuaJIT
33
LUA_RG_DESC=		Lua Engine
26
SETUID_DESC=		Run as pdns_recursor user
34
SETUID_DESC=		Run as pdns_recursor user
27
STATIC_DESC=		Build static binaries
28
35
29
CXXFLAGS+=	-I${PREFIX}/include
36
CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/pdns
30
LDFLAGS+=	-L${PREFIX}/lib
37
#ETCDIR=		${PREFIX}/etc/pdns
38
#LDFLAGS+=	-L${PREFIX}/lib
31
39
32
SUB_FILES=	pkg-message
40
SUB_FILES=	pkg-message
33
41
34
.include <bsd.port.options.mk>
42
LUA_CONFIGURE_WITH=	lua
43
LUA_USES=		lua
35
44
36
.if ${ARCH} == "sparc64"
45
LUAJIT_CONFIGURE_WITH=	luajit
37
BROKEN=		Does not compile on sparc64
46
LUAJIT_LIB_DEPENDS=	libluajit-5.1.so.2:lang/luajit
38
.endif
39
47
48
SETUID_EXTRA_PATCHES=	${PATCHDIR}/extrapatch-setuid
49
40
USE_RC_SUBR+=	pdns-recursor
50
USE_RC_SUBR+=	pdns-recursor
41
51
52
.include <bsd.port.options.mk>
53
42
.if ${PORT_OPTIONS:MSETUID}
54
.if ${PORT_OPTIONS:MSETUID}
43
EXTRA_PATCHES+=	${PATCHDIR}/extrapatch-setuid
44
USERS=		pdns_recursor
55
USERS=		pdns_recursor
45
GROUPS=		pdns
56
GROUPS=		pdns
46
.endif
57
.endif
47
58
48
.if ${PORT_OPTIONS:MLUA}
59
.include <bsd.port.pre.mk>
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
60
55
.if ${PORT_OPTIONS:MSTATIC}
61
.if ${OSVERSION} < 1000000
56
MAKE_ENV+=STATIC=full
62
BROKEN_i386=	Does not build on FreeBSD < 10.0 i386
63
USE_GCC=	4.9+
64
CXXFLAGS+=	-D_GLIBCXX_USE_C99
65
LDFLAGS+=	-latomic
57
.endif
66
.endif
58
67
59
.if exists(/usr/include/ucontext.h)
68
.include <bsd.port.post.mk>
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>
(-)distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (pdns-recursor-3.7.3.tar.bz2) = 859ca6071147dd2e2ac1b2a5c3d5c2cbff0f5cbc501660db4259e7cbf27fea11
1
TIMESTAMP = 1470038617
2
SIZE (pdns-recursor-3.7.3.tar.bz2) = 245192
2
SHA256 (pdns-recursor-4.0.1.tar.bz2) = 472db541307c8ca83a846d260ecfc854fd8e879c1bb2ce5683a8df5d21e860b0
3
SIZE (pdns-recursor-4.0.1.tar.bz2) = 1035584
(-)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