From: Pieter Lexis Date: Mon, 14 Mar 2016 09:35:03 +0000 (+0100) Subject: Ship the notify tool in the pdns-tools deb X-Git-Tag: dnsdist-1.0.0-beta1~105^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3572%2Fhead;p=thirdparty%2Fpdns.git Ship the notify tool in the pdns-tools deb --- diff --git a/build-scripts/debian-authoritative/pdns-tools.install b/build-scripts/debian-authoritative/pdns-tools.install index 2e69c15368..c6d8196191 100644 --- a/build-scripts/debian-authoritative/pdns-tools.install +++ b/build-scripts/debian-authoritative/pdns-tools.install @@ -6,6 +6,7 @@ usr/bin/dnsscope usr/bin/dnstcpbench usr/bin/dnswasher usr/bin/ixplore +usr/bin/notify usr/bin/nsec3dig usr/bin/saxfr usr/bin/sdig diff --git a/build-scripts/test-auth b/build-scripts/test-auth index 0ab9f04dc7..3f5b585814 100755 --- a/build-scripts/test-auth +++ b/build-scripts/test-auth @@ -19,6 +19,7 @@ export PDNS=/usr/sbin/pdns_server export PDNS2=$PDNS export SDIG=/usr/bin/sdig export NSEC3DIG=/usr/bin/nsec3dig +export NOTIFY=/usr/bin/notify export SAXFR=/usr/bin/saxfr export ZONE2SQL=/usr/bin/zone2sql export PDNSUTIL=/usr/bin/pdnsutil diff --git a/regression-tests.nobackend/supermaster-signed/command b/regression-tests.nobackend/supermaster-signed/command index b6f1079142..b8c23bb1ca 100755 --- a/regression-tests.nobackend/supermaster-signed/command +++ b/regression-tests.nobackend/supermaster-signed/command @@ -2,17 +2,11 @@ set -e set -x -PDNS=${PDNS:-../pdns/pdns_server} -PDNS2=${PDNS2:-../pdns/pdns_server} - ALGORITHM=${ALGORITHM:="hmac-md5"} KEY=${KEY:="kp4/24gyYsEzbuTVJRUMoqGFmN3LYgVDzJ/3oRSP7ys="} if [ "$RUNWRAPPER" = "" ]; then RUNWRAPPER="authbind" fi -MAKE=${MAKE:-make} - -$MAKE -C ../pdns notify > /dev/null export ALGORITHM export KEY @@ -24,8 +18,7 @@ trap "kill_process 2" EXIT INT TERM tosql () { - ${MAKE} -C ../pdns zone2sql > /dev/null - ../pdns/zone2sql --transactions --$1 --named-conf=./named.conf + ${ZONE2SQL} --transactions --$1 --named-conf=./named.conf } prepare() @@ -73,17 +66,17 @@ EOF UPDATE domains SET type = 'MASTER', notified_serial = NULL; EOF # setup tsig keys - ../pdns/pdnsutil --config-name=gsqlite3-master --config-dir=. import-tsig-key tsig.com $ALGORITHM "$KEY" - ../pdns/pdnsutil --config-name=gsqlite3-slave --config-dir=. import-tsig-key tsig.com $ALGORITHM "$KEY" - ../pdns/zone2sql --transactions --gsqlite --zone=zones/example.com --zone-name=example.com | sqlite3 slave.db + $PDNSUTIL --config-name=gsqlite3-master --config-dir=. import-tsig-key tsig.com $ALGORITHM "$KEY" + $PDNSUTIL --config-name=gsqlite3-slave --config-dir=. import-tsig-key tsig.com $ALGORITHM "$KEY" + $ZONE2SQL --transactions --gsqlite --zone=zones/example.com --zone-name=example.com | sqlite3 slave.db # setup supermaster sqlite3 slave.db <&1 +$NOTIFY 127.0.0.2:53 test.com 2>&1 kill_process 0 diff --git a/regression-tests.nobackend/supermaster-unsigned/command b/regression-tests.nobackend/supermaster-unsigned/command index 96bd7e68c3..ed4551e660 100755 --- a/regression-tests.nobackend/supermaster-unsigned/command +++ b/regression-tests.nobackend/supermaster-unsigned/command @@ -2,24 +2,18 @@ set -e set -x -PDNS=${PDNS:-../pdns/pdns_server} -PDNS2=${PDNS2:-../pdns/pdns_server} if [ "$RUNWRAPPER" = "" ]; then RUNWRAPPER="authbind" fi -MAKE=${MAKE:-make} port=$1 [ -z "$port" ] && port=53 trap "kill_process 2" EXIT INT TERM -$MAKE -C ../pdns notify > /dev/null - tosql () { - ${MAKE} -C ../pdns zone2sql > /dev/null - ../pdns/zone2sql --transactions --$1 --named-conf=./named.conf + $ZONE2SQL --transactions --$1 --named-conf=./named.conf } prepare() @@ -66,14 +60,14 @@ EOF sqlite3 master.db <