]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add buildscript for the recursor on debian
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 17 Apr 2015 16:34:33 +0000 (18:34 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 10 Jun 2015 07:44:01 +0000 (09:44 +0200)
build-scripts/build-recursor-debian [new file with mode: 0755]

diff --git a/build-scripts/build-recursor-debian b/build-scripts/build-recursor-debian
new file mode 100755 (executable)
index 0000000..3fc56ca
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+if [ "$0" != "./build-scripts/build-recursor-debian" ]; then
+  echo "Please run me from the root checkout dir" >&2
+  exit 1
+fi
+
+if [ -z "$VERSION" ]; then
+  echo 'Please set $VERSION' >&2
+  exit 1
+fi
+
+if [ -z "$RELEASE" ];then
+  echo 'Please set $RELEASE' >&2
+  exit 1
+fi
+
+if [ -z "$DISTDIR" ]; then
+  echo 'Please set $DISTDIR to the directory where pdns-recursor.tar.gz was unpacked' >&2
+  exit 1
+fi
+
+set -e
+set -x
+
+rm -rf $DISTDIR/debian
+cp -r build-scripts/debian-recursor $DISTDIR/debian
+cat > $DISTDIR/debian/changelog << EOF
+pdns-recursor (${VERSION}-${RELEASE}) unstable; urgency=medium
+
+  * Automatic build
+
+ -- PowerDNS.COM AutoBuilder <noreply@powerdns.com>  $(date -R)
+
+EOF
+
+cd $DISTDIR
+
+fakeroot debian/rules binary