ports/105526: New port: dns/powerdns-recursor An advanced DNS recursor

Sten Spans sten at blinkenlights.nl
Tue Nov 14 13:50:14 UTC 2006


>Number:         105526
>Category:       ports
>Synopsis:       New port: dns/powerdns-recursor An advanced DNS recursor
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 14 13:50:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Sten Spans
>Release:        FreeBSD 6.1-RELEASE-p7 i386
>Organization:
>Environment:
System: FreeBSD earth.blinkenlights.nl 6.1-RELEASE-p7 FreeBSD 6.1-RELEASE-p7 #0: Sun Sep 24 14:42:21 CEST 2006 root at earth.blinkenlights.nl:/usr/obj/usr/src/sys/1650 i386


>Description:
powerdns recursor is a high performance,  simple  and  secure recursing
nameserver.  It currently powers over two million internet connections.

License: GPL V2

WWW: http://www.powerdns.com/
>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	powerdns-recursor
#	powerdns-recursor/files
#	powerdns-recursor/files/pdns-recursor.in
#	powerdns-recursor/files/patch-makefile
#	powerdns-recursor/files/patch-manpages
#	powerdns-recursor/files/pkg-message.in
#	powerdns-recursor/Makefile
#	powerdns-recursor/distinfo
#	powerdns-recursor/pkg-descr
#	powerdns-recursor/pkg-plist
#
echo c - powerdns-recursor
mkdir -p powerdns-recursor > /dev/null 2>&1
echo c - powerdns-recursor/files
mkdir -p powerdns-recursor/files > /dev/null 2>&1
echo x - powerdns-recursor/files/pdns-recursor.in
sed 's/^X//' >powerdns-recursor/files/pdns-recursor.in << 'END-of-powerdns-recursor/files/pdns-recursor.in'
X#!/bin/sh
X#
X# $$
X#
X
X# PROVIDE: pdns_recursor
X# REQUIRE: DAEMON
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable pdns_recursor:
X#
X#pdns_recursor_enable="YES"
X#
X# See pdns_recursor(8) for flags.
X#
X
X. %%RC_SUBR%%
X
Xname=pdns_recursor
Xrcvar=`set_rcvar`
X
Xcommand=%%PREFIX%%/sbin/pdns_recursor
X
X# set defaults
X
Xpdns_recursor_enable=${pdns_recursor_enable:-"NO"}
Xpdns_recursor_conf=${pdns_recursor_conf:-"%%PREFIX%%/etc/pdns/recursor.conf"}
Xpdns_recursor_flags=${pdns_recursor_flags:-""}
X
Xload_rc_config ${name}
X
Xrequired_files=${pdns_recursor_conf}
X
Xrun_rc_command "$1"
END-of-powerdns-recursor/files/pdns-recursor.in
echo x - powerdns-recursor/files/patch-makefile
sed 's/^X//' >powerdns-recursor/files/patch-makefile << 'END-of-powerdns-recursor/files/patch-makefile'
X--- Makefile.orig	Tue Nov 14 13:26:24 2006
X+++ Makefile	Tue Nov 14 13:26:51 2006
X@@ -2,7 +2,6 @@
X SBINDIR=/usr/sbin/
X BINDIR=/usr/bin/
X CONFIGDIR="/etc/powerdns/"
X-OPTFLAGS?=-O3
X CXXFLAGS:= $(CXXFLAGS) -Wall $(OPTFLAGS) $(PROFILEFLAGS)
X CFLAGS:=$(CFLAGS) -Wall $(OPTFLAGS) $(PROFILEFLAGS)
X LINKCC=$(CXX)
X@@ -52,16 +52,14 @@
X 	 fi
X 
X install: all
X-	-mkdir -p $(DESTDIR)/$(SBINDIR)
X 	mv pdns_recursor $(DESTDIR)/$(SBINDIR)
X 	strip $(DESTDIR)/$(SBINDIR)/pdns_recursor
X-	mkdir -p $(DESTDIR)/$(BINDIR)
X 	mv rec_control $(DESTDIR)/$(BINDIR)
X 	strip $(DESTDIR)/$(BINDIR)/rec_control
X 	-mkdir -p $(DESTDIR)/$(CONFIGDIR)
X 	$(DESTDIR)/$(SBINDIR)/pdns_recursor --config > $(DESTDIR)/$(CONFIGDIR)/recursor.conf-dist
X-	-mkdir -p $(DESTDIR)/usr/share/man/man1
X-	cp pdns_recursor.1 rec_control.1 $(DESTDIR)/usr/share/man/man1
X+	mv pdns_recursor.1 pdns_recursor.8
X+	mv rec_control.1 rec_control.8
X 	$(OS_SPECIFIC_INSTALL)	
X 
X clean:
END-of-powerdns-recursor/files/patch-makefile
echo x - powerdns-recursor/files/patch-manpages
sed 's/^X//' >powerdns-recursor/files/patch-manpages << 'END-of-powerdns-recursor/files/patch-manpages'
X--- rec_control.1.orig	Tue Nov 14 13:47:26 2006
X+++ rec_control.1	Tue Nov 14 13:47:55 2006
X@@ -17,7 +17,7 @@
X .el .ne 3
X .IP "\\$1" \\$2
X ..
X-.TH "REC_CONTROL" 1 "" "" ""
X+.TH "REC_CONTROL" 8 "" "" ""
X .SH NAME
X rec_control \- control pdns_recursor
X .SH "SYNOPSIS"
X@@ -28,7 +28,7 @@
X .SH "DESCRIPTION"
X 
X 
X-rec_control(1) allows the operator to control a running instance of the pdns_recursor\&.
X+rec_control(8) allows the operator to control a running instance of the pdns_recursor\&.
X 
X 
X The commands that can be passed to the recursor are described on http://doc\&.powerdns\&.com/rec\-control\&.html
X@@ -111,7 +111,7 @@
X .SH "SEE ALSO"
X 
X 
X-pdns_recursor(1)
X+pdns_recursor(8)
X 
X .SH "COPYING"
X 
X--- pdns_recursor.1.orig	Tue Nov 14 13:48:13 2006
X+++ pdns_recursor.1	Tue Nov 14 13:48:44 2006
X@@ -17,7 +17,7 @@
X .el .ne 3
X .IP "\\$1" \\$2
X ..
X-.TH "PDNS_RECURSOR" 1 "" "" ""
X+.TH "PDNS_RECURSOR" 8 "" "" ""
X .SH NAME
X pdns_recursor \- high-performance, simple and secure recursing nameserver
X .SH "SYNOPSIS"
X@@ -28,7 +28,7 @@
X .SH "DESCRIPTION"
X 
X 
X-pdns_recursor(1) is a high performance, simple and secure recursing nameserver\&. It currently powers over two million internet connections\&.
X+pdns_recursor(8) is a high performance, simple and secure recursing nameserver\&. It currently powers over two million internet connections\&.
X 
X 
X The recursor is configured via a configuration file, but each item in that file can be overridden on the command line\&.
X@@ -211,7 +211,7 @@
X .SH "SEE ALSO"
X 
X 
X-rec_control(1)
X+rec_control(8)
X 
X .SH "COPYING"
X 
END-of-powerdns-recursor/files/patch-manpages
echo x - powerdns-recursor/files/pkg-message.in
sed 's/^X//' >powerdns-recursor/files/pkg-message.in << 'END-of-powerdns-recursor/files/pkg-message.in'
X
X*******************************************************************
X If you want to use the powerdns recursor,
X you need the following line in /etc/rc.conf(.local)
X
X    pdns_recursor_enable="YES"
X
X Configuration templates are available in %%PREFIX%%/etc/pdns
X as recursor.conf-dist.
X*******************************************************************
X
END-of-powerdns-recursor/files/pkg-message.in
echo x - powerdns-recursor/Makefile
sed 's/^X//' >powerdns-recursor/Makefile << 'END-of-powerdns-recursor/Makefile'
X# New ports collection makefile for:	powerdns-recursor
X# Date Created:				14.Nov 2006
X# Whom:					sten at blinkenlights.nl
X#
X# $FreeBSD$
X#
X
XPORTNAME=	powerdns-recursor
XPORTVERSION=	3.1.4
XCATEGORIES=	dns ipv6
XMASTER_SITES=	http://downloads.powerdns.com/releases/ \
X		http://mirrors.evolva.ro/powerdns.com/releases/
XDISTNAME=	pdns-recursor-${PORTVERSION}
X
XMAINTAINER=	sten at blinkenlights.nl
XCOMMENT=	An advanced DNS recursor
X
XBUILD_DEPENDS=	bjam:${PORTSDIR}/devel/boost
X
XUSE_BZIP2=	YES
XUSE_GMAKE=	YES
XCXXFLAGS+=	-I${PREFIX}/include
XLDFLAGS+=	-L${PREFIX}/lib
XMAN8=		rec_control.8 pdns_recursor.8
XSUB_FILES=	pkg-message
X
X.include <bsd.port.pre.mk>
X
XUSE_RC_SUBR+=	pdns-recursor
X
X.if exists(/usr/include/ucontext.h) && ${OSVERSION} >= 500000
XUCONTEXT!=	${AWK} '/setcontext/ { print "YES" }' \
X		/usr/include/ucontext.h
X.if ${UCONTEXT} == ""
XBROKEN=		setcontext for recursor not found or FreeBSD version lower than 5.0
X.endif
X.endif
X
Xpost-patch:
X	${REINPLACE_CMD} -e 's;SBINDIR=/usr/sbin/;SBINDIR=${PREFIX}/sbin/;' \
X	   -e 's;BINDIR=/usr/bin/;BINDIR=${PREFIX}/bin/;' \
X	   -e 's;CONFIGDIR="/etc/powerdns/";CONFIGDIR=${PREFIX}/etc/pdns/;' \
X		${WRKSRC}/Makefile
X	${REINPLACE_CMD} -e 's;"/etc/powerdns/";"${PREFIX}/etc/powerdns/";' \
X		${WRKSRC}/config.h
X
Xpost-install:
X.if !exists(${PREFIX}/etc/pdns/recursor.conf)
X	${INSTALL_DATA} ${PREFIX}/etc/pdns/recursor.conf-dist \
X			${PREFIX}/etc/pdns/recursor.conf
X.endif
X.if !defined(WITHOUT_MAN)
X	@${INSTALL_MAN} ${WRKSRC}/*.8 ${PREFIX}/man/man8/
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-powerdns-recursor/Makefile
echo x - powerdns-recursor/distinfo
sed 's/^X//' >powerdns-recursor/distinfo << 'END-of-powerdns-recursor/distinfo'
XMD5 (pdns-recursor-3.1.4.tar.bz2) = 439a10639f53def0ba47c0851e4a2671
XSHA256 (pdns-recursor-3.1.4.tar.bz2) = 9975ec73e311bda4c22f302f18f4ed4fe701d63bce3155f300ccc561d5b0cc39
XSIZE (pdns-recursor-3.1.4.tar.bz2) = 139191
END-of-powerdns-recursor/distinfo
echo x - powerdns-recursor/pkg-descr
sed 's/^X//' >powerdns-recursor/pkg-descr << 'END-of-powerdns-recursor/pkg-descr'
Xpowerdns recursor is a high performance,  simple  and  secure recursing
Xnameserver.  It currently powers over two million internet connections.
X
XLicense: GPL V2
X
XWWW: http://www.powerdns.com/
END-of-powerdns-recursor/pkg-descr
echo x - powerdns-recursor/pkg-plist
sed 's/^X//' >powerdns-recursor/pkg-plist << 'END-of-powerdns-recursor/pkg-plist'
Xbin/rec_control
Xsbin/pdns_recursor
Xetc/pdns/recursor.conf-dist
END-of-powerdns-recursor/pkg-plist
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list