--- pdns-2.9.19.orig/config.sub +++ pdns-2.9.19/config.sub @@ -1,9 +1,9 @@ #! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. -timestamp='2004-11-30' +timestamp='2005-07-08' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -21,14 +21,15 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. + # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # @@ -70,7 +71,7 @@ version="\ GNU config.sub ($timestamp) -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO @@ -83,11 +84,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; + echo "$timestamp" ; exit ;; --version | -v ) - echo "$version" ; exit 0 ;; + echo "$version" ; exit ;; --help | --h* | -h ) - echo "$usage"; exit 0 ;; + echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -99,7 +100,7 @@ *local*) # First pass through any local machine types. echo $1 - exit 0;; + exit ;; * ) break ;; @@ -231,13 +232,14 @@ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ - | m32r | m32rle | m68000 | m68k | m88k | mcore \ + | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ @@ -246,6 +248,7 @@ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ @@ -254,15 +257,17 @@ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ + | ms1 \ | msp430 \ | ns16k | ns32k \ - | openrisc | or32 \ + | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ + | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b \ | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ @@ -271,6 +276,9 @@ | z8k) basic_machine=$basic_machine-unknown ;; + m32c) + basic_machine=$basic_machine-unknown + ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown @@ -298,7 +306,7 @@ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* \ - | bs2000-* \ + | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ @@ -310,7 +318,7 @@ | ip2k-* | iq2000-* \ | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | mcore-* \ + | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ @@ -319,6 +327,7 @@ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ @@ -327,6 +336,7 @@ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ + | ms1-* \ | msp430-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ @@ -334,9 +344,10 @@ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ + | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ @@ -348,6 +359,8 @@ | ymp-* \ | z8k-*) ;; + m32c-*) + ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) @@ -758,9 +771,8 @@ basic_machine=hppa1.1-oki os=-proelf ;; - or32 | or32-*) + openrisc | openrisc-*) basic_machine=or32-unknown - os=-coff ;; os400) basic_machine=powerpc-ibm @@ -1086,12 +1098,9 @@ we32k) basic_machine=we32k-att ;; - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; - sh64) - basic_machine=sh64-unknown - ;; sparc | sparcv8 | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; @@ -1178,7 +1187,8 @@ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1196,7 +1206,7 @@ os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) @@ -1385,6 +1395,9 @@ *-be) os=-beos ;; + *-haiku) + os=-haiku + ;; *-ibm) os=-aix ;; @@ -1556,7 +1569,7 @@ esac echo $basic_machine$os -exit 0 +exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) --- pdns-2.9.19.orig/config.guess +++ pdns-2.9.19/config.guess @@ -1,9 +1,9 @@ #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. -timestamp='2004-11-12' +timestamp='2005-08-03' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -17,13 +17,15 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. + # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. @@ -53,7 +55,7 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO @@ -66,11 +68,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; + echo "$timestamp" ; exit ;; --version | -v ) - echo "$version" ; exit 0 ;; + echo "$version" ; exit ;; --help | --h* | -h ) - echo "$usage"; exit 0 ;; + echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -123,7 +125,7 @@ ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ;' +esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) @@ -196,55 +198,20 @@ # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" - exit 0 ;; - amd64:OpenBSD:*:*) - echo x86_64-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - cats:OpenBSD:*:*) - echo arm-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - luna88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - macppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvmeppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mips64-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sun3:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} - exit 0 ;; + exit ;; macppc:MirBSD:*:*) echo powerppc-unknown-mirbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) @@ -297,40 +264,43 @@ # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit 0 ;; + exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix - exit 0 ;; + exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 - exit 0 ;; + exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 - exit 0;; + exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos - exit 0 ;; + exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos - exit 0 ;; + exit ;; *:OS/390:*:*) echo i370-ibm-openedition - exit 0 ;; + exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe - exit 0 ;; + exit ;; *:OS400:*:*) echo powerpc-ibm-os400 - exit 0 ;; + exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} - exit 0;; + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp - exit 0;; + exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then @@ -338,32 +308,32 @@ else echo pyramid-pyramid-bsd fi - exit 0 ;; + exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 - exit 0 ;; + exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 - exit 0 ;; + exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7 && exit 0 ;; + sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) @@ -372,10 +342,10 @@ esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit 0 ;; + exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} - exit 0 ;; + exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 @@ -387,10 +357,10 @@ echo sparc-sun-sunos${UNAME_RELEASE} ;; esac - exit 0 ;; + exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} - exit 0 ;; + exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor @@ -401,40 +371,40 @@ # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} - exit 0 ;; + exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} - exit 0 ;; + exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} - exit 0 ;; + exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 - exit 0 ;; + exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} - exit 0 ;; + exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} - exit 0 ;; + exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} - exit 0 ;; + exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -458,32 +428,33 @@ exit (-1); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c \ - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && exit 0 + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} - exit 0 ;; + exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax - exit 0 ;; + exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax - exit 0 ;; + exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax - exit 0 ;; + exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix - exit 0 ;; + exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 - exit 0 ;; + exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 - exit 0 ;; + exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 - exit 0 ;; + exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` @@ -499,29 +470,29 @@ else echo i586-dg-dgux${UNAME_RELEASE} fi - exit 0 ;; + exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 - exit 0 ;; + exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 - exit 0 ;; + exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 - exit 0 ;; + exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd - exit 0 ;; + exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit 0 ;; + exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix - exit 0 ;; + exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` @@ -529,7 +500,7 @@ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit 0 ;; + exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build @@ -544,14 +515,18 @@ exit(0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 - echo rs6000-ibm-aix3.2.5 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi - exit 0 ;; + exit ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then @@ -565,28 +540,28 @@ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit 0 ;; + exit ;; *:AIX:*:*) echo rs6000-ibm-aix - exit 0 ;; + exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 - exit 0 ;; + exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit 0 ;; # report: romp-ibm BSD 4.3 + exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx - exit 0 ;; + exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 - exit 0 ;; + exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd - exit 0 ;; + exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 - exit 0 ;; + exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in @@ -648,9 +623,19 @@ esac if [ ${HP_ARCH} = "hppa2.0w" ] then - # avoid double evaluation of $set_cc_for_build - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else @@ -658,11 +643,11 @@ fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit 0 ;; + exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} - exit 0 ;; + exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -690,158 +675,166 @@ exit (0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 - exit 0 ;; + exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd - exit 0 ;; + exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd - exit 0 ;; + exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix - exit 0 ;; + exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf - exit 0 ;; + exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf - exit 0 ;; + exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi - exit 0 ;; + exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites - exit 0 ;; + exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd - exit 0 ;; + exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit 0 ;; + exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd - exit 0 ;; + exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd - exit 0 ;; + exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd - exit 0 ;; + exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; + exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; + exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; + exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; + exit ;; *:FreeBSD:*:*) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit 0 ;; + exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin - exit 0 ;; + exit ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 - exit 0 ;; + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 - exit 0 ;; + exit ;; x86:Interix*:[34]*) echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' - exit 0 ;; + exit ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks - exit 0 ;; + exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix - exit 0 ;; + exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin - exit 0 ;; + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin - exit 0 ;; + exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; + exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit 0 ;; + exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit 0 ;; + exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix - exit 0 ;; + exit ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu - exit 0 ;; + exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu - exit 0 ;; + exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu - exit 0 ;; + exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -859,7 +852,7 @@ #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build @@ -878,14 +871,17 @@ #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; + or32:Linux:*:*) + echo or32-unknown-linux-gnu + exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu - exit 0 ;; + exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu - exit 0 ;; + exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; @@ -899,7 +895,7 @@ objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit 0 ;; + exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in @@ -907,25 +903,25 @@ PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac - exit 0 ;; + exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu - exit 0 ;; + exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux - exit 0 ;; + exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit 0 ;; + exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu - exit 0 ;; + exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent @@ -943,15 +939,15 @@ ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit 0 ;; + exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" - exit 0 ;; + exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" - exit 0 ;; + exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build @@ -979,15 +975,18 @@ #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 + test x"${LIBC}" != x && { + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + exit + } + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 - exit 0 ;; + exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... @@ -995,27 +994,27 @@ # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit 0 ;; + exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx - exit 0 ;; + exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop - exit 0 ;; + exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos - exit 0 ;; - i*86:syllable:*:*) + exit ;; + i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable - exit 0 ;; + exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit 0 ;; + exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then @@ -1023,15 +1022,16 @@ else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi - exit 0 ;; - i*86:*:5:[78]*) + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit 0 ;; + exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi - exit 0 ;; + exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv - exit 0 ;; + exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv - exit 0 ;; + exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix - exit 0 ;; + exit ;; M68*:*:R3V[5678]*:*) - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4 && exit 0 ;; + && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 - exit 0 ;; + exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; + exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} - exit 0 ;; + exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 - exit 0 ;; + exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 - exit 0 ;; + exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` @@ -1123,61 +1123,65 @@ else echo ns32k-sni-sysv fi - exit 0 ;; + exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 - exit 0 ;; + exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 - exit 0 ;; + exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 - exit 0 ;; + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos - exit 0 ;; + exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} - exit 0 ;; + exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 - exit 0 ;; + exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi - exit 0 ;; + exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos - exit 0 ;; + exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos - exit 0 ;; + exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos - exit 0 ;; + exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} - exit 0 ;; + exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in @@ -1185,7 +1189,7 @@ unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit 0 ;; + exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then @@ -1193,22 +1197,25 @@ UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit 0 ;; + exit ;; *:QNX:*:4*) echo i386-pc-qnx - exit 0 ;; + exit ;; + NSE-?:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} - exit 0 ;; + exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux - exit 0 ;; + exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv - exit 0 ;; + exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit 0 ;; + exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 @@ -1219,41 +1226,44 @@ UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 - exit 0 ;; + exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 - exit 0 ;; + exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex - exit 0 ;; + exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 - exit 0 ;; + exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 - exit 0 ;; + exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 - exit 0 ;; + exit ;; *:ITS:*:*) echo pdp10-unknown-its - exit 0 ;; + exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} - exit 0 ;; + exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit 0 ;; + exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in - A*) echo alpha-dec-vms && exit 0 ;; - I*) echo ia64-dec-vms && exit 0 ;; - V*) echo vax-dec-vms && exit 0 ;; + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix - exit 0 ;; + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 @@ -1285,7 +1295,7 @@ #endif #if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix"); exit (0); + printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) @@ -1374,11 +1384,12 @@ } EOF -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) @@ -1387,22 +1398,22 @@ case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd - exit 0 ;; + exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit 0 ;; + exit ;; c34*) echo c34-convex-bsd - exit 0 ;; + exit ;; c38*) echo c38-convex-bsd - exit 0 ;; + exit ;; c4*) echo c4-convex-bsd - exit 0 ;; + exit ;; esac fi @@ -1413,7 +1424,9 @@ the operating system you are using. It is advised that you download the most up to date version of the config scripts from - ftp://ftp.gnu.org/pub/gnu/config/ + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess +and + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub If the version you run ($0) is already up to date, please send the following data and any information you think might be --- pdns-2.9.19.orig/debian/pdns-backend-sqlite.postinst +++ pdns-2.9.19/debian/pdns-backend-sqlite.postinst @@ -0,0 +1,103 @@ +#! /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}'` +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 +);" + +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 + fi + + # Create initial database + if [ ! -f $DATABASE ]; then + echo -n "Generating sqlite database..." + echo $INITDATA | sqlite $DATABASE + echo "done" + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ -x "/etc/init.d/pdns" ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d pdns restart || exit 0 + else + /etc/init.d/pdns restart || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/pdns-backend-ldap.postinst +++ pdns-2.9.19/debian/pdns-backend-ldap.postinst @@ -0,0 +1,47 @@ +#!/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 + +if [ -x "/etc/init.d/pdns" ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d pdns restart || exit 0 + else + /etc/init.d/pdns restart || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/pdns-backend-pgsql.dirs +++ pdns-2.9.19/debian/pdns-backend-pgsql.dirs @@ -0,0 +1,2 @@ +usr/lib/powerdns +usr/share/doc/pdns-backend-pgsql --- pdns-2.9.19.orig/debian/pdns-server.config +++ pdns-2.9.19/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.19.orig/debian/pdns-recursor.postinst +++ pdns-2.9.19/debian/pdns-recursor.postinst @@ -0,0 +1,30 @@ +#!/bin/sh +# +# + +set -e + +# Remove old stuff +if [ -f /etc/init.d/pdns_recursor ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d pdns_recursor stop || exit 0 + else + /etc/init.d/pdns_recursor stop || exit 0 + fi + update-rc.d -f pdns_recursor remove >/dev/null 2>&1 + rm -f /etc/init.d/pdns_recursor +fi + +if [ -x "/etc/init.d/pdns-recursor" ]; then + update-rc.d pdns-recursor defaults 19 85 >/dev/null + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d pdns-recursor start || exit 0 + else + /etc/init.d/pdns-recursor start || exit 0 + fi +fi + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/copyright +++ pdns-2.9.19/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.19.orig/debian/pdns-backend-geo.examples +++ pdns-2.9.19/debian/pdns-backend-geo.examples @@ -0,0 +1 @@ +debian/config/pdns.local.geo --- pdns-2.9.19.orig/debian/pdns-server.prerm +++ pdns-2.9.19/debian/pdns-server.prerm @@ -0,0 +1,45 @@ +#!/bin/sh +# prerm script for pdns-server +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ -x "/etc/init.d/pdns" ]; then + if [ -x /usr/sbin/invoke-rc.d ] ; then + invoke-rc.d pdns stop || exit 0 + else + /etc/init.d/pdns stop || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/pdns.README.Debian +++ pdns-2.9.19/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.19.orig/debian/pdns-backend-ldap.prerm +++ pdns-2.9.19/debian/pdns-backend-ldap.prerm @@ -0,0 +1,45 @@ +#!/bin/sh +# prerm script for pdns-backend-ldap +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ -x "/etc/init.d/pdns" ]; then + if [ -x /usr/sbin/invoke-rc.d ] ; then + invoke-rc.d pdns stop || exit 0 + else + /etc/init.d/pdns stop || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/pdns-backend-mysql.examples +++ pdns-2.9.19/debian/pdns-backend-mysql.examples @@ -0,0 +1 @@ +debian/config/pdns.local.gmysql --- pdns-2.9.19.orig/debian/default/pdns-recursor +++ pdns-2.9.19/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.19.orig/debian/default/pdns +++ pdns-2.9.19/debian/default/pdns @@ -0,0 +1,5 @@ +# Variables for PowerDNS +# +# +START=no + --- pdns-2.9.19.orig/debian/pdns-backend-pipe.postinst +++ pdns-2.9.19/debian/pdns-backend-pipe.postinst @@ -0,0 +1,45 @@ +#!/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 +# + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ -x "/etc/init.d/pdns" ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d pdns restart || exit 0 + else + /etc/init.d/pdns restart || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/pdns-server.install +++ pdns-2.9.19/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.19.orig/debian/pdns-backend-geo.docs +++ pdns-2.9.19/debian/pdns-backend-geo.docs @@ -0,0 +1 @@ +modules/geobackend/README --- pdns-2.9.19.orig/debian/pdns-backend-mysql.dirs +++ pdns-2.9.19/debian/pdns-backend-mysql.dirs @@ -0,0 +1,2 @@ +usr/lib/powerdns +usr/share/doc/pdns-backend-mysql --- pdns-2.9.19.orig/debian/pdns-recursor.manpages +++ pdns-2.9.19/debian/pdns-recursor.manpages @@ -0,0 +1 @@ +debian/manpage/pdns_recursor.8 --- pdns-2.9.19.orig/debian/pdns-server.README.Debian +++ pdns-2.9.19/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 this restrictions you can easily enable the chroot option. + --- pdns-2.9.19.orig/debian/pdns-backend-geo.dirs +++ pdns-2.9.19/debian/pdns-backend-geo.dirs @@ -0,0 +1,2 @@ +usr/lib/powerdns +usr/share/doc/pdns-backend-geo --- pdns-2.9.19.orig/debian/pdns-backend-pgsql.docs +++ pdns-2.9.19/debian/pdns-backend-pgsql.docs @@ -0,0 +1 @@ +debian/config/pgsql.sql --- pdns-2.9.19.orig/debian/pdns-recursor.install +++ pdns-2.9.19/debian/pdns-recursor.install @@ -0,0 +1,4 @@ +debian/tmp/usr/sbin/pdns_recursor usr/sbin/ +debian/config/recursor.conf etc/powerdns/ +debian/init.d/pdns-recursor etc/init.d/ +debian/default/pdns-recursor etc/default/ --- pdns-2.9.19.orig/debian/pdns-backend-mysql.prerm +++ pdns-2.9.19/debian/pdns-backend-mysql.prerm @@ -0,0 +1,44 @@ +#!/bin/sh +# prerm script for pdns-backend-mysql +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + remove|upgrade|deconfigure) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ -x "/etc/init.d/pdns" ]; then + if [ -x /usr/sbin/invoke-rc.d ] ; then + invoke-rc.d pdns stop || exit 0 + else + /etc/init.d/pdns stop || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/pdns-server.manpages +++ pdns-2.9.19/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.19.orig/debian/pdns-doc.dirs +++ pdns-2.9.19/debian/pdns-doc.dirs @@ -0,0 +1,2 @@ +usr/share/doc/pdns-doc +usr/share/doc-base --- pdns-2.9.19.orig/debian/pdns-backend-ldap.dirs +++ pdns-2.9.19/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.19.orig/debian/po/fr.po +++ pdns-2.9.19/debian/po/fr.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: 2005-08-12 14:18+0200\n" +"PO-Revision-Date: 2005-09-04 11:21+0200\n" +"Last-Translator: Jean-Luc Coulon (f5ibh) \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" +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 défaut est " +"d'écouter sur chacune d'entre elles, ce qui peut conduire le système " +"d'exploitation à choisir la mauvaise adresse IP pour les paquets sortants. " +"Il est donc recommandé d'associer PowerDNS à une adresse IP spécifique." + +#. Type: boolean +#. Description +#: ../pdns-server.templates:11 +msgid "Do you want to start the PowerDNS server automatically" +msgstr "PowerDNS doit-il être démarré 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 " +"démarrage du système." + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +msgid "List of subnets that are allowed to recurse" +msgstr "Liste des sous-réseaux pouvant être interrogés :" + +#. Type: string +#. Description +#: ../pdns-server.templates: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-réseaux, séparés par des virgules, qu'il " +"est autorisé de parcourir. Des valeurs autorisées sont 127.0.0.1 pour une " +"adresse IP et 192.168.0.0/24 pour un sous-réseau entier." --- pdns-2.9.19.orig/debian/po/cs.po +++ pdns-2.9.19/debian/po/cs.po @@ -0,0 +1,76 @@ +# +# 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: 2005-08-12 14:18+0200\n" +"PO-Revision-Date: 2005-10-23 11:42+0200\n" +"Last-Translator: Jan Outrata \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../pdns-server.templates:3 +msgid "IP address where PowerDNS should listen" +msgstr "IP adresa, na které má PowerDNS naslouchat" + +#. 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 "" +"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:11 +msgid "Do you want to start the PowerDNS server automatically" +msgstr "Chcete spustit server PowerDNS automaticky" + +#. 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 "" +"Pokud zde odpovíte kladnì, bude inicializaèní skript automaticky startovat " +"autoritativní jmenný server PowerDNS." + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +msgid "List of subnets that are allowed to recurse" +msgstr "Seznam podsítí, které je povoleno zaèlenit" + +#. 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 "" +"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.19.orig/debian/po/vi.po +++ pdns-2.9.19/debian/po/vi.po @@ -0,0 +1,71 @@ +# Vietnamese translation for pdns. +# Copyright © 2005 Free Software Foundation, Inc. +# Clytie Siddall , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: pdns 2.9.17-13\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-08-12 14:18+0200\n" +"PO-Revision-Date: 2005-07-03 16:32+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.2.2\n" + +#. Type: string +#. Description +#: ../pdns-server.templates:3 +msgid "IP address where PowerDNS should listen" +msgstr "Äịa chỉ IP nÆ¡i trình 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, 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. NhÆ° thế 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 "" +"Nếu bạn chấp nhận tại đây, má»™t tập lệnh khởi chạy (initscript) sẽ được dùng " +"để tá»± Ä‘á»™ng khởi chạy trình phục vụ tên có uy quyá»n." + +#. 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 +#, fuzzy +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, các mạng phụ được phép đệ " +"qui. Giá trị có thể là 127.0.0.0 cho má»™t địa chỉ IP và 192.168.0.0/24 cho " +"má»™t mạng phụ." --- pdns-2.9.19.orig/debian/po/nl.po +++ pdns-2.9.19/debian/po/nl.po @@ -0,0 +1,76 @@ +# 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: \n" +"POT-Creation-Date: 2005-08-12 14:18+0200\n" +"PO-Revision-Date: 2005-08-12 15:57+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\n" + +#. Type: string +#. Description +#: ../pdns-server.templates:3 +msgid "IP address where PowerDNS should listen" +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 je meerdere IP adressen hebt, dan is het standaard gedrag om op alle " +"adressen te luisteren wat 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 antwoord 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 recursief doorlopen " +"mogen worden. Toegestane waarden zijn 127.0.0.1 voor een IP-adres en " +"192.168.0.0/24 voor een subnet." --- pdns-2.9.19.orig/debian/po/de.po +++ pdns-2.9.19/debian/po/de.po @@ -0,0 +1,79 @@ +# 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: \n" +"POT-Creation-Date: 2005-08-12 14:18+0200\n" +"PO-Revision-Date: 2005-05-11 20:33+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\n" +"X-Generator: KBabel 1.9.1\n" + +#. Type: string +#. Description +#: ../pdns-server.templates:3 +msgid "IP address where PowerDNS should listen" +msgstr "IP-Adresse, an der PowerDNS Anfragen annimmt." + +#. 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 +#, fuzzy +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 Semikolons getrennt - die Subnetze an, die rekursive " +"Anfragen stellen dürfen. Erlaubte Werte sind 127.0.0.1 für eine IP-Adresse " +"oder 192.168.0.0/24 für ein Subnetz." --- pdns-2.9.19.orig/debian/po/templates.pot +++ pdns-2.9.19/debian/po/templates.pot @@ -0,0 +1,69 @@ +# +# 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: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-08-12 14:18+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" +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.19.orig/debian/po/sv.po +++ pdns-2.9.19/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: \n" +"POT-Creation-Date: 2005-08-12 14:18+0200\n" +"PO-Revision-Date: 2005-10-23 00:34+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" +msgstr "På vilken IP-address ska PowerDNS lyssna?" + +#. 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 multipla IP-addresser kan standardbeteendet, som är att binda till alla addresser, leda till att OS'et väljer fel IP-address för utgående paket så det rekommenderas att binda PowerDNS till en specifik IP-address här." + +#. 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 här kommer ett init-skript att användas för att automatiskt starta PowerDNS auktoritiva namnserver." + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +msgid "List of subnets that are allowed to recurse" +msgstr "Lista på subnät som tillåts ställa rekursiva frågor" + +#. Type: string +#. Description +#: ../pdns-server.templates: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 här, komma-separerat, den subnät som ska tillåtas ställa rekursiva frågor. Tillåtna värden är till exempel 127.0.0.1 för en IP-address och 192.168.0.0/24 för ett subnät." + --- pdns-2.9.19.orig/debian/po/pt.po +++ pdns-2.9.19/debian/po/pt.po @@ -0,0 +1,68 @@ +# Portuguese translation for pdns's debconf messages +# Luís de Matos , 2005 +# 2005-11-03 - Luís de Matos - Initial translation +# +# +msgid "" +msgstr "" +"Project-Id-Version: pdns 2.9.19-1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-08-12 14:18+0200\n" +"PO-Revision-Date: 2005-11-05 17:38+0000\n" +"Last-Translator: Luis Matos \n" +"Language-Team: Portuguese \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:3 +msgid "IP address where PowerDNS should listen" +msgstr "O endereço IP que o PowerDNS deverá escutar" + +#. 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 "" +"Se tem múltiplos 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 aqui ligar o PowerDNS a um IP." + +#. Type: boolean +#. Description +#: ../pdns-server.templates:11 +msgid "Do you want to start the PowerDNS server automatically" +msgstr "Deseja iniciar automaticamente o servidor PowerDNS" + +#. 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 "" +"Se aceitar um script de inicialização será utilizado para iniciar " +"automaticamente o servidor de nomes autoritário PowerDNS" + +#. Type: string +#. Description +#: ../pdns-server.templates:18 +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: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 "" +"Insira 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.19.orig/debian/po/POTFILES.in +++ pdns-2.9.19/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] pdns-server.templates --- pdns-2.9.19.orig/debian/pdns-backend-pipe.install +++ pdns-2.9.19/debian/pdns-backend-pipe.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/powerdns/libpipebackend.so* usr/lib/powerdns/ +debian/tmp/usr/lib/powerdns/libpipebackend.a usr/lib/powerdns/ +debian/lintian-overrides/pdns-backend-pipe usr/share/lintian/overrides/ --- pdns-2.9.19.orig/debian/pdns-server.postinst +++ pdns-2.9.19/debian/pdns-server.postinst @@ -0,0 +1,122 @@ +#!/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` + +splitconfig() { + if [ -e $PDNSCONF ]; then + for i in geo ldap gmysql gpgsql pipe gsqlite; do + CONF=`(cat $PDNSCONF | grep -- $i-) || /bin/true` + if [ ! -z "$CONF" ]; then + for j in $CONF; do + echo $j >> $PDNSLOCALTEMP + done + fi + done + fi +} + +case "$1" in + configure) + # 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 + + # Split config + splitconfig + + # 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 + + # Stop the debconf stuff + db_stop || true + + # Install the new configuration files if the user wants it. + ucf $PDNSCONFTEMP $PDNSCONF + ucf $PDNSDEFAULTTEMP $PDNSDEFAULT + ucf $PDNSLOCALTEMP $PDNSLOCAL + + # 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 + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ -x "/etc/init.d/pdns" ]; then + update-rc.d pdns defaults 20 85 >/dev/null || exit 0 + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d pdns start || exit 0 + else + /etc/init.d/pdns start || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/pdns-backend-sqlite.dirs +++ pdns-2.9.19/debian/pdns-backend-sqlite.dirs @@ -0,0 +1,3 @@ +usr/lib/powerdns +var/lib/powerdns +usr/share/doc/pdns-backend-sqlite --- pdns-2.9.19.orig/debian/lintian-overrides/pdns-backend-mysql +++ pdns-2.9.19/debian/lintian-overrides/pdns-backend-mysql @@ -0,0 +1 @@ +pdns-backend-mysql binary: package-name-doesnt-match-sonames --- pdns-2.9.19.orig/debian/lintian-overrides/pdns-backend-geo +++ pdns-2.9.19/debian/lintian-overrides/pdns-backend-geo @@ -0,0 +1 @@ +pdns-backend-geo binary: package-name-doesnt-match-sonames --- pdns-2.9.19.orig/debian/lintian-overrides/pdns-backend-pgsql +++ pdns-2.9.19/debian/lintian-overrides/pdns-backend-pgsql @@ -0,0 +1 @@ +pdns-backend-pgsql binary: package-name-doesnt-match-sonames --- pdns-2.9.19.orig/debian/lintian-overrides/pdns-backend-ldap +++ pdns-2.9.19/debian/lintian-overrides/pdns-backend-ldap @@ -0,0 +1 @@ +pdns-backend-ldap binary: package-name-doesnt-match-sonames --- pdns-2.9.19.orig/debian/lintian-overrides/pdns-backend-pipe +++ pdns-2.9.19/debian/lintian-overrides/pdns-backend-pipe @@ -0,0 +1 @@ +pdns-backend-pipe binary: package-name-doesnt-match-sonames --- pdns-2.9.19.orig/debian/lintian-overrides/pdns-backend-sqlite +++ pdns-2.9.19/debian/lintian-overrides/pdns-backend-sqlite @@ -0,0 +1 @@ +pdns-backend-sqlite binary: package-name-doesnt-match-sonames --- pdns-2.9.19.orig/debian/control +++ pdns-2.9.19/debian/control @@ -0,0 +1,140 @@ +Source: pdns +Section: net +Priority: extra +Standards-Version: 3.6.2 +Maintainer: Debian PowerDNS Maintainers +Uploaders: Christoph Haas , Matthijs Mohlmann +Build-Depends: debhelper (>= 4.2.0), po-debconf, dpatch (>= 2.0.0), libtool, flex, bison, docbook-utils, libmysqlclient15-dev, libpq-dev, libssl-dev, tdb-dev, libgdbm-dev, libldap2-dev, libsqlite0-dev, dpkg-dev (> 1.10.17), libboost-dev + +Package: pdns +Architecture: all +Depends: pdns-server, pdns-recursor +Description: meta package for the pdns 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 package is added for compatibility reasons because it has been split into + pdns-server and pdns-recursor. It does not need to be installed any more. + +Package: pdns-server +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ucf +Pre-Depends: 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. + +Package: pdns-recursor +Architecture: any +Depends: ${shlibs:Depends} +Replaces: pdns +Recommends: pdns-doc +Description: PowerDNS recursor + 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 recursive nameserver that goes out to the internet and + resolve queries about other domains. + +Package: pdns-doc +Section: doc +Architecture: all +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} +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} +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 SQLite. + --- pdns-2.9.19.orig/debian/pdns-backend-sqlite.postrm +++ pdns-2.9.19/debian/pdns-backend-sqlite.postrm @@ -0,0 +1,45 @@ +#! /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 + ;; + + *) + 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.19.orig/debian/pdns-backend-pipe.dirs +++ pdns-2.9.19/debian/pdns-backend-pipe.dirs @@ -0,0 +1,2 @@ +usr/lib/powerdns +usr/share/doc/pdns-backend-pipe --- pdns-2.9.19.orig/debian/pdns-backend-mysql.install +++ pdns-2.9.19/debian/pdns-backend-mysql.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/powerdns/libgmysqlbackend.so* usr/lib/powerdns/ +debian/tmp/usr/lib/powerdns/libgmysqlbackend.a usr/lib/powerdns/ +debian/lintian-overrides/pdns-backend-mysql usr/share/lintian/overrides/ --- pdns-2.9.19.orig/debian/resolvconf/pdns +++ pdns-2.9.19/debian/resolvconf/pdns @@ -0,0 +1,66 @@ +#!/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 + +[ -x /usr/sbin/pdns_server ] || exit 0 +[ -x /lib/resolvconf/list-records ] || exit 1 + +RUN_DIR=/etc/powerdns/pdns.d +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 + # 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 && /etc/init.d/pdns reload || : +fi + --- pdns-2.9.19.orig/debian/pdns-backend-sqlite.install +++ pdns-2.9.19/debian/pdns-backend-sqlite.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/powerdns/libgsqlitebackend.so* usr/lib/powerdns/ +debian/tmp/usr/lib/powerdns/libgsqlitebackend.a usr/lib/powerdns/ +debian/lintian-overrides/pdns-backend-sqlite usr/share/lintian/overrides/ --- pdns-2.9.19.orig/debian/patches/addconfigdir.dpatch +++ pdns-2.9.19/debian/patches/addconfigdir.dpatch @@ -0,0 +1,93 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## addconfigdir.dpatch by Matthijs Mohlmann +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add include option to include files from directories + +@DPATCH@ +diff -urNad pdns-2.9.19~/pdns/arguments.cc pdns-2.9.19/pdns/arguments.cc +--- pdns-2.9.19~/pdns/arguments.cc 2005-12-15 22:10:04.000000000 +0100 ++++ pdns-2.9.19/pdns/arguments.cc 2005-12-15 22:11:46.498388250 +0100 +@@ -220,9 +220,12 @@ + if(pos && pos!=string::npos) + val=val.substr(pos); + +- if(parmIsset(var)) ++ if(parmIsset(var)) { + params[var]=val; +- else ++ if (!strcmp(var.c_str(), "include")) { // include directory ++ preParseDir(val.c_str(), arg, lax); ++ } ++ } else + if(!lax) + throw ArgException("Trying to set unexisting parameter '"+var+"'"); + } +@@ -249,6 +252,37 @@ + } + } + ++bool ArgvMap::preParseDir(const char *dir, const string &arg, bool lax) ++{ ++ DIR *dir_p; ++ char *fulldir; ++ struct dirent *dir_entry_p; ++ int n, m; ++ ++ if (dir_p = opendir(dir)) { ++ while((dir_entry_p = readdir(dir_p))) ++ { ++ if (strcmp(dir_entry_p->d_name, ".") == 0 || ++ strcmp(dir_entry_p->d_name, "..") == 0) ++ continue; ++ ++ n = strlen(dir_entry_p->d_name); ++ m = strlen(dir); ++ fulldir = (char *)malloc(n+m+2); ++ strcpy(fulldir, (char *)dir); ++ strcat(fulldir, "/"); ++ strcat(fulldir, dir_entry_p->d_name); ++ file((const char *)fulldir, lax); ++ } ++ closedir(dir_p); ++ } else { ++ // Could be a file. ++ file(dir, lax); ++ } ++ ++ return true; ++} ++ + bool ArgvMap::preParseFile(const char *fname, const string &arg) + { + ifstream f(fname); +diff -urNad pdns-2.9.19~/pdns/arguments.hh pdns-2.9.19/pdns/arguments.hh +--- pdns-2.9.19~/pdns/arguments.hh 2005-12-15 22:10:04.000000000 +0100 ++++ pdns-2.9.19/pdns/arguments.hh 2005-12-15 22:13:49.674086250 +0100 +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #include "misc.hh" + #include "ahuexception.hh" + +@@ -79,6 +80,7 @@ + } + void ArgvMap::preParse(int &argc, char **argv, const string &arg); //!< use this to preparse a single var + bool ArgvMap::preParseFile(const char *fname, const string &arg); //!< use this to preparse a single var in configuration ++ bool ArgvMap::preParseDir(const char *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) +diff -urNad pdns-2.9.19~/pdns/common_startup.cc pdns-2.9.19/pdns/common_startup.cc +--- pdns-2.9.19~/pdns/common_startup.cc 2005-12-15 22:10:04.000000000 +0100 ++++ pdns-2.9.19/pdns/common_startup.cc 2005-12-15 22:10:08.096238500 +0100 +@@ -62,6 +62,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"; --- pdns-2.9.19.orig/debian/patches/00list +++ pdns-2.9.19/debian/patches/00list @@ -0,0 +1,10 @@ +# Apply following patches +addconfigdir.dpatch +add_uri_support.dpatch +memory-hole-fix.dpatch +catch-exception.dpatch +exception-could-escape.dpatch +allow-slash-in-domain.dpatch +security-bug-in-dnspacket.dpatch +ns-delegation.dpatch +crashfix-HINFO-query.dpatch --- pdns-2.9.19.orig/debian/patches/add_uri_support.dpatch +++ pdns-2.9.19/debian/patches/add_uri_support.dpatch @@ -0,0 +1,172 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## add_uri_support2.dpatch by Matthijs Mohlmann +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add uri support for ldap. + +@DPATCH@ +diff -urNad --exclude=CVS --exclude=.svn ./modules/ldapbackend/ldapbackend.cc /tmp/dpep-work.8rsdEN/trunk/modules/ldapbackend/ldapbackend.cc +--- ./modules/ldapbackend/ldapbackend.cc 2005-07-31 00:51:19.000000000 +0200 ++++ /tmp/dpep-work.8rsdEN/trunk/modules/ldapbackend/ldapbackend.cc 2005-09-03 23:56:51.129936000 +0200 +@@ -10,7 +10,6 @@ + { + string hoststr; + unsigned int i, idx; +- string::size_type end, begin = 0; + vector hosts; + + +@@ -24,7 +23,6 @@ + m_myname = "[LdapBackend]"; + + setArgPrefix( "ldap" + suffix ); +- hoststr = getArg( "host" ); + + m_getdn = false; + m_list_fcnt = &LdapBackend::list_simple; +@@ -43,13 +41,7 @@ + m_prepare_fcnt = &LdapBackend::prepare_strict; + } + +- while( ( end = hoststr.find_first_of( ", \t\n", begin ) ) != string::npos ) +- { +- hosts.push_back( hoststr.substr( begin, end - begin ) ); +- begin = end + 1; +- } +- hosts.push_back( hoststr.substr( begin, hoststr.length() - begin ) ); +- ++ stringtok( hosts, getArg( "host" ), ", " ); + idx = ldap_host_index++ % hosts.size(); + hoststr = hosts[idx]; + +@@ -60,7 +52,7 @@ + + L << Logger::Info << m_myname << " LDAP servers = " << hoststr << endl; + +- m_pldap = new PowerLDAP( hoststr.c_str(), LDAP_PORT, mustDo( "starttls" ) ); ++ m_pldap = new PowerLDAP( hoststr, mustDo( "starttls" ) ); + m_pldap->setOption( LDAP_OPT_DEREF, LDAP_DEREF_ALWAYS ); + m_pldap->simpleBind( getArg( "binddn" ), getArg( "secret" ) ); + } +@@ -171,7 +163,6 @@ + try + { + m_axfrqlen = 0; +- m_qtype = qtype; + m_qname = qname; + m_adomain = m_adomains.end(); // skip loops in get() first time + +@@ -478,7 +469,29 @@ + } + + ++bool LdapBackend::getDomainInfo( const string& domain, DomainInfo& di ) ++{ ++ string filter; ++ char* attronly[] = { "sOARecord", NULL }; + ++ // search for SOARecord of domain ++ filter = "(&(associatedDomain=" + toLower( m_pldap->escape( domain ) ) + ")(SOARecord=*))"; ++ m_msgid = m_pldap->search( getArg( "basedn" ), LDAP_SCOPE_SUBTREE, filter, (const char**) attronly ); ++ m_pldap->getSearchEntry( m_msgid, m_result ); ++ ++ if( m_result.empty() ) ++ { ++ return false; ++ } ++ ++ di.id = 0; ++ di.zone = domain; ++ di.last_check = 0; ++ di.backend = this; ++ di.kind = DomainInfo::Native; ++ ++ return true; ++} + + + class LdapFactory : public BackendFactory +@@ -491,8 +504,8 @@ + + void declareArguments( const string &suffix="" ) + { +- declare( suffix, "host", "One or more ldap server","127.0.0.1:389" ); +- declare( suffix, "starttls", "Use TLS to encrypt connection", "no" ); ++ declare( suffix, "host", "Multiple LDAP server with ports or LDAP URIs, separated by spaces","127.0.0.1:389" ); ++ declare( suffix, "starttls", "Use TLS to encrypt connection (unused for LDAP URIs)", "no" ); + declare( suffix, "basedn", "Search root in ldap tree (must be set)","" ); + declare( suffix, "binddn", "User dn for non anonymous binds","" ); + declare( suffix, "secret", "User password for non anonymous binds", "" ); +diff -urNad --exclude=CVS --exclude=.svn ./modules/ldapbackend/ldapbackend.hh /tmp/dpep-work.8rsdEN/trunk/modules/ldapbackend/ldapbackend.hh +--- ./modules/ldapbackend/ldapbackend.hh 2005-07-31 00:51:19.000000000 +0200 ++++ /tmp/dpep-work.8rsdEN/trunk/modules/ldapbackend/ldapbackend.hh 2005-09-03 23:57:39.955513384 +0200 +@@ -81,7 +81,6 @@ + unsigned int m_axfrqlen; + string m_myname; + string m_qname; +- QType m_qtype; + PowerLDAP* m_pldap; + PowerLDAP::sentry_t m_result; + PowerLDAP::sentry_t::iterator m_attribute; +@@ -111,6 +110,7 @@ + bool list( const string& target, int domain_id ); + void lookup( const QType& qtype, const string& qdomain, DNSPacket* p = 0, int zoneid = -1 ); + bool get( DNSResourceRecord& rr ); ++ bool getDomainInfo( const string& domain, DomainInfo& di ); + }; + + #endif /* LDAPBACKEND_HH */ +diff -urNad --exclude=CVS --exclude=.svn ./modules/ldapbackend/powerldap.cc /tmp/dpep-work.8rsdEN/trunk/modules/ldapbackend/powerldap.cc +--- ./modules/ldapbackend/powerldap.cc 2005-07-31 00:51:19.000000000 +0200 ++++ /tmp/dpep-work.8rsdEN/trunk/modules/ldapbackend/powerldap.cc 2005-09-03 23:59:48.719938216 +0200 +@@ -2,13 +2,22 @@ + + + +-PowerLDAP::PowerLDAP( const string& host, uint16_t port, bool tls ) ++PowerLDAP::PowerLDAP( const string& hosts, bool tls ) + { + int protocol = LDAP_VERSION3; + +- if( ( d_ld = ldap_init( host.c_str(), port ) ) == NULL ) ++ if( ldap_initialize( &d_ld, hosts.c_str() ) != LDAP_SUCCESS ) + { +- throw LDAPException( "Error initializing LDAP connection: " + string( strerror( errno ) ) ); ++ if( ( d_ld = ldap_init( hosts.c_str(), LDAP_PORT ) ) == NULL ) ++ { ++ throw LDAPException( "Error initializing LDAP connection: " + string( strerror( errno ) ) ); ++ } ++ ++ if( tls && ldap_start_tls_s( d_ld, NULL, NULL ) != LDAP_SUCCESS ) ++ { ++ ldap_unbind( d_ld ); ++ throw( LDAPException( "Couldn't perform STARTTLS" ) ); ++ } + } + + if( ldap_set_option( d_ld, LDAP_OPT_PROTOCOL_VERSION, &protocol ) != LDAP_OPT_SUCCESS ) +@@ -20,12 +29,6 @@ + throw LDAPException( "Couldn't set protocol version to LDAPv3 or LDAPv2" ); + } + } +- +- if( tls && ldap_start_tls_s( d_ld, NULL, NULL ) != LDAP_SUCCESS ) +- { +- ldap_unbind( d_ld ); +- throw( LDAPException( "Couldn't perform STARTTLS" ) ); +- } + } + + +diff -urNad --exclude=CVS --exclude=.svn ./modules/ldapbackend/powerldap.hh /tmp/dpep-work.8rsdEN/trunk/modules/ldapbackend/powerldap.hh +--- ./modules/ldapbackend/powerldap.hh 2005-07-31 00:51:19.000000000 +0200 ++++ /tmp/dpep-work.8rsdEN/trunk/modules/ldapbackend/powerldap.hh 2005-09-04 00:00:12.321350256 +0200 +@@ -69,7 +69,7 @@ + typedef map > sentry_t; + typedef vector sresult_t; + +- PowerLDAP( const string& host = "127.0.0.1", uint16_t port = LDAP_PORT, bool tls = false ); ++ PowerLDAP( const string& hosts = "ldap://127.0.0.1/", bool tls = false ); + ~PowerLDAP(); + + void getOption( int option, int* value ); --- pdns-2.9.19.orig/debian/patches/memory-hole-fix.dpatch +++ pdns-2.9.19/debian/patches/memory-hole-fix.dpatch @@ -0,0 +1,23 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## memory-hole-fix.dpatch by Matthijs Mohlmann +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix a memory hole where a truck can drive through + +@DPATCH@ +diff -urNad trunk~/pdns/recursor_cache.cc trunk/pdns/recursor_cache.cc +--- trunk~/pdns/recursor_cache.cc 2005-11-01 13:09:44.000000000 +0100 ++++ trunk/pdns/recursor_cache.cc 2005-11-01 15:09:28.434853250 +0100 +@@ -61,7 +61,12 @@ + void MemRecursorCache::replace(const string &qname, const QType& qt, const set& content) + { + set& stored=d_cache[toLowerCanonic(qname)+"|"+qt.getName()]; ++ ++ for(set::iterator k=stored.begin();k!=stored.end();++k) ++ k->d_string.prune(); ++ + stored.clear(); ++ + for(set::const_iterator i=content.begin(); i != content.end(); ++i) { + StoredRecord dr; + dr.d_ttd=i->ttl; --- pdns-2.9.19.orig/debian/patches/ns-delegation.dpatch +++ pdns-2.9.19/debian/patches/ns-delegation.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## ns-delegation.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fixes the missing NS delegation. Mentioned in BTS bug #345778 + +@DPATCH@ +diff -urNad trunk~/pdns/packethandler.cc trunk/pdns/packethandler.cc +--- trunk~/pdns/packethandler.cc 2005-11-01 22:13:13.000000000 +0100 ++++ trunk/pdns/packethandler.cc 2006-01-03 23:16:21.000000000 +0100 +@@ -389,7 +389,8 @@ + int hits=0; + + while(B.get(rr)) { +- hits++; ++ if(rr.qtype.getCode()!=QType::NS || p->qtype.getCode()==QType::NS) ++ hits++; + if(!rfound && rr.qtype.getCode()==QType::CNAME) { + found=true; + r->addRecord(rr); +@@ -636,6 +637,7 @@ + mret=makeCanonic(p, r, target); // traverse CNAME chain until we have a useful record (may actually give the correct answer!) + + if(mret==2) { // there is some data, but not of the correct type ++ DLOG(L<<"There is some data, but not of the correct type"< +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Allow '/' in domain names. + +@DPATCH@ +diff -urNad trunk~/pdns/packethandler.cc trunk/pdns/packethandler.cc +--- trunk~/pdns/packethandler.cc 2005-11-01 13:09:48.000000000 +0100 ++++ trunk/pdns/packethandler.cc 2005-12-12 21:44:27.648799750 +0100 +@@ -540,7 +540,7 @@ + if(!((c >= 'a' && c <= 'z') || + (c >= 'A' && c <= 'Z') || + (c >= '0' && c <= '9') || +- c =='-' || c == '_' || c=='*' || c=='.')) ++ c =='-' || c == '_' || c=='*' || c=='.' || c=='/')) + return false; + } + return true; --- pdns-2.9.19.orig/debian/patches/catch-exception.dpatch +++ pdns-2.9.19/debian/patches/catch-exception.dpatch @@ -0,0 +1,54 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## catch-exception.dpatch by Matthijs Mohlmann +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad trunk~/pdns/pdns_recursor.cc trunk/pdns/pdns_recursor.cc +--- trunk~/pdns/pdns_recursor.cc 2005-11-01 13:10:17.000000000 +0100 ++++ trunk/pdns/pdns_recursor.cc 2005-11-01 15:21:19.085299500 +0100 +@@ -795,18 +795,22 @@ + if(d_len<0) + continue; + +- DNSComboWriter* dc = new DNSComboWriter(data, d_len); ++ try { ++ DNSComboWriter* dc = new DNSComboWriter(data, d_len); + +- dc->setRemote((struct sockaddr *)&fromaddr, addrlen); ++ dc->setRemote((struct sockaddr *)&fromaddr, addrlen); + +- if(dc->d_mdp.d_header.qr) +- L<setSocket(*i); +- dc->d_tcp=false; +- MT->makeThread(startDoResolve, (void*) dc, "udp"); +- } ++ if(dc->d_mdp.d_header.qr) ++ L<setSocket(*i); ++ dc->d_tcp=false; ++ MT->makeThread(startDoResolve, (void*) dc, "udp"); ++ } ++ } catch(MOADNSException& mde) { ++ L< +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad trunk~/pdns/dnsparser.cc trunk/pdns/dnsparser.cc +--- trunk~/pdns/dnsparser.cc 2005-11-01 13:09:28.000000000 +0100 ++++ trunk/pdns/dnsparser.cc 2005-11-01 15:16:28.399132750 +0100 +@@ -168,13 +168,13 @@ + + PacketReader pr(d_content); + +- for(n=0;n < d_header.qdcount; ++n) { +- d_qname=pr.getLabel(); +- d_qtype=pr.get16BitInt(); +- d_qclass=pr.get16BitInt(); +- } +- + try { ++ for(n=0;n < d_header.qdcount; ++n) { ++ d_qname=pr.getLabel(); ++ d_qtype=pr.get16BitInt(); ++ d_qclass=pr.get16BitInt(); ++ } ++ + struct dnsrecordheader ah; + vector record; + --- pdns-2.9.19.orig/debian/patches/crashfix-HINFO-query.dpatch +++ pdns-2.9.19/debian/patches/crashfix-HINFO-query.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## crashfix-HINFO-query.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: fixes remote crash on CH HINFO query +## DP: http://mailman.powerdns.com/pipermail/pdns-announce/2008-November/000096.html + +@DPATCH@ +diff -urNad pdns-2.9.21.1.0~/pdns/packethandler.cc pdns-2.9.21.1.0/pdns/packethandler.cc +--- pdns-2.9.21.1.0~/pdns/packethandler.cc 2008-08-08 00:28:12.000000000 +0300 ++++ pdns-2.9.21.1.0/pdns/packethandler.cc 2010-01-13 19:44:25.000000000 +0200 +@@ -619,9 +619,6 @@ + string target=p->qdomain; + bool noCache=false; + +- if (doDNSCheckRequest(p, r, target)) +- goto sendit; +- + if(doVersionRequest(p,r,target)) // catch version.bind requests + goto sendit; + --- pdns-2.9.19.orig/debian/patches/security-bug-in-dnspacket.dpatch +++ pdns-2.9.19/debian/patches/security-bug-in-dnspacket.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## security-bug-in-dnspacket.dpatch by Matthijs Mohlmann +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fixes a slight security bug. + +@DPATCH@ +diff -urNad trunk~/pdns/dnspacket.cc trunk/pdns/dnspacket.cc +--- trunk~/pdns/dnspacket.cc 2005-11-01 13:10:23.000000000 +0100 ++++ trunk/pdns/dnspacket.cc 2005-12-12 21:46:55.622047500 +0100 +@@ -613,7 +613,7 @@ + string piece1; + + toqname(domain.c_str(),&piece1); +- char p[10]; ++ char p[11]; + makeHeader(p,17,ttl); + + // content contains: mailbox-name more-info-domain (Separated by a space) +@@ -670,7 +670,7 @@ + + //xtoqname(domain.c_str(),&piece1); + toqname(domain.c_str(),&piece1); +- char p[10]; ++ char p[11]; + makeHeader(p,QType::NAPTR,ttl); + + // content contains: 100 100 "s" "http+I2R" "" _http._tcp.foo.com. --- pdns-2.9.19.orig/debian/pdns-doc.doc-base +++ pdns-2.9.19/debian/pdns-doc.doc-base @@ -0,0 +1,12 @@ +Document: pdns +Title: PowerDNS manual +Author: PowerDNS B.V. +Section: Apps/System +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.19.orig/debian/pdns-server.templates +++ pdns-2.9.19/debian/pdns-server.templates @@ -0,0 +1,22 @@ +Template: pdns-server/localaddress +Type: string +_Description: IP address where PowerDNS should listen + 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.19.orig/debian/rules +++ pdns-2.9.19/debian/rules @@ -0,0 +1,131 @@ +#!/usr/bin/make -f +# +# debian/rules file + +# Environment +#export DH_VERBOSE=1 +export DH_COMPAT=4 + +# 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 geo + +# Targets +config.status: + dh_testdir + # 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` \ + --enable-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 + + # Add here commands to clean up after the build process. + -$(MAKE) -C modules/db2backend/ distclean + -$(MAKE) -C modules/pdnsbackend/ distclean + -$(MAKE) -C modules/xdbbackend/ distclean + -$(MAKE) distclean + -$(MAKE) -C pdns/docs clean +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 + + 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_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 + +patch: patch-stamp +patch-stamp: + dpatch apply-all + touch patch-stamp + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install --- pdns-2.9.19.orig/debian/pdns-backend-pgsql.README.Debian +++ pdns-2.9.19/debian/pdns-backend-pgsql.README.Debian @@ -0,0 +1,11 @@ +For the PostgreSQL database setup. + +In /usr/share/doc/pdns-backend-pgsql/ is the file pgsql.sql. This contains +a basic setup for PowerDNS. + +You can add this with: +- Create first a database in PostgreSQL (For example: pdns) +- Add this file: psql -h -U -f pgsql.sql + +And then add the records to the database. + --- pdns-2.9.19.orig/debian/pdns-backend-sqlite.prerm +++ pdns-2.9.19/debian/pdns-backend-sqlite.prerm @@ -0,0 +1,45 @@ +#!/bin/sh +# prerm script for pdns-backend-sqlite +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ -x "/etc/init.d/pdns" ]; then + if [ -x /usr/sbin/invoke-rc.d ] ; then + invoke-rc.d pdns stop || exit 0 + else + /etc/init.d/pdns stop || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/pdns-recursor.dirs +++ pdns-2.9.19/debian/pdns-recursor.dirs @@ -0,0 +1,5 @@ +etc/powerdns +etc/init.d +etc/default +usr/sbin +usr/share/doc/pdns-recursor --- pdns-2.9.19.orig/debian/pdns-backend-pgsql.install +++ pdns-2.9.19/debian/pdns-backend-pgsql.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/powerdns/libgpgsqlbackend.so* usr/lib/powerdns/ +debian/tmp/usr/lib/powerdns/libgpgsqlbackend.a usr/lib/powerdns/ +debian/lintian-overrides/pdns-backend-pgsql usr/share/lintian/overrides/ --- pdns-2.9.19.orig/debian/init.d/pdns-recursor +++ pdns-2.9.19/debian/init.d/pdns-recursor @@ -0,0 +1,145 @@ +#! /bin/sh +# +# Author: Matthijs Mohlmann . +# +# Thanks to: +# Thomas Hood +# +# initscript for PowerDNS recursor + +set +e # Don't exit on error status + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DESC="PowerDNS recursor" +NAME=pdns_recursor +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/$NAME.pid + +# Gracefully exit if the package has been removed. +test -x $DAEMON || exit 0 + +# Read config file if it is present. +if [ -r /etc/default/pdns-recursor ]; then + . /etc/default/pdns-recursor +fi + +start() { +# Return +# 0 if daemon has been started +# 1 if daemon was already running +# 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- --daemon || return 2 +} + +start_resolvconf() { + if [ -x /sbin/resolvconf ]; then + echo "nameserver 127.0.0.1" | /sbin/resolvconf -a lo.pdns-recursor + fi + return 0 +} + +stop() { +# Return +# 0 if daemon has been stopped +# 1 if daemon was already stopped +# 2 if daemon could not be stopped +# other if a failure occured + start-stop-daemon --stop --quiet --retry=HUP/30/TERM/5/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + start-stop-daemon --stop --quiet --oknodo --retry=HUP/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + rm -f $PIDFILE + return "$RETVAL" +} + +stop_resolvconf() { + if [ -x /sbin/resolvconf ]; then + /sbin/resolvconf -d lo.pdns-recursor + fi + return 0 +} + +case "$1" in + start) + if [ "$START" != "yes" ]; then + echo "Not starting $DESC -- disabled." + exit 0 + fi + echo -n "Starting $DESC: " + start + case "$?" in + 0) + echo "." + start_resolvconf + exit 0 + ;; + 1) + echo " (already running)." + exit 0 + ;; + *) + echo " (failed)." + exit 1 + ;; + esac + ;; + stop) + stop_resolvconf + echo -n "Stopping $DESC: " + stop + case "$?" in + 0) + echo "." + exit 0 + ;; + 1) + echo " (not running)." + exit 0 + ;; + *) + echo " (failed)." + exit 1 + ;; + esac + ;; + restart|force-reload) + if [ "$START" != "yes" ]; then + $0 stop + exit 0 + fi + echo -n "Restarting $DESC: " + stop + case "$?" in + 0|1) + start + case "$?" in + 0) + echo "." + exit 0 + ;; + 1) + echo " (failed -- old process still running)." + exit 1 + ;; + *) + echo " (failed to start)." + exit 1 + ;; + esac + ;; + *) + echo " (failed to stop)." + exit 1 + ;; + esac + ;; + *) + echo "Usage: $0 {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +exit 0 + --- pdns-2.9.19.orig/debian/init.d/pdns +++ pdns-2.9.19/debian/init.d/pdns @@ -0,0 +1,151 @@ +#!/bin/sh +# chkconfig: - 80 75 +# description: PDNS is a versatile high performance authoritative nameserver + +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 + +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) +} + +doPC ping +NOTRUNNING=$? + +case "$1" in + status) + if test "$NOTRUNNING" = "0"; then + doPC status + echo $ret + else + echo "not running" + fi + ;; + stop) + echo -n "Stopping PowerDNS authoritative nameserver: " + 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: " + 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 + ;; + force-reload | restart) + echo -n "Restarting PowerDNS authoritative nameserver: " + echo -n stopping and waiting.. + doPC quit + sleep 3 + echo done + $0 start + ;; + reload) + echo -n "Reloading PowerDNS authoritative nameserver: " + if test "$NOTRUNNING" = "0"; then + doPC cycle + echo requested reload + else + echo not running yet + $0 start + fi + ;; + monitor) + if test "$NOTRUNNING" = "0"; then + echo "already running" + else + $pdns_server --daemon=no --guardian=no --control-console --loglevel=9 + fi + ;; + dump) + if test "$NOTRUNNING" = "0"; then + doPC list + echo $ret + else + echo "not running" + fi + ;; + show) + if [ $# -lt 2 ]; then + echo Insufficient parameters + exit + fi + 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 + 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 + 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.19.orig/debian/pdns-backend-pgsql.prerm +++ pdns-2.9.19/debian/pdns-backend-pgsql.prerm @@ -0,0 +1,44 @@ +#!/bin/sh +# prerm script for pdns-backend-pgsql +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + remove|upgrade|deconfigure) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ -x "/etc/init.d/pdns" ]; then + if [ -x /usr/sbin/invoke-rc.d ] ; then + invoke-rc.d pdns stop || exit 0 + else + /etc/init.d/pdns stop || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/pdns-backend-sqlite.examples +++ pdns-2.9.19/debian/pdns-backend-sqlite.examples @@ -0,0 +1 @@ +debian/config/pdns.local.gsqlite --- pdns-2.9.19.orig/debian/pdns-recursor.prerm +++ pdns-2.9.19/debian/pdns-recursor.prerm @@ -0,0 +1,45 @@ +#! /bin/sh +# prerm script for pdns-recursor +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +if [ -x "/etc/init.d/pdns-recursor" ]; then + if [ -x /usr/sbin/invoke-rc.d ] ; then + invoke-rc.d pdns-recursor stop || exit 0 + else + /etc/init.d/pdns-recursor stop || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/pdns-backend-pipe.examples +++ pdns-2.9.19/debian/pdns-backend-pipe.examples @@ -0,0 +1 @@ +debian/config/pdns.local.pipe --- pdns-2.9.19.orig/debian/changelog +++ pdns-2.9.19/debian/changelog @@ -0,0 +1,462 @@ +pdns (2.9.19-3ubuntu0.1) dapper-security; urgency=low + + * SECURITY UPDATE: pdns crash by receiving CH HINFO query (LP: #299783) + - debian/patches/crashfix-HINFO-query.dpatch + + -- Imre Gergely Wed, 13 Jan 2010 21:54:04 +0200 + +pdns (2.9.19-3build1) dapper; urgency=low + + * Rebuild against the new libmysqlclient15off with correct symbols. + + -- Adam Conrad Thu, 6 Apr 2006 15:10:59 +1000 + +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.19.orig/debian/pdns-backend-pgsql.postinst +++ pdns-2.9.19/debian/pdns-backend-pgsql.postinst @@ -0,0 +1,47 @@ +#!/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 + +if [ -x "/etc/init.d/pdns" ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d pdns restart || exit 0 + else + /etc/init.d/pdns restart || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/pdns-backend-geo.postinst +++ pdns-2.9.19/debian/pdns-backend-geo.postinst @@ -0,0 +1,47 @@ +#!/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 + +if [ -x "/etc/init.d/pdns" ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d pdns restart || exit 0 + else + /etc/init.d/pdns restart || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/manpage/pdns_recursor.8 +++ pdns-2.9.19/debian/manpage/pdns_recursor.8 @@ -0,0 +1,90 @@ +.\" 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 +pdns_recursor \- The PowerDNS recursor +.SH SYNOPSIS +.B pdns_recursor +.RI [ options ] +.br +.SH DESCRIPTION +This manual page is describes how to use the +.B pdns_recursor +command. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBpdns_recursor\fP is a program that does name server queries on the +net and retrieves info about other domains. +.SH OPTIONS +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \-\-help +.br +Show summary of options. +.TP +.B \-\-aaaa\-additional\-processing\=[yes|no] +.br +Turn on to do AAAA additional processing (slow) +.TP +.B \-\-config\-dir\=... +.br +Location of configuration directory (recursor.conf) +.TP +.B \-\-daemon=[yes|no] +.br +Operate as a daemon +.TP +.B \-\-delegation\-only\=... +.br +Which domains we only accept delegations from +.TP +.B \-\-local\-address\=... +.br +address to listen on +.TP +.B \-\-local\-port\=... +.br +port to listen on +.TP +.B \-\-quiet\=[yes|no] +.br +Suppress logging of questions and answers +.TP +.B \-\-soa\-minimum\-ttl\=... +.br +Minimum Time To Live for a sOARecord. It's not recommended and supported to change this setting. +.TP +.B \-\-soa\-serial\-offset\=... +.br +The offset for the serial in a sOARecord. It's not recommended and supported to change this setting. +.TP +.B \-\-socket\-dir\=... +.br +Where the controlsocket will live +.TP +.B \-\-trace\=... +.br +if we should output heaps of logging +.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.19.orig/debian/manpage/zone2ldap.8 +++ pdns-2.9.19/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.19.orig/debian/config/pdns.local.geo +++ pdns-2.9.19/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.19.orig/debian/config/pdns.local.ldap +++ pdns-2.9.19/debian/config/pdns.local.ldap @@ -0,0 +1,7 @@ +# LDAP Configuration +# +# ldap-host= +# ldap-method= +# ldap-basedn= +# ldap-binddn= +# ldap-secret= --- pdns-2.9.19.orig/debian/config/pdns.local.pipe +++ pdns-2.9.19/debian/config/pdns.local.pipe @@ -0,0 +1,6 @@ +# Configuration for pipe backend +# +# pipe-command= +# pipe-timeout= +# pipe-regex= + --- pdns-2.9.19.orig/debian/config/dnsdomain2.schema +++ pdns-2.9.19/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.19.orig/debian/config/pdns.conf +++ pdns-2.9.19/debian/config/pdns.conf @@ -0,0 +1,303 @@ +# Autogenerated configuration file template +################################# +# allow-axfr-ips If disabled, DO allow zonetransfers 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 + +################################# +# only-soa Make sure that no SOA serial is less than this number +# +# only-soa=org + +################################# +# 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-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 anonymouse / powerdns / full / custom +version-string=powerdns + +include=/etc/powerdns/pdns.d --- pdns-2.9.19.orig/debian/config/pdns.local.gsqlite +++ pdns-2.9.19/debian/config/pdns.local.gsqlite @@ -0,0 +1,4 @@ +# Configuration for gsqlite +# +# gsqlite-database= + --- pdns-2.9.19.orig/debian/config/recursor.conf +++ pdns-2.9.19/debian/config/recursor.conf @@ -0,0 +1,16 @@ +## For more configuration items see 12.1 of the PowerDNS manual +# Run as daemon +daemon=yes + +# On which port to listen +local-port=53 + +# On which address to listen +local-address=127.0.0.1 + +# Be quiet +quiet=yes + +# For what domains should we delegate (See 12.1.1 of the PowerDNS manual) +delegation-only=com,net + --- pdns-2.9.19.orig/debian/config/mysql.sql +++ pdns-2.9.19/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.19.orig/debian/config/pdns.local +++ pdns-2.9.19/debian/config/pdns.local @@ -0,0 +1,3 @@ +# Here comes the local changes the user made, like configuration of +# the several backends that exists. + --- pdns-2.9.19.orig/debian/config/pdns.local.gpgsql +++ pdns-2.9.19/debian/config/pdns.local.gpgsql @@ -0,0 +1,7 @@ +# PostgreSQL Configuration +# +# gpgsql-host= +# gpgsql-port= +# gpgsql-dbname= +# gpgsql-user= +# gpgsql-password= --- pdns-2.9.19.orig/debian/config/pgsql.sql +++ pdns-2.9.19/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.19.orig/debian/config/pdns.local.gmysql +++ pdns-2.9.19/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.19.orig/debian/watch +++ pdns-2.9.19/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=2 +http://downloads.powerdns.com /releases pdns-(.*)\.tar\.gz debian uupdate --- pdns-2.9.19.orig/debian/pdns-backend-mysql.docs +++ pdns-2.9.19/debian/pdns-backend-mysql.docs @@ -0,0 +1 @@ +debian/config/mysql.sql --- pdns-2.9.19.orig/debian/pdns-backend-pgsql.examples +++ pdns-2.9.19/debian/pdns-backend-pgsql.examples @@ -0,0 +1 @@ +debian/config/pdns.local.gpgsql --- pdns-2.9.19.orig/debian/pdns-backend-ldap.install +++ pdns-2.9.19/debian/pdns-backend-ldap.install @@ -0,0 +1,5 @@ +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/lintian-overrides/pdns-backend-ldap usr/share/lintian/overrides/ +debian/config/dnsdomain2.schema etc/ldap/schema/ --- pdns-2.9.19.orig/debian/pdns-server.preinst +++ pdns-2.9.19/debian/pdns-server.preinst @@ -0,0 +1,43 @@ +#!/bin/sh +# preinst script for pdns-server +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + upgrade) + ;; + + install) + echo -n "Creating user and group pdns..." + addgroup --quiet --system pdns + adduser --quiet --system --home /var/spool/powerdns --shell /bin/false --ingroup pdns --disabled-password --disabled-login --gecos "PowerDNS" pdns + echo "done" + ;; + + abort-upgrade) + ;; + + *) + echo "preinst 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.19.orig/debian/pdns-backend-mysql.README.Debian +++ pdns-2.9.19/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.19.orig/debian/pdns-backend-mysql.postinst +++ pdns-2.9.19/debian/pdns-backend-mysql.postinst @@ -0,0 +1,47 @@ +#!/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 + +if [ -x "/etc/init.d/pdns" ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d pdns restart || exit 0 + else + /etc/init.d/pdns restart || exit 0 + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- pdns-2.9.19.orig/debian/pdns-doc.docs +++ pdns-2.9.19/debian/pdns-doc.docs @@ -0,0 +1 @@ +pdns/docs/html --- pdns-2.9.19.orig/debian/pdns-recursor.postrm +++ pdns-2.9.19/debian/pdns-recursor.postrm @@ -0,0 +1,39 @@ +#! /bin/sh +# postrm script for pdns-recursor +# +# 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) + update-rc.d pdns-recursor remove >/dev/null || exit 0 + ;; + + *) + 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.19.orig/debian/pdns-backend-geo.install +++ pdns-2.9.19/debian/pdns-backend-geo.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/powerdns/libgeobackend.so* usr/lib/powerdns/ +debian/tmp/usr/lib/powerdns/libgeobackend.a usr/lib/powerdns/ +debian/lintian-overrides/pdns-backend-geo usr/share/lintian/overrides/ --- pdns-2.9.19.orig/debian/pdns-server.postrm +++ pdns-2.9.19/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) + deluser --system --remove-home pdns > /dev/null || true + + # 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 + ucf --purge /etc/powerdns/pdns.conf + ucf --purge /etc/default/pdns + ucf --purge /etc/powerdns/pdns.d/pdns.local + ;; + + *) + 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.19.orig/debian/pdns-server.dirs +++ pdns-2.9.19/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.19.orig/debian/pdns-backend-ldap.manpages +++ pdns-2.9.19/debian/pdns-backend-ldap.manpages @@ -0,0 +1 @@ +debian/manpage/zone2ldap.8 --- pdns-2.9.19.orig/debian/pdns-backend-ldap.examples +++ pdns-2.9.19/debian/pdns-backend-ldap.examples @@ -0,0 +1 @@ +debian/config/pdns.local.ldap