From: Pieter Lexis Date: Fri, 17 Apr 2015 16:34:33 +0000 (+0200) Subject: Add buildscript for the recursor on debian X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~78^2~9^2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1808869a397fbd7756c0e6c2330f13658ac7fbdf;p=thirdparty%2Fpdns.git Add buildscript for the recursor on debian --- diff --git a/build-scripts/build-recursor-debian b/build-scripts/build-recursor-debian new file mode 100755 index 0000000000..3fc56ca741 --- /dev/null +++ b/build-scripts/build-recursor-debian @@ -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 $(date -R) + +EOF + +cd $DISTDIR + +fakeroot debian/rules binary