Author: kosmo                        Date: Sat Jan  9 21:23:32 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- Initial version.
- PowerDNS recursor is high performance recursing/non authoritative nameserver.

---- Files affected:
packages/pdns-recursor:
   pdns-recursor.conf (NONE -> 1.1)  (NEW), pdns-recursor.init (NONE -> 1.1)  
(NEW), pdns-recursor.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/pdns-recursor/pdns-recursor.conf
diff -u /dev/null packages/pdns-recursor/pdns-recursor.conf:1.1
--- /dev/null   Sat Jan  9 22:23:32 2010
+++ packages/pdns-recursor/pdns-recursor.conf   Sat Jan  9 22:23:27 2010
@@ -0,0 +1,210 @@
+# Autogenerated configuration file template
+#################################
+# aaaa-additional-processing   turn on to do AAAA additional processing (slow)
+#
+# aaaa-additional-processing=off
+
+#################################
+# allow-from   If set, only allow these comma separated netmasks to recurse
+#
+# allow-from=127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, ::1/128, 
fe80::/10
+
+#################################
+# allow-from-file      If set, load allowed netmasks from this file
+#
+# allow-from-file=
+
+#################################
+# auth-can-lower-ttl   If we follow RFC 2181 to the letter, an authoritative 
server can lower the TTL of NS records
+#
+# auth-can-lower-ttl=off
+
+#################################
+# auth-zones   Zones for which we have authoritative data, comma separated 
domain=file pairs 
+#
+# auth-zones=
+
+#################################
+# chroot       switch to chroot jail
+#
+# chroot=
+
+#################################
+# client-tcp-timeout   Timeout in seconds when talking to TCP clients
+#
+# client-tcp-timeout=2
+
+#################################
+# config-dir   Location of configuration directory (recursor.conf)
+#
+config-dir=/etc/pdns-recursor/
+
+#################################
+# delegation-only      Which domains we only accept delegations from
+#
+# delegation-only=
+
+#################################
+# dont-query   If set, do not query these netmasks for DNS data
+#
+# dont-query=127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, ::1/128, 
fe80::/10
+
+#################################
+# entropy-source       If set, read entropy from this file
+#
+# entropy-source=/dev/urandom
+
+#################################
+# export-etc-hosts     If we should serve up contents from /etc/hosts
+#
+# export-etc-hosts=off
+
+#################################
+# fork If set, fork the daemon for possible double performance
+#
+# fork=no
+
+#################################
+# forward-zones        Zones for which we forward queries, comma separated 
domain=ip pairs
+#
+# forward-zones=
+
+#################################
+# forward-zones-file   File with domain=ip pairs for forwarding
+#
+# forward-zones-file=
+
+#################################
+# hint-file    If set, load root hints from this file
+#
+# hint-file=
+
+#################################
+# ignore-rd-bit        Assume each packet requires recursion, for compatability
+#
+# ignore-rd-bit=off
+
+#################################
+# local-address        IP addresses to listen on, separated by spaces or 
commas. Also accepts ports.
+#
+# local-address=127.0.0.1
+
+#################################
+# local-port   port to listen on
+#
+# local-port=53
+
+#################################
+# log-common-errors    If we should log rather common errors
+#
+# log-common-errors=yes
+
+#################################
+# logging-facility     Facility to log messages as. 0 corresponds to local0
+#
+# logging-facility=
+
+#################################
+# lua-dns-script       Filename containing an optional 'lua' script that will 
be used to modify dns answers
+#
+# lua-dns-script=
+
+#################################
+# max-cache-entries    If set, maximum number of entries in the main cache
+#
+# max-cache-entries=1000000
+
+#################################
+# max-negative-ttl     maximum number of seconds to keep a negative cached 
entry in memory
+#
+# max-negative-ttl=3600
+
+#################################
+# max-tcp-clients      Maximum number of simultaneous TCP clients
+#
+# max-tcp-clients=128
+
+#################################
+# max-tcp-per-client   If set, maximum number of TCP sessions per client (IP 
address)
+#
+# max-tcp-per-client=0
+
+#################################
+# no-shuffle   Don't change
+#
+# no-shuffle=off
+
+#################################
+# query-local-address  Source IP address for sending queries
+#
+# query-local-address=0.0.0.0
+
+#################################
+# query-local-address6 Source IPv6 address for sending queries
+#
+# query-local-address6=
+
+#################################
+# remotes-ringbuffer-entries   maximum number of packets to store statistics 
for
+#
+# remotes-ringbuffer-entries=0
+
+#################################
+# serve-rfc1918        If we should be authoritative for RFC 1918 private IP 
space
+#
+# serve-rfc1918=
+
+#################################
+# server-id    Returned when queried for 'server.id' TXT, defaults to hostname
+#
+# server-id=
+
+#################################
+# setgid       If set, change group id to this gid for more security
+#
+setgid=pdns-recursor
+
+#################################
+# setuid       If set, change user id to this uid for more security
+#
+setuid=djbdns
+
+#################################
+# single-socket        If set, only use a single socket for outgoing queries
+#
+# single-socket=off
+
+#################################
+# soa-minimum-ttl      Don't change
+#
+# soa-minimum-ttl=0
+
+#################################
+# soa-serial-offset    Don't change
+#
+# soa-serial-offset=0
+
+#################################
+# socket-dir   Where the controlsocket will live
+#
+# socket-dir=/var/run/
+
+#################################
+# spoof-nearmiss-max   If non-zero, assume spoofing after this many near misses
+#
+# spoof-nearmiss-max=20
+
+#################################
+# stack-size   stack size per mthread
+#
+# stack-size=200000
+
+#################################
+# trace        if we should output heaps of logging
+#
+# trace=off
+
+#################################
+# version-string       string reported on version.pdns or version.bind
+#
+# version-string=PowerDNS Recursor 3.1.7.2 $Id$

