]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Build debian package for the auth server
authorPieter Lexis <pieter.lexis@powerdns.com>
Sun, 12 Apr 2015 07:52:51 +0000 (09:52 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 10 Jun 2015 07:44:01 +0000 (09:44 +0200)
* Import the debian/ dir from debian sid as
  build-scripts/debian-authoritative.
* Remove all db-config stuff
* Remove the changelog
* Create a pdns-tools package
* Fix the script further so it uses this dir

104 files changed:
build-scripts/build-auth-debian [new file with mode: 0755]
build-scripts/build-recursor
build-scripts/debian-authoritative/README.source [new file with mode: 0644]
build-scripts/debian-authoritative/compat [new file with mode: 0644]
build-scripts/debian-authoritative/config/dnsdomain2.schema [new file with mode: 0644]
build-scripts/debian-authoritative/config/pdns [new file with mode: 0644]
build-scripts/debian-authoritative/config/pdns.conf [new file with mode: 0644]
build-scripts/debian-authoritative/config/pdns.local.bind.conf [new file with mode: 0644]
build-scripts/debian-authoritative/config/pdns.local.conf [new file with mode: 0644]
build-scripts/debian-authoritative/config/pdns.local.geo.conf [new file with mode: 0644]
build-scripts/debian-authoritative/config/pdns.local.gmysql.conf [new file with mode: 0644]
build-scripts/debian-authoritative/config/pdns.local.gpgsql.conf [new file with mode: 0644]
build-scripts/debian-authoritative/config/pdns.local.gsqlite3.conf [new file with mode: 0644]
build-scripts/debian-authoritative/config/pdns.local.ldap.conf [new file with mode: 0644]
build-scripts/debian-authoritative/config/pdns.local.lua.conf [new file with mode: 0644]
build-scripts/debian-authoritative/config/pdns.local.pipe.conf [new file with mode: 0644]
build-scripts/debian-authoritative/config/pdns.simplebind.conf [new file with mode: 0644]
build-scripts/debian-authoritative/control [new file with mode: 0644]
build-scripts/debian-authoritative/copyright [new file with mode: 0644]
build-scripts/debian-authoritative/insserv.d/pdns-server [new file with mode: 0644]
build-scripts/debian-authoritative/patches/series [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-geo.docs [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-geo.examples [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-geo.install [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-geo.postinst [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-geo.prerm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-ldap.examples [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-ldap.install [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-ldap.manpages [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-ldap.postinst [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-ldap.prerm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-lmdb.install [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-lmdb.postinst [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-lmdb.prerm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-lua.docs [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-lua.examples [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-lua.install [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-lua.postinst [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-lua.prerm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-mydns.docs [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-mydns.install [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-mydns.postinst [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-mydns.prerm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-mysql.docs [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-mysql.install [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-mysql.postinst [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-mysql.postrm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-mysql.prerm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-pgsql.docs [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-pgsql.install [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-pgsql.postinst [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-pgsql.postrm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-pgsql.prerm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-pipe.examples [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-pipe.install [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-pipe.postinst [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-pipe.prerm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-remote.install [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-remote.postinst [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-remote.prerm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-sqlite3.dirs [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-sqlite3.docs [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-sqlite3.install [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-sqlite3.postinst [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-sqlite3.postrm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-backend-sqlite3.prerm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-server.README.Debian [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-server.config [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-server.dirs [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-server.examples [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-server.install [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-server.manpages [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-server.pdns.init [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-server.pdns.service [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-server.postinst [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-server.postrm [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-server.templates [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-tools.install [new file with mode: 0644]
build-scripts/debian-authoritative/pdns-tools.manpages [new file with mode: 0644]
build-scripts/debian-authoritative/po/POTFILES.in [new file with mode: 0644]
build-scripts/debian-authoritative/po/cs.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/da.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/de.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/es.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/eu.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/fi.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/fr.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/gl.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/it.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/ja.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/nl.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/pt.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/pt_BR.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/ru.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/sv.po [new file with mode: 0644]
build-scripts/debian-authoritative/po/templates.pot [new file with mode: 0644]
build-scripts/debian-authoritative/po/vi.po [new file with mode: 0644]
build-scripts/debian-authoritative/resolvconf/pdns [new file with mode: 0644]
build-scripts/debian-authoritative/rules [new file with mode: 0755]
build-scripts/debian-authoritative/source/format [new file with mode: 0644]
build-scripts/debian-authoritative/tests/control [new file with mode: 0644]
build-scripts/debian-authoritative/tests/smoke [new file with mode: 0755]
build-scripts/debian-authoritative/triggers [new file with mode: 0644]
build-scripts/debian-authoritative/watch [new file with mode: 0644]

diff --git a/build-scripts/build-auth-debian b/build-scripts/build-auth-debian
new file mode 100755 (executable)
index 0000000..6f9b728
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+export DEBFULLNAME="PowerDNS.COM BV AutoBuilder"
+export DEBEMAIL="noreply@powerdns.com"
+
+if [ "$0" != "./build-scripts/build-auth-debian" ]; then
+  echo "Please run me from the root checkout dir"
+  exit 1
+fi
+
+if [ -z "$VERSION" ]; then
+  echo 'Please set $VERSION' >&2
+  exit 1
+fi
+
+if [ -z "$RELEASE" ];then
+  echo 'Please set $RELEASE' >&2
+  exit 1
+fi
+
+DISTDIR=${DISTDIR:=.}
+
+set -e
+set -x
+
+rm -rf $DISTDIR/debian/
+cp -r build-scripts/debian-authoritative $DISTDIR/debian
+
+cd $DISTDIR
+
+cat > debian/changelog << EOF
+pdns (${VERSION}-${RELEASE}) unstable; urgency=medium
+
+  * Automatic build
+
+ -- PowerDNS.COM AutoBuilder <noreply@powerdns.com>  $(date -R)
+
+EOF
+DH_OPTIONS=--parallel fakeroot debian/rules binary
index 5d4b22ca43bce84611d323bd9f7d5320f3b019da..27208bbd8999fcde2ed08b4e06b8deb83e2af754 100755 (executable)
@@ -16,9 +16,10 @@ fi
 DIST_HOST="$(id -u -n)@$(hostname -f 2>/dev/null || hostname 2>/dev/null || echo localhost)"
 
 export DEBFULLNAME="PowerDNS.COM BV"
+export DEBEMAIL="noreply@powerdns.com"
 DEBPKGNAME=pdns-recursor_$VERSION
 
-dh_make -e powerdns.support@powerdns.com -s -f ../pdns-recursor-$VERSION.tar.bz2 -p $DEBPKGNAME < /dev/null
+dh_make -s -f ../pdns-recursor-$VERSION.tar.bz2 -p $DEBPKGNAME < /dev/null
 cp pdns-recursor.init.d debian/init.d
 #[ -e debian/control ] || dh_make -e powerdns.support@powerdns.com -s -r cdbs  -f ../pdns-recursor-$VERSION.tar.bz2  < /dev/null
 perl -i -pe 's/Description: <.*>/Description: extremely powerful and versatile recursing nameserver/' debian/control
diff --git a/build-scripts/debian-authoritative/README.source b/build-scripts/debian-authoritative/README.source
new file mode 100644 (file)
index 0000000..cf42723
--- /dev/null
@@ -0,0 +1 @@
+See /usr/share/doc/quilt/README.source
diff --git a/build-scripts/debian-authoritative/compat b/build-scripts/debian-authoritative/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/build-scripts/debian-authoritative/config/dnsdomain2.schema b/build-scripts/debian-authoritative/config/dnsdomain2.schema
new file mode 100644 (file)
index 0000000..a89aeaf
--- /dev/null
@@ -0,0 +1,195 @@
+# A schema for storing DNS zones in LDAP
+#
+# ORDERING is not necessary, and some servers don't support
+# integerOrderingMatch. Omit or change if you like
+
+attributetype ( 1.3.6.1.4.1.2428.20.0.0  NAME 'dNSTTL'
+       DESC 'An integer denoting time to live'
+       EQUALITY integerMatch
+       ORDERING integerOrderingMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.0.1 NAME 'dNSClass'
+       DESC 'The class of a resource record'
+       EQUALITY caseIgnoreIA5Match
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.11 NAME 'wKSRecord'
+       DESC 'a well known service description, RFC 1035'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.12 NAME 'pTRRecord'
+       DESC 'domain name pointer, RFC 1035'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.13 NAME 'hInfoRecord'
+       DESC 'host information, RFC 1035'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.14 NAME 'mInfoRecord'
+       DESC 'mailbox or mail list information, RFC 1035'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.16 NAME 'tXTRecord'
+       DESC 'text string, RFC 1035'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.17 NAME 'rPRecord'
+       DESC 'for Responsible Person, RFC 1183'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.18 NAME 'aFSDBRecord'
+       DESC 'for AFS Data Base location, RFC 1183'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.24 NAME 'SigRecord'
+       DESC 'Signature, RFC 2535'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.25 NAME 'KeyRecord'
+       DESC 'Key, RFC 2535'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.27 NAME 'gPosRecord'
+       DESC 'Geographical Position, RFC 1712'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.28 NAME 'aAAARecord'
+       DESC 'IPv6 address, RFC 1886'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.29 NAME 'LocRecord'
+       DESC 'Location, RFC 1876'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.30 NAME 'nXTRecord'
+       DESC 'non-existant, RFC 2535'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.33 NAME 'sRVRecord'
+       DESC 'service location, RFC 2782'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.35 NAME 'nAPTRRecord'
+       DESC 'Naming Authority Pointer, RFC 2915'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.36 NAME 'kXRecord'
+       DESC 'Key Exchange Delegation, RFC 2230'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.37 NAME 'certRecord'
+       DESC 'certificate, RFC 2538'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.38 NAME 'a6Record'
+       DESC 'A6 Record Type, RFC 2874'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.39 NAME 'dNameRecord'
+       DESC 'Non-Terminal DNS Name Redirection, RFC 2672'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.42 NAME 'aPLRecord'
+       DESC 'Lists of Address Prefixes, RFC 3123'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.43 NAME 'dSRecord'
+       DESC 'Delegation Signer, RFC 3658'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.44 NAME 'sSHFPRecord'
+       DESC 'SSH Key Fingerprint, RFC 4255'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.45 NAME 'iPSecKeyRecord'
+       DESC 'SSH Key Fingerprint, RFC 4025'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.46 NAME 'rRSIGRecord'
+       DESC 'RRSIG, RFC 3755'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.47 NAME 'nSECRecord'
+       DESC 'NSEC, RFC 3755'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.48 NAME 'dNSKeyRecord'
+       DESC 'DNSKEY, RFC 3755'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.49 NAME 'dHCIDRecord'
+       DESC 'DHCID, RFC 4701'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+attributetype ( 1.3.6.1.4.1.2428.20.1.99 NAME 'sPFRecord'
+       DESC 'Sender Policy Framework, RFC 4408'
+       EQUALITY caseIgnoreIA5Match
+       SUBSTR caseIgnoreIA5SubstringsMatch
+       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
+objectclass ( 1.3.6.1.4.1.2428.20.2 NAME 'dNSDomain2'
+       SUP 'dNSDomain' STRUCTURAL
+       MAY ( DNSTTL $ DNSClass $ WKSRecord $ PTRRecord $
+               HINFORecord $ MINFORecord $ TXTRecord $ RPRecord $
+               AFSDBRecord $ SIGRecord $ KEYRecord $ GPOSRecord $
+               AAAARecord $ LOCRecord $ NXTRecord $ SRVRecord $
+               NAPTRRecord $ KXRecord $ CERTRecord $ A6Record $
+               DNAMERecord $ APLRecord $ DSRecord $ SSHFPRecord $
+               IPSECKEYRecord $ RRSIGRecord $ NSECRecord $
+               DNSKEYRecord $ DHCIDRecord $ SPFRecord
+       ) )
diff --git a/build-scripts/debian-authoritative/config/pdns b/build-scripts/debian-authoritative/config/pdns
new file mode 100644 (file)
index 0000000..f9d8cb3
--- /dev/null
@@ -0,0 +1,9 @@
+# Variables for PowerDNS
+
+# If you have resolvconf installed, you can enable the following to have
+# resolvconf update an recursor line in the pdns config, as determined by
+# resolvconf.
+RESOLVCONF_UPDATE_FORWARDERS=no
+
+# Arguments to the started daemon
+DAEMON_ARGS=""
diff --git a/build-scripts/debian-authoritative/config/pdns.conf b/build-scripts/debian-authoritative/config/pdns.conf
new file mode 100644 (file)
index 0000000..73523b3
--- /dev/null
@@ -0,0 +1,518 @@
+#################################
+# allow-axfr-ips       Allow zonetransfers only to these subnets
+#
+# allow-axfr-ips=127.0.0.0/8,::1
+
+#################################
+# allow-dnsupdate-from A global setting to allow DNS updates from these IP ranges.
+#
+# allow-dnsupdate-from=127.0.0.0/8,::1
+
+#################################
+# allow-recursion      List of subnets that are allowed to recurse
+#
+# allow-recursion=0.0.0.0/0
+
+#################################
+# also-notify  When notifying a domain, also notify these nameservers
+#
+# also-notify=
+
+#################################
+# any-to-tcp   Answer ANY queries with tc=1, shunting to TCP
+#
+# any-to-tcp=no
+
+#################################
+# cache-ttl    Seconds to store packets in the PacketCache
+#
+# cache-ttl=20
+
+#################################
+# carbon-interval      Number of seconds between carbon (graphite) updates
+#
+# carbon-interval=30
+
+#################################
+# carbon-ourname       If set, overrides our reported hostname for carbon stats
+#
+# carbon-ourname=
+
+#################################
+# carbon-server        If set, send metrics in carbon (graphite) format to this server
+#
+# carbon-server=
+
+#################################
+# chroot       If set, chroot to this directory for more security
+#
+# chroot=
+
+#################################
+# config-dir   Location of configuration directory (pdns.conf)
+#
+config-dir=/etc/powerdns
+
+#################################
+# config-name  Name of this virtual configuration - will rename the binary image
+#
+# config-name=
+
+#################################
+# control-console      Debugging switch - don't use
+#
+# control-console=no
+
+#################################
+# daemon       Operate as a daemon
+#
+daemon=yes
+
+#################################
+# default-ksk-algorithms       Default KSK algorithms
+#
+# default-ksk-algorithms=rsasha256
+
+#################################
+# default-ksk-size     Default KSK size (0 means default)
+#
+# default-ksk-size=0
+
+#################################
+# default-soa-mail     mail address to insert in the SOA record if none set in the backend
+#
+# default-soa-mail=
+
+#################################
+# default-soa-name     name to insert in the SOA record if none set in the backend
+#
+# default-soa-name=a.misconfigured.powerdns.server
+
+#################################
+# default-ttl  Seconds a result is valid if not set otherwise
+#
+# default-ttl=3600
+
+#################################
+# default-zsk-algorithms       Default ZSK algorithms
+#
+# default-zsk-algorithms=rsasha256
+
+#################################
+# default-zsk-size     Default ZSK size (0 means default)
+#
+# default-zsk-size=0
+
+#################################
+# direct-dnskey        Fetch DNSKEY RRs from backend during DNSKEY synthesis
+#
+# direct-dnskey=no
+
+#################################
+# disable-axfr Disable zonetransfers but do allow TCP queries
+#
+# disable-axfr=no
+
+#################################
+# disable-axfr-rectify Disable the rectify step during an outgoing AXFR. Only required for regression testing.
+#
+# disable-axfr-rectify=no
+
+#################################
+# disable-tcp  Do not listen to TCP queries
+#
+# disable-tcp=no
+
+#################################
+# distributor-threads  Default number of Distributor (backend) threads to start
+#
+# distributor-threads=3
+
+#################################
+# do-ipv6-additional-processing        Do AAAA additional processing
+#
+# do-ipv6-additional-processing=yes
+
+#################################
+# 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-api-key REST API Static authentication key (required for API use)
+#
+# experimental-api-key=
+
+#################################
+# experimental-api-readonly    If the JSON API should disallow data modification
+#
+# experimental-api-readonly=no
+
+#################################
+# experimental-dname-processing        If we should support DNAME records
+#
+# experimental-dname-processing=no
+
+#################################
+# experimental-dnsupdate       Enable/Disable DNS update (RFC2136) support. Default is no.
+#
+# experimental-dnsupdate=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
+
+#################################
+# forward-dnsupdate    A global setting to allow DNS update packages that are for a Slave domain, to be forwarded to the master.
+#
+# forward-dnsupdate=yes
+
+#################################
+# guardian     Run within a guardian process
+#
+guardian=yes
+
+#################################
+# include-dir  Include *.conf files from this directory
+#
+# include-dir=
+include-dir=/etc/powerdns/pdns.d
+
+#################################
+# launch       Which backends to launch and order to query them in
+#
+# launch=
+launch=
+
+#################################
+# load-modules Load this module - supply absolute or relative path
+#
+# load-modules=
+
+#################################
+# local-address        Local IP addresses to which we bind
+#
+# local-address=0.0.0.0
+
+#################################
+# local-address-nonexist-fail  Fail to start if one or more of the local-address's do not exist on this server
+#
+# local-address-nonexist-fail=yes
+
+#################################
+# local-ipv6   Local IP address to which we bind
+#
+# local-ipv6=
+
+#################################
+# local-ipv6-nonexist-fail     Fail to start if one or more of the local-ipv6 addresses do not exist on this server
+#
+# local-ipv6-nonexist-fail=yes
+
+#################################
+# local-port   The port on which we listen
+#
+# local-port=53
+
+#################################
+# log-dns-details      If PDNS should log DNS non-erroneous details
+#
+# log-dns-details=no
+
+#################################
+# log-dns-queries      If PDNS should log all incoming DNS queries
+#
+# log-dns-queries=no
+
+#################################
+# logging-facility     Log under a specific facility
+#
+# logging-facility=
+
+#################################
+# loglevel     Amount of logging. Higher is more. Do not set below 3
+#
+# loglevel=4
+
+#################################
+# 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-nsec3-iterations Limit the number of NSEC3 hash iterations
+#
+# max-nsec3-iterations=500
+
+#################################
+# max-queue-length     Maximum queuelength before considering situation lost
+#
+# max-queue-length=5000
+
+#################################
+# max-signature-cache-entries  Maximum number of signatures cache entries
+#
+# max-signature-cache-entries=
+
+#################################
+# max-tcp-connections  Maximum number of TCP connections
+#
+# max-tcp-connections=10
+
+#################################
+# module-dir   Default directory for modules
+#
+# module-dir=/usr/lib/TRIPLET/pdns
+
+#################################
+# negquery-cache-ttl   Seconds to store negative query results in the QueryCache
+#
+# negquery-cache-ttl=60
+
+#################################
+# no-shuffle   Set this to prevent random shuffling of answers - for regression testing
+#
+# no-shuffle=off
+
+#################################
+# only-notify  Only send AXFR NOTIFY to these IP addresses or netmasks
+#
+# only-notify=0.0.0.0/0,::/0
+
+#################################
+# out-of-zone-additional-processing    Do out of zone additional processing
+#
+# out-of-zone-additional-processing=yes
+
+#################################
+# 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
+
+#################################
+# prevent-self-notification    Don't send notifications to what we think is ourself
+#
+# prevent-self-notification=yes
+
+#################################
+# 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
+#
+# query-logging=no
+
+#################################
+# queue-limit  Maximum number of milliseconds to queue a query
+#
+# queue-limit=1500
+
+#################################
+# receiver-threads     Default number of receiver threads to start
+#
+# receiver-threads=1
+
+#################################
+# 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=no
+
+#################################
+# retrieval-threads    Number of AXFR-retrieval threads for slave operation
+#
+# retrieval-threads=2
+
+#################################
+# reuseport    Enable higher performance on compliant kernels by using SO_REUSEPORT allowing each receiver thread to open its own socket
+#
+# reuseport=no
+
+#################################
+# security-poll-suffix Domain name from which to query security update notifications
+#
+# security-poll-suffix=secpoll.powerdns.com.
+
+#################################
+# 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 - disabled or custom
+#
+# server-id=
+
+#################################
+# setgid       If set, change group id to this gid for more security
+#
+setgid=pdns
+
+#################################
+# setuid       If set, change user id to this uid for more security
+#
+setuid=pdns
+
+#################################
+# signing-threads      Default number of signer threads to start
+#
+# signing-threads=3
+
+#################################
+# slave        Act as a slave
+#
+# slave=no
+
+#################################
+# slave-cycle-interval Reschedule failed SOA serial checks once every .. seconds
+#
+# slave-cycle-interval=60
+
+#################################
+# slave-renotify       If we should send out notifications for slaved updates
+#
+# slave-renotify=no
+
+#################################
+# 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
+
+#################################
+# socket-dir   Where the controlsocket will live
+#
+# socket-dir=/var/run
+
+#################################
+# 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=
+
+#################################
+# udp-truncation-threshold     Maximum UDP response size before we truncate
+#
+# udp-truncation-threshold=1680
+
+#################################
+# version-string       PowerDNS version in packets - full, anonymous, powerdns or custom
+#
+# version-string=full
+
+#################################
+# webserver    Start a webserver for monitoring
+#
+# webserver=no
+
+#################################
+# webserver-address    IP Address of webserver to listen on
+#
+# webserver-address=127.0.0.1
+
+#################################
+# webserver-allow-from Webserver access is only allowed from these subnets
+#
+# webserver-allow-from=0.0.0.0/0,::/0
+
+#################################
+# webserver-password   Password required for accessing the webserver
+#
+# webserver-password=
+
+#################################
+# webserver-port       Port of webserver to listen on
+#
+# webserver-port=8081
+
+#################################
+# webserver-print-arguments    If the webserver should print arguments
+#
+# webserver-print-arguments=no
+
+
diff --git a/build-scripts/debian-authoritative/config/pdns.local.bind.conf b/build-scripts/debian-authoritative/config/pdns.local.bind.conf
new file mode 100644 (file)
index 0000000..48c2f99
--- /dev/null
@@ -0,0 +1,12 @@
+# Bind backend configuration
+
+# Location of the Bind configuration file to parse. 
+# bind-config=/etc/bind/named.conf.local
+
+# How often to check for zone changes. See 'Operation' section. 
+# bind-check-interval=
+
+# Uncomment to enable Huffman compression on zone data.
+# Currently saves around 20% of memory actually used, but slows down operation.
+# bind-enable-huffman
+
diff --git a/build-scripts/debian-authoritative/config/pdns.local.conf b/build-scripts/debian-authoritative/config/pdns.local.conf
new file mode 100644 (file)
index 0000000..3616b88
--- /dev/null
@@ -0,0 +1,3 @@
+# Here come the local changes the user made, like configuration of 
+# the several backends that exist.
+
diff --git a/build-scripts/debian-authoritative/config/pdns.local.geo.conf b/build-scripts/debian-authoritative/config/pdns.local.geo.conf
new file mode 100644 (file)
index 0000000..3eb85b5
--- /dev/null
@@ -0,0 +1,11 @@
+# geo Configuration
+#
+# See for more information /usr/share/doc/pdns-backend-geo/README
+#
+# geo-zone=
+# geo-soa-values=
+# geo-ns-records=
+# geo-ttl=
+# geo-ns-ttl=
+# geo-ip-map-zonefile=
+# geo-maps=
diff --git a/build-scripts/debian-authoritative/config/pdns.local.gmysql.conf b/build-scripts/debian-authoritative/config/pdns.local.gmysql.conf
new file mode 100644 (file)
index 0000000..703f198
--- /dev/null
@@ -0,0 +1,13 @@
+# MySQL Configuration
+#
+# Launch gmysql backend
+launch+=gmysql
+
+# gmysql parameters
+gmysql-host=_DBC_DBSERVER_
+gmysql-port=_DBC_DBPORT_
+gmysql-dbname=_DBC_DBNAME_
+gmysql-user=_DBC_DBUSER_
+gmysql-password=_DBC_DBPASS_
+gmysql-dnssec=yes
+# gmysql-socket=
diff --git a/build-scripts/debian-authoritative/config/pdns.local.gpgsql.conf b/build-scripts/debian-authoritative/config/pdns.local.gpgsql.conf
new file mode 100644 (file)
index 0000000..869b5dc
--- /dev/null
@@ -0,0 +1,12 @@
+# PostgreSQL Configuration
+#
+# Launch gpgsql backend
+launch+=gpgsql
+
+# gpgsql parameters
+gpgsql-host=_DBC_DBSERVER_
+gpgsql-port=_DBC_DBPORT_
+gpgsql-dbname=_DBC_DBNAME_
+gpgsql-user=_DBC_DBUSER_
+gpgsql-password=_DBC_DBPASS_
+gpgsql-dnssec=yes
diff --git a/build-scripts/debian-authoritative/config/pdns.local.gsqlite3.conf b/build-scripts/debian-authoritative/config/pdns.local.gsqlite3.conf
new file mode 100644 (file)
index 0000000..ccde43f
--- /dev/null
@@ -0,0 +1,8 @@
+# Configuration for gsqlite
+#
+# Launch gsqlite3
+launch+=gsqlite3
+
+# Database location
+gsqlite3-database=/var/lib/powerdns/pdns.sqlite3
+gsqlite3-dnssec=on
diff --git a/build-scripts/debian-authoritative/config/pdns.local.ldap.conf b/build-scripts/debian-authoritative/config/pdns.local.ldap.conf
new file mode 100644 (file)
index 0000000..e9e7d3f
--- /dev/null
@@ -0,0 +1,7 @@
+# LDAP Configuration
+#
+# ldap-host=
+# ldap-method=
+# ldap-basedn=
+# ldap-binddn=
+# ldap-secret=
diff --git a/build-scripts/debian-authoritative/config/pdns.local.lua.conf b/build-scripts/debian-authoritative/config/pdns.local.lua.conf
new file mode 100644 (file)
index 0000000..529fe51
--- /dev/null
@@ -0,0 +1,13 @@
+# Configuration for the lua backend
+#lua-filename = powerdns-luabackend.lua
+#lua-logging-query = no
+
+# You can also override all the default functionsnames for the luafunctions if you
+# want. The prefix is lua-f_<functionname>=mynewfunction. For example:
+#lua-f_lookup = mynewfunction
+#
+# will call the function 'mynewfunction' for the lookup-routine.
+#
+# If you want your own configuration parameters you can have that too.
+# Just call the function getarg("my_parameter") and it will return the value
+# of 'lua-my_parameter'. For boolean you use the function mustdo("my_parameter").
diff --git a/build-scripts/debian-authoritative/config/pdns.local.pipe.conf b/build-scripts/debian-authoritative/config/pdns.local.pipe.conf
new file mode 100644 (file)
index 0000000..d52be74
--- /dev/null
@@ -0,0 +1,6 @@
+# Configuration for pipe backend
+#
+# pipe-command=
+# pipe-timeout=
+# pipe-regex=
+
diff --git a/build-scripts/debian-authoritative/config/pdns.simplebind.conf b/build-scripts/debian-authoritative/config/pdns.simplebind.conf
new file mode 100644 (file)
index 0000000..390260c
--- /dev/null
@@ -0,0 +1,2 @@
+launch+=bind
+bind-config=/etc/powerdns/bindbackend.conf
diff --git a/build-scripts/debian-authoritative/control b/build-scripts/debian-authoritative/control
new file mode 100644 (file)
index 0000000..ca80d95
--- /dev/null
@@ -0,0 +1,192 @@
+Source: pdns
+Section: net
+Priority: extra
+Standards-Version: 3.9.6
+Maintainer: PowerDNS AutoBuilder
+Build-Depends: debhelper (>= 9~), dh-autoreconf, dh-systemd, po-debconf, libtool, flex, bison, libmysqlclient-dev, libpq-dev, libssl-dev, libpolarssl-dev, libgdbm-dev, libldap2-dev, libsqlite3-dev, dpkg-dev (>= 1.17.0~), libboost-dev, libboost-serialization-dev, libboost-program-options-dev, libboost-test-dev, autotools-dev, automake, autoconf, liblua5.2-dev, pkg-config, libcrypto++-dev, ragel, libgmp-dev, libbotan1.10-dev, libcurl4-openssl-dev, libzmq-dev, liblmdb-dev
+Homepage: http://www.powerdns.com/
+
+Package: pdns-server
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ucf (>= 0.28), adduser, lsb-base (>= 3.2-14)
+Replaces: pdns
+Suggests: pdns-backend, pdns-recursor
+Description: extremely powerful and versatile nameserver
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This is the authoritative nameserver that answers questions about
+ domains that it knows about. It also includes the bind backend that
+ allows PowerDNS to retrieve domain info from zone files as used by
+ the "bind" software.
+
+Package: pdns-tools
+Architecture: any
+Priority: extra
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Tools for DNS debugging by PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains several tools to debug DNS issues. These tools do not
+ require any part of the PowerDNS server components to work.
+ .
+ * dnsbulktest: A resolver stress-tester
+ * dnsgram: Show per 5-second statistics to study intermittent resolver issues
+ * dnsreplay: Replay a pcap with DNS queries
+ * dnsscan: Prints the query-type amounts in a pcap
+ * dnsscope: Calculates statistics without replaying traffic
+ * dnstcpbench: Perform TCP benchmarking of DNS servers
+ * dnswasher: Clean a pcap of identifying IP information
+ * nsec3dig: Calculate the correctness of NSEC3 proofs
+ * saxfr: AXFR zones and show extra information
+
+Package: pdns-server-dbg
+Section: debug
+Architecture: any
+Priority: extra
+Depends: pdns-server (= ${binary:Version}), ${misc:Depends}
+Description: debugging symbols for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains debugging symbols for PowerDNS to assist in
+ debugging, such as gdb. It is not required for normal operation.
+
+Package: pdns-backend-pipe
+Architecture: any
+Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
+Provides: pdns-backend
+Description: pipe/coprocess backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains the pipe backend for the PowerDNS nameserver. This
+ allows PowerDNS to retrieve domain info from a process that accepts
+ questions on stdin and returns answers on stdout. 
+
+Package: pdns-backend-ldap
+Architecture: any
+Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
+Provides: pdns-backend
+Description: LDAP backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains an LDAP backend for the PowerDNS nameserver.
+
+Package: pdns-backend-geo
+Architecture: any
+Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
+Provides: pdns-backend
+Description: geo backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains a geobackend for the PowerDNS nameserver. This backend
+ balances the load throughout the world so that people access the
+ geographically nearest available server.
+
+Package: pdns-backend-mysql
+Architecture: any
+Depends: pdns-server (>= ${source:Version}), ucf (>= 0.28), ${shlibs:Depends}, ${misc:Depends}
+Recommends: mysql-client
+Suggests: mysql-server
+Provides: pdns-backend
+Description: generic MySQL backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains a generic MySQL backend for the PowerDNS
+ nameserver. It has configurable SQL statements.
+
+Package: pdns-backend-pgsql
+Architecture: any
+Depends: pdns-server (>= ${source:Version}), ucf (>= 0.28), ${shlibs:Depends}, ${misc:Depends}
+Recommends: postgresql-client
+Suggests: postgresql
+Provides: pdns-backend
+Description: generic PostgreSQL backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains a generic PostgreSQL backend for the PowerDNS
+ nameserver. It has configurable SQL statements.
+
+Package: pdns-backend-sqlite3
+Architecture: any
+Depends: pdns-server (>= ${source:Version}), ucf (>= 0.28), ${shlibs:Depends}, ${misc:Depends}, sqlite3
+Provides: pdns-backend
+Description: sqlite 3 backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains a generic SQLite 3 backend for PowerDNS.
+
+Package: pdns-backend-lua
+Architecture: any
+Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
+Provides: pdns-backend
+Description: Lua backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains the Lua backend for PowerDNS.
+
+Package: pdns-backend-lmdb
+Architecture: any
+Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
+Provides: pdns-backend
+Description: lmdb backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains the Symas Lightning Memory-Mapped Database
+ backend for PowerDNS.
+
+Package: pdns-backend-remote
+Architecture: any
+Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
+Provides: pdns-backend
+Description: remote backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains the remote backend for PowerDNS. It is suitable
+ for serving data acquired from an AF_UNIX, pipe, or HTTP connector.
+
+Package: pdns-backend-mydns
+Architecture: any
+Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
+Provides: pdns-backend
+Description: MyDNS compatibility backend for PowerDNS
+ PowerDNS is a versatile nameserver which supports a large number
+ of different backends ranging from simple zonefiles to relational
+ databases and load balancing/failover algorithms.
+ PowerDNS tries to emphasize speed and security.
+ .
+ This package contains the MyDNS compatibility backend for PowerDNS.
diff --git a/build-scripts/debian-authoritative/copyright b/build-scripts/debian-authoritative/copyright
new file mode 100644 (file)
index 0000000..d64cbcb
--- /dev/null
@@ -0,0 +1,149 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: PowerDNS
+Source: https://www.powerdns.com/downloads.html
+
+Files: *
+Copyright: 2002 - 2014 PowerDNS.COM BV and contributors
+License: GPL-2 with OpenSSL Exception
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of version 2 of the GNU General Public License as
+ published by the Free Software Foundation.
+ .
+ In addition, for the avoidance of any doubt, permission is granted to
+ link this program with OpenSSL and to (re)distribute the binaries
+ produced as the result of such linking.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
+
+Files: debian/*
+Copyright: 2002 - 2004 Wichert Akkermann <wichert@wiggy.net>
+ 2004 - 2013 Matthijs Möhlmann <matthijs@cacholong.nl>
+ 2012 - 2013 Marc Haber <mh+debian-packages@zugschlus.de>
+ 2014 Christian Hofstaedtler <zeha@debian.org>
+License: GPL-2
+
+Files: oraclebackend/*
+Copyright: 2010 - 2011 Maik Zumstrull
+ Steinbuch Centre for Computing,
+ Karlsruhe Institute of Technology
+License: Expat
+
+Files: install-sh
+Copyright: 1994 X Consortium
+License:
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ .
+ Except as contained in this notice, the name of the X Consortium shall not
+ be used in advertising or otherwise to promote the sale, use or other deal-
+ ings in this Software without prior written authorization from the X Consor-
+ tium.
+ .
+ FSF changes to this file are in the public domain.
+
+Files: pdns/install-sh
+Copyright: 1991 by the Massachusetts Institute of Technology
+License:
+ Permission to use, copy, modify, distribute, and sell this software and its
+ documentation for any purpose is hereby granted without fee, provided that
+ the above copyright notice appear in all copies and that both that
+ copyright notice and this permission notice appear in supporting
+ documentation, and that the name of M.I.T. not be used in advertising or
+ publicity pertaining to distribution of the software without specific,
+ written prior permission.  M.I.T. makes no representations about the
+ suitability of this software for any purpose.  It is provided "as is"
+ without express or implied warranty.
+
+Files: pdns/ext/yahttp*
+Copyright: 2014 Aki Tuomi
+License: Expat
+
+Files: pdns/ext/rapidjson/*
+Copyright: 2011 Milo Yip
+License: Expat
+
+Files: pdns/ext/polarssl*
+Copyright: 2006-2014, Brainspark B.V.
+License: GPL-2+
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+License: GPL-2
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
+
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
diff --git a/build-scripts/debian-authoritative/insserv.d/pdns-server b/build-scripts/debian-authoritative/insserv.d/pdns-server
new file mode 100644 (file)
index 0000000..0f9d957
--- /dev/null
@@ -0,0 +1 @@
+$named +pdns +pdns-recursor
diff --git a/build-scripts/debian-authoritative/patches/series b/build-scripts/debian-authoritative/patches/series
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-geo.docs b/build-scripts/debian-authoritative/pdns-backend-geo.docs
new file mode 100644 (file)
index 0000000..b00a925
--- /dev/null
@@ -0,0 +1 @@
+modules/geobackend/README
diff --git a/build-scripts/debian-authoritative/pdns-backend-geo.examples b/build-scripts/debian-authoritative/pdns-backend-geo.examples
new file mode 100644 (file)
index 0000000..ed419f8
--- /dev/null
@@ -0,0 +1 @@
+debian/config/pdns.local.geo.conf
diff --git a/build-scripts/debian-authoritative/pdns-backend-geo.install b/build-scripts/debian-authoritative/pdns-backend-geo.install
new file mode 100644 (file)
index 0000000..9d07378
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/*/pdns/libgeobackend.so*
diff --git a/build-scripts/debian-authoritative/pdns-backend-geo.postinst b/build-scripts/debian-authoritative/pdns-backend-geo.postinst
new file mode 100644 (file)
index 0000000..6511fad
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# postinst script for pdns-backend-geo
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+# Activate trigger
+dpkg-trigger pdns-server
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-geo.prerm b/build-scripts/debian-authoritative/pdns-backend-geo.prerm
new file mode 100644 (file)
index 0000000..3298654
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Add call to init script to actually stop pdns.
+
+set -e
+
+if [ -x "/etc/init.d/pdns" ]; then
+       invoke-rc.d pdns stop || exit $?
+fi
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-ldap.examples b/build-scripts/debian-authoritative/pdns-backend-ldap.examples
new file mode 100644 (file)
index 0000000..1c3b967
--- /dev/null
@@ -0,0 +1 @@
+debian/config/pdns.local.ldap.conf
diff --git a/build-scripts/debian-authoritative/pdns-backend-ldap.install b/build-scripts/debian-authoritative/pdns-backend-ldap.install
new file mode 100644 (file)
index 0000000..ae268dd
--- /dev/null
@@ -0,0 +1,3 @@
+usr/lib/*/pdns/libldapbackend.so*
+usr/bin/zone2ldap usr/bin/
+debian/config/dnsdomain2.schema etc/ldap/schema/
diff --git a/build-scripts/debian-authoritative/pdns-backend-ldap.manpages b/build-scripts/debian-authoritative/pdns-backend-ldap.manpages
new file mode 100644 (file)
index 0000000..33e216d
--- /dev/null
@@ -0,0 +1 @@
+debian/tmp/usr/share/man/man1/zone2ldap.1
diff --git a/build-scripts/debian-authoritative/pdns-backend-ldap.postinst b/build-scripts/debian-authoritative/pdns-backend-ldap.postinst
new file mode 100644 (file)
index 0000000..86d48ed
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# postinst script for pdns-backend-ldap
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+# Activating trigger
+dpkg-trigger pdns-server
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-ldap.prerm b/build-scripts/debian-authoritative/pdns-backend-ldap.prerm
new file mode 100644 (file)
index 0000000..3298654
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Add call to init script to actually stop pdns.
+
+set -e
+
+if [ -x "/etc/init.d/pdns" ]; then
+       invoke-rc.d pdns stop || exit $?
+fi
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-lmdb.install b/build-scripts/debian-authoritative/pdns-backend-lmdb.install
new file mode 100644 (file)
index 0000000..45673ff
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/*/pdns/liblmdbbackend.so*
diff --git a/build-scripts/debian-authoritative/pdns-backend-lmdb.postinst b/build-scripts/debian-authoritative/pdns-backend-lmdb.postinst
new file mode 100644 (file)
index 0000000..7778c6a
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# postinst script for pdns-backend-lmdb
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+# Activate trigger
+dpkg-trigger pdns-server
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-lmdb.prerm b/build-scripts/debian-authoritative/pdns-backend-lmdb.prerm
new file mode 100644 (file)
index 0000000..3298654
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Add call to init script to actually stop pdns.
+
+set -e
+
+if [ -x "/etc/init.d/pdns" ]; then
+       invoke-rc.d pdns stop || exit $?
+fi
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-lua.docs b/build-scripts/debian-authoritative/pdns-backend-lua.docs
new file mode 100644 (file)
index 0000000..e1bae81
--- /dev/null
@@ -0,0 +1 @@
+modules/luabackend/README
diff --git a/build-scripts/debian-authoritative/pdns-backend-lua.examples b/build-scripts/debian-authoritative/pdns-backend-lua.examples
new file mode 100644 (file)
index 0000000..d6d918f
--- /dev/null
@@ -0,0 +1 @@
+debian/config/pdns.local.lua.conf
diff --git a/build-scripts/debian-authoritative/pdns-backend-lua.install b/build-scripts/debian-authoritative/pdns-backend-lua.install
new file mode 100644 (file)
index 0000000..3cfcc37
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/*/pdns/libluabackend.so*
diff --git a/build-scripts/debian-authoritative/pdns-backend-lua.postinst b/build-scripts/debian-authoritative/pdns-backend-lua.postinst
new file mode 100644 (file)
index 0000000..c7eb911
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# postinst script for pdns-backend-lua
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+# Activate trigger
+dpkg-trigger pdns-server
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-lua.prerm b/build-scripts/debian-authoritative/pdns-backend-lua.prerm
new file mode 100644 (file)
index 0000000..3298654
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Add call to init script to actually stop pdns.
+
+set -e
+
+if [ -x "/etc/init.d/pdns" ]; then
+       invoke-rc.d pdns stop || exit $?
+fi
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-mydns.docs b/build-scripts/debian-authoritative/pdns-backend-mydns.docs
new file mode 100644 (file)
index 0000000..a47a40c
--- /dev/null
@@ -0,0 +1 @@
+modules/mydnsbackend/schema.mydns.sql
diff --git a/build-scripts/debian-authoritative/pdns-backend-mydns.install b/build-scripts/debian-authoritative/pdns-backend-mydns.install
new file mode 100644 (file)
index 0000000..262f35e
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/*/pdns/libmydnsbackend.so*
diff --git a/build-scripts/debian-authoritative/pdns-backend-mydns.postinst b/build-scripts/debian-authoritative/pdns-backend-mydns.postinst
new file mode 100644 (file)
index 0000000..e97f7db
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# postinst script for pdns-backend-mydns
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+# Activate trigger
+dpkg-trigger pdns-server
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-mydns.prerm b/build-scripts/debian-authoritative/pdns-backend-mydns.prerm
new file mode 100644 (file)
index 0000000..3298654
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Add call to init script to actually stop pdns.
+
+set -e
+
+if [ -x "/etc/init.d/pdns" ]; then
+       invoke-rc.d pdns stop || exit $?
+fi
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-mysql.docs b/build-scripts/debian-authoritative/pdns-backend-mysql.docs
new file mode 100644 (file)
index 0000000..1ea8dfc
--- /dev/null
@@ -0,0 +1,3 @@
+modules/gmysqlbackend/dnssec-3.x_to_3.4.0_schema.mysql.sql
+modules/gmysqlbackend/nodnssec-3.x_to_3.4.0_schema.mysql.sql
+modules/gmysqlbackend/schema.mysql.sql
diff --git a/build-scripts/debian-authoritative/pdns-backend-mysql.install b/build-scripts/debian-authoritative/pdns-backend-mysql.install
new file mode 100644 (file)
index 0000000..7ab852b
--- /dev/null
@@ -0,0 +1,2 @@
+usr/lib/*/pdns/libgmysqlbackend.so*
+debian/config/pdns.local.gmysql.conf usr/share/pdns-backend-mysql
diff --git a/build-scripts/debian-authoritative/pdns-backend-mysql.postinst b/build-scripts/debian-authoritative/pdns-backend-mysql.postinst
new file mode 100644 (file)
index 0000000..c332a5d
--- /dev/null
@@ -0,0 +1,60 @@
+#!/bin/sh
+#
+# postinst script for pdns-backend-mysql
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+PKGNAME="pdns-backend-gmysql"
+
+# rename ucf-conffile. This was mostly stolen from cacti.postinst after
+# a short discussion on debian-mentors, see
+# http://lists.debian.org/debian-mentors/2013/07/msg00027.html
+# and the following thread. Thanks to Paul Gevers
+renameconffile() {
+  oldname="$1"
+  newname="$2"
+  sourcefile="$3"
+  if [ -f $oldname ] ; then
+    if [ ! -e $newname ] ; then
+      mv $oldname $newname
+#   else: Don't do anything, leave old file in place
+    fi
+    ucf --purge $oldname
+    ucfr --purge $PKGNAME $oldname
+  elif [ ! -e $newname ] ; then
+#   The file was removed, we should respect that. Unfortunately, we don't
+#   have a proper way to tell ucf that for the new location, so we need
+#   to hack it a bit.
+#   We only need to do this if the target does not already exist. If the
+#   target already exists, we can later call ucf straight as there
+#   is already a version of the file available, althought never
+#   provided by this package, but we can just propose the new file anyway.
+    ucf --debconf-ok $sourcefile $newname
+    ucfr $PKGNAME $newname
+    rm -f $newname
+  fi
+}
+
+if [ "$1" = "configure" ]; then
+  if [ -n "$2" ] && dpkg --compare-versions "$2" lt 3.3; then
+    renameconffile /etc/powerdns/pdns.d/pdns.local.gmysql /etc/powerdns/pdns.d/pdns.local.gmysql.conf /dev/null
+  fi
+fi
+
+# Activate trigger
+dpkg-trigger pdns-server
+
+ucfr $PKGNAME /etc/powerdns/pdns.d/pdns.local.gmysql.conf
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-mysql.postrm b/build-scripts/debian-authoritative/pdns-backend-mysql.postrm
new file mode 100644 (file)
index 0000000..a270224
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+# Post removal
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+PKGNAME="pdns-backend-mysql"
+
+# Remove configuration file
+if [ "$1" = "purge" ]; then
+    # Remove files registered with ucf.
+    # this has been pulled from aide-common.postrm
+
+    UCF="ucf"
+    UCFR="ucfr"
+
+    if command -v ucfq >/dev/null; then
+      for file in $(ucfq --with-colons "$PKGNAME" | cut --delimiter=: --fields=1); do
+        for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
+          rm -f ${file}$ext
+        done
+        rm -f ${file}
+
+        if command -v $UCF >/dev/null; then
+          $UCF --purge ${file}
+        fi
+        if command -v $UCFR >/dev/null; then
+          $UCFR --purge $PKGNAME ${file}
+        fi
+      done
+    else
+      echo >&2 "ucf no longer installed, not cleaning up"
+    fi
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-mysql.prerm b/build-scripts/debian-authoritative/pdns-backend-mysql.prerm
new file mode 100644 (file)
index 0000000..d02c6bd
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Pre removal
+
+set -e
+
+# Stop pdns.
+if [ -x "/etc/init.d/pdns" ]; then
+       invoke-rc.d pdns stop || exit $?
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-pgsql.docs b/build-scripts/debian-authoritative/pdns-backend-pgsql.docs
new file mode 100644 (file)
index 0000000..3b420cd
--- /dev/null
@@ -0,0 +1,3 @@
+modules/gpgsqlbackend/dnssec-3.x_to_3.4.0_schema.pgsql.sql
+modules/gpgsqlbackend/nodnssec-3.x_to_3.4.0_schema.pgsql.sql
+modules/gpgsqlbackend/schema.pgsql.sql
diff --git a/build-scripts/debian-authoritative/pdns-backend-pgsql.install b/build-scripts/debian-authoritative/pdns-backend-pgsql.install
new file mode 100644 (file)
index 0000000..b179a64
--- /dev/null
@@ -0,0 +1,2 @@
+usr/lib/*/pdns/libgpgsqlbackend.so*
+debian/config/pdns.local.gpgsql.conf usr/share/pdns-backend-pgsql
diff --git a/build-scripts/debian-authoritative/pdns-backend-pgsql.postinst b/build-scripts/debian-authoritative/pdns-backend-pgsql.postinst
new file mode 100644 (file)
index 0000000..fb9c140
--- /dev/null
@@ -0,0 +1,60 @@
+#!/bin/sh
+#
+# postinst script for pdns-backend-pgsql
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+PKGNAME="pdns-backend-pgsql"
+
+# rename ucf-conffile. This was mostly stolen from cacti.postinst after
+# a short discussion on debian-mentors, see
+# http://lists.debian.org/debian-mentors/2013/07/msg00027.html
+# and the following thread. Thanks to Paul Gevers
+renameconffile() {
+  oldname="$1"
+  newname="$2"
+  sourcefile="$3"
+  if [ -f $oldname ] ; then
+    if [ ! -e $newname ] ; then
+      mv $oldname $newname
+#   else: Don't do anything, leave old file in place
+    fi
+    ucf --purge $oldname
+    ucfr --purge $PKGNAME $oldname
+  elif [ ! -e $newname ] ; then
+#   The file was removed, we should respect that. Unfortunately, we don't
+#   have a proper way to tell ucf that for the new location, so we need
+#   to hack it a bit.
+#   We only need to do this if the target does not already exist. If the
+#   target already exists, we can later call ucf straight as there
+#   is already a version of the file available, althought never
+#   provided by this package, but we can just propose the new file anyway.
+    ucf --debconf-ok $sourcefile $newname
+    ucfr $PKGNAME $newname
+    rm -f $newname
+  fi
+}
+
+if [ "$1" = "configure" ]; then
+  if [ -n "$2" ] && dpkg --compare-versions "$2" lt 3.3; then
+    renameconffile /etc/powerdns/pdns.d/pdns.local.gpgsql /etc/powerdns/pdns.d/pdns.local.gpgsql.conf /dev/null
+  fi
+fi
+
+# Activate trigger
+dpkg-trigger pdns-server
+
+ucfr $PKGNAME /etc/powerdns/pdns.d/pdns.local.gpgsql.conf
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-pgsql.postrm b/build-scripts/debian-authoritative/pdns-backend-pgsql.postrm
new file mode 100644 (file)
index 0000000..57905f4
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+# Post removal
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+PKGNAME="pdns-backend-pgsql"
+
+# Remove configuration file
+if [ "$1" = "purge" ]; then
+    # Remove files registered with ucf.
+    # this has been pulled from aide-common.postrm
+    
+    UCF="ucf"
+    UCFR="ucfr"
+
+    if command -v ucfq >/dev/null; then
+      for file in $(ucfq --with-colons "$PKGNAME" | cut --delimiter=: --fields=1); do
+        for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
+          rm -f ${file}$ext
+        done
+        rm -f ${file}
+
+        if command -v $UCF >/dev/null; then
+          $UCF --purge ${file}
+        fi
+        if command -v $UCFR >/dev/null; then
+          $UCFR --purge $PKGNAME ${file}
+        fi
+      done
+    else
+      echo >&2 "ucf no longer installed, not cleaning up"
+    fi
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-pgsql.prerm b/build-scripts/debian-authoritative/pdns-backend-pgsql.prerm
new file mode 100644 (file)
index 0000000..d02c6bd
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Pre removal
+
+set -e
+
+# Stop pdns.
+if [ -x "/etc/init.d/pdns" ]; then
+       invoke-rc.d pdns stop || exit $?
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-pipe.examples b/build-scripts/debian-authoritative/pdns-backend-pipe.examples
new file mode 100644 (file)
index 0000000..a6535ef
--- /dev/null
@@ -0,0 +1 @@
+debian/config/pdns.local.pipe.conf
diff --git a/build-scripts/debian-authoritative/pdns-backend-pipe.install b/build-scripts/debian-authoritative/pdns-backend-pipe.install
new file mode 100644 (file)
index 0000000..34a1acc
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/*/pdns/libpipebackend.so*
diff --git a/build-scripts/debian-authoritative/pdns-backend-pipe.postinst b/build-scripts/debian-authoritative/pdns-backend-pipe.postinst
new file mode 100644 (file)
index 0000000..b5ee1d2
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# postinst script for pdns-backend-pipe
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+# Activate trigger
+dpkg-trigger pdns-server
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-pipe.prerm b/build-scripts/debian-authoritative/pdns-backend-pipe.prerm
new file mode 100644 (file)
index 0000000..3298654
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Add call to init script to actually stop pdns.
+
+set -e
+
+if [ -x "/etc/init.d/pdns" ]; then
+       invoke-rc.d pdns stop || exit $?
+fi
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-remote.install b/build-scripts/debian-authoritative/pdns-backend-remote.install
new file mode 100644 (file)
index 0000000..f8b7951
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/*/pdns/libremotebackend.so*
diff --git a/build-scripts/debian-authoritative/pdns-backend-remote.postinst b/build-scripts/debian-authoritative/pdns-backend-remote.postinst
new file mode 100644 (file)
index 0000000..7701ee1
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# postinst script for pdns-backend-remote
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+# Activate trigger
+dpkg-trigger pdns-server
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-remote.prerm b/build-scripts/debian-authoritative/pdns-backend-remote.prerm
new file mode 100644 (file)
index 0000000..3298654
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Add call to init script to actually stop pdns.
+
+set -e
+
+if [ -x "/etc/init.d/pdns" ]; then
+       invoke-rc.d pdns stop || exit $?
+fi
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-sqlite3.dirs b/build-scripts/debian-authoritative/pdns-backend-sqlite3.dirs
new file mode 100644 (file)
index 0000000..c50e5cc
--- /dev/null
@@ -0,0 +1 @@
+var/lib/powerdns
diff --git a/build-scripts/debian-authoritative/pdns-backend-sqlite3.docs b/build-scripts/debian-authoritative/pdns-backend-sqlite3.docs
new file mode 100644 (file)
index 0000000..7dbfd92
--- /dev/null
@@ -0,0 +1,3 @@
+modules/gsqlite3backend/dnssec-3.x_to_3.4.0_schema.sqlite3.sql
+modules/gsqlite3backend/nodnssec-3.x_to_3.4.0_schema.sqlite3.sql
+modules/gsqlite3backend/schema.sqlite3.sql
diff --git a/build-scripts/debian-authoritative/pdns-backend-sqlite3.install b/build-scripts/debian-authoritative/pdns-backend-sqlite3.install
new file mode 100644 (file)
index 0000000..e38dfd3
--- /dev/null
@@ -0,0 +1,2 @@
+usr/lib/*/pdns/libgsqlite3backend.so*
+debian/config/pdns.local.gsqlite3.conf usr/share/pdns-backend-sqlite3
diff --git a/build-scripts/debian-authoritative/pdns-backend-sqlite3.postinst b/build-scripts/debian-authoritative/pdns-backend-sqlite3.postinst
new file mode 100644 (file)
index 0000000..ea24daf
--- /dev/null
@@ -0,0 +1,60 @@
+#! /bin/sh
+#
+# postinst script for pdns-backend-sqlite3
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+PKGNAME="pdns-backend-sqlite3"
+
+# rename ucf-conffile. This was mostly stolen from cacti.postinst after
+# a short discussion on debian-mentors, see
+# http://lists.debian.org/debian-mentors/2013/07/msg00027.html
+# and the following thread. Thanks to Paul Gevers
+renameconffile() {
+  oldname="$1"
+  newname="$2"
+  sourcefile="$3"
+  if [ -f $oldname ] ; then
+    if [ ! -e $newname ] ; then
+      mv $oldname $newname
+#   else: Don't do anything, leave old file in place
+    fi
+    ucf --purge $oldname
+    ucfr --purge $PKGNAME $oldname
+  elif [ ! -e $newname ] ; then
+#   The file was removed, we should respect that. Unfortunately, we don't
+#   have a proper way to tell ucf that for the new location, so we need
+#   to hack it a bit.
+#   We only need to do this if the target does not already exist. If the
+#   target already exists, we can later call ucf straight as there
+#   is already a version of the file available, althought never
+#   provided by this package, but we can just propose the new file anyway.
+    ucf --debconf-ok $sourcefile $newname
+    ucfr $PKGNAME $newname
+    rm -f $newname
+  fi
+}
+
+if [ "$1" = "configure" ]; then
+  if [ -n "$2" ] && dpkg --compare-versions "$2" lt 3.3; then
+    renameconffile /etc/powerdns/pdns.d/pdns.local.gsqlite3 /etc/powerdns/pdns.d/pdns.local.gsqlite3.conf /dev/null
+  fi
+fi
+
+ucfr $PKGNAME /etc/powerdns/pdns.d/pdns.local.gsqlite3.conf
+
+# Activate trigger
+dpkg-trigger pdns-server
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-sqlite3.postrm b/build-scripts/debian-authoritative/pdns-backend-sqlite3.postrm
new file mode 100644 (file)
index 0000000..1f7a83d
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+# Post removal
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+PKGNAME="pdns-backend-sqlite3"
+
+# Remove configuration file
+if [ "$1" = "purge" ]; then
+    # Remove files registered with ucf.
+    # this has been pulled from aide-common.postrm
+    
+    UCF="ucf"
+    UCFR="ucfr"
+
+    if command -v ucfq >/dev/null; then
+      for file in $(ucfq --with-colons "$PKGNAME" | cut --delimiter=: --fields=1); do
+        for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
+          rm -f ${file}$ext
+        done
+        rm -f ${file}
+
+        if command -v $UCF >/dev/null; then
+          $UCF --purge ${file}
+        fi
+        if command -v $UCFR >/dev/null; then
+          $UCFR --purge $PKGNAME ${file}
+        fi
+      done
+    else
+      echo >&2 "ucf no longer installed, not cleaning up"
+    fi
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-backend-sqlite3.prerm b/build-scripts/debian-authoritative/pdns-backend-sqlite3.prerm
new file mode 100644 (file)
index 0000000..d02c6bd
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Pre removal
+
+set -e
+
+# Stop pdns.
+if [ -x "/etc/init.d/pdns" ]; then
+       invoke-rc.d pdns stop || exit $?
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-server.README.Debian b/build-scripts/debian-authoritative/pdns-server.README.Debian
new file mode 100644 (file)
index 0000000..3840693
--- /dev/null
@@ -0,0 +1,28 @@
+Notes about Debian's PowerDNS package
+-------------------------------------
+
+ + Introduction
+
+PowerDNS is a powerful DNS server, it has the ability to communicate
+with several backends, including MySQL, PostgreSQL, LDAP etc.
+
+ + Configure
+
+The configuration for PowerDNS is separated in different files. In
+/etc/powerdns/pdns.conf are the default settings and in
+/etc/powerdns/pdns.d/pdns.local.conf are the user changes. The
+configuration for specific backends can go into
+/etc/powerdns/pdns.d/pdns.local.conf or any other file in
+/etc/powerdns/pdns.d/ending in .conf. Please note that there can only
+be a single launch= statement, and that you need to take care that
+your editor does not leave backup files around, as PowerDNS reads
+every file in the directory (see
+http://wiki.powerdns.com/trac/ticket/493)
+
+ + Chroot
+
+PowerDNS can run in a chrooted environment but this has some disadvantages.
+It is not easy to connect via a socket to another service like MySQL. And when
+using the sqlite backend you need to move the database in your chroot. If you
+don't have these restrictions you can easily enable the chroot option.
+
diff --git a/build-scripts/debian-authoritative/pdns-server.config b/build-scripts/debian-authoritative/pdns-server.config
new file mode 100644 (file)
index 0000000..08f5557
--- /dev/null
@@ -0,0 +1,48 @@
+#!/bin/sh
+#
+# Load several components for debconf configuration
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+PDNSCONF=/etc/powerdns/pdns.conf
+
+db_version 2.0
+if [ ! -f $PDNSCONF ]; then
+  db_input medium pdns-server/localaddress || true
+  db_input medium pdns-server/allowrecursion || true
+
+  db_go || true
+else
+  LOCAL=`(cat $PDNSCONF | grep "^local-address=" | awk -F '=' '{print $2}') || true`
+  RECURSION=`(cat $PDNSCONF | grep "^allow-recursion=" | awk -F '=' '{print $2}') || true`
+
+  # Put multiple lines on one line and separate them by a comma
+  REC=""
+  for i in $RECURSION; do
+    REC="$i,$REC"
+  done
+
+  # Remove , on the end of the line
+  RECURSION=`echo $REC | sed -e 's/,$//'`
+
+  if [ ! -z "$RECURSION" ]; then
+    db_set pdns-server/allowrecursion "$RECURSION"
+  else
+    db_set pdns-server/allowrecursion "127.0.0.1"
+  fi
+  if [ ! -z "$LOCAL" ]; then
+    db_set pdns-server/localaddress $LOCAL
+  else
+    db_set pdns-server/localaddress "0.0.0.0"
+  fi
+
+  db_fset pdns-server/allowrecursion seen true
+  db_fset pdns-server/localaddress seen true
+fi
+
+db_stop || true
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-server.dirs b/build-scripts/debian-authoritative/pdns-server.dirs
new file mode 100644 (file)
index 0000000..9a574d5
--- /dev/null
@@ -0,0 +1,3 @@
+etc/powerdns/pdns.d
+etc/resolvconf
+etc/resolvconf/update.d
diff --git a/build-scripts/debian-authoritative/pdns-server.examples b/build-scripts/debian-authoritative/pdns-server.examples
new file mode 100644 (file)
index 0000000..1f6c247
--- /dev/null
@@ -0,0 +1 @@
+debian/config/pdns.local.bind.conf
diff --git a/build-scripts/debian-authoritative/pdns-server.install b/build-scripts/debian-authoritative/pdns-server.install
new file mode 100644 (file)
index 0000000..4443164
--- /dev/null
@@ -0,0 +1,11 @@
+usr/bin/pdns_control
+usr/bin/zone2sql
+usr/bin/pdnssec
+usr/lib/*/pdns/libbindbackend.so*
+usr/sbin/pdns_server
+debian/config/pdns.conf usr/share/pdns-server/
+debian/config/pdns.local.conf usr/share/pdns-server/
+debian/config/pdns usr/share/pdns-server/
+debian/config/pdns.simplebind.conf usr/share/pdns-server/
+debian/resolvconf/pdns etc/resolvconf/update.d/
+debian/insserv.d/pdns-server etc/insserv.d/
diff --git a/build-scripts/debian-authoritative/pdns-server.manpages b/build-scripts/debian-authoritative/pdns-server.manpages
new file mode 100644 (file)
index 0000000..d1c8b8c
--- /dev/null
@@ -0,0 +1,4 @@
+debian/tmp/usr/share/man/man1/pdns_control.1
+debian/tmp/usr/share/man/man1/pdns_server.1
+debian/tmp/usr/share/man/man1/zone2sql.1
+debian/tmp/usr/share/man/man1/pdnssec.1
diff --git a/build-scripts/debian-authoritative/pdns-server.pdns.init b/build-scripts/debian-authoritative/pdns-server.pdns.init
new file mode 100644 (file)
index 0000000..d951ccb
--- /dev/null
@@ -0,0 +1,273 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides:          pdns
+# Required-Start:    $network $remote_fs $syslog
+# Required-Stop:     $network $remote_fs $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Should-Start:      slapd
+# Should-Stop:       slapd
+# Short-Description: PowerDNS Authoritative Name Server
+# Description: PDNS is a versatile high performance authoritative nameser
+### END INIT INFO
+
+PATH=/bin:/sbin:/usr/bin:/usr/sbin
+BINARYPATH=/usr/bin
+SBINARYPATH=/usr/sbin
+SOCKETPATH=/var/run
+
+ODESC="PowerDNS Authoritative Name Server"
+DESC="$ODESC"
+NAME=pdns
+DAEMON=/usr/sbin/pdns_server
+DAEMON_ARGS=""
+CONTROL=/usr/bin/pdns_control
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+[ -x "$DAEMON" ] || exit 0
+
+[ -r /etc/default/pdns ] && . /etc/default/pdns
+
+# Make sure that /var/run exists
+mkdir -p $SOCKETPATH
+cd $SOCKETPATH
+
+# Handle instance scripts
+suffix=$(basename $0 | cut -d- -f2- -s)
+
+if [ -n "$suffix" ]; then
+       SUFFIX="--config-name=$suffix"
+       DAEMON_ARGS="$DAEMON_ARGS $SUFFIX"
+       NAME="$NAME-$suffix"
+       DESC="$DESC (config name $suffix)"
+       PIDFILE="/var/run/$NAME-$suffix.pid"
+fi
+
+# Define LSB log_* functions.
+. /lib/lsb/init-functions
+
+# function to invoke properly parametrized pdns_control
+doPC()
+{
+       $CONTROL $SUFFIX $1 $2 2> /dev/null
+       return $?
+}
+
+isrunning()
+{
+       doPC ping > /dev/null
+       return $?
+}
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+       # Return
+       #   0 if daemon has been started
+       #   1 if daemon was already running
+       #   2 if daemon could not be started
+       if isrunning; then
+               return 1
+       fi
+       start-stop-daemon --start --quiet \
+               --pidfile $PIDFILE --exec $DAEMON -- \
+               $DAEMON_ARGS --daemon --guardian=yes \
+               || return 2
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+       # Return
+       #   0 if daemon has been stopped
+       #   1 if daemon was already stopped
+       #   2 if daemon could not be stopped
+       #   other if a failure occurred
+       doPC quit >/dev/null
+       RETVAL="2"
+       for sec in $(seq 1 5); do
+               if ! isrunning; then
+                       RETVAL="0"
+                       break
+               fi
+               sleep 1
+       done
+       [ "$RETVAL" = 2 ] && return 2
+       rm -f $PIDFILE
+}
+
+case "$1" in
+  start)
+       [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+       do_start
+       case "$?" in
+               0|1)
+                       [ "$VERBOSE" != no ] && log_end_msg 0
+                       exit 0
+                       ;;
+               2)
+                       [ "$VERBOSE" != no ] && log_end_msg 1
+                       exit 1
+                       ;;
+       esac
+       ;;
+  stop)
+       [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+       do_stop
+       case "$?" in
+               0|1)
+                       [ "$VERBOSE" != no ] && log_end_msg 0
+                       exit 0
+                       ;;
+               2)
+                       [ "$VERBOSE" != no ] && log_end_msg 1
+                       exit 1
+                       ;;
+       esac
+       ;;
+  status)
+       if isrunning; then
+               log_success_msg "$NAME is running: $(doPC status)"
+               exit 0
+       else
+               log_failure_msg "$NAME is not running"
+               exit 3
+       fi
+       ;;
+  force-stop)
+       [ "$VERBOSE" != no ] && log_daemon_msg "Killing $ODESC (all instances)" "$NAME"
+       kill -9 $(pidof pdns_server)
+       case "$?" in
+               0)
+                       [ "$VERBOSE" != no ] && log_end_msg 0
+                       exit 0
+                       ;;
+               1)
+                       [ "$VERBOSE" != no ] && log_end_msg 1
+                       exit 1
+                       ;;
+       esac
+       ;;
+  restart)
+       log_daemon_msg "Restarting $DESC" "$NAME"
+       do_stop
+       case "$?" in
+               0|1)
+                       do_start
+                       case "$?" in
+                               0)
+                                       log_end_msg 0
+                                       exit 0
+                                       ;;
+                               1)
+                                       log_end_msg 1  # Old process is still running
+                                       exit 1
+                                       ;;
+                               *)
+                                       log_end_msg 1 # Failed to start
+                                       exit 1
+                                       ;;
+                       esac
+                       ;;
+               *)
+                       # Failed to stop
+                       log_end_msg 1
+                       exit 1
+                       ;;
+       esac
+       ;;
+  reload|force-reload)
+       log_daemon_msg "Reloading $DESC" "$NAME"
+       if isrunning; then
+               doPC cycle >/dev/null
+               case "$?" in
+                       0)
+                               [ "$VERBOSE" != no ] && log_end_msg 0
+                               exit 0
+                               ;;
+                       1)
+                               [ "$VERBOSE" != no ] && log_end_msg 1
+                               exit 1
+                               ;;
+               esac
+       else
+               log_end_msg 0
+               exit 7
+       fi
+       ;;
+  monitor)
+       if isrunning; then
+               echo "already running"
+               exit 1
+       else
+               $DAEMON $DAEMON_ARGS --daemon=no --guardian=no --control-console --loglevel=9
+               exit 0
+       fi
+       ;;
+  dump)
+       if isrunning; then
+               doPC list
+               exit 0
+       else
+               echo "not running"
+               exit 7
+       fi
+       ;;
+  show)
+       if isrunning; then
+               if [ $# -lt 2 ]; then
+                       echo "Insufficient parameters"
+                       exit 2
+               fi
+               echo -n "$2="
+               doPC show $2
+               exit 0
+       else
+               echo "not running"
+               exit 7
+       fi
+       ;;
+  mrtg)
+       if isrunning; then
+               if [ $# -lt 2 ]; then
+                       echo "Insufficient parameters"
+                       exit 2
+               fi
+               doPC show $2
+               if [ "$3x" != "x" ]; then
+                       doPC show $3
+               else
+                       echo 0
+               fi
+               doPC uptime
+               echo "$DESC"
+               exit 0
+       else
+               echo "not running"
+               exit 7
+       fi
+       ;;
+  cricket)
+       if isrunning; then
+               if [ $# -lt 2 ]; then
+                       echo "Insufficient parameters"
+                       exit 1
+               fi
+               doPC show $2
+               exit 0
+       else
+               echo "not running"
+               exit 7
+       fi
+       ;;
+  *)
+       echo "Usage: $SCRIPTNAME {start|stop|status|force-stop|restart|reload|monitor|dump|show|mrtg|cricket}"
+       ;;
+esac
+
+exit 0
diff --git a/build-scripts/debian-authoritative/pdns-server.pdns.service b/build-scripts/debian-authoritative/pdns-server.pdns.service
new file mode 100644 (file)
index 0000000..9d3ba43
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=PowerDNS Authoritative Server
+After=network-online.target
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/pdns_server --daemon=no
+ExecStop=/usr/bin/pdns_control quit
+TimeoutStopSec=5
+Restart=on-failure
+RestartSec=2
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target
diff --git a/build-scripts/debian-authoritative/pdns-server.postinst b/build-scripts/debian-authoritative/pdns-server.postinst
new file mode 100644 (file)
index 0000000..5e57e6d
--- /dev/null
@@ -0,0 +1,169 @@
+#!/bin/sh
+#
+# postinst script for pdns-server
+
+set -e
+
+# Load debconf
+. /usr/share/debconf/confmodule
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+PKGNAME="pdns-server"
+
+PDNSCONF=/etc/powerdns/pdns.conf
+PDNSDEFAULT=/etc/default/pdns
+if [ -e $PDNSCONF ]; then
+  PDNSDIR=`cat $PDNSCONF | grep include | awk -F '=' '{print $2}'`
+fi
+if [ -z "$PDNSDIR" ]; then
+  PDNSDIR=/etc/powerdns/pdns.d
+fi
+PDNSLOCAL=$PDNSDIR/pdns.local.conf
+
+# Temporary files
+PDNSCONFTEMP=`mktemp`
+PDNSLOCALTEMP=`mktemp`
+PDNSDEFAULTTEMP=`mktemp`
+
+# rename ucf-conffile. This was mostly stolen from cacti.postinst after
+# a short discussion on debian-mentors, see
+# http://lists.debian.org/debian-mentors/2013/07/msg00027.html
+# and the following thread. Thanks to Paul Gevers
+renameconffile() {
+  oldname="$1"
+  newname="$2"
+  sourcefile="$3"
+  if [ -f $oldname ] ; then
+    if [ ! -e $newname ] ; then
+      mv $oldname $newname
+#   else: Don't do anything, leave old file in place
+    fi
+    ucf --purge $oldname
+    ucfr --purge $PKGNAME $oldname
+  elif [ ! -e $newname ] ; then
+#   The file was removed, we should respect that. Unfortunately, we don't
+#   have a proper way to tell ucf that for the new location, so we need
+#   to hack it a bit.
+#   We only need to do this if the target does not already exist. If the
+#   target already exists, we can later call ucf straight as there
+#   is already a version of the file available, althought never
+#   provided by this package, but we can just propose the new file anyway.
+    ucf --debconf-ok $sourcefile $newname
+    ucfr $PKGNAME $newname
+    rm -f $newname
+  fi
+}
+
+
+case "$1" in
+  configure)
+    if [ -z "`getent group pdns`" ]; then
+      addgroup --quiet --system pdns
+    fi
+    if [ -z "`getent passwd pdns`" ]; then
+      echo -n "Creating user and group pdns..."
+      adduser --quiet --system --home /var/spool/powerdns --shell /bin/false --ingroup pdns --disabled-password --disabled-login --gecos "PowerDNS" pdns
+      echo "done"
+    fi
+
+    # Fill the temporary files with config items.
+    cat /usr/share/pdns-server/pdns.conf > $PDNSCONFTEMP
+    cat /usr/share/pdns-server/pdns.local.conf > $PDNSLOCALTEMP
+    cat /usr/share/pdns-server/pdns > $PDNSDEFAULTTEMP
+
+    # Do we listen on a specified address
+    db_get pdns-server/localaddress || true
+    if [ ! -z "$RET" ]; then
+      sed -i -e "s|^\(#\)\?\(# \)\?local-address=.*$|local-address=$RET|" $PDNSCONFTEMP
+    fi
+
+    # Allow recursion subnets ?
+    db_get pdns-server/allowrecursion || true
+    if [ ! -z "$RET" ]; then
+      sed -i -e "s|^\(#\)\?\(# \)\?allow-recursion=.*$|allow-recursion=$RET|" $PDNSCONFTEMP
+    fi
+    
+    # this can be removed once we do not have to update from
+    # wheezy (pdns 3.1) any more. Note: there was never pdns 3.2 in Debian
+    if [ -n "$2" ] && dpkg --compare-versions "$2" lt 3.3; then
+      renameconffile $PDNSDIR/pdns.local $PDNSDIR/pdns.local.conf $PDNSLOCALTEMP
+      renameconffile $PDNSDIR/pdns.simplebind $PDNSDIR/pdns.simplebind.conf /usr/share/pdns-server/pdns.simplebind.conf
+    fi
+
+    # register configuration files with ucf
+    ucfr $PKGNAME $PDNSCONF
+    ucfr $PKGNAME $PDNSDEFAULT
+    ucfr $PKGNAME $PDNSLOCAL
+    ucfr $PKGNAME $PDNSDIR/pdns.simplebind.conf
+
+
+    # Install the new configuration files if the user wants it.
+    ucf --debconf-ok $PDNSCONFTEMP $PDNSCONF
+    ucf --debconf-ok $PDNSDEFAULTTEMP $PDNSDEFAULT
+    ucf --debconf-ok $PDNSLOCALTEMP $PDNSLOCAL
+    ucf --debconf-ok /usr/share/pdns-server/pdns.simplebind.conf $PDNSDIR/pdns.simplebind.conf
+
+    # Stop the debconf stuff
+    db_stop || true
+
+    # Clean up temporary files.
+    rm -f $PDNSCONFTEMP $PDNSLOCALTEMP $PDNSDEFAULTTEMP
+
+    # There could be passwords in these files. PowerDNS first reads the
+    # configuration files and then drop root privileges.
+    if [ -z "$2" ]; then
+      [ -e $PDNSCONF ] && chmod 0600 $PDNSCONF
+      [ -e $PDNSLOCAL ] && chmod 0600 $PDNSLOCAL
+      [ -d $PDNSDIR ] && chmod 0755 $PDNSDIR
+      [ -e $PDNSDEFAULT ] && chmod 0644 $PDNSDEFAULT
+    fi
+    
+    # If we still have the default config, make sure bindbackend.conf exists
+    PDNSBIND="/etc/powerdns/pdns.d/pdns.simplebind.conf"
+    PDNSBINDBACKENDCONF="/etc/powerdns/bindbackend.conf"
+    if [ -e "$PDNSBIND" ]; then
+      if grep -q "^bind-config=$PDNSBINDBACKENDCONF$" $PDNSBIND; then
+        touch $PDNSBINDBACKENDCONF
+      fi
+    fi
+
+  ;;
+
+  triggered)
+    if [ -x /usr/sbin/invoke-rc.d ]; then
+      invoke-rc.d pdns restart || exit $?
+    else
+      /etc/init.d/pdns restart || exit $?
+    fi
+
+    # Stop the debconf stuff
+    db_stop || true
+  ;;
+
+  abort-upgrade|abort-remove|abort-deconfigure)
+  ;;
+
+  *)
+    echo "postinst called with unknown argument \`$1'" >&2
+    exit 1
+  ;;
+esac
+
+# Recover from incorrect init.d script headers in version 2.9.22-1 and earlier
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "2.9.22-1" \
+       && [ -f /etc/rc0.d/K[0-9][0-9]pdns ] \
+       && ! [ -f /etc/rc1.d/K[0-9][0-9]pdns ]; then
+  update-rc.d -f pdns remove
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-server.postrm b/build-scripts/debian-authoritative/pdns-server.postrm
new file mode 100644 (file)
index 0000000..f81d9b1
--- /dev/null
@@ -0,0 +1,58 @@
+#!/bin/sh
+#
+# postrm script for pdns-server
+
+set -e
+
+if [ -n "$PDNSDEBUG" ]; then
+  echo "now debugging $0 $@"
+  set -x
+fi
+
+PKGNAME="pdns-server"
+
+case "$1" in
+  remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+  ;;
+
+  purge)
+    # Remove pseudo-conffile.
+    rm -f /etc/powerdns/bindbackend.conf
+
+    # Remove files registered with ucf.
+    # this has been pulled from aide-common.postrm
+    
+    UCF="ucf"
+    UCFR="ucfr"
+
+    if command -v ucfq >/dev/null; then
+      for file in $(ucfq --with-colons "$PKGNAME" | cut --delimiter=: --fields=1); do
+        for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
+          rm -f ${file}$ext
+        done
+        rm -f ${file}
+
+        if command -v $UCF >/dev/null; then
+          $UCF --purge ${file}
+        fi
+        if command -v $UCFR >/dev/null; then
+          $UCFR --purge $PKGNAME ${file}
+        fi
+      done
+    else
+      echo >&2 "ucf no longer installed, not cleaning up"
+    fi
+  ;;
+
+  *)
+    echo "postrm called with unknown argument \`$1'" >&2
+    exit 1
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/build-scripts/debian-authoritative/pdns-server.templates b/build-scripts/debian-authoritative/pdns-server.templates
new file mode 100644 (file)
index 0000000..737b5e4
--- /dev/null
@@ -0,0 +1,15 @@
+Template: pdns-server/localaddress
+Type: string
+_Description: IP address where PowerDNS should listen on:
+ If you have multiple IPs, the default behaviour of binding to all addresses
+ can cause the OS to select the wrong IP for outgoing packets, so it is
+ recommended to bind PowerDNS to a specific IP here.
+
+Template: pdns-server/allowrecursion
+Type: string
+Default: 127.0.0.1
+_Description: List of subnets that are allowed to recurse:
+ Enter here, comma separated, the subnets that are allowed to recurse.
+ Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a
+ subnet.
+
diff --git a/build-scripts/debian-authoritative/pdns-tools.install b/build-scripts/debian-authoritative/pdns-tools.install
new file mode 100644 (file)
index 0000000..a76d775
--- /dev/null
@@ -0,0 +1,9 @@
+usr/bin/dnsbulktest
+usr/bin/dnsgram
+usr/bin/dnsreplay
+usr/bin/dnsscan
+usr/bin/dnsscope
+usr/bin/dnstcpbench
+usr/bin/dnswasher
+usr/bin/nsec3dig
+usr/bin/saxfr
diff --git a/build-scripts/debian-authoritative/pdns-tools.manpages b/build-scripts/debian-authoritative/pdns-tools.manpages
new file mode 100644 (file)
index 0000000..1be4dc2
--- /dev/null
@@ -0,0 +1,9 @@
+debian/tmp/usr/share/man/man1/dnsbulktest.1
+debian/tmp/usr/share/man/man1/dnsgram.1
+debian/tmp/usr/share/man/man1/dnsreplay.1
+debian/tmp/usr/share/man/man1/dnsscan.1
+debian/tmp/usr/share/man/man1/dnsscope.1
+debian/tmp/usr/share/man/man1/dnstcpbench.1
+debian/tmp/usr/share/man/man1/dnswasher.1
+debian/tmp/usr/share/man/man1/nsec3dig.1
+debian/tmp/usr/share/man/man1/saxfr.1
diff --git a/build-scripts/debian-authoritative/po/POTFILES.in b/build-scripts/debian-authoritative/po/POTFILES.in
new file mode 100644 (file)
index 0000000..9ff8f78
--- /dev/null
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] pdns-server.templates
diff --git a/build-scripts/debian-authoritative/po/cs.po b/build-scripts/debian-authoritative/po/cs.po
new file mode 100644 (file)
index 0000000..3adfdb8
--- /dev/null
@@ -0,0 +1,70 @@
+#
+#    Translators, if you are not familiar with the PO format, gettext
+#    documentation is worth reading, especially sections dedicated to
+#    this format, e.g. by running:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#
+#    Some information specific to po-debconf are available at
+#            /usr/share/doc/po-debconf/README-trans
+#         or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+#    Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2007-01-27 22:44+0100\n"
+"Last-Translator: Jan Outrata <outrataj@upcase.inf.upol.cz>\n"
+"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
+"Language: cs\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "IP adresa, na které má PowerDNS naslouchat:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Pokud máte více IP adres, může výchozí napojení na všechny adresy způsobit, "
+"že OS vybere pro odchozí pakety špatnou IP, takže je doporučeno PowerDNS "
+"napojit na specifickou IP adresu."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Seznam podsítí, které je povoleno začlenit:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Zde zadejte, oddělené čárkami, podsítě, které je povoleno začlenit. Možné "
+"hodnoty jsou 127.0.0.1 pro IP adresu a 192.168.0.0/24 pro podsíť."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "Chcete spustit server PowerDNS automaticky?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Pokud zde odpovíte kladně, bude inicializační skript automaticky "
+#~ "startovat autoritativní jmenný server PowerDNS."
diff --git a/build-scripts/debian-authoritative/po/da.po b/build-scripts/debian-authoritative/po/da.po
new file mode 100644 (file)
index 0000000..6d6613a
--- /dev/null
@@ -0,0 +1,63 @@
+# Danish translation pdns.
+# Copyright (C) 2010 pdns & nedenstående oversættere.
+# This file is distributed under the same license as the pdns package.
+# Joe Hansen <joedalton2@yahoo.dk>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2010-06-11 17:30+01:00\n"
+"Last-Translator: Joe Hansen <joedalton2@yahoo.dk>\n"
+"Language-Team: Danish <debian-l10n-danish@lists.debian.org> \n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "IP-adresse hvorpå PowerDNS skal lytte:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Hvis du har flere IP'er, kan standardopførelsen for tildeling til alle "
+"adresser medføre at operativsystemet vælger den forkerte IP til udgående "
+"pakker, så det anbefales at tildele PowerDNS en specifik IP her."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Liste af undernet som har tilladelse til rekursiv:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Indtast her, kommaadskilt, de undernet som har tilladelse til rekursiv. "
+"Tilladte værdier er 127.0.0.1 for en ip-adresse og 192.168.0.0/24 for et "
+"undernet."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "Ønsker du automatisk at starte PowerDNS-serveren?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Hvis du accepterer her, vil et opstartsskript blive brugt til automatisk "
+#~ "at starte den autoritære PowerDNS-navneserver."
diff --git a/build-scripts/debian-authoritative/po/de.po b/build-scripts/debian-authoritative/po/de.po
new file mode 100644 (file)
index 0000000..bc1e4bc
--- /dev/null
@@ -0,0 +1,72 @@
+# translation of de.po to German
+#
+#    Translators, if you are not familiar with the PO format, gettext
+#    documentation is worth reading, especially sections dedicated to
+#    this format, e.g. by running:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#    Some information specific to po-debconf are available at
+#            /usr/share/doc/po-debconf/README-trans
+#         or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#    Developers do not need to manually edit POT or PO files.
+# Christoph Haas <email@christoph-haas.de>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: de\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2006-05-11 21:59+0200\n"
+"Last-Translator: Christoph Haas <email@christoph-haas.de>\n"
+"Language-Team:  <de@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "IP-Adresse, an der PowerDNS Anfragen entgegen nimmt."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Falls sie mehrere IP-Adressen haben, bindet sich PowerDNS standardmäßig an "
+"alle Adressen. Möglicherweise wählt das Betriebssystem dadurch aber die "
+"falsche Adresse für ausgehende Datenpakete aus. Es wird empfohlen, die IP-"
+"Adresse hier explizit anzugeben."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Liste der Subnetze, die rekursive Anfragen stellen dürfen:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Geben Sie hier - durch Kommas getrennt - die Subnetze an, die rekursive "
+"Anfragen stellen dürfen. Erlaubte Werte sind z.B. 127.0.0.1 für eine IP-"
+"Adresse oder 192.168.0.0/24 für ein Subnetz."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "Soll der PowerDNS-Server automatisch gestartet werden?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Wenn Sie hier \"OK\" auswählen, wird im Init-Skript der autoritative "
+#~ "Nameserver automatisch mit gestartet."
diff --git a/build-scripts/debian-authoritative/po/es.po b/build-scripts/debian-authoritative/po/es.po
new file mode 100644 (file)
index 0000000..73d278d
--- /dev/null
@@ -0,0 +1,88 @@
+# pdns po-debconf translation to Spanish
+# Copyright (C) 2008 Software in the Public Interest
+# This file is distributed under the same license as the pdns package.
+#
+# Changes:
+# - Initial translation
+#      Alba Ferri Fitó <branvan2k@gmail.com>, 2008
+# - Updates
+#      Alba Ferri Fitó <branvan2k@gmail.com>, 2008
+#
+# Traductores, si no conoce el formato PO, merece la pena leer la
+# documentación de gettext, especialmente las secciones dedicadas a este
+# formato, por ejemplo ejecutando:
+#       info -n '(gettext)PO Files'
+#       info -n '(gettext)Header Entry'
+#
+# Equipo de traducción al español, por favor, lean antes de traducir
+# los siguientes documentos:
+#
+#  - El proyecto de traducción de Debian al español
+#    http://www.debian.org/intl/spanish/
+#    especialmente las notas de traducción en
+#    http://www.debian.org/intl/spanish/notas
+#
+#  - La guía de traducción de po's de debconf:
+#    /usr/share/doc/po-debconf/README-trans
+#    o http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns_2.9.21.1.0-1\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2008-26-11 04:36+0200\n"
+"Last-Translator: Alba Ferri <branvan2k@gmail.com>\n"
+"Language-Team: Spanish <debian-l10n-spanish@lists.debian.org>\n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "Dirección IP en la que debe escuchar PowerDNS:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Si posee múltiples IP, el comportamiento por omisión de vincular todas las "
+"direcciones puede causar que el Sistema Operativo seleccione la IP "
+"incorrecta para los paquetes salientes, por tanto se recomienda vincular "
+"PowerDNS a una IP específica."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Lista de subredes permitidas a las que se puede acceder:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Introduzca aquí, separadas por comas, las subredes permitidas a las que se "
+"puede acceder. Los valores permitidos son 127.0.0.1 para una dirección ip y "
+"192.168.0.0/24 para una subred."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "¿Desea iniciar el servidor PowerDNS automáticamente?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Si acepta, un script de inicio se usará para iniciar automáticamente el "
+#~ "servidor de nombres autoritario de PowerDNS."
diff --git a/build-scripts/debian-authoritative/po/eu.po b/build-scripts/debian-authoritative/po/eu.po
new file mode 100644 (file)
index 0000000..ec95864
--- /dev/null
@@ -0,0 +1,64 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Piarres Beobide <pi@beobide.net>, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2009-10-29 09:31+0200\n"
+"Last-Translator: Piarres Beobide <pi@beobide.net>\n"
+"Language-Team: Euskara <debian-l10n-basque@lists.debian.org\n"
+"Language: eu\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Virtaal 0.4.1\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "PowerDNS-ek entzun behar duen IP helbidea:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"IP helbide anitz adituzu helbide guztietara lotzeko lehenetsitako portaera k "
+"SE-ak kanporako paketeetan okerreko IP helbidea hautatzea, beraz "
+"gomendagarria da PowerDNS IP zehatz batera hemen lotzea."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Errekurtsoa erbaili dezaketen azpisare zerrenda:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"IDatzi hemen, gakoz bereizirik errekurtsoa erabili dezateken azpisareak. "
+"Onartzen diren balio formatua 127.0.0.1 ip helbideeentzat eta 192.168.0.0/24 "
+"azpisareentzat."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "PowerDNS zerbitzaria automatikoki abiaraztea nahi al duzu?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Hemen onartuaz hasiera-script bat erabiliko da PowerDNS izen-zerbitzaria "
+#~ "automatikoki abiarazteko."
diff --git a/build-scripts/debian-authoritative/po/fi.po b/build-scripts/debian-authoritative/po/fi.po
new file mode 100644 (file)
index 0000000..343e3ee
--- /dev/null
@@ -0,0 +1,65 @@
+# Copyright (C) 2009
+# This file is distributed under the same license as the pdns package.
+#
+# Esko Arajärvi <edu@iki.fi>, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2009-11-01 20:50+0200\n"
+"Last-Translator: Esko Arajärvi <edu@iki.fi>\n"
+"Language-Team: Finnish <debian-l10n-finnish@lists.debian.org>\n"
+"Language: fi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Lokalize 1.0\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "IP-osoite, jota PowerDNS:n tulisi kuunnella:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Oletuksena PowerDNS kuuntelee kaikkia osoitteita. Jos järjestelmällä on "
+"useampia IP-osoitteita, käyttöjärjestelmä saattaa valita väärän IP-osoitteen "
+"lähteville paketeille. Tästä syystä on suositeltavaa määritellä tässä tietty "
+"IP-osoite."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Aliverkot, jotka saavat tehdä rekursiivisia kyselyitä:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Anna pilkuin eroteltuina luettelo aliverkoista, jotka saavat tehdä "
+"rekursiivisia kyselyitä. Sallitut muodot ovat 127.0.0.1 IP-osoitteille ja "
+"192.168.0.0/24 aliverkoille."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "Tulisiko the PowerDNS-palvelin käynnistää automaattisesti?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Jos valitset tämän vaihtoehdon, PowerDNS käynnistetään automaattisesti "
+#~ "määräävänä nimipalvelimena käyttäen käynnistyskomentosarjaa."
diff --git a/build-scripts/debian-authoritative/po/fr.po b/build-scripts/debian-authoritative/po/fr.po
new file mode 100644 (file)
index 0000000..76182f1
--- /dev/null
@@ -0,0 +1,70 @@
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+# Developers do not need to manually edit POT or PO files.
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2006-05-14 14:55+0200\n"
+"Last-Translator: Jean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>\n"
+"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "Adresse IP où PowerDNS doit être à l'écoute :"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Si vous utilisez plusieurs adresses IP, le comportement par défaut est "
+"d'écouter sur chacune d'entre-elles, ce qui peut conduire le système "
+"d'exploitation à choisir la mauvaise adresse IP pour les paquets sortants. "
+"Il est donc recommandé d'associer PowerDNS à une adresse IP spécifique."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Liste des sous-réseaux pouvant être interrogés :"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Veuillez indiquer la liste des sous-réseaux, séparés par des virgules, qu'il "
+"est autorisé de parcourir. Des valeurs autorisées sont 127.0.0.1 pour une "
+"adresse IP et 192.168.0.0/24 pour un sous-réseau entier."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "PowerDNS doit-il être démarré automatiquement ?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Si vous choisissez cette option, PowerDNS sera lancé automatiquement au "
+#~ "démarrage du système."
diff --git a/build-scripts/debian-authoritative/po/gl.po b/build-scripts/debian-authoritative/po/gl.po
new file mode 100644 (file)
index 0000000..0d720d5
--- /dev/null
@@ -0,0 +1,63 @@
+# Galician translation of pdns's debconf templates
+# This file is distributed under the same license as the pdns package.
+# Jacobo Tarrio <jtarrio@debian.org>, 2007.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2007-03-07 00:36+0100\n"
+"Last-Translator: Jacobo Tarrio <jtarrio@debian.org>\n"
+"Language-Team: Galician <proxecto@trasno.net>\n"
+"Language: gl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "Enderezo IP no que PowerDNS debería escoitar:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Se ten varios enderezos IP, o comportamento por defecto de se ligar a "
+"tódolos enderezos pode facer que o sistema operativo escolla o IP incorrecto "
+"para os paquetes saíntes, polo que se recomenda ligar PowerDNS a un enderezo "
+"IP determinado."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Lista de subredes ás que se lle permite facer recursión:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Introduza aquí, separadas por comas, as subredes ás que se lle permite facer "
+"recursión. Admítense os valores 127.0.0.1 para un enderezo IP e "
+"192.168.0.0/24 para unha subrede."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "¿Quere iniciar o servidor PowerDNS automaticamente?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Se acepta esta opción, hase empregar un script de inicio para iniciar "
+#~ "automaticamente o servidor de nomes con autoridade PowerDNS."
diff --git a/build-scripts/debian-authoritative/po/it.po b/build-scripts/debian-authoritative/po/it.po
new file mode 100644 (file)
index 0000000..0741aff
--- /dev/null
@@ -0,0 +1,64 @@
+# Italian translation of pdns.\r
+# COPYRIGHT (C) 2009 THE pdns'S COPYRIGHT HOLDER\r
+# This file is distributed under the same license as the pdns package.\r
+# Luca Monducci <luca.mo@tiscali.it>, 2009.\r
+# \r
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns 2.9.22 italian debconf templates\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2009-10-17 15:01+0200\n"
+"Last-Translator: Luca Monducci <luca.mo@tiscali.it>\n"
+"Language-Team: Italian <debian-l10n-italian@lists.debian.org>\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "Indirizzo IP su cui PowerDNS deve stare in ascolto:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"In caso di più IP, il comportamento predefinito di collegarsi su tutti gli "
+"indirizzi potrebbe comportare la scelta da parte del SO dell'IP sbagliato "
+"per i pacchetti in uscita, per questo si raccomanda di collegare PowerDNS a "
+"un IP specifico."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Elenco delle sottoreti a cui è concesso di l'uso del server:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Inserire l'elenco delle sottoreti, separate da una virgola, a cui è permesso "
+"l'uso del server. I valori ammessi sono 127.0.0.1 per un indirizzo IP e "
+"192.168.0.0/24 per una sottorete."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "Avviare il server PowerDNS automaticamente?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Accettando, verrà usato uno initscript che avvierà automaticamente il "
+#~ "nameserver autoritativo PowerDNS."
diff --git a/build-scripts/debian-authoritative/po/ja.po b/build-scripts/debian-authoritative/po/ja.po
new file mode 100644 (file)
index 0000000..93a331f
--- /dev/null
@@ -0,0 +1,62 @@
+# Copyright (C) 2008 Debian PowerDNS Maintainers <powerdns-debian@workaround.org>\r
+# This file is distributed under the same license as pdns package.\r
+# Hideki Yamane (Debian-JP) <henrich@debian.or.jp>, 2008.\r
+# \r
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns 2.9.21.2-1\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2008-12-28 22:26+0900\n"
+"Last-Translator: Hideki Yamane (Debian-JP) <henrich@debian.or.jp>\n"
+"Language-Team: Japanese <debian-japanese@lists.debian.org>\n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "PowerDNS が listen する IP アドレス:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"複数の IP アドレスがある場合、デフォルトの全てのアドレスをバインドするという"
+"挙動は、OS が外部へのパケットに対して誤った IP を返すようにしてしまいます。こ"
+"こで PowerDNS が特定の IP にバインドするように設定するのをお勧めします。"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "再起検索を許可するサブネットのリスト:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"再起検索を許可するサブネットをカンマで区切ってここで入力してください。許可す"
+"る値としては、127.0.0.1 は 1 つの IP アドレスで、192.168.0.0/24 はサブネット"
+"になります。"
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "自動的に PowerDNS サーバが起動するようにしますか?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "これを有効にすると、初期化スクリプトは PowerDNS の authoritative ネーム"
+#~ "サーバを自動的に起動するようになります。"
diff --git a/build-scripts/debian-authoritative/po/nl.po b/build-scripts/debian-authoritative/po/nl.po
new file mode 100644 (file)
index 0000000..24a4ed1
--- /dev/null
@@ -0,0 +1,71 @@
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+# Developers do not need to manually edit POT or PO files.
+# , fuzzy
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns 2.9.18-2\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2006-05-11 21:38+0200\n"
+"Last-Translator: Matthijs Mohlmann <matthijs@cacholong.nl>\n"
+"Language-Team: Debian l10n Dutch <debian-l10n-dutch@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "IP-adres waar PowerDNS op moet luisteren:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Als u meerdere IP-adressen heeft, dan is het standaard gedrag om op alle "
+"adressen te luisteren. Dat kan als gevolg kan hebben dat het OS het "
+"verkeerde IP-adres kiest voor uitgaande pakketten. Daarom is het aan te "
+"raden om PowerDNS op een specifiek IP-adres te laten luisteren."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Subnetten vanwaar recursieve query's worden uitgevoerd:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Voer hier, gescheiden door komma's, de subnetten in die recursieve query's "
+"mogen uitvoeren. Toegestane waarden zijn 127.0.0.1 voor een IP-adres en "
+"192.168.0.0/24 voor een subnet."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "Wilt u PowerDNS automatisch laten starten?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Als u bevestigend antwoordt op deze dialoog, dan zal er een opstartscript "
+#~ "gebruikt worden om PowerDNS automatisch te starten."
diff --git a/build-scripts/debian-authoritative/po/pt.po b/build-scripts/debian-authoritative/po/pt.po
new file mode 100644 (file)
index 0000000..d87740c
--- /dev/null
@@ -0,0 +1,65 @@
+# translation of pdns debconf to Portuguese
+# 2005-11-03 - Luís de Matos - Initial translation
+#
+# Luís de Matos <gass@otiliamatos.ath.cx>, 2005.
+# Américo Monteiro <a_monteiro@netcabo.pt>, 2007.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns 2.9.21-2\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2007-09-26 22:42+0100\n"
+"Last-Translator: Américo Monteiro <a_monteiro@netcabo.pt>\n"
+"Language-Team: Portuguese <traduz@debianpt.org>\n"
+"Language: pt\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "O endereço IP onde o PowerDNS deverá escutar:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Se tem vários IPs, o comportamento por omissão de ligar a todos os endereços "
+"pode levar o SO a seleccionar um IP errado para os pacotes de saída, "
+"portanto é recomendado ligar aqui o PowerDNS a um IP específico."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Lista de subredes que são autorizadas a aceder:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Insira aqui, separadas por vírgulas, as subredes que são autorizadas a "
+"aceder. Os valores autorizados são 127.0.0.1 para um endereço ip e "
+"192.168.0.0/24 para uma subrede."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "Deseja iniciar automaticamente o servidor PowerDNS?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Se aceitar aqui, será utilizado um script de inicialização para iniciar "
+#~ "automaticamente o servidor de nomes autoritário PowerDNS."
diff --git a/build-scripts/debian-authoritative/po/pt_BR.po b/build-scripts/debian-authoritative/po/pt_BR.po
new file mode 100644 (file)
index 0000000..bc26361
--- /dev/null
@@ -0,0 +1,64 @@
+# Debconf translations for pdns.
+# Copyright (C) 2011 THE pdns'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the pdns package.
+# Adriano Rafael Gomes <adrianorg@arg.eti.br>, 2011, 2013.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns 3.1-4\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2013-07-20 18:21-0300\n"
+"Last-Translator: Adriano Rafael Gomes <adrianorg@arg.eti.br>\n"
+"Language-Team: Brazilian Portuguese <debian-l10n-portuguese@lists.debian."
+"org>\n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "Endereço IP onde o PowerDNS deverá escutar:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Se você tiver múltiplos IPs, o comportamento padrão de escutar em todos os "
+"endereços pode fazer com que o SO selecione o IP errado para a saída dos "
+"pacotes, assim, é recomendado que o PowerDNS escute em um IP específico aqui."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Lista de sub-redes às quais é permitido usar recursão:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Informe aqui, separadas por vírgulas, as sub-redes às quais é permitido usar "
+"recursão. Valores permitidos são, por exemplo, 127.0.0.1 para um endereço IP "
+"e 192.168.0.0/24 para uma sub-rede."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "Você quer iniciar o servidor PowerDNS automaticamente?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Se você aceitar aqui, um script de inicialização será usado para iniciar "
+#~ "automaticamente o servidor de nomes autoritativo PowerDNS."
diff --git a/build-scripts/debian-authoritative/po/ru.po b/build-scripts/debian-authoritative/po/ru.po
new file mode 100644 (file)
index 0000000..8f7c2c6
--- /dev/null
@@ -0,0 +1,67 @@
+# translation of ru.po to Russian
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Yuri Kozlov <yuray@komyakino.ru>, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns 2.9.22-1\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2009-07-19 09:17+0400\n"
+"Last-Translator: Yuri Kozlov <yuray@komyakino.ru>\n"
+"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
+"Language: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms:  nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "IP-адрес, на котором PowerDNS должен принимать запросы:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Если у вас несколько IP, то поведение по умолчанию, когда запросы "
+"принимаются со всех адресов, может привести к тому, что ОС выберет неверный "
+"IP для исходящих пакетов, поэтому рекомендуется привязать PowerDNS к какому-"
+"то определённому IP."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Список подсетей, для которых разрешены рекурсивные запросы:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Введите через запятую список подсетей, для которых разрешены рекурсивные "
+"запросы. Можно указывать отдельные адреса в виде 127.0.0.1 и целые подсети в "
+"виде 192.168.0.0/24."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "Запускать сервер PowerDNS автоматически?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "При включении машины можно автоматически запускать авторитетный сервер "
+#~ "имён PowerDNS."
diff --git a/build-scripts/debian-authoritative/po/sv.po b/build-scripts/debian-authoritative/po/sv.po
new file mode 100644 (file)
index 0000000..3560c71
--- /dev/null
@@ -0,0 +1,74 @@
+#
+#    Translators, if you are not familiar with the PO format, gettext
+#    documentation is worth reading, especially sections dedicated to
+#    this format, e.g. by running:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#
+#    Some information specific to po-debconf are available at
+#            /usr/share/doc/po-debconf/README-trans
+#         or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+#    Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns 2.9.18-3\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2006-05-11 21:44+0100\n"
+"Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
+"Language-Team: Swedish <sv@li.org>\n"
+"Language: sv\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: swed\n"
+"X-Poedit-Country: swed\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "IP-adress som PowerDNS ska lyssna på:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Om du har flera IP-adresser kan standardbeteendet, som är att binda till "
+"alla adresser, leda till att operativsystemet väljer fel IP-adress för "
+"utgående paket så det rekommenderas att binda PowerDNS till en specifik IP-"
+"adress här."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Lista på subnät som tillåts ställa rekursiva frågor:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Ange de subnät (kommaseparerade) som ska tillåtas ställa rekursiva frågor. "
+"Tillåtna värden är 127.0.0.1 för en IP-adress och 192.168.0.0/24 för ett "
+"subnät."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "Vill du starta PowerDNS-servern automatiskt?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Om du accepterar här kommer ett init-skript att användas för att "
+#~ "automatiskt starta PowerDNS auktoritativa namnserver."
diff --git a/build-scripts/debian-authoritative/po/templates.pot b/build-scripts/debian-authoritative/po/templates.pot
new file mode 100644 (file)
index 0000000..d20474b
--- /dev/null
@@ -0,0 +1,48 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
diff --git a/build-scripts/debian-authoritative/po/vi.po b/build-scripts/debian-authoritative/po/vi.po
new file mode 100644 (file)
index 0000000..e56dafb
--- /dev/null
@@ -0,0 +1,65 @@
+# Vietnamese translation for pdns.
+# Copyright © 2007 Free Software Foundation, Inc.
+# Clytie Siddall <clytie@riverland.net.au>, 2005-2007.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: pdns 2.9.20-8\n"
+"Report-Msgid-Bugs-To: pdns@packages.debian.org\n"
+"POT-Creation-Date: 2012-06-17 13:40+0000\n"
+"PO-Revision-Date: 2007-05-30 22:46+0930\n"
+"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
+"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n"
+"Language: vi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: LocFactoryEditor 1.6.3b1\n"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid "IP address where PowerDNS should listen on:"
+msgstr "Địa chỉ IP nơi PowerDNS nên lắng nghe:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:1001
+msgid ""
+"If you have multiple IPs, the default behaviour of binding to all addresses "
+"can cause the OS to select the wrong IP for outgoing packets, so it is "
+"recommended to bind PowerDNS to a specific IP here."
+msgstr ""
+"Nếu bạn có nhiều địa chỉ IP khác nhau, hành vi mặc định là đóng kết đến mọi "
+"địa chỉ thì có thể gây ra hệ điều hành chọn địa chỉ IP không đúng cho gói "
+"tin gởi ra. Vì thế khuyên bạn đóng kết trình PowerDNS đến một địa chỉ IP "
+"riêng."
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid "List of subnets that are allowed to recurse:"
+msgstr "Danh sách mạng phụ được phép đệ qui:"
+
+#. Type: string
+#. Description
+#: ../pdns-server.templates:2001
+msgid ""
+"Enter here, comma separated, the subnets that are allowed to recurse. "
+"Allowed values are 127.0.0.1 for an ip address and 192.168.0.0/24 for a "
+"subnet."
+msgstr ""
+"Hãy nhập vào đây, định giới bằng dấu chấm phẩy, những mạng phụ được phép đệ "
+"qui. Giá trị có thể là 127.0.0.1 cho địa chỉ IP và 192.168.0.0/24 cho mạng "
+"phụ."
+
+#~ msgid "Do you want to start the PowerDNS server automatically?"
+#~ msgstr "Bạn có muốn tự động khởi chạy trình phục vụ PowerDNS không?"
+
+#~ msgid ""
+#~ "If you accept here, an initscript will be used to automatically start the "
+#~ "PowerDNS authoritative nameserver."
+#~ msgstr ""
+#~ "Chấp nhận ở đây thì một tập lệnh khởi chạy (initscript) được dùng để tự "
+#~ "động khởi chạy trình phục vụ tên có uy quyền PowerDNS."
diff --git a/build-scripts/debian-authoritative/resolvconf/pdns b/build-scripts/debian-authoritative/resolvconf/pdns
new file mode 100644 (file)
index 0000000..051d98e
--- /dev/null
@@ -0,0 +1,85 @@
+#!/bin/sh
+#
+# Script to update PowerDNS recursor configuration fragment
+#
+# N.B. Resolvconf may run us even if pdns not running.
+# If pdns is installed then we go ahead and update
+# the pdns configuration file in case pdns is started later.
+#
+# Assumption: On entry, PWD contains the resolv.conf-type files
+#
+# Licensed under the GNU GPL. See /usr/share/common-licenses/GPL
+#
+# History:
+# April 2005: Written by Jack Bates <ms419@freezone.co.uk> and
+#             Thomas Hood <jdthood@yahoo.co.uk>
+
+set -e
+PATH=/bin:/sbin
+
+DEFAULT=/etc/default/pdns
+[ -f $DEFAULT ] && . $DEFAULT
+
+if [ -z "${RESOLVCONF_UPDATE_FORWARDERS:-}" ]; then
+    echo "Warning: \$RESOLVCONF_UPDATE_FORWARDERS not defined in $DEFAULT." >&2
+    echo "         Pulling the emergency brake..." >&2
+    exit 0
+fi
+
+case $RESOLVCONF_UPDATE_FORWARDERS in
+    y*|Y*|1|on|On|true|True|TRUE) :;;
+    *)
+        echo "Not updating PowerDNS, disabled in $DEFAULT." >&2
+        exit 0
+    ;;
+esac
+
+[ -x /usr/sbin/pdns_server ] || exit 0
+[ -x /lib/resolvconf/list-records ] || exit 1
+
+RUN_DIR=/var/run
+CONF_FILE="$RUN_DIR/pdns.recursors"
+TMP_FILE="${CONF_FILE}_new.$$"
+
+# Get list of records, excluding our own
+RSLVCNFFILES="$(/lib/resolvconf/list-records | sed -e '/^lo.pdns$/d')"
+
+clean_up() { rm -f "$TMP_FILE" ; }
+trap clean_up EXIT
+clean_up
+
+# Convert nameserver lines to recursor statements, without duplicates
+if [ "$RSLVCNFFILES" ]; then
+  sed -n "
+    s/^nameserver[[:space:]]\+/recursor=/
+    # If no substitution (not a nameserver line) then skip line
+    T
+    # Append hold space (i.e., previous recursor statements) to pattern space
+    G
+    # If this line is a duplicate then skip line
+    /\(^.*\n\).*\1/d
+    # Disable 127.0.0.1 lines, can cause a dns loop.
+    /=127\./d
+    # Copy pattern space, including current line, to hold space
+    h
+    # Print current line
+    P
+  " $RSLVCNFFILES > "$TMP_FILE"
+else
+  :> "$TMP_FILE"
+fi
+
+if [ "$1" = "-i" ]; then
+  mv -f "$TMP_FILE" "$CONF_FILE"
+  exit 0
+fi
+
+# Reload pdns unless we know its configuration file hasn't changed
+if [ -x /usr/bin/diff ] && [ -f "$CONF_FILE" ] && /usr/bin/diff -q "$CONF_FILE" "$TMP_FILE" > /dev/null ; then
+  # No change
+  rm -f "$TMP_FILE"
+else
+  mv -f "$TMP_FILE" "$CONF_FILE"
+  [ -x /etc/init.d/pdns ] && ps -C pdns_server > /dev/null && invoke-rc.d pdns reload || :
+fi
+
diff --git a/build-scripts/debian-authoritative/rules b/build-scripts/debian-authoritative/rules
new file mode 100755 (executable)
index 0000000..67e2849
--- /dev/null
@@ -0,0 +1,63 @@
+#!/usr/bin/make -f
+
+# Vendor and version
+version := $(shell dpkg-parsechangelog -SVersion).$(shell dpkg-vendor --query Vendor)
+CXXFLAGS += -DPACKAGEVERSION='"$(version)"'
+
+# Backends
+backends := bind ldap pipe gmysql gpgsql gsqlite3 geo lua lmdb mydns remote
+
+DEB_HOST_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+# Use new build system
+%:
+       dh $@ --with autoreconf --parallel
+
+override_dh_auto_configure:
+       test -f pdns/dnslabeltext.cc && mv pdns/dnslabeltext.cc debian/dnslabeltext.cc.moved || true
+       ./configure \
+               --host=$(DEB_HOST_GNU_TYPE) \
+               --build=$(DEB_BUILD_GNU_TYPE) \
+               --prefix=/usr \
+               --sysconfdir=/etc/powerdns \
+               --mandir=\$${prefix}/share/man \
+               --infodir=\$${prefix}/share/info \
+               --libdir='$${prefix}/lib/$(DEB_HOST_MULTIARCH)' \
+               --libexecdir='$${prefix}/lib' \
+               --with-dynmodules="$(backends)" \
+               --with-modules="" \
+               --with-system-polarssl \
+               --with-pgsql-includes=`pg_config --includedir` \
+               --enable-cryptopp \
+               --enable-botan1.10 \
+               --enable-tools \
+               --enable-unit-tests
+
+# pdns-server has a debug package
+override_dh_strip:
+       dh_strip --dbg-package=pdns-server-dbg
+
+# Additional permissions
+override_dh_fixperms:
+       dh_fixperms
+       chmod 755 debian/pdns-server/etc/resolvconf/update.d/pdns
+
+# init script needs to be named pdns, not pdns-server
+override_dh_installinit:
+       dh_systemd_enable --name=pdns
+       dh_installinit --name=pdns
+       dh_systemd_start --restart-after-upgrade
+
+# Verbose build (shows used compiler/linker and their flags)
+override_dh_auto_build-arch:
+       dh_auto_build -- V=1
+
+# Verbose tests (shows used compiler/linker and their flags)
+override_dh_auto_test:
+       $(MAKE) -C pdns check
+       #dh_auto_test -- V=1
+
+# restore moved files
+override_dh_clean:
+       test -f debian/dnslabeltext.cc.moved && mv debian/dnslabeltext.cc.moved pdns/dnslabeltext.cc || true
+       dh_clean
diff --git a/build-scripts/debian-authoritative/source/format b/build-scripts/debian-authoritative/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/build-scripts/debian-authoritative/tests/control b/build-scripts/debian-authoritative/tests/control
new file mode 100644 (file)
index 0000000..fd14296
--- /dev/null
@@ -0,0 +1,3 @@
+Tests: smoke
+Depends: pdns-server, dnsutils
+Restrictions: needs-root
diff --git a/build-scripts/debian-authoritative/tests/smoke b/build-scripts/debian-authoritative/tests/smoke
new file mode 100755 (executable)
index 0000000..ee3aa3b
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/bash
+exec 2>&1
+set -ex
+
+cat <<EOF >/etc/powerdns/bindbackend.conf
+zone "example.org" { type master; file "/etc/powerdns/example.org.zone"; };
+EOF
+
+cat <<EOF >/etc/powerdns/example.org.zone
+example.org.           172800  IN      SOA     ns1.example.org. dns.example.org. 1 10800 3600 604800 3600
+example.org.           172800  IN      NS      ns1.example.org.
+smoke.example.org.     172800  IN      A       127.0.0.123
+EOF
+
+service pdns restart
+
+TMPFILE=$(mktemp)
+cleanup() {
+  rm -f "$TMPFILE"
+}
+trap cleanup EXIT
+
+dig @127.0.0.1 smoke.example.org 2>&1 | tee "$TMPFILE"
+
+if grep -c '127\.0\.0\.123' "$TMPFILE"; then
+    echo success
+else
+    echo smoke could not be resolved
+    exit 1
+fi
+
diff --git a/build-scripts/debian-authoritative/triggers b/build-scripts/debian-authoritative/triggers
new file mode 100644 (file)
index 0000000..1603282
--- /dev/null
@@ -0,0 +1 @@
+interest pdns-server
diff --git a/build-scripts/debian-authoritative/watch b/build-scripts/debian-authoritative/watch
new file mode 100644 (file)
index 0000000..61eca75
--- /dev/null
@@ -0,0 +1,6 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# Site         Directory               Pattern                 Version Script
+version=3
+http://downloads.powerdns.com/releases/        pdns-([0-9]+.*)\.tar\.(gz|bz2)  debian  uupdate