]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
hack build-recursor to skip 0.0_ prefix for non-snapshot builds rec-3.6.0-rc1
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 30 May 2014 06:59:24 +0000 (06:59 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 30 May 2014 06:59:24 +0000 (06:59 +0000)
pdns/build-recursor

index 473ce3e4d78632b3da777b498497f117797cd0a9..993fb12828345aaa20d2be8865fbe59e03330acb 100755 (executable)
@@ -3,7 +3,14 @@ set -e
 set -x
 cd pdns-recursor-$1
 export DEBFULLNAME="PowerDNS.COM BV"
-dh_make -e powerdns.support@powerdns.com -s -f ../pdns-recursor-$1.tar.bz2 -p pdns-recursor_0.0-$1 < /dev/null
+if echo $1 | grep -q ^git
+then
+       DEBPKGNAME=pdns-recursor_0.0-$1
+else
+       DEBPKGNAME=pdns-recursor_$1
+fi
+
+dh_make -e powerdns.support@powerdns.com -s -f ../pdns-recursor-$1.tar.bz2 -p $DEBPKGNAME < /dev/null
 cp pdns-recursor.init.d debian/init.d
 #[ -e debian/control ] || dh_make -e powerdns.support@powerdns.com -s -r cdbs  -f ../pdns-recursor-$1.tar.bz2  < /dev/null
 perl -i -pe 's/Description: <.*>/Description: extremely powerful and versatile recursing nameserver/' debian/control