================================================================
Index: packages/pdns-recursor/pdns-recursor.init
diff -u /dev/null packages/pdns-recursor/pdns-recursor.init:1.1
--- /dev/null   Sat Jan  9 22:23:32 2010
+++ packages/pdns-recursor/pdns-recursor.init   Sat Jan  9 22:23:27 2010
@@ -0,0 +1,142 @@
+#!/bin/sh
+# pdns-recursor        This is controller stript for PowerDNS Recursor name 
server.
+#
+# chkconfig:   345 85 15
+#
+# description: pdns-recursor is is a recursing Domain Name Server (DNS) \
+#              that is used to resolve host names to IP addresses.
+
+# Source function library
+. /etc/rc.d/init.d/functions
+
+# Source networking configuration
+. /etc/sysconfig/network
+
+# Check that networking is up.
+if is_yes "${NETWORKING}"; then
+       if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; 
then
+               msg_network_down "PowerDNS Recursor"
+               exit 1
+       fi
+else
+       exit 0
+fi
+
+BINARYPATH=/usr/sbin
+SBINARYPATH=/usr/sbin
+SOCKETPATH=/var/run
+
+doPC() {
+       ret=$(/usr/bin/rec_control $1 $2 2> /dev/null)
+}
+
+doPC ping
+NOTRUNNING=$?
+
+RETVAL=0
+case "$1" in
+  status)
+       status pdns_recursor
+       exit $?
+       ;;
+  stop)
+       if test "$NOTRUNNING" = "0"; then
+               msg_stopping "PowerDNS Recursor"
+               doPC quit 2>&1 >/dev/null
+               [ $? -eq 0 ] && ok || fail
+               rm /var/lock/subsys/pdns_recursor
+       else
+               msg_not_running "PowerDNS Recursor"
+       fi
+       ;;
+  force-stop)
+       run_cmd "Killing PowerDNS Recursor without grace" killall -v -9 
pdns_recursor
+       ;;
+  start)
+       if test "$NOTRUNNING" = "0"; then
+               msg_already_running "PowerDNS Recursor"
+       else
+               msg_starting "PowerDNS Recursor (Powered DNS Recursing server)"
+               daemon /usr/sbin/pdns_recursor --daemon --quiet
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pdns_recursor
+       fi
+       ;;
+  restart)
+       $0 stop
+       run_cmd "PowerDNS Recursor (3 sec. timeout)" sleep 3
+       $0 start
+       exit $?
+       ;;
+  reload|force-reload)
+       if test "$NOTRUNNING" = "0"; then
+               show "Reloading PowerDNS Recursor"
+               doPC cycle 2>&1 >/dev/null
+               if [ $? -eq 0 ]; then
+                       ok
+               else
+                       fail
+                       RETVAL=1
+               fi
+       else
+               msg_not_running "PowerDNS Recursor" >&2
+               exit 7
+       fi
+       ;;
+  monitor)
+       if test "$NOTRUNNING" = "0"; then
+               msg_already_running "PowerDNS Recursor"
+       else
+               show "PowerDNS Recursor in foreground (testing mode)"
+               /usr/sbin/pdns_recursor --daemon=no --quiet=no
+       fi
+       ;;
+  show)
+       if [ $# -lt 2 ]; then
+               msg_usage "$0 {show|mrtg|cricket} <variable_name>"
+               exit 2
+       fi
+       if test "$NOTRUNNING" = "0"; then
+               echo -n "$2="
+               doPC get $2 ; echo $ret
+       else
+               msg_not_running "PowerDNS Recursor"
+       fi
+       ;;
+  mrtg)
+       if [ $# -lt 2 ]; then
+               msg_usage "$0 {show|mrtg|cricket} <variable_name>"
+               exit 2
+       fi
+       if test "$NOTRUNNING" = "0"; then
+               doPC get $2 ; echo $ret
+               if [ "$3x" != "x" ]; then
+                       doPC get $3 ; echo $ret
+               else
+                       echo 0
+               fi
+               doPC get uptime ; echo $ret
+               echo PowerDNS Recursor
+       else
+               msg_not_running "PowerDNS Recursor" >&2
+               exit 7
+       fi
+       ;;
+  cricket)
+       if [ $# -lt 2 ]; then
+               msg_usage "$0 {show|mrtg|cricket} <variable_name>"
+               exit 2
+       fi
+       if test "$NOTRUNNING" = "0"; then
+               doPC get $2 ; echo $ret
+       else
+               msg_not_running "PowerDNS Recursor" >&2
+               exit 7
+       fi
+       ;;
+  *)
+       msg_usage "$0 
{start|stop|restart|reload|force-reload|status|show|mrtg|cricket|monitor} [...]"
+       exit 3
+esac
+
+exit $RETVAL

