--- pdns-2.9.22.orig/debian/changelog +++ pdns-2.9.22/debian/changelog @@ -0,0 +1,683 @@ +pdns (2.9.22-3ubuntu0.1) lucid-security; urgency=low + + * SECURITY UPDATE: temporary DoS with specially crafted packets (LP: #918588) + - debian/patches/CVE-2012-0206: prevent the auth servers from + entering a packet loop. Based on upstream suggestion. + - CVE-2012-0206 + + -- Imre Gergely Wed, 08 Feb 2012 23:33:27 +0200 + +pdns (2.9.22-3) unstable; urgency=low + + * Fix a syntax error in postinst. + * Removed old upgrade code for splitting the config. + + -- Matthijs Mohlmann Sun, 08 Nov 2009 14:48:57 +0100 + +pdns (2.9.22-2) unstable; urgency=low + + [ Christoph Haas ] + * Fixed init.d script (Closes: #518294) + * Moved resolvconf temp file to /var/run/powerdns (Closes: #333726) + + [ Matthijs Mohlmann ] + * Updated Standards-Version to 3.8.3 + * Added russian translation (Closes: #539465) + * Added spanish translation (Closes: #508987) + * Added SQLite3 database schema to examples + * Added PostgreSQL database schema to examples + * Change libmysqlclient15-dev to libmysqlclient-dev. + * Moved from dpatch to quilt patch system. + * Fix FTBFS with gcc 4.4 (Closes: #510674) + * Added italian translation (Closes: #552219, #548695) + * Added basque translation (Closes: #553150) + * Fixed init.d script including correct dependencies and runlevels + (Closes: #548293) + * Added finnish translation (Closes: #553648) + * Implemented triggers to prevent multiple restarts (Closes: #502981) + + -- Matthijs Mohlmann Mon, 02 Nov 2009 12:49:43 +0100 + +pdns (2.9.22-1) unstable; urgency=low + + * New upstream version (closes: #513409). + + -- Christoph Haas Wed, 25 Feb 2009 23:25:51 +0100 + +pdns (2.9.21.2-2) unstable; urgency=low + + * Added japanese PO file (closes: #510705) + + -- Christoph Haas Mon, 05 Jan 2009 23:38:05 +0100 + +pdns (2.9.21.2-1) unstable; urgency=low + + * New Upstream Version + * Included typo fixes from Thijs Kinkhorst (closes: #502982) + * Removed the splitconfig call from debian/pdns-server.postinst as it + broke configurations with multiline definitions. It should not be + needed anymore anyway after an update from Sarge to Etch. + (closes: #475141) + * Added patch for LDAP requests spanning subdomains due to incorrect + LDAP search query (closes: #500137). + + -- Christoph Haas Tue, 25 Nov 2008 20:11:46 +0100 + +pdns (2.9.21.1.0-1) unstable; urgency=low + + * Fixed glitch in upstream tarball for 2.9.2.21.1. + Actually this is the same upstream version as 2.9.21.1 but due to a + merging glitch when using git-buildpackage two files were changed. + So the orig.tar.gz for 2.9.21.1 in Debian is not entirely correct + (although it doesn't hurt either). To replace the wrong orig.tar.gz + it needs a higher version number. 2.9.21.1.0-1 it newer than 2.9.21.1-1. + + -- Christoph Haas Fri, 08 Aug 2008 15:38:55 +0200 + +pdns (2.9.21.1-1) unstable; urgency=high + + * New Upstream Version (fixes CVE-2008-3337) + + -- Christoph Haas Thu, 07 Aug 2008 00:25:01 +0200 + +pdns (2.9.21-6) unstable; urgency=low + + * Use upstream patch for the ldapbackend. (See #462966) + * Fix pdns-server hang in postinst (Closes: #468160) + * Fix typo in the Description of pdns-backend-mysql to make lintian happy. + + -- Matthijs Mohlmann Sun, 02 Mar 2008 22:50:11 +0100 + +pdns (2.9.21-5) unstable; urgency=low + + * Fix ignoring buid errors. (Closes: #462858) + * Patch from Steve to fix build with OpenLDAP 2.4. (Closes: #462966) + - Changed patch a bit to convert host, port and tls option to a ldapuri. + * Update Standards-Version to 3.7.3. + * Added gcc 4.3 fixes (Closes: #456073) + + -- Matthijs Mohlmann Sun, 03 Feb 2008 20:57:51 +0100 + +pdns (2.9.21-4) unstable; urgency=low + + * New portuguese translation included (closes: #444219). + Thanks, Américo Monteiro. + + -- Christoph Haas Wed, 03 Oct 2007 19:38:15 +0200 + +pdns (2.9.21-3) unstable; urgency=low + + * Added missing dependency on docbook, missing dtd files. (Closes: #441592) + * Make package binNMUable. + * Fixed lintian error on in the clean target. + * Clean target was incomplete, twice in a row build didn't reproduce the + same result (Policy 4.9) (Closes: #441592) + * Win2k3 SP2 adds out of zone data to zonetransfers, ignore them instead of + rejecting the zone. (Closes: #433892) + + -- Matthijs Mohlmann Sat, 15 Sep 2007 09:24:06 +0200 + +pdns (2.9.21-2) unstable; urgency=low + + * Fix an unconditional replace in the resolvconf script. (Closes: #425441) + * Do not include the 127.0.0.1 in the recursor list. (Closes: #425442) + * Updated vietnamese translation + + -- Matthijs Mohlmann Sat, 02 Jun 2007 00:13:47 +0200 + +pdns (2.9.21-1) unstable; urgency=low + + [ Matthijs Mohlmann ] + * New upstream release. (Closes: #420294) + * Remove meta pdns package. + * Added new sqlite3 backend package. + * Months and minutes where mixed up. (Closes: #406462) + * Case sensitivity in bind backend caused PowerDNS to not serve a certain + zone. (Closes: #406461) + * Bind backend forgot about zones on a notify. (Closes: #398213) + + [ Christoph Haas ] + * Documented incorporated backend bind. (Closes: #415471) + + -- Matthijs Mohlmann Sun, 15 Apr 2007 23:23:39 +0200 + +pdns (2.9.20-8) unstable; urgency=high + + [ Christoph Haas ] + * Updated czech translation (Closes: #408726) + * New galician translation (Closes: #413756) + * Added patch for potential buffer overflow, high urgency (Closes: #406465) + * Added example for the bind backend. Documented that the bind gbackend + is contained in the pdns-server package (Closes: #415471) + + [ Matthijs Mohlmann ] + * LDAP backend changes + - Supports SOA autocalculation + - Handles dc=* correctly + + -- Matthijs Mohlmann Sat, 10 Mar 2007 01:20:58 +0100 + +pdns (2.9.20-7) unstable; urgency=low + + [ Matthijs Mohlmann ] + * Updated configuration parameter allow-axfr-ips. (Closes: #316789) + * Fix memory corruption after performing a zone reload (Closes: #394682) + * Fix wrong ttl for SOA records during AXFR. + * Added patch from upstream to fix ipv6 processing. (Closes: #395885, #396250) + * Added patch to fix alignment on ARM. (Closes: #397031) + + -- Matthijs Mohlmann Mon, 30 Oct 2006 00:46:22 +0100 + +pdns (2.9.20-6) unstable; urgency=low + + * Don't try to remove the user on purge. + * Typo in package description of pdns-backend-sqlite. (Closes: #384387) + * Create LSB init script. + * Added check to see if ucf exist. The postrm can't rely on ucf to be + available on purge. It is a non-essential package. (Closes: #389979) + * Added patch to fix wildcard lookups in the ldap backend. (Closes: #383726) + + -- Debian PowerDNS Maintainers Sun, 1 Oct 2006 15:29:45 +0200 + +pdns (2.9.20-5) unstable; urgency=low + + * Update geobackend. (Closes: #382538) + + -- Matthijs Mohlmann Sun, 13 Aug 2006 23:17:25 +0200 + +pdns (2.9.20-4) unstable; urgency=low + + * Updated German translation. + * Remove patch for the recursor, the pdns-recursor is not shipped with this + package anymore + * Updated Dutch translation. + * Updated Swedish translation. + * Updated French translation. (Closes: #367217) + * Fix wrong permissions on /var/lib/powerdns in sqlite backend. + (Closes: #373627) + * Default pdns.conf overhaul, taken configuration parameters from the + website http://rtfm.powerdns.com/ (Closes: #369306) + * Removed --remove-home from deluser, it requires an extra dependency. + (Closes: #340124) + * Added a note regarding pgsql and chroot (Closes: #382017) + Actual solutions for running pdns in a chroot when trying to connect + to a pgsql server via SSL are welcome. + + -- Debian PowerDNS Maintainers Wed, 12 Jul 2006 00:29:14 +0200 + +pdns (2.9.20-3) unstable; urgency=low + + * Disable the recursor, this is in a separate package now. + + -- Debian PowerDNS Maintainers Sat, 6 May 2006 10:40:44 +0200 + +pdns (2.9.20-2) unstable; urgency=low + + * Fix bug which causes pdns not resolving the root nameservers anymore + (Closes: #364449) + + -- Debian PowerDNS Maintainers Tue, 25 Apr 2006 21:27:26 +0200 + +pdns (2.9.20-1) unstable; urgency=low + + * New upstream release. + + -- Debian PowerDNS Maintainers Thu, 16 Mar 2006 21:09:38 +0100 + +pdns (2.9.19-4) unstable; urgency=low + + * Fix pdns maintainer scripts to restart in postinst (instead of stopping + in prerm and starting in postinst) (Closes: #346426) + * Rewrote patch addconfigdir to C++ and to fix some memleaks. + + -- Debian PowerDNS Maintainers Wed, 18 Jan 2006 22:59:52 +0100 + +pdns (2.9.19-3) unstable; urgency=low + + * Added a patch to fix NS delegation (Closes: #345778) + + -- Debian PowerDNS Maintainers Tue, 3 Jan 2006 23:18:17 +0100 + +pdns (2.9.19-2) unstable; urgency=high + + * Added portuguese translation (Closes: #337832) + * Added a patch to fix a slight security bug + * Added a patch to allow '/' in domain names (Closes: #343737) + * Updated patch addconfigdir to be able to move launch= to include files. + (Patch is now more generic) + * Updated builddependency to libmysqlclient15-dev (Closes: #343789) + + -- Debian PowerDNS Maintainers Sun, 18 Dec 2005 11:39:41 +0100 + +pdns (2.9.19-1) unstable; urgency=low + + * New upstream release (Closes: #327846) + * Now really fix the AXFR transfers from bind / djbdns to pdns. + (Closes: #330184) + * New bind backend (Closes: #318897) + * Update translation for Czech (Closes: #335355) + * Add translation for Swedish (Closes: #335261) + * Added patch to fix a memory hole in the pdns-recursor + * Added patch to proper catch an exception in the pdns-recursor + * Added patch to fix an exception that could escape + + -- Debian PowerDNS Maintainers Tue, 1 Nov 2005 15:22:39 +0100 + +pdns (2.9.18-4) unstable; urgency=low + + * Fix AXFR transfers from bind to pdns. (Closes: #330184) + * Added resolvconf calls to pdns-recursor init script. (Closes: #308677) + * Added pdns update script in order to automate the creation of the + recursors list. (Closes: #304528) + * Leave permissions on upgrades (Closes: #328833) + + -- Debian PowerDNS Maintainers Sat, 1 Oct 2005 15:11:33 +0200 + +pdns (2.9.18-3) unstable; urgency=high + + * High urgency as it fixes RC bugs. + * Add patch to support uri's in the ldapbackend. + * Add fix for crashes in the pdns-recursor with g++ 4.0.1 + * Revert postinst scripts for geo, ldap, mysql, pgsql and pipe backend and + don't introduce bug #321974 + * Add patch to fix CNAME wildcards. It returned the CNAME wildcard while an + A record exists for the query. Taken from svn. + * Fix pdns-server.config with exit status 20, bug in the parsing code of the + configuration file /etc/powerdns/pdns.conf (Closes: #311903) + * Fix the addconfigdir dpatch to be able to include files instead of only + directories (Closes: #327172) + * Remove postrm scripts as it can cause trouble when the include is set to + nothing. (Closes: #326260) + + -- Debian PowerDNS Maintainers Thu, 15 Sep 2005 09:21:28 +0200 + +pdns (2.9.18-2) unstable; urgency=low + + * Added cs translation. (Closes: #321737) + * comma separated instead of semicolon separated in pdns-server.templates + (Closes: #318845) + * Updated po debconf files. + * Removed code that mess up the pdns.conf. (Closes: #321974) + * pdns should be an arch independent package. It comes from the split to + pdns-server and pdns-recursor. + * Tidied up the dh_install parts of the debian/rules script. + + -- Debian PowerDNS Maintainers Mon, 15 Aug 2005 12:01:41 +0200 + +pdns (2.9.18-1) unstable; urgency=high + + * New upstream release (Closes: #318798) + * Drop patches: 64bit-compile-fix.dpatch, addfeatures-ldapbackend.dpatch, + amd64-compilefix.dpatch, blankout-domain-fix.dpatch, + consistent-sql.dpatch, dosfix-ldapbackend.dpatch, fix-exit-status.dpatch, + gpgsql-compilefix.dpatch, gsqlite-compilefix.dpatch, gsqlite-slave.dpatch, + recursor-slowdown.patch.dpatch, typoinitscript.dpatch, zone2ldap.dpatch + They are applied upstream. + * The ldapbackend did not properly escape all queries, allowing it to fail + and not answer questions. (CAN-2005-2301) + * Questions from clients denied recursion could blank out answers to clients + who are allowed recursion services, temporarily. (CAN-2005-2302) + + -- Debian PowerDNS Maintainers Fri, 29 Jul 2005 20:24:33 +0200 + +pdns (2.9.17-15) unstable; urgency=high + + * New revision because last upload has accidentally been a native package. + A higher revision number should fix the wrong upload. + + -- Debian PowerDNS Maintainers Sat, 16 Jul 2005 13:04:14 +0200 + +pdns (2.9.17-14) unstable; urgency=high + + * Changed Build-Depends from postgresql-dev to libpq-dev + * Build-Depends was missing the non-essential automake1.6 + * Added libssl-dev to Build-Depends + * configure arguments updated to point to postgresql includes + * Patch added for: Denial of Service in the ldapbackend. When you do a query + with a '\' or a '*' the ldap instance will crash. + * Patch added for: Recursor became slow after 60 seconds. + * Added translation vi.po (Closes: #316704) + * Fixed typo in german debconf file de.po (Closes: #313930) + * Updated Standards-Version to 3.6.2 + + -- Debian PowerDNS Maintainers Fri, 15 Jul 2005 00:16:17 +0200 + +pdns (2.9.17-13) unstable; urgency=high + + * Fixed serious policy violation. (Closes: #310782, #310742) + * Updated dutch debconf translation. + + -- Debian PowerDNS Maintainers Thu, 26 May 2005 23:10:54 +0200 + +pdns (2.9.17-12) unstable; urgency=low + + * Removed resolvconf from pdns initscript. + * Updated french debconf translation. (Closes: #305869) + * Updated pdns-recursor so it doesn't fail on restart. + * Patch to fix exit status. (Closes: #305527) + * Fixes a typo in pdns-backend-mysql.postrm which causes a failure when + removing the package. (Closes: #308410) + * Added a Pre-Depends on adduser (Closes: #308409) + * Fixed a failure when installing pdns-server on a fresh system. + * Fixed a failure when removing pdns-server when perl-modules isn't + installed. + * Added dutch translation. + + -- Debian PowerDNS Maintainers Tue, 10 May 2005 16:15:59 +0200 + +pdns (2.9.17-11) unstable; urgency=low + + * Fixed the empty /usr/share/pdns/doc directory. (Closes: #304939) + * Removed superfluous upstream documentation from the doc directory. + * Rewritten pdns-recursor initscript. (Closes: #304937, #303602, #303602) + + -- Debian PowerDNS Maintainers Thu, 21 Apr 2005 22:38:47 +0200 + +pdns (2.9.17-10) unstable; urgency=low + + * Maintainer changed to Debian PowerDNS Maintainers. + * Christoph Haas : + + changelog.html is no longer compressed to keep hypertext links in the + pdns-doc package working + + fixed a typo in the debconf templates (netmasks -> subnets) + * Matthijs Mohlmann : + + Fixed the ldap backend patch (Closes: #303910) + + Fixed the patch for adding a directory with config files (Closes: #303669) + - Now you can add multiple files. + - Can add files with dots. + + Added dnsdomain2.schema to pdns-backend-ldap. (Closes: #303685) + + Updates resolv.conf when needed. (Closes: #303602) + + -- Debian PowerDNS Maintainers Thu, 14 Apr 2005 21:42:16 +0200 + +pdns (2.9.17-9) unstable; urgency=low + + * Moved html docs to pdns-doc instead of pdns (Closes: #303227) + * Added french translation (Closes: #302681) + * Improved description for pdns-backend-geo (Closes: #302128) + + -- Matthijs Mohlmann Tue, 5 Apr 2005 21:32:14 +0200 + +pdns (2.9.17-8) unstable; urgency=low + + * Minor naming stupidity in example files resolved. + * Thanks to Christoph Haas for checking and uploading. + + -- Matthijs Mohlmann Fri, 1 Apr 2005 22:02:56 +0200 + +pdns (2.9.17-7) unstable; urgency=low + + * Removed more questions on several backends. + * Use one pdns.local file instead of using more files. + * Updated postinst and postrm to reflect these changes. + + -- Matthijs Mohlmann Fri, 1 Apr 2005 17:05:29 +0200 + +pdns (2.9.17-6) unstable; urgency=low + + * Raised Standards-Version to 3.6.1.1 + * Fixed a FTBFS on 64bit platforms (Closes: #301642) + Thanks to Kurt Roeckx for testing the patch. + + -- Matthijs Mohlmann Thu, 31 Mar 2005 10:00:37 +0200 + +pdns (2.9.17-5) unstable; urgency=low + + * Removed stupid questions + * Updated templates + * Added README.Debian to pdns-server + * Fixed a typo (Closes: #300053) + + -- Matthijs Mohlmann Mon, 28 Mar 2005 10:47:40 +0200 + +pdns (2.9.17-4) unstable; urgency=low + + * Make gmysql and gpgsql backend more consistent by adding port parameter to + gpgsql backend. + + -- Matthijs Mohlmann Sun, 27 Feb 2005 23:10:36 +0100 + +pdns (2.9.17-3) unstable; urgency=low + + * Removed manpage xdb-fill + * Removed package pdns-backend-xdb (obsolete) + * Cleaned up debian/ directory + * Written an initscript for pdns-recursor (Closes: #296628) + + -- Matthijs Mohlmann Mon, 14 Feb 2005 20:17:24 +0100 + +pdns (2.9.17-2) unstable; urgency=low + + * Written manpage for xdb-fill + * Rewritten debian/rules for better understanding + + -- Matthijs Mohlmann Mon, 14 Feb 2005 11:23:11 +0100 + +pdns (2.9.17-1) unstable; urgency=low + + * Update Standards-Version to 3.6.1 + * Change to debhelper programs + * Added geobackend (Closes: #243958) + * Added recursor.conf (Closes: #252286) + * Start the recursor before slapd (Closes: #281330) + * Fix a typo in init script (Closes: #267672) + * The pdns recursor is now in a seperate package + * Added zone2ldap patch to be LDAPv3 compliant + * Added query logging + * support for AXFR in non-hierarchical trees + * reenabled AXFR for normal zones in strict mode + * fix for wildcard lookups in tree mode + * fix for thrown exception if multiple associatedDomain are available + * changed wrong default method (simple or tree) + * fix in PowerLDAP if dn is necessary + * Took the tarball from the powerdns website and added seperate patches + * Added postinstall scripts to configure packages + * Added postremove scripts + * Make it lintian clean + * Manpages written for binaries + * Added patch letting work pdns as slave and superslave with sqlite backend + (Closes: #280359) + * Added schema as text file in pdns-backend-{mysql,pgsql} (Closes: #248315) + * starttls is added by upstream (Closes: #193474) + + -- Matthijs Mohlmann Thu, 3 Feb 2005 15:49:40 +0000 + +pdns (2.9.16-6) unstable; urgency=high + + * Backport DoS fix from 2.9.17 release, CVSTrac ticket #21 + http://ds9a.nl/cgi-bin/cvstrac/pdns/tktview?tn=21,4 + (CAN-2005-0428 DoS in PowerDNS) + * FTBFS: F_OK undeclared fixed (Closes: #286675) + * FTBFS on amd64/gcc-4.0 fixed (Closes: #287913) + + -- Matthijs Mohlmann Thu, 20 Jan 2005 14:13:58 +0100 + +pdns (2.9.16-5) unstable; urgency=low + + * New maintainer upload (Closes: #282200) + * pdns installs uncompressed manpages (Closes: #264221) + + -- Matthijs Mohlmann Sun, 21 Nov 2004 14:24:35 +0100 + +pdns (2.9.16-4) unstable; urgency=high + + * Apply patches from current CVS: + - checkin 267: make another FD non-blocking. Should really fix + Debian bug 241321 & ticket 13 (pdns_recursor hangs). + + -- Wichert Akkerman Sun, 07 Nov 2004 13:49:06 +0100 + +pdns (2.9.16-3) unstable; urgency=high + + * Apply patches from current CVS: + - properly dup2 fd 0, 1 and 2. Closes: Bug#241321 + - make recursor sockets non-blocking, should fix hanging pdns_recursor + * Include pdns_recursor init script + + -- Wichert Akkerman Mon, 01 Nov 2004 12:03:40 +0100 + +pdns (2.9.16-2) unstable; urgency=medium + + * Remove stray libpq++ linkage for gpgsqlbackend. Closes: Bug#236941 + + -- Wichert Akkerman Fri, 14 May 2004 14:04:34 +0200 + +pdns (2.9.16-1) unstable; urgency=low + + * New upstream version + + -- Wichert Akkerman Sun, 07 Mar 2004 22:22:03 +0100 + +pdns (2.9.15-2) unstable; urgency=medium + + * Update missing file with current version from libtool + * Remove hardcoded libpq++ link in postrges backend + * Remove libpq++ mentions in sgml documentation + + -- Wichert Akkerman Sun, 18 Jan 2004 14:06:29 +0100 + +pdns (2.9.15-1) unstable; urgency=medium + + * New upstream version + + -- Wichert Akkerman Sun, 18 Jan 2004 11:28:39 +0100 + +pdns (2.9.14-1) unstable; urgency=medium + + * New upstream version. Postgres support rewritten to use the C interface + instead of the deprectaed libpqpp + + -- Wichert Akkerman Fri, 16 Jan 2004 23:23:33 +0100 + +pdns (2.9.13-3) unstable; urgency=medium + + * Fix pdns postinst so pdns is properly restart on upgrade + + -- Wichert Akkerman Sat, 10 Jan 2004 17:21:18 +0100 + +pdns (2.9.13-2) unstable; urgency=critical + + * Fix a bug in calculation of early timestamps: 1<<31-1 is not the + same as (1<<31)-1. This made all pdns servers consume all possible + CPU when UNIX time went through 2^30 two hours ago. + + -- Wichert Akkerman Sat, 10 Jan 2004 16:53:09 +0100 + +pdns (2.9.13-1) unstable; urgency=low + + * New upstream release + * Stop using my debian.org email address + * Change init scripts to conform to Debian policy + + -- Wichert Akkerman Thu, 25 Dec 2003 13:33:40 +0100 + +pdns (2.9.12-1) unstable; urgency=low + + * New upstream release + * Fix dependency generation. Closes: Bug#210256 + * Check if pdns is installed in init script. Closes: Bug#217402 + * Create a SQLite backend package + * Add versioned dpkg-dev Build-Depends so ${dpkg:Version} works properly + + -- Wichert Akkerman Mon, 27 Oct 2003 18:52:53 +0100 + +pdns (2.9.11-2) unstable; urgency=low + + * Remove automake build-depends and bootstrap rule from debian/rules. + This makes pdns a bit more portable across Debian releases. + Closes: Bug#205990 + * Try to remove the /etc/powerdns directory on purge. Closes: Bug#209051 + * Use libmysqlclient-dev instead of libmysqlclient10-dev + + -- Wichert Akkerman Tue, 9 Sep 2003 14:59:46 +0200 + +pdns (2.9.11-1) unstable; urgency=low + + * New upstream release + * Do not include zone2ldap in pdns package. Closes: Bug#198613 + * The gdbm-dev seems to have changed its name, update Build-Depends + accordingly. Closes: Bug#199595 + + -- Wichert Akkerman Mon, 14 Jul 2003 13:52:47 +0200 + +pdns (2.9.8-1) unstable; urgency=low + + * New upstream release. Closes: Bug#187781 + + -- Wichert Akkerman Mon, 5 May 2003 13:43:16 +0200 + +pdns (2.9.7-1) unstable; urgency=low + + * New upstream release. Closes: Bug#185730 + + -- Wichert Akkerman Fri, 21 Mar 2003 12:53:00 +0100 + +pdns (2.9.6-2) unstable; urgency=low + + * Enable the recursing nameserver + * Change order of things in clean target so debian/files is properly + removed. Closes: Bug#181994 + + -- Wichert Akkerman Sun, 23 Feb 2003 12:34:57 +0100 + +pdns (2.9.6-1) unstable; urgency=low + + * New upstream release, adding a new LDAP backend + + -- Wichert Akkerman Sun, 16 Feb 2003 14:49:08 +0100 + + +pdns (2.9.5-1) unstable; urgency=low + + * fill in the blanks + + -- Wichert Akkerman Mon, 3 Feb 2003 20:16:16 +0100 + +pdns (2.9.4-1) unstable; urgency=low + + * fill in the blanks + + -- Wichert Akkerman Sat, 21 Dec 2002 20:16:16 +0100 + +pdns (2.9.3a-1) unstable; urgency=low + + * New upstream release; fixes a problem in zone2sql + + -- Wichert Akkerman Sat, 21 Dec 2002 20:16:16 +0100 + +pdns (2.9.3-1) unstable; urgency=low + + * New upstream release. Yes, the packaging changes yet again to + reflect changes made upstream. The packaging of SQL backends should + be more sane now and we don't expect to change them again. + + -- Wichert Akkerman Sat, 21 Dec 2002 18:18:40 +0100 + +pdns (2.9.2-3) unstable; urgency=low + + * Compile pgmysql and xdb backend with -fPIC. Real fix is to swithc + to using libtool for all backends, which will happen in the next + upstream release. + + -- Wichert Akkerman Mon, 16 Dec 2002 13:43:52 +0100 + +pdns (2.9.2-2) unstable; urgency=low + + * Add Build-Depends on libgdbmg1-dev, which is needed by the pipe backend + + -- Wichert Akkerman Mon, 16 Dec 2002 11:18:11 +0100 + +pdns (2.9.2-1) unstable; urgency=low + + * New upstream release + * bind backend fully merged in the main pdns package now + * Add new pipe, pgmysql and xdb backends + + -- Wichert Akkerman Fri, 13 Dec 2002 16:39:29 +0100 + +pdns (2.9-1) unstable; urgency=low + + * Initial packaging + + -- Wichert Akkerman Sun, 1 Dec 2002 15:04:52 +0100 + --- pdns-2.9.22.orig/debian/pdns-doc.dirs +++ pdns-2.9.22/debian/pdns-doc.dirs @@ -0,0 +1,2 @@ +usr/share/doc/pdns-doc +usr/share/doc-base --- pdns-2.9.22.orig/debian/pdns-backend-sqlite.dirs +++ pdns-2.9.22/debian/pdns-backend-sqlite.dirs @@ -0,0 +1,2 @@ +usr/lib/powerdns +usr/share/doc/pdns-backend-sqlite --- pdns-2.9.22.orig/debian/pdns-backend-mysql.README.Debian +++ pdns-2.9.22/debian/pdns-backend-mysql.README.Debian @@ -0,0 +1,11 @@ +For the MySQL database setup. + +In /usr/share/doc/pdns-backend-mysql/ is the file mysql.sql. This contains +a basic setup for PowerDNS. + +You can add this with: +- Create first a database in MySQL (For example: pdns) +- Add this file: mysql -u root -p < mysql.sql + +And then add the records to the database. + --- pdns-2.9.22.orig/debian/pdns-backend-sqlite.install +++ pdns-2.9.22/debian/pdns-backend-sqlite.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/powerdns/libgsqlitebackend.so* usr/lib/powerdns/ +debian/tmp/usr/lib/powerdns/libgsqlitebackend.a usr/lib/powerdns/ --- pdns-2.9.22.orig/debian/pdns-backend-mysql.docs +++ pdns-2.9.22/debian/pdns-backend-mysql.docs @@ -0,0 +1 @@ +debian/config/mysql.sql --- pdns-2.9.22.orig/debian/control +++ pdns-2.9.22/debian/control @@ -0,0 +1,130 @@ +Source: pdns +Section: net +Priority: extra +Standards-Version: 3.8.3 +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian PowerDNS Maintainers +Uploaders: Christoph Haas , Matthijs Mohlmann +Build-Depends: debhelper (>= 6.0.7), po-debconf, quilt, libtool, flex, bison, docbook-utils, docbook, libmysqlclient-dev, libpq-dev, libssl-dev, tdb-dev, libgdbm-dev, libldap2-dev, libsqlite0-dev, libsqlite3-dev, dpkg-dev (> 1.10.17), libboost-dev, libboost-serialization-dev, autotools-dev, automake1.9, autoconf +Vcs-Git: git://github.com/Signum/debian-pdns.git + +Package: pdns-server +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ucf (>= 0.28), adduser +Replaces: pdns +Recommends: pdns-doc +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-doc +Section: doc +Architecture: all +Depends: ${misc:Depends} +Description: PowerDNS manual + 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 complete manual for PowerDNS, documenting both how to + install and configure it as well as how to write new backend modules. + +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}), ${shlibs:Depends}, ${misc:Depends} +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}), ${shlibs:Depends}, ${misc:Depends} +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-sqlite +Architecture: any +Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}, sqlite +Provides: pdns-backend +Description: sqlite 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 backend for PowerDNS. + +Package: pdns-backend-sqlite3 +Architecture: any +Depends: pdns-server (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}, sqlite3 +Provides: pdns-backend +Description: sqlite 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 backend for PowerDNS. + --- pdns-2.9.22.orig/debian/pdns-server.manpages +++ pdns-2.9.22/debian/pdns-server.manpages @@ -0,0 +1,3 @@ +debian/tmp/usr/share/man/man8/pdns_control.8 +debian/tmp/usr/share/man/man8/pdns_server.8 +debian/tmp/usr/share/man/man8/zone2sql.8 --- pdns-2.9.22.orig/debian/pdns-backend-sqlite.lintian-overrides +++ pdns-2.9.22/debian/pdns-backend-sqlite.lintian-overrides @@ -0,0 +1,3 @@ +# Those are not bashism's but sql. +pdns-backend-sqlite: possible-bashism-in-maintainer-script postinst:33 ' type ' +pdns-backend-sqlite: possible-bashism-in-maintainer-script postinst:44 ' type ' --- pdns-2.9.22.orig/debian/pdns-backend-pgsql.examples +++ pdns-2.9.22/debian/pdns-backend-pgsql.examples @@ -0,0 +1,2 @@ +debian/config/pdns.local.gpgsql +debian/config/pgsql.sql --- pdns-2.9.22.orig/debian/pdns-backend-sqlite3.install +++ pdns-2.9.22/debian/pdns-backend-sqlite3.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/powerdns/libgsqlite3backend.so* usr/lib/powerdns/ +debian/tmp/usr/lib/powerdns/libgsqlite3backend.a usr/lib/powerdns/ --- pdns-2.9.22.orig/debian/README.source +++ pdns-2.9.22/debian/README.source @@ -0,0 +1 @@ +See /usr/share/doc/quilt/README.source --- pdns-2.9.22.orig/debian/pdns-backend-sqlite.postinst +++ pdns-2.9.22/debian/pdns-backend-sqlite.postinst @@ -0,0 +1,115 @@ +#! /bin/sh +# postinst script for pdns-backend-sqlite +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +# Configuration file +PDNSCONF=/etc/powerdns/pdns.conf +PDNSDIR=`cat $PDNSCONF | grep include | awk -F '=' '{print $2}'` +PDNSUSER=`cat $PDNSCONF | grep setuid | awk -F '=' '{print $2}'` +PDNSGROUP=`cat $PDNSCONF | grep setgid | awk -F '=' '{print $2}'` +DATABASE=/var/lib/powerdns/pdns.sqlite +PDNSLOCAL=$PDNSDIR/pdns.local + +INITDATA="create table domains ( + id INTEGER PRIMARY KEY, + name VARCHAR(255) NOT NULL, + master VARCHAR(20) DEFAULT NULL, + last_check INTEGER DEFAULT NULL, + type VARCHAR(6) NOT NULL, + notified_serial INTEGER DEFAULT NULL, + account VARCHAR(40) DEFAULT NULL +); + +CREATE UNIQUE INDEX name_index ON domains(name); + +CREATE TABLE records ( + id INTEGER PRIMARY KEY, + domain_id INTEGER DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + type VARCHAR(6) DEFAULT NULL, + content VARCHAR(255) DEFAULT NULL, + ttl INTEGER DEFAULT NULL, + prio INTEGER DEFAULT NULL, + change_date INTEGER DEFAULT NULL +); + +CREATE INDEX rec_name_index ON records(name); +CREATE INDEX nametype_index ON records(name,type); +CREATE INDEX domain_id ON records(domain_id); + +create table supermasters ( + ip VARCHAR(25) NOT NULL, + nameserver VARCHAR(255) NOT NULL, + account VARCHAR(40) DEFAULT NULL +);" + +update_permissions() { + data="$1" + if [ -d "$dir" ]; then + if [ ! -z "$PDNSUSER" ]; then + chown -R "$PDNSUSER" "$data" + fi + if [ ! -z "$PDNSGROUP" ]; then + chgrp -R "$PDNSGROUP" "$data" + fi + fi +} + +case "$1" in + configure) + if [ -f $PDNSLOCAL ]; then + EXIST=`(cat $PDNSLOCAL | grep "gsqlite-database") || true` + DATA=`echo $EXIST | awk -F '=' '{print $2}'` + else + EXIST="" + fi + + if [ ! -z "$DATA" ]; then + DATABASE=$DATA + else + if [ ! -d "/var/lib/powerdns" ]; then + mkdir -m 0755 /var/lib/powerdns + fi + fi + + # Create initial database + if [ ! -f $DATABASE ]; then + echo -n "Generating sqlite database..." + echo $INITDATA | sqlite $DATABASE + echo "done" + fi + + update_permissions "$DATABASE" + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst 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 + --- pdns-2.9.22.orig/debian/pdns-backend-geo.docs +++ pdns-2.9.22/debian/pdns-backend-geo.docs @@ -0,0 +1 @@ +modules/geobackend/README --- pdns-2.9.22.orig/debian/pdns-backend-pgsql.README.Debian +++ pdns-2.9.22/debian/pdns-backend-pgsql.README.Debian @@ -0,0 +1,19 @@ +Instructions on setting up PostgreSQL as a backend for PowerDNS +--------------------------------------------------------------- + +Please find a database schema for PostgreSQL in +/usr/share/doc/pdns-backend-pgsql/pgsql.sql + +Just create a database using 'createdb' and then feed these SQL commands to +PostgreSQL to get some defaults to start with: + + psql -h -U -f pgsql.sql + +Then add further records to the database. + +*** SSL WARNING *** +Please note that SSL connections to a PostgreSQL database currently do not +work when PowerDNS is run chrooted because PowerDNS cannot access the +libssl library from within the chroot. +*** SSL WARNING *** + --- pdns-2.9.22.orig/debian/pdns-server.examples +++ pdns-2.9.22/debian/pdns-server.examples @@ -0,0 +1 @@ +debian/config/pdns.local.bind --- pdns-2.9.22.orig/debian/compat +++ pdns-2.9.22/debian/compat @@ -0,0 +1 @@ +5 --- pdns-2.9.22.orig/debian/pdns-backend-pipe.examples +++ pdns-2.9.22/debian/pdns-backend-pipe.examples @@ -0,0 +1 @@ +debian/config/pdns.local.pipe --- pdns-2.9.22.orig/debian/pdns-server.README.Debian +++ pdns-2.9.22/debian/pdns-server.README.Debian @@ -0,0 +1,22 @@ +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 are the user changes. The configuration for +specific backends can go into /etc/powerdns/pdns.d/pdns.local + + + 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. + --- pdns-2.9.22.orig/debian/pdns-backend-pgsql.postinst +++ pdns-2.9.22/debian/pdns-backend-pgsql.postinst @@ -0,0 +1,42 @@ +#!/bin/sh +# postinst script for pdns-backend-pgsql +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Activate trigger +dpkg-trigger pdns-server + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.22.orig/debian/pdns.README.Debian +++ pdns-2.9.22/debian/pdns.README.Debian @@ -0,0 +1,9 @@ +Notes about the 'pdns' package +------------------------------ + +Please note that the 'pdns' package has been replaced by the 'pdns-server' +and 'pdns-recursor' packages. This package has just survived for compatibility +reasons but does not serve a purpose any longer. It is safe to be removed. + + The PowerDNS maintainers + --- pdns-2.9.22.orig/debian/pdns-server.dirs +++ pdns-2.9.22/debian/pdns-server.dirs @@ -0,0 +1,10 @@ +usr/bin +usr/sbin +etc/init.d +etc/default +etc/powerdns +etc/powerdns/pdns.d +etc/resolvconf +etc/resolvconf/update.d +usr/share/man/man8 +usr/share/pdns-server --- pdns-2.9.22.orig/debian/pdns-backend-sqlite.postrm +++ pdns-2.9.22/debian/pdns-backend-sqlite.postrm @@ -0,0 +1,46 @@ +#! /bin/sh +# postrm script for pdns +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +PDNSCONF=/etc/powerdns/pdns.conf +PDNSDIR=`cat $PDNSCONF | grep include | awk -F '=' '{print $2}'` +PDNSLOCAL=$PDNSDIR/pdns.local + +case "$1" in + remove) + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + purge) + # On purge delete database ? + rm -f /var/lib/powerdns/pdns.sqlite + rmdir /var/lib/powerdns 2>/dev/null || true + ;; + + *) + 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 + --- pdns-2.9.22.orig/debian/pdns-backend-pgsql.dirs +++ pdns-2.9.22/debian/pdns-backend-pgsql.dirs @@ -0,0 +1,2 @@ +usr/lib/powerdns +usr/share/doc/pdns-backend-pgsql --- pdns-2.9.22.orig/debian/pdns-server.config +++ pdns-2.9.22/debian/pdns-server.config @@ -0,0 +1,65 @@ +#!/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_input medium pdns-server/autostart || 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 + if [ -f /etc/default/pdns ]; then + AUTOSTART=`(cat /etc/default/pdns | grep "^START=" | awk -F '=' '{print $2}') || true` + case "$AUTOSTART" in + yes|true) + db_set pdns-server/autostart true + ;; + *) + db_set pdns-server/autostart false + ;; + esac + else + # It seems there was not a /etc/default/pdns so assume that we always want + # to start pdns (<< 2.9.16 assumes that you want it started) + db_set pdns-server/autostart true + fi + + db_fset pdns-server/allowrecursion seen true + db_fset pdns-server/localaddress seen true + db_fset pdns-server/autostart seen true +fi + +db_stop || true + +exit 0 + --- pdns-2.9.22.orig/debian/pdns-backend-geo.install +++ pdns-2.9.22/debian/pdns-backend-geo.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/powerdns/libgeobackend.so* usr/lib/powerdns/ +debian/tmp/usr/lib/powerdns/libgeobackend.a usr/lib/powerdns/ --- pdns-2.9.22.orig/debian/copyright +++ pdns-2.9.22/debian/copyright @@ -0,0 +1,25 @@ +This is the Debian prepackaged version of pDNS, the PowerDNS +nameserver. + +pDNS can be downloaded from http://www.powerdns.com/ + +Copyright and license: + + Copyright 2002 PowerDNS.COM BV + + 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. + + Additionally, the license of this program contains a special + exception which allows to distribute the program in binary form when + it is linked against OpenSSL. + + 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. + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL-2 + --- pdns-2.9.22.orig/debian/pdns-backend-ldap.manpages +++ pdns-2.9.22/debian/pdns-backend-ldap.manpages @@ -0,0 +1 @@ +debian/manpage/zone2ldap.8 --- pdns-2.9.22.orig/debian/pdns-server.postrm +++ pdns-2.9.22/debian/pdns-server.postrm @@ -0,0 +1,56 @@ +#! /bin/sh +# postrm script for pdns-server +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + purge) + # Remove files registered with ucf. + for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do + rm -f /etc/powerdns/pdns.conf$ext + rm -f /etc/default/pdns$ext + rm -f /etc/powerdns/pdns.d/pdns.local$ext + done + rm -f /etc/powerdns/pdns.conf + rm -f /etc/default/pdns + rm -f /etc/powerdns/pdns.d/pdns.local + if [ -x /usr/bin/ucf ]; then + ucf --purge /etc/powerdns/pdns.conf + ucf --purge /etc/default/pdns + ucf --purge /etc/powerdns/pdns.d/pdns.local + fi + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 +esac + +if [ "$1" = "purge" ] ; then + update-rc.d pdns remove >/dev/null || exit 0 +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.22.orig/debian/pdns-backend-pipe.postinst +++ pdns-2.9.22/debian/pdns-backend-pipe.postinst @@ -0,0 +1,42 @@ +#!/bin/sh +# postinst script for pdns-backend-pipe +# +# see: dh_installdeb(1) + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +set -e + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Activate trigger +dpkg-trigger pdns-server + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.22.orig/debian/pdns-backend-pipe.dirs +++ pdns-2.9.22/debian/pdns-backend-pipe.dirs @@ -0,0 +1,2 @@ +usr/lib/powerdns +usr/share/doc/pdns-backend-pipe --- pdns-2.9.22.orig/debian/pdns-backend-mysql.examples +++ pdns-2.9.22/debian/pdns-backend-mysql.examples @@ -0,0 +1 @@ +debian/config/pdns.local.gmysql --- pdns-2.9.22.orig/debian/pdns-backend-mysql.dirs +++ pdns-2.9.22/debian/pdns-backend-mysql.dirs @@ -0,0 +1,2 @@ +usr/lib/powerdns +usr/share/doc/pdns-backend-mysql --- pdns-2.9.22.orig/debian/pdns-server.postinst +++ pdns-2.9.22/debian/pdns-server.postinst @@ -0,0 +1,125 @@ +#!/bin/sh +# postinst script for pdns-server +# +# see: dh_installdeb(1) + +set -e + +. /usr/share/debconf/confmodule + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +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 + +# Temporary files +PDNSCONFTEMP=`mktemp` +PDNSLOCALTEMP=`mktemp` +PDNSDEFAULTTEMP=`mktemp` + +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 > $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 + + # Start on boot ? + db_get pdns-server/autostart || true + [ -z "$RET" ] && RET=false + if [ "$RET" = "true" ]; then + sed -i -e "s/^START=.*$/START=yes/" $PDNSDEFAULTTEMP + fi + + # 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 + + # Stop the debconf stuff + db_stop || true + + # Clean up temporary files. + rm -f $PDNSCONFTEMP $PDNSDEFAULTTEMP $PDNSLOCALTEMP + + # There could be passwords in these files. PowerDNS first reads the + # configuration files and then drop root privileges. + if [ -z "$2" ]; then + chmod 0600 $PDNSCONF $PDNSLOCAL + chmod 0700 $PDNSDIR + fi + ;; + + triggered) + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d pdns restart || exit $? + else + /etc/init.d/pdns restart || exit $? + fi + ;; + + 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 + +if [ "$1" = "configure" ] && [ -x "/etc/init.d/pdns" ]; then + update-rc.d pdns defaults 20 85 >/dev/null || exit 0 +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.22.orig/debian/pdns-backend-pipe.install +++ pdns-2.9.22/debian/pdns-backend-pipe.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/powerdns/libpipebackend.so* usr/lib/powerdns/ +debian/tmp/usr/lib/powerdns/libpipebackend.a usr/lib/powerdns/ --- pdns-2.9.22.orig/debian/pdns-backend-pgsql.install +++ pdns-2.9.22/debian/pdns-backend-pgsql.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/powerdns/libgpgsqlbackend.so* usr/lib/powerdns/ +debian/tmp/usr/lib/powerdns/libgpgsqlbackend.a usr/lib/powerdns/ --- pdns-2.9.22.orig/debian/pdns-backend-ldap.install +++ pdns-2.9.22/debian/pdns-backend-ldap.install @@ -0,0 +1,4 @@ +debian/tmp/usr/lib/powerdns/libldapbackend.so* usr/lib/powerdns/ +debian/tmp/usr/lib/powerdns/libldapbackend.a usr/lib/powerdns/ +debian/tmp/usr/bin/zone2ldap usr/bin/ +debian/config/dnsdomain2.schema etc/ldap/schema/ --- pdns-2.9.22.orig/debian/pdns-backend-pgsql.docs +++ pdns-2.9.22/debian/pdns-backend-pgsql.docs @@ -0,0 +1 @@ +debian/config/pgsql.sql --- pdns-2.9.22.orig/debian/pdns-doc.docs +++ pdns-2.9.22/debian/pdns-doc.docs @@ -0,0 +1 @@ +pdns/docs/html --- pdns-2.9.22.orig/debian/pdns-backend-ldap.postinst +++ pdns-2.9.22/debian/pdns-backend-ldap.postinst @@ -0,0 +1,42 @@ +#!/bin/sh +# postinst script for pdns-backend-ldap +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Activating trigger +dpkg-trigger pdns-server + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.22.orig/debian/pdns-backend-mysql.postinst +++ pdns-2.9.22/debian/pdns-backend-mysql.postinst @@ -0,0 +1,42 @@ +#!/bin/sh +# postinst script for pdns-backend-mysql +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Activate trigger +dpkg-trigger pdns-server + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.22.orig/debian/pdns-doc.doc-base +++ pdns-2.9.22/debian/pdns-doc.doc-base @@ -0,0 +1,12 @@ +Document: pdns +Title: PowerDNS manual +Author: PowerDNS B.V. +Section: Network/Communication +Abstract: PowerDNS manual + This is the complete manual for PowerDNS, documenting both + how to install and configure it as well as how to write + new backend modules. + +Format: html +Index: /usr/share/doc/pdns-doc/html/index.html +Files: /usr/share/doc/pdns-doc/html/*.html --- pdns-2.9.22.orig/debian/pdns-backend-ldap.examples +++ pdns-2.9.22/debian/pdns-backend-ldap.examples @@ -0,0 +1 @@ +debian/config/pdns.local.ldap --- pdns-2.9.22.orig/debian/pdns-backend-mysql.install +++ pdns-2.9.22/debian/pdns-backend-mysql.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/powerdns/libgmysqlbackend.so* usr/lib/powerdns/ +debian/tmp/usr/lib/powerdns/libgmysqlbackend.a usr/lib/powerdns/ --- pdns-2.9.22.orig/debian/pdns-backend-geo.postinst +++ pdns-2.9.22/debian/pdns-backend-geo.postinst @@ -0,0 +1,42 @@ +#!/bin/sh +# postinst script for pdns-backend-geo +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Activate trigger +dpkg-trigger pdns-server + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.22.orig/debian/pdns-backend-sqlite3.examples +++ pdns-2.9.22/debian/pdns-backend-sqlite3.examples @@ -0,0 +1,2 @@ +debian/config/pdns.local.gsqlite3 +debian/config/sqlite3.sql --- pdns-2.9.22.orig/debian/pdns-backend-geo.dirs +++ pdns-2.9.22/debian/pdns-backend-geo.dirs @@ -0,0 +1,2 @@ +usr/lib/powerdns +usr/share/doc/pdns-backend-geo --- pdns-2.9.22.orig/debian/pdns-backend-sqlite3.postrm +++ pdns-2.9.22/debian/pdns-backend-sqlite3.postrm @@ -0,0 +1,46 @@ +#! /bin/sh +# postrm script for pdns +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +PDNSCONF=/etc/powerdns/pdns.conf +PDNSDIR=`cat $PDNSCONF | grep include | awk -F '=' '{print $2}'` +PDNSLOCAL=$PDNSDIR/pdns.local + +case "$1" in + remove) + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + purge) + # On purge delete database ? + rm -f /var/lib/powerdns/pdns.sqlite3 + rmdir /var/lib/powerdns 2>/dev/null || true + ;; + + *) + 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 + --- pdns-2.9.22.orig/debian/pdns-backend-sqlite3.lintian-overrides +++ pdns-2.9.22/debian/pdns-backend-sqlite3.lintian-overrides @@ -0,0 +1,3 @@ +# Those are not bashism's but sql. +pdns-backend-sqlite3: possible-bashism-in-maintainer-script postinst:33 ' type ' +pdns-backend-sqlite3: possible-bashism-in-maintainer-script postinst:44 ' type ' --- pdns-2.9.22.orig/debian/pdns-backend-sqlite3.postinst +++ pdns-2.9.22/debian/pdns-backend-sqlite3.postinst @@ -0,0 +1,118 @@ +#! /bin/sh +# postinst script for pdns-backend-sqlite +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +# Configuration file +PDNSCONF=/etc/powerdns/pdns.conf +PDNSDIR=`cat $PDNSCONF | grep include | awk -F '=' '{print $2}'` +PDNSUSER=`cat $PDNSCONF | grep setuid | awk -F '=' '{print $2}'` +PDNSGROUP=`cat $PDNSCONF | grep setgid | awk -F '=' '{print $2}'` +DATABASE=/var/lib/powerdns/pdns.sqlite3 +PDNSLOCAL=$PDNSDIR/pdns.local + +INITDATA="create table domains ( + id INTEGER PRIMARY KEY, + name VARCHAR(255) NOT NULL, + master VARCHAR(20) DEFAULT NULL, + last_check INTEGER DEFAULT NULL, + type VARCHAR(6) NOT NULL, + notified_serial INTEGER DEFAULT NULL, + account VARCHAR(40) DEFAULT NULL +); + +CREATE UNIQUE INDEX name_index ON domains(name); + +CREATE TABLE records ( + id INTEGER PRIMARY KEY, + domain_id INTEGER DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + type VARCHAR(6) DEFAULT NULL, + content VARCHAR(255) DEFAULT NULL, + ttl INTEGER DEFAULT NULL, + prio INTEGER DEFAULT NULL, + change_date INTEGER DEFAULT NULL +); + +CREATE INDEX rec_name_index ON records(name); +CREATE INDEX nametype_index ON records(name,type); +CREATE INDEX domain_id ON records(domain_id); + +create table supermasters ( + ip VARCHAR(25) NOT NULL, + nameserver VARCHAR(255) NOT NULL, + account VARCHAR(40) DEFAULT NULL +);" + +update_permissions() { + data="$1" + if [ -d "$dir" ]; then + if [ ! -z "$PDNSUSER" ]; then + chown -R "$PDNSUSER" "$data" + fi + if [ ! -z "$PDNSGROUP" ]; then + chgrp -R "$PDNSGROUP" "$data" + fi + fi +} + +case "$1" in + configure) + if [ -f $PDNSLOCAL ]; then + EXIST=`(cat $PDNSLOCAL | grep "gsqlite-database") || true` + DATA=`echo $EXIST | awk -F '=' '{print $2}'` + else + EXIST="" + fi + + if [ ! -z "$DATA" ]; then + DATABASE=$DATA + else + if [ ! -d "/var/lib/powerdns" ]; then + mkdir -m 0755 /var/lib/powerdns + fi + fi + + # Create initial database + if [ ! -f $DATABASE ]; then + echo -n "Generating sqlite database..." + echo $INITDATA | sqlite3 $DATABASE + echo "done" + fi + + update_permissions "$DATABASE" + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# Activate trigger +dpkg-trigger pdns-server + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.22.orig/debian/triggers +++ pdns-2.9.22/debian/triggers @@ -0,0 +1 @@ +interest pdns-server --- pdns-2.9.22.orig/debian/pdns-backend-ldap.dirs +++ pdns-2.9.22/debian/pdns-backend-ldap.dirs @@ -0,0 +1,4 @@ +etc/ldap/schema +usr/lib/powerdns +usr/bin +usr/share/doc/pdns-backend-ldap --- pdns-2.9.22.orig/debian/pdns-server.templates +++ pdns-2.9.22/debian/pdns-server.templates @@ -0,0 +1,22 @@ +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/autostart +Type: boolean +Default: true +_Description: Do you want to start the PowerDNS server automatically? + If you accept here, an initscript will be used to automatically start the + PowerDNS authoritative nameserver. + +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. + --- pdns-2.9.22.orig/debian/rules +++ pdns-2.9.22/debian/rules @@ -0,0 +1,133 @@ +#!/usr/bin/make -f +# +# debian/rules file + +# Environment +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CXXFLAGS = -Wall -g +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 + CXXFLAGS += -O0 +else + CFLAGS += -O2 + CXXFLAGS += -O2 +endif + +backends := ldap pipe gmysql gpgsql gsqlite gsqlite3 geo + +# Include quilt patch system +include /usr/share/quilt/quilt.make + +# Targets +config.status: + dh_testdir + +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + + # First run the bootstrap. + ./bootstrap + + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" ./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/powerdns' \ + --libexecdir='$${prefix}/lib' \ + --with-dynmodules="$(backends)" \ + --with-modules="" \ + --with-pgsql-includes=`pg_config --includedir` \ + --disable-recursor + +build: patch build-stamp +build-stamp: config.status + + # Add here commands to compile the arch part of the package. + $(MAKE) + + touch build-stamp + +clean: clean1 unpatch +clean1: + dh_testdir + dh_testroot + rm -f build-stamp config.log config.sub config.guess + + # Add here commands to clean up after the build process. + [ ! -f modules/db2backend/Makefile ] || $(MAKE) -C modules/db2backend/ distclean + [ ! -f modules/pdnsbackend/Makefile ] || $(MAKE) -C modules/pdnsbackend/ distclean + [ ! -f modules/xdbbackend/Makefile ] || $(MAKE) -C modules/xdbbackend/ distclean + [ ! -f modules/mysqlbackend/Makefile ] || $(MAKE) -C modules/mysqlbackend/ distclean + [ ! -f modules/goraclebackend/Makefile ] || $(MAKE) -C modules/goraclebackend/ distclean + [ ! -f modules/opendbxbackend/Makefile ] || $(MAKE) -C modules/opendbxbackend/ distclean + [ ! -f Makefile ] || $(MAKE) distclean + [ ! -f pdns/docs/Makefile ] || $(MAKE) -C pdns/docs clean + + dh_clean + +install: +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Install the stuff + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + $(MAKE) -C pdns/docs html/index.html + + dh_install + +# Build architecture independant packages. +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_installchangelogs -i ChangeLog + dh_installdocs -i + dh_link -i + dh_compress -i -X changelog.html + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture dependant packages. +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installchangelogs -a ChangeLog + dh_installdocs -a + dh_installdebconf -a + dh_installman -a + dh_installexamples -a + dh_lintian -a + dh_link -a + dh_strip -a + dh_compress -a + dh_fixperms -a + chmod 755 $(CURDIR)/debian/pdns-server/etc/resolvconf/update.d/pdns + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install --- pdns-2.9.22.orig/debian/pdns-backend-sqlite.examples +++ pdns-2.9.22/debian/pdns-backend-sqlite.examples @@ -0,0 +1 @@ +debian/config/pdns.local.gsqlite --- pdns-2.9.22.orig/debian/watch +++ pdns-2.9.22/debian/watch @@ -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-(.*)\.tar\.gz debian uupdate --- pdns-2.9.22.orig/debian/pdns-backend-sqlite3.dirs +++ pdns-2.9.22/debian/pdns-backend-sqlite3.dirs @@ -0,0 +1,2 @@ +usr/lib/powerdns +usr/share/doc/pdns-backend-sqlite3 --- pdns-2.9.22.orig/debian/pdns-server.install +++ pdns-2.9.22/debian/pdns-server.install @@ -0,0 +1,8 @@ +debian/tmp/usr/bin/pdns_control usr/bin/ +debian/tmp/usr/bin/zone2sql usr/bin/ +debian/tmp/usr/sbin/pdns_server usr/sbin/ +debian/config/pdns.conf usr/share/pdns-server/ +debian/config/pdns.local usr/share/pdns-server/ +debian/default/pdns usr/share/pdns-server/ +debian/init.d/pdns etc/init.d/ +debian/resolvconf/pdns etc/resolvconf/update.d/ --- pdns-2.9.22.orig/debian/pdns-backend-geo.examples +++ pdns-2.9.22/debian/pdns-backend-geo.examples @@ -0,0 +1 @@ +debian/config/pdns.local.geo --- pdns-2.9.22.orig/debian/config/pdns.local.gsqlite3 +++ pdns-2.9.22/debian/config/pdns.local.gsqlite3 @@ -0,0 +1,4 @@ +# Configuration for gsqlite +# +# gsqlite3-database= + --- pdns-2.9.22.orig/debian/config/pdns.local.ldap +++ pdns-2.9.22/debian/config/pdns.local.ldap @@ -0,0 +1,7 @@ +# LDAP Configuration +# +# ldap-host= +# ldap-method= +# ldap-basedn= +# ldap-binddn= +# ldap-secret= --- pdns-2.9.22.orig/debian/config/pdns.conf +++ pdns-2.9.22/debian/config/pdns.conf @@ -0,0 +1,314 @@ +# Autogenerated configuration file template +################################# +# allow-axfr-ips If enabled, restrict zonetransfers to originate from these +# IP addresses +# +# allow-axfr-ips= + +################################# +# allow-recursion List of netmasks that are allowed to recurse +# +# allow-recursion= + +################################# +# allow-recursion-override Local data even about hosts that don't exist will +# override the internet. (on/off) +# +# allow-recursion-override= + +################################# +# cache-ttl Seconds to store packets in the PacketCache +# +# cache-ttl=20 + +################################# +# chroot If set, chroot to this directory for more security +# +# chroot=/var/spool/powerdns + +################################# +# 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-soa-name name to insert in the SOA record if none set in the backend +# +# default-soa-name=a.misconfigured.powerdns.server + +################################# +# disable-axfr Disable zonetransfers but do allow TCP queries +# +disable-axfr=yes + +################################# +# disable-tcp Do not listen to TCP queries +# +# disable-tcp=no + +################################# +# distributor-threads Default number of Distributor (backend) threads to start +# +# distributor-threads=3 + +################################# +# fancy-records Process URL and MBOXFW records +# +# fancy-records=no + +################################# +# guardian Run within a guardian process +# +guardian=yes + +################################# +# launch Which backends to launch and order to query them in +# +# launch= + +################################# +# lazy-recursion Only recurse if question cannot be answered locally +# +lazy-recursion=yes + +################################# +# load-modules Load this module - supply absolute or relative path +# +# load-modules= + +################################# +# local-address Local IP address to which we bind +# +local-address=0.0.0.0 + +################################# +# local-ipv6 Local IP address to which we bind +# +# local-ipv6= + +################################# +# local-port The port on which we listen +# +local-port=53 + +################################# +# log-dns-details If PDNS should log failed update requests +# +# log-dns-details= + +################################# +# log-failed-updates If PDNS should log failed update requests +# +# log-failed-updates= + +################################# +# logfile Logfile to use +# +# logfile=/var/log/pdns.log + +################################# +# logging-facility Log under a specific facility +# +# logging-facility= + +################################# +# loglevel Amount of logging. Higher is more. Do not set below 3 +# +# loglevel=4 + +################################# +# master Act as a master +# +# master=no + +################################# +# max-queue-length Maximum queuelength before considering situation lost +# +# max-queue-length=5000 + +################################# +# max-tcp-connections Maximum number of TCP connections +# +# max-tcp-connections=10 + +################################# +# module-dir Default directory for modules +# +module-dir=/usr/lib/powerdns + +################################# +# negquery-cache-ttl Seconds to store packets in the PacketCache +# +# negquery-cache-ttl=60 + +################################# +# out-of-zone-additional-processing Do out of zone additional processing +# +# out-of-zone-additional-processing=no + +################################# +# query-cache-ttl Seconds to store packets in the PacketCache +# +# query-cache-ttl=20 + +################################# +# 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 + +################################# +# query-local-address The IP address to use as a source address for sending +# queries. +# query-local-address= + +################################# +# receiver-threads Number of receiver threads to launch +# +# receiver-threads=1 + +################################# +# recursive-cache-ttl Seconds to store packets in the PacketCache +# +# recursive-cache-ttl=10 + +################################# +# recursor If recursion is desired, IP address of a recursing nameserver +# +# recursor= + +################################# +# 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 + +################################# +# skip-cname Do not perform CNAME indirection for each query +# +# skip-cname=no + +################################# +# slave Act as a slave +# +# slave=no + +################################# +# slave-cycle-interval Reschedule failed SOA serial checks once every .. seconds +# +# slave-cycle-interval=60 + +################################# +# smtpredirector Our smtpredir MX host +# +# smtpredirector=a.misconfigured.powerdns.smtp.server + +################################# +# soa-minimum-ttl Default SOA mininum ttl +# +# soa-minimum-ttl=3600 + +################################# +# soa-refresh-default Default SOA refresh +# +# soa-refresh-default=10800 + +################################# +# soa-retry-default Default SOA retry +# +# soa-retry-default=3600 + +################################# +# soa-expire-default Default SOA expire +# +# soa-expire-default=604800 + +################################# +# soa-serial-offset Make sure that no SOA serial is less than this number +# +# soa-serial-offset=0 + +################################# +# socket-dir Where the controlsocket will live +# +socket-dir=/var/run + +################################# +# strict-rfc-axfrs Perform strictly rfc compliant axfrs (very slow) +# +# strict-rfc-axfrs=no + +################################# +# urlredirector Where we send hosts to that need to be url redirected +# +# urlredirector=127.0.0.1 + +################################# +# use-logfile Use a log file +# +# use-logfile=yes + +################################# +# webserver Start a webserver for monitoring +# +# webserver=no + +################################# +# webserver-address IP Address of webserver to listen on +# +# webserver-address=127.0.0.1 + +################################# +# 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 + +################################# +# wildcard-url Process URL and MBOXFW records +# +# wildcard-url=no + +################################# +# wildcards Honor wildcards in the database +# +# wildcards= + +################################# +# version-string What should PowerDNS return for version +# allowed methods are anonymous / powerdns / full / custom +version-string=powerdns + +include=/etc/powerdns/pdns.d --- pdns-2.9.22.orig/debian/config/dnsdomain2.schema +++ pdns-2.9.22/debian/config/dnsdomain2.schema @@ -0,0 +1,112 @@ +# 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.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.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.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 ) + +objectclass ( 1.3.6.1.4.1.2428.20.2 NAME 'dNSDomain2' + SUP 'dNSDomain' STRUCTURAL + MAY ( DNSTTL $ DNSClass $ PTRRecord $ HINFORecord $ + MINFORecord $ TXTRecord $ SIGRecord $ KEYRecord $ + AAAARecord $ LOCRecord $ NXTRecord $ SRVRecord $ + NAPTRRecord $ KXRecord $ CERTRecord $ A6Record $ + DNAMERecord ) ) --- pdns-2.9.22.orig/debian/config/pdns.local.gmysql +++ pdns-2.9.22/debian/config/pdns.local.gmysql @@ -0,0 +1,8 @@ +# MySQL Configuration +# +# gmysql-host= +# gmysql-port= +# gmysql-dbname= +# gmysql-user= +# gmysql-password= +# gmysql-socket= --- pdns-2.9.22.orig/debian/config/pgsql.sql +++ pdns-2.9.22/debian/config/pgsql.sql @@ -0,0 +1,40 @@ +create table domains ( + id SERIAL PRIMARY KEY, + name VARCHAR(255) NOT NULL, + master VARCHAR(20) DEFAULT NULL, + last_check INT DEFAULT NULL, + type VARCHAR(6) NOT NULL, + notified_serial INT DEFAULT NULL, + account VARCHAR(40) DEFAULT NULL +); +CREATE UNIQUE INDEX name_index ON domains(name); + +CREATE TABLE records ( + id SERIAL PRIMARY KEY, + domain_id INT DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + type VARCHAR(6) DEFAULT NULL, + content VARCHAR(255) DEFAULT NULL, + ttl INT DEFAULT NULL, + prio INT DEFAULT NULL, + change_date INT DEFAULT NULL, + CONSTRAINT domain_exists + FOREIGN KEY(domain_id) REFERENCES domains(id) + ON DELETE CASCADE +); + +CREATE INDEX rec_name_index ON records(name); +CREATE INDEX nametype_index ON records(name,type); +CREATE INDEX domain_id ON records(domain_id); + +create table supermasters ( + ip VARCHAR(25) NOT NULL, + nameserver VARCHAR(255) NOT NULL, + account VARCHAR(40) DEFAULT NULL +); + +GRANT SELECT ON supermasters TO pdns; +GRANT ALL ON domains TO pdns; +GRANT ALL ON domains_id_seq TO pdns; +GRANT ALL ON records TO pdns; +GRANT ALL ON records_id_seq TO pdns; --- pdns-2.9.22.orig/debian/config/pdns.local.gsqlite +++ pdns-2.9.22/debian/config/pdns.local.gsqlite @@ -0,0 +1,4 @@ +# Configuration for gsqlite +# +# gsqlite-database= + --- pdns-2.9.22.orig/debian/config/mysql.sql +++ pdns-2.9.22/debian/config/mysql.sql @@ -0,0 +1,38 @@ +create table domains ( + id INT auto_increment, + name VARCHAR(255) NOT NULL, + master VARCHAR(20) DEFAULT NULL, + last_check INT DEFAULT NULL, + type VARCHAR(6) NOT NULL, + notified_serial INT DEFAULT NULL, + account VARCHAR(40) DEFAULT NULL, + primary key (id) +)type=InnoDB; + +CREATE UNIQUE INDEX name_index ON domains(name); + +CREATE TABLE records ( + id INT auto_increment, + domain_id INT DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + type VARCHAR(6) DEFAULT NULL, + content VARCHAR(255) DEFAULT NULL, + ttl INT DEFAULT NULL, + prio INT DEFAULT NULL, + change_date INT DEFAULT NULL, + primary key(id) +)type=InnoDB; + +CREATE INDEX rec_name_index ON records(name); +CREATE INDEX nametype_index ON records(name,type); +CREATE INDEX domain_id ON records(domain_id); + +create table supermasters ( + ip VARCHAR(25) NOT NULL, + nameserver VARCHAR(255) NOT NULL, + account VARCHAR(40) DEFAULT NULL +); + +GRANT SELECT ON supermasters TO pdns; +GRANT ALL ON domains TO pdns; +GRANT ALL ON records TO pdns; --- pdns-2.9.22.orig/debian/config/pdns.local.gpgsql +++ pdns-2.9.22/debian/config/pdns.local.gpgsql @@ -0,0 +1,7 @@ +# PostgreSQL Configuration +# +# gpgsql-host= +# gpgsql-port= +# gpgsql-dbname= +# gpgsql-user= +# gpgsql-password= --- pdns-2.9.22.orig/debian/config/pdns.local +++ pdns-2.9.22/debian/config/pdns.local @@ -0,0 +1,3 @@ +# Here come the local changes the user made, like configuration of +# the several backends that exist. + --- pdns-2.9.22.orig/debian/config/pdns.local.geo +++ pdns-2.9.22/debian/config/pdns.local.geo @@ -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= --- pdns-2.9.22.orig/debian/config/pdns.local.pipe +++ pdns-2.9.22/debian/config/pdns.local.pipe @@ -0,0 +1,6 @@ +# Configuration for pipe backend +# +# pipe-command= +# pipe-timeout= +# pipe-regex= + --- pdns-2.9.22.orig/debian/config/pdns.local.bind +++ pdns-2.9.22/debian/config/pdns.local.bind @@ -0,0 +1,15 @@ +# Bind backend configuration + +# Uncomment to load the 'example.com' zone for testing: +# bind-example-zones + +# 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 + --- pdns-2.9.22.orig/debian/config/sqlite3.sql +++ pdns-2.9.22/debian/config/sqlite3.sql @@ -0,0 +1,32 @@ +create table domains ( + id INTEGER PRIMARY KEY, + name VARCHAR(255) NOT NULL, + master VARCHAR(128) DEFAULT NULL, + last_check INTEGER DEFAULT NULL, + type VARCHAR(6) NOT NULL, + notified_serial INTEGER DEFAULT NULL, + account VARCHAR(40) DEFAULT NULL + ); + + CREATE UNIQUE INDEX name_index ON domains(name); + + CREATE TABLE records ( + id INTEGER PRIMARY KEY, + domain_id INTEGER DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + type VARCHAR(6) DEFAULT NULL, + content VARCHAR(255) DEFAULT NULL, + ttl INTEGER DEFAULT NULL, + prio INTEGER DEFAULT NULL, + change_date INTEGER DEFAULT NULL + ); + + CREATE INDEX rec_name_index ON records(name); + CREATE INDEX nametype_index ON records(name,type); + CREATE INDEX domain_id ON records(domain_id); + + create table supermasters ( + ip VARCHAR(25) NOT NULL, + nameserver VARCHAR(255) NOT NULL, + account VARCHAR(40) DEFAULT NULL + ); --- pdns-2.9.22.orig/debian/manpage/zone2ldap.8 +++ pdns-2.9.22/debian/manpage/zone2ldap.8 @@ -0,0 +1,76 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH PDNS 8 "November 23, 2004" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +zone2ldap \- convert zonefiles to ldif +.SH SYNOPSIS +.B zone2ldap +.RI [ options ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B zone2ldap +command. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBzone2ldap\fP is a program that converts bind zonefiles to ldif format which can inserted to an LDAP server +.SH OPTIONS +A summary of options is included below. +.TP +.B \-\-help +.br +Show summary of options. +.TP +.B \-\-basedn\=... +.br +Base DN to store objects below +.TP +.B \-\-dnsttl\=[yes|no] +.br +Add dnsttl attribute to every entry +.TP +.B \-\-layout\=... +.br +How to arrange entries in the directory (simple or as tree) +.TP +.B \-\-named\-conf\=... +.br +Bind 8 named.conf to parse +.TP +.B \-\-resume\=[yes|no] +.br +Continue after errors +.TP +.B \-\-verbose\=[yes|no] +.br +Verbose comments on operation +.TP +.B \-\-zone\-file=... +.br +Zone file to parse +.TP +.B \-\-zone\-name=... +.br +Specify a zone name if zone is set +.SH SEE ALSO +.BR pdns_server (8) +.br +.SH AUTHOR +This manual page was written by Matthijs Mohlmann , +for the Debian project (but may be used by others). --- pdns-2.9.22.orig/debian/init.d/pdns +++ pdns-2.9.22/debian/init.d/pdns @@ -0,0 +1,177 @@ +#!/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 +# Short-Description: PDNS is a versatile high performance authoritative nameserver. +### END INIT INFO + +PATH=/bin:/sbin:/usr/bin:/usr/sbin +BINARYPATH=/usr/bin +SBINARYPATH=/usr/sbin +SOCKETPATH=/var/run +NAME=pdns-server + +[ -f "$SBINARYPATH/pdns_server" ] || exit 0 + +if [ -r /etc/default/pdns ]; then + . /etc/default/pdns +fi + +# Make sure that /var/run exists +mkdir -p $SOCKETPATH +cd $SOCKETPATH +suffix=`basename $0 | awk -F- '{print $2}'` +if [ $suffix ]; then + EXTRAOPTS=--config-name=$suffix + PROGNAME=pdns-$suffix +else + PROGNAME=pdns +fi + +pdns_server="$SBINARYPATH/pdns_server $EXTRAOPTS" + +doPC() +{ + ret=$($BINARYPATH/pdns_control $EXTRAOPTS $1 $2 2> /dev/null) +} + +do_test_running() +{ + doPC ping + NOTRUNNING=$? +} + +do_start() +{ + do_test_running + if [ "$NOTRUNNING" = "0" ] || [ "$START" = "no" ]; then + echo "already running or disabled" + else + $pdns_server --daemon --guardian=yes + if test "$?" = "0"; then + echo "started" + fi + fi +} + + +case "$1" in + status) + do_test_running + if test "$NOTRUNNING" = "0"; then + doPC status + echo $ret + else + echo "not running" + fi + ;; + stop) + echo -n "Stopping PowerDNS authoritative nameserver: " + do_test_running + if test "$NOTRUNNING" = "0"; then + doPC quit + echo $ret + else + echo "not running" + fi + ;; + force-stop) + echo -n "Stopping PowerDNS authoritative nameserver: " + killall -v -9 pdns_server + echo "killed" + ;; + start) + echo -n "Starting PowerDNS authoritative nameserver: " + do_start + ;; + force-reload | restart) + echo -n "Restarting PowerDNS authoritative nameserver: " + echo -n stopping and waiting.. + doPC quit + sleep 3 + echo done + do_start + ;; + reload) + echo -n "Reloading PowerDNS authoritative nameserver: " + do_test_running + if test "$NOTRUNNING" = "0"; then + doPC cycle + echo requested reload + else + echo not running yet + $0 start + fi + ;; + monitor) + do_test_running + if test "$NOTRUNNING" = "0"; then + echo "already running" + else + $pdns_server --daemon=no --guardian=no --control-console --loglevel=9 + fi + ;; + dump) + do_test_running + if test "$NOTRUNNING" = "0"; then + doPC list + echo $ret + else + echo "not running" + fi + ;; + show) + if [ $# -lt 2 ]; then + echo Insufficient parameters + exit + fi + do_test_running + if test "$NOTRUNNING" = "0"; then + echo -n "$2=" + doPC show $2 ; echo $ret + else + echo "not running" + fi + ;; + mrtg) + if [ $# -lt 2 ]; then + echo Insufficient parameters + exit + fi + do_test_running + if test "$NOTRUNNING" = "0"; then + doPC show $2 ; echo $ret + if [ "$3x" != "x" ]; then + doPC show $3 ; echo $ret + else + echo 0 + fi + doPC uptime ; echo $ret + echo PowerDNS daemon + else + echo "not running" + fi + ;; + cricket) + if [ $# -lt 2 ]; then + echo Insufficient parameters + exit + fi + do_test_running + if test "$NOTRUNNING" = "0"; then + doPC show $2 ; echo $ret + else + echo "not running" + fi + ;; + + *) + echo pdns [start\|stop\|force-reload\|restart\|status\|dump\|show\|mrtg\|cricket\|monitor] + ;; +esac + +exit 0 + --- pdns-2.9.22.orig/debian/default/pdns +++ pdns-2.9.22/debian/default/pdns @@ -0,0 +1,9 @@ +# Variables for PowerDNS +# +# Whether you want to start PowerDNS automatically. +START=no + +# 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 --- pdns-2.9.22.orig/debian/default/pdns-recursor +++ pdns-2.9.22/debian/default/pdns-recursor @@ -0,0 +1,5 @@ +# Variables for PowerDNS recursor +# +# Set START to yes to start the pdns-recursor +START=yes + --- pdns-2.9.22.orig/debian/resolvconf/pdns +++ pdns-2.9.22/debian/resolvconf/pdns @@ -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 and +# Thomas Hood + +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 + --- pdns-2.9.22.orig/debian/po/ru.po +++ pdns-2.9.22/debian/po/ru.po @@ -0,0 +1,70 @@ +# 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 , 2009. +msgid "" +msgstr "" +"Project-Id-Version: pdns 2.9.22-1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-03-01 10:28+0100\n" +"PO-Revision-Date: 2009-07-19 09:17+0400\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \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: boolean +#. Description +#: ../pdns-server.templates:2001 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "Запускать сервер PowerDNS автоматически?" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:2001 +msgid "" +"If you accept here, an initscript will be used to automatically start the " +"PowerDNS authoritative nameserver." +msgstr "При включении машины можно автоматически запускать авторитетный сервер имён PowerDNS." + +#. Type: string +#. Description +#: ../pdns-server.templates:3001 +msgid "List of subnets that are allowed to recurse:" +msgstr "Список подсетей, для которых разрешены рекурсивные запросы:" + +#. Type: string +#. Description +#: ../pdns-server.templates:3001 +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." + --- pdns-2.9.22.orig/debian/po/templates.pot +++ pdns-2.9.22/debian/po/templates.pot @@ -0,0 +1,61 @@ +# 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 , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: powerdns-debian@workaround.org\n" +"POT-Creation-Date: 2006-05-11 21:20+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: 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:3 +msgid "IP address where PowerDNS should listen on:" +msgstr "" + +#. Type: string +#. Description +#: ../pdns-server.templates:3 +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: boolean +#. Description +#: ../pdns-server.templates:11 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:11 +msgid "" +"If you accept here, an initscript will be used to automatically start the " +"PowerDNS authoritative nameserver." +msgstr "" + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +msgid "List of subnets that are allowed to recurse:" +msgstr "" + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +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 "" --- pdns-2.9.22.orig/debian/po/ja.po +++ pdns-2.9.22/debian/po/ja.po @@ -0,0 +1,67 @@ +# Copyright (C) 2008 Debian PowerDNS Maintainers +# This file is distributed under the same license as pdns package. +# Hideki Yamane (Debian-JP) , 2008. +# +msgid "" +msgstr "" +"Project-Id-Version: pdns 2.9.21.2-1\n" +"Report-Msgid-Bugs-To: pdns@packages.debian.org\n" +"POT-Creation-Date: 2008-11-27 04:39+0100\n" +"PO-Revision-Date: 2008-12-28 22:26+0900\n" +"Last-Translator: Hideki Yamane (Debian-JP) \n" +"Language-Team: Japanese \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: boolean +#. Description +#: ../pdns-server.templates:2001 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "自動的に PowerDNS サーバが起動するようにしますか?" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:2001 +msgid "" +"If you accept here, an initscript will be used to automatically start the " +"PowerDNS authoritative nameserver." +msgstr "" +"これを有効にすると、初期化スクリプトは PowerDNS の authoritative ネームサーバ" +"を自動的に起動するようになります。" + +#. Type: string +#. Description +#: ../pdns-server.templates:3001 +msgid "List of subnets that are allowed to recurse:" +msgstr "再起検索を許可するサブネットのリスト:" + +#. Type: string +#. Description +#: ../pdns-server.templates:3001 +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 は" +"サブネットになります。" --- pdns-2.9.22.orig/debian/po/vi.po +++ pdns-2.9.22/debian/po/vi.po @@ -0,0 +1,65 @@ +# Vietnamese translation for pdns. +# Copyright © 2007 Free Software Foundation, Inc. +# Clytie Siddall , 2005-2007. +# +msgid "" +"" +msgstr "Project-Id-Version: pdns 2.9.20-8\n" +"Report-Msgid-Bugs-To: powerdns-debian@workaround.org\n" +"POT-Creation-Date: 2006-05-11 21:20+0200\n" +"PO-Revision-Date: 2007-05-30 22:46+0930\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \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:3 +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:3 +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: boolean +#.Description +#: ../pdns-server.templates:11 +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?" + +#.Type: boolean +#.Description +#: ../pdns-server.templates:11 +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." + +#.Type: string +#.Description +#: ../pdns-server.templates:18 +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:18 +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ụ." --- pdns-2.9.22.orig/debian/po/eu.po +++ pdns-2.9.22/debian/po/eu.po @@ -0,0 +1,70 @@ +# 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 , 2009. +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: pdns@packages.debian.org\n" +"POT-Creation-Date: 2009-10-28 07:02+0100\n" +"PO-Revision-Date: 2009-10-29 09:31+0200\n" +"Last-Translator: Piarres Beobide \n" +"Language-Team: Euskara \n" +"Language-Team: French \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:3 +msgid "IP address where PowerDNS should listen on:" +msgstr "Adresse IP o PowerDNS doit tre l'coute:" + +#. Type: string +#. Description +#: ../pdns-server.templates:3 +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 dfaut est " +"d'couter sur chacune d'entre-elles, ce qui peut conduire le systme " +"d'exploitation choisir la mauvaise adresse IP pour les paquets sortants. " +"Il est donc recommand d'associer PowerDNS une adresse IP spcifique." + +#. Type: boolean +#. Description +#: ../pdns-server.templates:11 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "PowerDNS doit-il tre dmarr automatiquement?" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:11 +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 " +"dmarrage du systme." + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +msgid "List of subnets that are allowed to recurse:" +msgstr "Liste des sous-rseaux pouvant tre interrogs:" + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +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-rseaux, spars par des virgules, qu'il " +"est autoris de parcourir. Des valeurs autorises sont 127.0.0.1 pour une " +"adresse IP et 192.168.0.0/24 pour un sous-rseau entier." --- pdns-2.9.22.orig/debian/po/de.po +++ pdns-2.9.22/debian/po/de.po @@ -0,0 +1,78 @@ +# 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 , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: de\n" +"Report-Msgid-Bugs-To: powerdns-debian@workaround.org\n" +"POT-Creation-Date: 2006-05-11 21:20+0200\n" +"PO-Revision-Date: 2006-05-11 21:59+0200\n" +"Last-Translator: Christoph Haas \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit" + +#. Type: string +#. Description +#: ../pdns-server.templates:3 +msgid "IP address where PowerDNS should listen on:" +msgstr "IP-Adresse, an der PowerDNS Anfragen entgegen nimmt." + +#. Type: string +#. Description +#: ../pdns-server.templates:3 +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: boolean +#. Description +#: ../pdns-server.templates:11 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "Soll der PowerDNS-Server automatisch gestartet werden?" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:11 +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." + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +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:18 +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." + --- pdns-2.9.22.orig/debian/po/cs.po +++ pdns-2.9.22/debian/po/cs.po @@ -0,0 +1,75 @@ +# +# 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: \n" +"POT-Creation-Date: 2007-01-13 20:04+0100\n" +"PO-Revision-Date: 2007-01-27 22:44+0100\n" +"Last-Translator: Jan Outrata \n" +"Language-Team: Czech \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: boolean +#. Description +#: ../pdns-server.templates:2001 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "Chcete spustit server PowerDNS automaticky?" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:2001 +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." + +#. Type: string +#. Description +#: ../pdns-server.templates:3001 +msgid "List of subnets that are allowed to recurse:" +msgstr "Seznam podsítí, které je povoleno začlenit:" + +#. Type: string +#. Description +#: ../pdns-server.templates:3001 +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íť." --- pdns-2.9.22.orig/debian/po/fi.po +++ pdns-2.9.22/debian/po/fi.po @@ -0,0 +1,71 @@ +# Copyright (C) 2009 +# This file is distributed under the same license as the pdns package. +# +# Esko Arajärvi , 2009. +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: pdns@packages.debian.org\n" +"POT-Creation-Date: 2009-10-28 07:02+0100\n" +"PO-Revision-Date: 2009-11-01 20:50+0200\n" +"Last-Translator: Esko Arajärvi \n" +"Language-Team: Finnish \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: boolean +#. Description +#: ../pdns-server.templates:2001 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "Tulisiko the PowerDNS-palvelin käynnistää automaattisesti?" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:2001 +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." + +#. Type: string +#. Description +#: ../pdns-server.templates:3001 +msgid "List of subnets that are allowed to recurse:" +msgstr "Aliverkot, jotka saavat tehdä rekursiivisia kyselyitä:" + +#. Type: string +#. Description +#: ../pdns-server.templates:3001 +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." + --- pdns-2.9.22.orig/debian/po/gl.po +++ pdns-2.9.22/debian/po/gl.po @@ -0,0 +1,68 @@ +# Galician translation of pdns's debconf templates +# This file is distributed under the same license as the pdns package. +# Jacobo Tarrio , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: pdns\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2007-01-13 20:04+0100\n" +"PO-Revision-Date: 2007-03-07 00:36+0100\n" +"Last-Translator: Jacobo Tarrio \n" +"Language-Team: Galician \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: boolean +#. Description +#: ../pdns-server.templates:2001 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "¿Quere iniciar o servidor PowerDNS automaticamente?" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:2001 +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." + +#. Type: string +#. Description +#: ../pdns-server.templates:3001 +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:3001 +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." --- pdns-2.9.22.orig/debian/po/es.po +++ pdns-2.9.22/debian/po/es.po @@ -0,0 +1,90 @@ +# 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ó , 2008 +# - Updates +# Alba Ferri Fitó , 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: 2008-08-11 04:36+0200\n" +"PO-Revision-Date: 2008-26-11 04:36+0200\n" +"Last-Translator: Alba Ferri \n" +"Language-Team: Spanish \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: boolean +#. Description +#: ../pdns-server.templates:2001 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "¿Desea iniciar el servidor PowerDNS automáticamente?" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:2001 +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." +#. Type: string +#. Description +#: ../pdns-server.templates:3001 +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:3001 +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." --- pdns-2.9.22.orig/debian/po/sv.po +++ pdns-2.9.22/debian/po/sv.po @@ -0,0 +1,63 @@ +# +# 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: powerdns-debian@workaround.org\n" +"POT-Creation-Date: 2006-05-11 21:20+0200\n" +"PO-Revision-Date: 2006-05-11 21:44+0100\n" +"Last-Translator: Daniel Nylander \n" +"Language-Team: Swedish \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:3 +msgid "IP address where PowerDNS should listen on:" +msgstr "IP-adress som PowerDNS ska lyssna p:" + +#. Type: string +#. Description +#: ../pdns-server.templates:3 +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 vljer fel IP-adress fr utgende paket s det rekommenderas att binda PowerDNS till en specifik IP-adress hr." + +#. Type: boolean +#. Description +#: ../pdns-server.templates:11 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "Vill du starta PowerDNS-servern automatiskt?" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:11 +msgid "If you accept here, an initscript will be used to automatically start the PowerDNS authoritative nameserver." +msgstr "Om du accepterar hr kommer ett init-skript att anvndas fr att automatiskt starta PowerDNS auktoritativa namnserver." + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +msgid "List of subnets that are allowed to recurse:" +msgstr "Lista p subnt som tillts stlla rekursiva frgor:" + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +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 subnt (kommaseparerade) som ska tilltas stlla rekursiva frgor. Tilltna vrden r 127.0.0.1 fr en IP-adress och 192.168.0.0/24 fr ett subnt." + --- pdns-2.9.22.orig/debian/po/it.po +++ pdns-2.9.22/debian/po/it.po @@ -0,0 +1,69 @@ +# Italian translation of pdns. +# COPYRIGHT (C) 2009 THE pdns'S COPYRIGHT HOLDER +# This file is distributed under the same license as the pdns package. +# Luca Monducci , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: pdns 2.9.22 italian debconf templates\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-03-01 10:28+0100\n" +"PO-Revision-Date: 2009-10-17 15:01+0200\n" +"Last-Translator: Luca Monducci \n" +"Language-Team: Italian \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: boolean +#. Description +#: ../pdns-server.templates:2001 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "Avviare il server PowerDNS automaticamente?" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:2001 +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." + +#. Type: string +#. Description +#: ../pdns-server.templates:3001 +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:3001 +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." --- pdns-2.9.22.orig/debian/po/nl.po +++ pdns-2.9.22/debian/po/nl.po @@ -0,0 +1,77 @@ +# 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: powerdns-debian@workaround.org\n" +"POT-Creation-Date: 2006-05-11 21:20+0200\n" +"PO-Revision-Date: 2006-05-11 21:38+0200\n" +"Last-Translator: Matthijs Mohlmann \n" +"Language-Team: Debian l10n Dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit" + +#. Type: string +#. Description +#: ../pdns-server.templates:3 +msgid "IP address where PowerDNS should listen on:" +msgstr "IP-adres waar PowerDNS op moet luisteren:" + +#. Type: string +#. Description +#: ../pdns-server.templates:3 +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: boolean +#. Description +#: ../pdns-server.templates:11 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "Wilt u PowerDNS automatisch laten starten?" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:11 +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." + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +msgid "List of subnets that are allowed to recurse:" +msgstr "Subnetten vanwaar recursieve query's worden uitgevoerd:" + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +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." + --- pdns-2.9.22.orig/debian/po/POTFILES.in +++ pdns-2.9.22/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] pdns-server.templates --- pdns-2.9.22.orig/debian/po/pt.po +++ pdns-2.9.22/debian/po/pt.po @@ -0,0 +1,71 @@ +# translation of pdns debconf to Portuguese +# 2005-11-03 - Luís de Matos - Initial translation +# +# Luís de Matos , 2005. +# Américo Monteiro , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: pdns 2.9.21-2\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2007-06-03 04:32+0200\n" +"PO-Revision-Date: 2007-09-26 22:42+0100\n" +"Last-Translator: Américo Monteiro \n" +"Language-Team: Portuguese \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: boolean +#. Description +#: ../pdns-server.templates:2001 +msgid "Do you want to start the PowerDNS server automatically?" +msgstr "Deseja iniciar automaticamente o servidor PowerDNS?" + +#. Type: boolean +#. Description +#: ../pdns-server.templates:2001 +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." + +#. Type: string +#. Description +#: ../pdns-server.templates:3001 +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:3001 +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." + --- pdns-2.9.22.orig/debian/patches/CVE-2012-0206 +++ pdns-2.9.22/debian/patches/CVE-2012-0206 @@ -0,0 +1,17 @@ +Description: skip incoming packets with QR-bit set +Origin: upstream, http://doc.powerdns.com/powerdns-advisory-2012-01.html +Bug-Ubuntu: https://bugs.launchpad.net/bugs/918588 +=================================================================== +Index: pdns-2.9.22/pdns/common_startup.cc +=================================================================== +--- pdns-2.9.22.orig/pdns/common_startup.cc 2012-02-09 09:39:22.299925402 -0600 ++++ pdns-2.9.22/pdns/common_startup.cc 2012-02-09 09:39:22.343925403 -0600 +@@ -245,6 +245,8 @@ + numreceived4++; + else + numreceived6++; ++ if(P->d.qr) ++ continue; + + S.ringAccount("queries", P->qdomain+"/"+P->qtype.getName()); + S.ringAccount("remotes",P->getRemote()); --- pdns-2.9.22.orig/debian/patches/gcc-4.4-ftbfs-fix +++ pdns-2.9.22/debian/patches/gcc-4.4-ftbfs-fix @@ -0,0 +1,24 @@ +Index: b/pdns/dnsparser.cc +=================================================================== +--- a/pdns/dnsparser.cc ++++ b/pdns/dnsparser.cc +@@ -20,6 +20,7 @@ + #include "dnswriter.hh" + #include + #include ++#include + + using namespace boost; + +Index: b/pdns/rcpgenerator.cc +=================================================================== +--- a/pdns/rcpgenerator.cc ++++ b/pdns/rcpgenerator.cc +@@ -20,6 +20,7 @@ + #include "dnsparser.hh" + #include "misc.hh" + #include ++#include + #include + #include "base64.hh" + using namespace boost; --- pdns-2.9.22.orig/debian/patches/addconfigdir +++ pdns-2.9.22/debian/patches/addconfigdir @@ -0,0 +1,98 @@ +Index: b/pdns/arguments.cc +=================================================================== +--- a/pdns/arguments.cc ++++ b/pdns/arguments.cc +@@ -312,9 +312,12 @@ + if(pos && pos!=string::npos) + val=val.substr(pos); + +- if(parmIsset(var)) ++ if(parmIsset(var)) { + params[var]=val; +- else ++ if (var == "include") { // include directory ++ preParseDir(val, arg, lax); ++ } ++ } else + if(!lax) + throw ArgException("Trying to set unexisting parameter '"+var+"'"); + } +@@ -341,6 +344,31 @@ + } + } + ++bool ArgvMap::preParseDir(const string dir, const string &arg, bool lax) ++{ ++ DIR *dir_p; ++ string filename; ++ struct dirent *dir_entry_p; ++ ++ if (dir_p = opendir(dir.c_str())) { ++ while((dir_entry_p = readdir(dir_p))) ++ { ++ if (strcmp(dir_entry_p->d_name, ".") == 0 || ++ strcmp(dir_entry_p->d_name, "..") == 0) ++ continue; ++ ++ filename = dir + "/" + dir_entry_p->d_name; ++ file(filename.c_str(), lax); ++ } ++ closedir(dir_p); ++ } else { ++ // Could be a file. ++ file(dir.c_str(), lax); ++ } ++ ++ return true; ++} ++ + bool ArgvMap::preParseFile(const char *fname, const string &arg) + { + params[arg].clear(); +Index: b/pdns/arguments.hh +=================================================================== +--- a/pdns/arguments.hh ++++ b/pdns/arguments.hh +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #include "misc.hh" + #include "ahuexception.hh" + #ifndef WIN32 +@@ -83,6 +84,7 @@ + } + void preParse(int &argc, char **argv, const string &arg); //!< use this to preparse a single var + bool preParseFile(const char *fname, const string &arg); //!< use this to preparse a single var in configuration ++ bool preParseDir(const string dir, const string &arg, bool lax); //!< use this to include a directory + + bool file(const char *fname, bool lax=false); //!< Parses a file with parameters + bool laxFile(const char *fname) +Index: b/pdns/common_startup.cc +=================================================================== +--- a/pdns/common_startup.cc ++++ b/pdns/common_startup.cc +@@ -61,6 +61,7 @@ + ::arg().set("fancy-records","Process URL and MBOXFW records")="no"; + ::arg().set("wildcard-url","Process URL and MBOXFW records")="no"; + ::arg().set("wildcards","Honor wildcards in the database")=""; ++ ::arg().set("include", "Directory with config files to include")="/etc/powerdns/pdns.d"; // Add directory with config files + ::arg().set("loglevel","Amount of logging. Higher is more. Do not set below 3")="4"; + ::arg().set("default-soa-name","name to insert in the SOA record if none set in the backend")="a.misconfigured.powerdns.server"; + ::arg().set("distributor-threads","Default number of Distributor (backend) threads to start")="3"; +Index: b/pdns/docs/pdns.sgml +=================================================================== +--- a/pdns/docs/pdns.sgml ++++ b/pdns/docs/pdns.sgml +@@ -9549,6 +9549,10 @@ + + Provide a helpful message + ++ include ++ ++ Include a directory with configuration files. This adds support for pdns.d or config.d constructions. ++ + launch=... + + Which backends to launch and order to query them in. See . --- pdns-2.9.22.orig/debian/patches/series +++ pdns-2.9.22/debian/patches/series @@ -0,0 +1,4 @@ +addconfigdir +clean-docs +gcc-4.4-ftbfs-fix +CVE-2012-0206 --- pdns-2.9.22.orig/debian/patches/clean-docs +++ pdns-2.9.22/debian/patches/clean-docs @@ -0,0 +1,13 @@ +Index: b/pdns/docs/Makefile +=================================================================== +--- a/pdns/docs/Makefile ++++ b/pdns/docs/Makefile +@@ -6,7 +6,7 @@ + ./expand < $< > $@ + + clean: +- rm -rf *.xml *.dvi *.pdf *.tex *.toc *.aux *.ps *.bak *.tmp *~ *.log html.tar.gz html pdns ++ rm -rf *.xml *.dvi *.pdf *.tex *.toc *.aux *.ps *.bak *.tmp *~ *.log html.tar.gz html pdns pdns-expanded.sgml + + html/index.html: pdns-expanded.sgml + db2html -V %use-id-as-filename% -o html $<