From owner-svn-ports-head@freebsd.org Mon Aug 15 01:39:34 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CA675BB8695; Mon, 15 Aug 2016 01:39:34 +0000 (UTC) (envelope-from junovitch@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A84D51F21; Mon, 15 Aug 2016 01:39:34 +0000 (UTC) (envelope-from junovitch@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u7F1dXEn092122; Mon, 15 Aug 2016 01:39:33 GMT (envelope-from junovitch@FreeBSD.org) Received: (from junovitch@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u7F1dXrI092119; Mon, 15 Aug 2016 01:39:33 GMT (envelope-from junovitch@FreeBSD.org) Message-Id: <201608150139.u7F1dXrI092119@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: junovitch set sender to junovitch@FreeBSD.org using -f From: Jason Unovitch Date: Mon, 15 Aug 2016 01:39:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r420209 - in head/dns/powerdns-recursor: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2016 01:39:34 -0000 Author: junovitch Date: Mon Aug 15 01:39:33 2016 New Revision: 420209 URL: https://svnweb.freebsd.org/changeset/ports/420209 Log: dns/powerdns-recursor: update 3.7.3 -> 4.0.1 - Mark BROKEN on FreeBSD 9 - Remove STATIC option, add LUAJIT option - Cleanup LUA option, SETUID, and BROKEN_sparc64 usage; use option helpers Changes: https://doc.powerdns.com/md/changelog/#powerdns-recursor-400 https://doc.powerdns.com/md/changelog/#powerdns-recursor-401 PR: 211148 Submitted by: Ralf van der Enden (maintainer) Security: CVE-2016-6172 Security: https://vuxml.FreeBSD.org/freebsd/7d08e608-5e95-11e6-b334-002590263bf5.html Modified: head/dns/powerdns-recursor/Makefile head/dns/powerdns-recursor/distinfo head/dns/powerdns-recursor/files/pdns-recursor.in Modified: head/dns/powerdns-recursor/Makefile ============================================================================== --- head/dns/powerdns-recursor/Makefile Mon Aug 15 01:39:15 2016 (r420208) +++ head/dns/powerdns-recursor/Makefile Mon Aug 15 01:39:33 2016 (r420209) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= recursor -PORTVERSION= 3.7.3 +PORTVERSION= 4.0.1 CATEGORIES= dns ipv6 MASTER_SITES= http://downloads.powerdns.com/releases/ PKGNAMEPREFIX= powerdns- @@ -13,62 +13,43 @@ COMMENT= Advanced DNS recursor LICENSE= GPLv2 -BUILD_DEPENDS= bjam:devel/boost-jam \ - ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs +BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs -USES= cpe gmake tar:bzip2 +BROKEN_sparc64= Does not compile on sparc64 +BROKEN_FreeBSD_9= linker error + +USES= compiler:c++11-lib cpe gmake pkgconfig ssl tar:bzip2 GNU_CONFIGURE= YES CPE_VENDOR= powerdns -OPTIONS_DEFINE= SETUID LUA STATIC -OPTIONS_DEFAULT= SETUID +OPTIONS_DEFINE= SETUID +OPTIONS_DEFAULT= LUA SETUID +OPTIONS_RADIO= LUA_RG +OPTIONS_RADIO_LUA_RG= LUA LUAJIT +LUAJIT_DESC= Enable LuaJIT +LUA_RG_DESC= Lua Engine SETUID_DESC= Run as pdns_recursor user -STATIC_DESC= Build static binaries -CXXFLAGS+= -I${PREFIX}/include -LDFLAGS+= -L${PREFIX}/lib +CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/pdns SUB_FILES= pkg-message -.include +LUA_CONFIGURE_WITH= lua +LUA_USES= lua -.if ${ARCH} == "sparc64" -BROKEN= Does not compile on sparc64 -.endif +LUAJIT_CONFIGURE_WITH= luajit +LUAJIT_LIB_DEPENDS= libluajit-5.1.so.2:lang/luajit + +SETUID_EXTRA_PATCHES= ${PATCHDIR}/extrapatch-setuid USE_RC_SUBR+= pdns-recursor +.include + .if ${PORT_OPTIONS:MSETUID} -EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-setuid USERS= pdns_recursor GROUPS= pdns .endif -.if ${PORT_OPTIONS:MLUA} -USES+= lua -MAKE_ENV+=LUA=1 -MAKE_ENV+="LUA_CPPFLAGS_CONFIG=-I${LUA_INCDIR}" -MAKE_ENV+="LUA_LIBS_CONFIG=-L${LUA_LIBDIR} -llua-${LUA_VER}" -.endif - -.if ${PORT_OPTIONS:MSTATIC} -MAKE_ENV+=STATIC=full -.endif - -.if exists(/usr/include/ucontext.h) -UCONTEXT!= ${AWK} '/setcontext/ { print "YES" }' \ - /usr/include/ucontext.h -.if ${UCONTEXT} == "" -BROKEN= requires setcontext() -.endif -.endif - -post-patch: - @${REINPLACE_CMD} -e 's;SBINDIR=/usr/sbin/;SBINDIR=${PREFIX}/sbin/;' \ - -e 's;BINDIR=/usr/bin/;BINDIR=${PREFIX}/bin/;' \ - -e 's;SYSCONFDIR=/etc/powerdns/;SYSCONFDIR=${PREFIX}/etc/pdns/;' \ - -e 's;/usr/share;${MANPREFIX};' \ - ${WRKSRC}/Makefile.in - .include Modified: head/dns/powerdns-recursor/distinfo ============================================================================== --- head/dns/powerdns-recursor/distinfo Mon Aug 15 01:39:15 2016 (r420208) +++ head/dns/powerdns-recursor/distinfo Mon Aug 15 01:39:33 2016 (r420209) @@ -1,2 +1,3 @@ -SHA256 (pdns-recursor-3.7.3.tar.bz2) = 859ca6071147dd2e2ac1b2a5c3d5c2cbff0f5cbc501660db4259e7cbf27fea11 -SIZE (pdns-recursor-3.7.3.tar.bz2) = 245192 +TIMESTAMP = 1470038617 +SHA256 (pdns-recursor-4.0.1.tar.bz2) = 472db541307c8ca83a846d260ecfc854fd8e879c1bb2ce5683a8df5d21e860b0 +SIZE (pdns-recursor-4.0.1.tar.bz2) = 1035584 Modified: head/dns/powerdns-recursor/files/pdns-recursor.in ============================================================================== --- head/dns/powerdns-recursor/files/pdns-recursor.in Mon Aug 15 01:39:15 2016 (r420208) +++ head/dns/powerdns-recursor/files/pdns-recursor.in Mon Aug 15 01:39:33 2016 (r420209) @@ -23,6 +23,7 @@ name=pdns_recursor rcvar=pdns_recursor_enable command=%%PREFIX%%/sbin/pdns_recursor +command_args="--daemon=yes" # set defaults