From 5c5e149ad4d68cc243985db0e9bde251186a67ff Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 9 Apr 2015 14:47:05 +0200 Subject: [PATCH] Move {dist,build}-recursor to buildscripts/ And make travis aware of the new dist-recursor location --- .travis.yml | 5 +++-- {pdns => build-scripts}/build-recursor | 6 +++--- {pdns => build-scripts}/dist-recursor | 15 ++++++++++----- 3 files changed, 16 insertions(+), 10 deletions(-) rename {pdns => build-scripts}/build-recursor (88%) rename {pdns => build-scripts}/dist-recursor (92%) diff --git a/.travis.yml b/.travis.yml index 52758a45c..1f9f29c0f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -106,8 +106,9 @@ script: - cd pdns - make -k -j 4 pdns_recursor - rm -f pdns_recursor - - ./dist-recursor - - cd pdns-recursor-*/ + - cd .. + - ./build-scripts/dist-recursor + - cd pdns/pdns-recursor-*/ - ./configure - make -k -j 4 - cd .. diff --git a/pdns/build-recursor b/build-scripts/build-recursor similarity index 88% rename from pdns/build-recursor rename to build-scripts/build-recursor index 80888cb0c..5d4b22ca4 100755 --- a/pdns/build-recursor +++ b/build-scripts/build-recursor @@ -2,19 +2,19 @@ set -e set -x -if [ -z "$1" ]; then +if [ -z "$VERSION" ]; then VERSION=$(git describe --always --dirty=+ 2>/dev/null || true) if [ -z "$VERSION" ]; then VERSION="UNKNOWN" else VERSION="git-"$VERSION fi - DIST_HOST="$(id -u -n)@$(hostname -f 2>/dev/null || hostname 2>/dev/null || echo localhost)" else VERSION=$1 fi -cd pdns-recursor-$VERSION +DIST_HOST="$(id -u -n)@$(hostname -f 2>/dev/null || hostname 2>/dev/null || echo localhost)" + export DEBFULLNAME="PowerDNS.COM BV" DEBPKGNAME=pdns-recursor_$VERSION diff --git a/pdns/dist-recursor b/build-scripts/dist-recursor similarity index 92% rename from pdns/dist-recursor rename to build-scripts/dist-recursor index 6e085bbf3..e719e41df 100755 --- a/pdns/dist-recursor +++ b/build-scripts/dist-recursor @@ -2,16 +2,19 @@ set -e +if [ "$0" != "./build-scripts/dist-recursor" ]; then + echo "Please run me from the root checkout dir" + exit 1 +fi + +cd pdns + ragel dnslabeltext.rl -o dnslabeltext.cc cd ../docs pandoc -s -t man manpages/pdns_recursor.1.md -o pdns_recursor.1 pandoc -s -t man manpages/rec_control.1.md -o rec_control.1 cd - -## The following lines will be patched by set-version-recursor. -VERSION="" -DIST_HOST="" -## End patch area. if [ -z "$VERSION" ]; then VERSION=$(git describe --always --dirty=+ 2>/dev/null || true) @@ -20,9 +23,10 @@ if [ -z "$VERSION" ]; then else VERSION="git-"$VERSION fi - DIST_HOST="$(id -u -n)@$(hostname -f 2>/dev/null || hostname 2>/dev/null || echo localhost)" fi +DIST_HOST="$(id -u -n)@$(hostname -f 2>/dev/null || hostname 2>/dev/null || echo localhost)" + INCLUDES="iputils.hh arguments.hh base64.hh zoneparser-tng.hh \ rcpgenerator.hh lock.hh dnswriter.hh dnsrecords.hh dnsparser.hh utility.hh \ recursor_cache.hh rec_channel.hh qtype.hh misc.hh dns.hh syncres.hh \ @@ -77,6 +81,7 @@ cp powerdns-example-script.lua $DIRNAME mkdir -p $DIRNAME/contrib cp ../contrib/systemd-pdns-recursor.service $DIRNAME/contrib mkdir -p $DIRNAME/build-scripts/redhat +cp ../build-scripts/build-recursor $DIRNAME/build-scripts cp ../build-scripts/redhat/pdns-recursor-test.spec $DIRNAME/build-scripts/redhat cp pdns-recursor.spec $DIRNAME -- 2.40.0