================================================================
Index: packages/pdns-recursor/pdns-recursor.spec
diff -u /dev/null packages/pdns-recursor/pdns-recursor.spec:1.1
--- /dev/null   Sat Jan  9 22:23:32 2010
+++ packages/pdns-recursor/pdns-recursor.spec   Sat Jan  9 22:23:27 2010
@@ -0,0 +1,108 @@
+# $Revision$, $Date$
+Summary:       Modern, advanced and high performance recursing/non 
authoritative nameserver
+Summary(pl.UTF-8):     Nowoczesny i zaawansowany buforujący serwer DNS o 
wysokiej wudajności
+Name:          pdns-recursor
+Version:       3.1.7.2
+Release:       1
+License:       GPL
+Group:         Networking/Daemons
+Source0:       
http://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2
+# Source0-md5: 5fdba3612e281bf65c6c9f665673dc4e
+Source1:       %{name}.init
+Source2:       %{name}.conf
+URL:           http://www.powerdns.com/
+BuildRequires: boost-devel
+Requires(post):        sed >= 4.0
+Requires(post,preun):  /sbin/chkconfig
+Requires(post,preun):  /sbin/chkconfig
+Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Requires:      rc-scripts
+Provides:      group(djbdns)
+Provides:      nameserver
+Provides:      user(pdns-recursor)
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PowerDNS Recursor is a high performance non authoritative/recursing
+DNS server.
+
+%description -l pl.UTF-8
+PowerDNS Recursor jest wysokowydajnym buforującym serwerem DNS.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+       BINDIR="%{_bindir}" \
+       SBINDIR="%{_sbindir}" \
+       CONFIGDIR="%{_sysconfdir}/%{name}" \
+       CC="%{__cc}" \
+       CXX="%{__cxx}" \
+       OPTFLAGS="%{rpmcxxflags}" \
+       LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       BINDIR="%{_bindir}" \
+       SBINDIR="%{_sbindir}" \
+       CONFIGDIR="%{_sysconfdir}/%{name}" \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/init.d
+
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/recursor.conf-dist
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/recursor.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%pre
+%groupadd -g 32 djbdns
+%useradd -u 68 -d /usr/share/empty -s /bin/false -c "PowerDNS Resolver User" 
-g djbdns pdns-recursor
+
+%post
+/sbin/chkconfig --add pdns-recursor
+%service pdns-recursor restart
+
+%preun
+if [ "$1" = "0" ]; then
+       %service pdns-recursor stop
+       /sbin/chkconfig --del pdns-recursor
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+       %userremove pdns-recursor
+       %groupremove djbdns
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%dir %{_sysconfdir}/%{name}
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/%{name}/recursor.conf
+%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/01/09 21:23:27  kosmo
+- Initial version.
+- PowerDNS recursor is high performance recursing/non authoritative nameserver.
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to