diff --git a/community/pdns/PKGBUILD b/community/pdns/PKGBUILD index 595014917..1da80f816 100644 --- a/community/pdns/PKGBUILD +++ b/community/pdns/PKGBUILD @@ -8,7 +8,7 @@ pkgname=pdns pkgver=3.2 -pkgrel=5 +pkgrel=6 pkgdesc='Modern, advanced and high performance authoritative-only nameserver' arch=('x86_64' 'i686') url='http://www.powerdns.com/' @@ -23,18 +23,21 @@ options=('!makeflags' '!libtool') backup=('etc/powerdns/pdns.conf') source=("http://downloads.powerdns.com/releases/$pkgname-$pkgver.tar.gz" 'pdns.service' - 'pdns.rc' 'pdns.conf') sha256sums=('d1895aba065446dc68e5d7cc792d5303626c71759f61a455531ed65d59c06572' '2a60c4407bcfe19026ae77d3e3b7b477d5a0c6323c0bc78892e9d907003b442a' - '0457ffa2baa40518a03393e4f76964d9452c16aebbcb925582814f88367d62c2' - '91c8889f41fe9d6bc9478c3ad53a10f6725e36e10f05e8e9257f9d35c9e2bab6') + 'a1afcccb0d2fb6a6f7a5960de95f8d38ce1ac75ac5e3dcecf09e49f0de10166e') -build() { +prepare() { cd "$srcdir/$pkgname-$pkgver" CFLAGS=`echo $CFLAGS | sed -e 's/-O2/-O1/'` && CXXFLAGS="$CFLAGS" touch AUTHORS NEWS +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure \ --prefix=/usr \ --sysconfdir=/etc/powerdns \ @@ -52,9 +55,7 @@ package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install - install -m755 -d "$pkgdir/etc/rc.d" install -m644 "$srcdir/pdns.conf" "$pkgdir/etc/powerdns/" - install -m755 "$srcdir/pdns.rc" "$pkgdir/etc/rc.d/pdns" install -Dm644 "$srcdir/pdns.service" \ "$pkgdir/usr/lib/systemd/system/pdns.service" rm "$pkgdir/etc/powerdns/pdns.conf-dist" diff --git a/community/pdns/pdns.conf b/community/pdns/pdns.conf index fba6617a6..e71d7155c 100644 --- a/community/pdns/pdns.conf +++ b/community/pdns/pdns.conf @@ -1,19 +1,14 @@ # Autogenerated configuration file template ################################# -# allow-axfr-ips If disabled, DO allow zonetransfers from these IP addresses +# allow-axfr-ips Allow zonetransfers only to these subnets # -# allow-axfr-ips= +# allow-axfr-ips=0.0.0.0/0,::/0 ################################# -# allow-recursion List of netmasks that are allowed to recurse +# allow-recursion List of subnets that are allowed to recurse # allow-recursion=127.0.0.1 -################################# -# allow-recursion-override Local data overrrides hosts on the internet -# -allow-recursion-override=yes - ################################# # cache-ttl Seconds to store packets in the PacketCache # @@ -49,6 +44,11 @@ daemon=yes # # default-soa-name=a.misconfigured.powerdns.server +################################# +# default-ttl Seconds a result is valid if not set otherwise +# +# default-ttl=3600 + ################################# # disable-axfr Disable zonetransfers but do allow TCP queries # @@ -64,6 +64,41 @@ daemon=yes # distributor-threads=3 +################################# +# do-ipv6-additional-processing Do AAAA additional processing +# +# do-ipv6-additional-processing=yes + +################################# +# edns-subnet-option-number EDNS option number to use +# +# edns-subnet-option-number=20730 + +################################# +# edns-subnet-processing If we should act on EDNS Subnet options +# +# edns-subnet-processing=no + +################################# +# entropy-source If set, read entropy from this file +# +# entropy-source=/dev/urandom + +################################# +# experimental-direct-dnskey EXPERIMENTAL: fetch DNSKEY RRs from backend during DNSKEY synthesis +# +# experimental-direct-dnskey=no + +################################# +# experimental-json-interface If the webserver should serve JSON data +# +# experimental-json-interface=no + +################################# +# experimental-logfile Filename of the log file for JSON parser +# +# experimental-logfile=/var/log/pdns.log + ################################# # fancy-records Process URL and MBOXFW records # @@ -77,12 +112,7 @@ guardian=yes ################################# # launch Which backends to launch and order to query them in # -#launch= - -################################# -# lazy-recursion Only recurse if question cannot be answered locally -# -lazy-recursion=yes +# launch= ################################# # load-modules Load this module - supply absolute or relative path @@ -90,7 +120,7 @@ lazy-recursion=yes # load-modules= ################################# -# local-address Local IP address to which we bind +# local-address Local IP addresses to which we bind # local-address=127.0.0.1 @@ -105,19 +135,19 @@ local-address=127.0.0.1 local-port=53 ################################# -# log-dns-details If PDNS should log failed update requests +# log-dns-details If PDNS should log DNS non-erroneous details # -#log-dns-details=off +# log-dns-details= + +################################# +# log-dns-queries If PDNS should log all incoming DNS queries +# +# log-dns-queries=no ################################# # log-failed-updates If PDNS should log failed update requests # -#log-failed-updates=off - -################################# -# logfile Logfile to use -# -# logfile=pdns.log +# log-failed-updates= ################################# # logging-facility Log under a specific facility @@ -129,11 +159,26 @@ local-port=53 # loglevel=3 +################################# +# lua-prequery-script Lua script with prequery handler +# +# lua-prequery-script= + ################################# # master Act as a master # # master=no +################################# +# max-cache-entries Maximum number of cache entries +# +# max-cache-entries=1000000 + +################################# +# max-ent-entries Maximum number of empty non-terminals in a zone +# +# max-ent-entries=100000 + ################################# # max-queue-length Maximum queuelength before considering situation lost # @@ -150,25 +195,45 @@ loglevel=3 module-dir=/usr/lib/powerdns ################################# -# negquery-cache-ttl Seconds to store packets in the PacketCache +# negquery-cache-ttl Seconds to store negative query results in the QueryCache # negquery-cache-ttl=60 ################################# -# only-soa Make sure that no SOA serial is less than this number +# no-shuffle Set this to prevent random shuffling of answers - for regression testing # -# only-soa=org +# no-shuffle=off ################################# # out-of-zone-additional-processing Do out of zone additional processing # -# out-of-zone-additional-processing=no +# out-of-zone-additional-processing=yes ################################# -# query-cache-ttl Seconds to store packets in the PacketCache +# overload-queue-length Maximum queuelength moving to packetcache only +# +# overload-queue-length=0 + +################################# +# pipebackend-abi-version Version of the pipe backend ABI +# +# pipebackend-abi-version=1 + +################################# +# query-cache-ttl Seconds to store query results in the QueryCache # # query-cache-ttl=20 +################################# +# 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=:: + ################################# # query-logging Hint backends that queries should be logged # @@ -180,19 +245,34 @@ negquery-cache-ttl=60 # queue-limit=1500 ################################# -# receiver-threads Number of receiver threads to launch +# receiver-threads Default number of Distributor (backend) threads to start # # receiver-threads=1 ################################# -# recursive-cache-ttl Seconds to store packets in the PacketCache +# recursive-cache-ttl Seconds to store packets for recursive queries in the PacketCache # # recursive-cache-ttl=10 ################################# # recursor If recursion is desired, IP address of a recursing nameserver # -#recursor= +# recursor=no + +################################# +# retrieval-threads Number of AXFR-retrieval threads for slave operation +# +# retrieval-threads=2 + +################################# +# send-root-referral Send out old-fashioned root-referral instead of ServFail in case of no authority +# +# send-root-referral=no + +################################# +# server-id Returned when queried for 'server.id' TXT or NSID, defaults to hostname +# +# server-id= ################################# # setgid If set, change group id to this gid for more security @@ -205,9 +285,9 @@ setgid=nobody setuid=nobody ################################# -# skip-cname Do not perform CNAME indirection for each query +# signing-threads Default number of signer threads to start # -# skip-cname=no +# signing-threads=3 ################################# # slave Act as a slave @@ -219,16 +299,36 @@ setuid=nobody # # slave-cycle-interval=60 +################################# +# slave-renotify If we should send out notifications for slaved updates +# +# slave-renotify=no + ################################# # smtpredirector Our smtpredir MX host # # smtpredirector=a.misconfigured.powerdns.smtp.server ################################# -# soa-minimum-ttl Default SOA mininum ttl +# soa-expire-default Default SOA expire +# +# soa-expire-default=604800 + +################################# +# soa-minimum-ttl Default SOA minimum ttl # # soa-minimum-ttl=3600 +################################# +# soa-refresh-default Default SOA refresh +# +# soa-refresh-default=10800 + +################################# +# soa-retry-default Default SOA retry +# +# soa-retry-default=3600 + ################################# # soa-serial-offset Make sure that no SOA serial is less than this number # @@ -244,15 +344,45 @@ socket-dir=/var/run # # strict-rfc-axfrs=no +################################# +# tcp-control-address If set, PowerDNS can be controlled over TCP on this address +# +# tcp-control-address= + +################################# +# tcp-control-port If set, PowerDNS can be controlled over TCP on this address +# +# tcp-control-port=53000 + +################################# +# tcp-control-range If set, remote control of PowerDNS is possible over these networks only +# +# tcp-control-range=127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fe80::/10 + +################################# +# tcp-control-secret If set, PowerDNS can be controlled over TCP after passing this secret +# +# tcp-control-secret= + +################################# +# traceback-handler Enable the traceback handler (Linux only) +# +# traceback-handler=yes + +################################# +# trusted-notification-proxy IP address of incoming notification proxy +# +# trusted-notification-proxy= + ################################# # urlredirector Where we send hosts to that need to be url redirected # # urlredirector=127.0.0.1 ################################# -# use-logfile Use a log file +# version-string PowerDNS version in packets - full, anonymous, powerdns or custom # -use-logfile=no +# version-string=full ################################# # webserver Start a webserver for monitoring @@ -279,3 +409,9 @@ webserver=no # # webserver-print-arguments=no +################################# +# wildcard-url Process URL and MBOXFW records +# +# wildcard-url=no + + diff --git a/community/pdns/pdns.rc b/community/pdns/pdns.rc deleted file mode 100644 index 2f143ddae..000000000 --- a/community/pdns/pdns.rc +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -case "$1" in - start) - stat_busy "Starting DNS" - ! /usr/sbin/pdns_control ping > /dev/null 2>&1 && /usr/sbin/pdns_server --daemon - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon pdns - stat_done - fi - ;; - stop) - stat_busy "Stopping DNS" - pdns_control quit > /dev/null 2>&1 - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon pdns - stat_done - fi - ;; - restart) - $0 stop - sleep 3 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0