]> granicus.if.org Git - pdns/commitdiff
Update version numbering from dnsdist
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 21 May 2015 14:48:21 +0000 (16:48 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 25 May 2015 16:49:55 +0000 (18:49 +0200)
build-scripts/build-dnsdist-debian
build-scripts/build-dnsdist-rpm

index 14d734decde66317c054d6228cff1ebc221e5a5c..bb325af348ea29ee1a65c57b780b4b33d933fc8a 100755 (executable)
@@ -14,6 +14,11 @@ if [ -z "$DISTDIR" ]; then
   DISTDIR='pdns/dnsdistdist'
 fi
 
+if [ -z "$RELEASE" ];then
+  echo 'Please set $RELEASE' >&2
+  exit 1
+fi
+
 set -e
 set -x
 
@@ -23,7 +28,7 @@ cp -r build-scripts/debian-dnsdist $DISTDIR/debian
 cd $DISTDIR
 
 cat > debian/changelog << EOF
-dnsdist (${VERSION}-1) unstable; urgency=medium
+dnsdist (${VERSION}-${RELEASE}) unstable; urgency=medium
 
   * Automatic build
 
index ff3834253086897a054b42e2548afe8a55c05d10..60dfef3ff65b18c766505c5fdc43442255fc5328 100755 (executable)
@@ -10,6 +10,11 @@ if [ -z "$VERSION" ]; then
   exit 1
 fi
 
+if [ -z "$RELEASE" ];then
+  echo 'Please set $RELEASE' >&2
+  exit 1
+fi
+
 set -e
 set -x
 
@@ -24,7 +29,6 @@ else
   exit 1
 fi
 
-DIST=''
 
 # libsodium is not available on all RPM platforms (like CentOS 7)
 SODIUM_BUILDREQUIRES=''
@@ -51,7 +55,6 @@ if [ -f /etc/redhat-release ]; then
     Fedora\ *\ 21*)
       SODIUM_BUILDREQUIRES='BuildRequires: libsodium-devel'
       SODIUM_CONFIGURE='--enable-libsodium'
-      DIST='.fc21'
       ;;
     CentOS\ *\ 6*)
       INIT_BUILDREQUIRES=''
@@ -59,10 +62,8 @@ if [ -f /etc/redhat-release ]; then
       INIT_FILES='%{_initrddir}/dnsdist'
       SETUP='%setup -n %{name}-%{version}'
       RPMBUILD_COMMAND="scl enable devtoolset-2 -- ${RPMBUILD_COMMAND}"
-      DIST='.el6'
       ;;
     CentOS\ Linux\ *\ 7*)
-      DIST='.el7'
       ;;
     *)
       echo "No support for $OS (yet?)"
@@ -75,7 +76,7 @@ fi
 cat > dnsdist.spec << EOF
 Name: dnsdist
 Version: ${VERSION}
-Release: 1${DIST}
+Release: ${RELEASE}
 Summary: Powerful and scriptable DNS loadbalancer
 License: GPLv2
 Vendor: PowerDNS.COM BV
@@ -118,4 +119,4 @@ EOF
 
 ${RPMBUILD_COMMAND}
 
-mv $HOME/rpmbuild/RPMS/x86_64/dnsdist-${VERSION}-1${DIST}.x86_64.rpm .
+mv $HOME/rpmbuild/RPMS/x86_64/dnsdist-${VERSION}-${RELEASE}.x86_64.rpm .