]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Finished merge of rt43236 (build bind9 from git repo)
authorFrancis Dupont <fdupont@isc.org>
Wed, 28 Sep 2016 13:51:30 +0000 (15:51 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 28 Sep 2016 13:51:30 +0000 (15:51 +0200)
RELNOTES
configure
configure.ac
util/Makefile.bind.in
util/bind.sh

index e4d6eb8832da821f50ec10ffc6b32590756e3bb9..c7f588802e1fb6f6f7d98bb4b77f0127f0f3f920 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -94,6 +94,15 @@ by Eric Young (eay@cryptsoft.com).
   Soto from BlueCat Networks for reporting the issue and supplying a patch.
   [ISC-Bugs #43262]
 
+- Added the support for git repositories in the util/bind.sh script.
+  When you build ISC DHCP from a git repo, i.e., without a "bind"
+  directory populated as in the release distribution file, you may now
+  create the bind directory, change to it and clone the private
+  (repo.isc.org/proj/git/prod/bind9.git) or the public
+  (https://source.isc.org/git/bind9.git) git repository into
+  bind/bind9 and then invoke the util/bind.sh script as usual.
+  [ISC-Bugs #43236]
+
                        Changes since 4.3.0 (bug fixes)
 
 - Tidy up several small tickets.
index 903354345c510c94db9b94898a45199e05413b77..bb7c6b884653bd790fe852febbcc86443a53f6ca 100755 (executable)
--- a/configure
+++ b/configure
@@ -627,7 +627,7 @@ LTLIBOBJS
 LIBOBJS
 LDAP_CFLAGS
 LDAP_LIBS
-BINDVERSION
+BINDBUILD
 BINDBIND
 BINDSRCDIR
 BINDDIR
@@ -6910,7 +6910,7 @@ fi
 BINDDIR=
 BINDSRCDIR=
 BINDBIND=
-BINDVERSION=
+BINDBUILD=
 
 # Check whether --with-libbind was given.
 if test "${with_libbind+set}" = set; then :
@@ -6926,16 +6926,21 @@ yes)
 no)
        BINDDIR="\${top_srcdir}/bind"
        BINDSRCDIR="\${top_srcdir}/bind"
+       my_abs_srcdir=`cd $srcdir && pwd`
+       BINDBIND="${my_abs_srcdir}/bind"
        if test ! -d "$srcdir/bind"; then
                as_fn_error $? "Where to find or build bind includes and libraries must be specified" "$LINENO" 5
        fi
-       if test ! -f "$srcdir/bind/version.tmp"; then
-               as_fn_error $? "Cannot find $srcdir/bind/version.tmp" "$LINENO" 5
+       if test -d "$srcdir/bind/bind9"; then
+               BINDBUILD="${my_abs_srcdir}/bind/bind9"
+       else
+               if test ! -f "$srcdir/bind/version.tmp"; then
+                       as_fn_error $? "Cannot find $srcdir/bind/version.tmp" "$LINENO" 5
+               fi
+               . "$srcdir/bind/version.tmp"
+               bindversion=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
+               BINDBUILD="${my_abs_srcdir}/bind/bind-$bindversion"
        fi
-       my_abs_srcdir=`cd $srcdir && pwd`
-       BINDBIND="${my_abs_srcdir}/bind"
-       . "$srcdir/bind/version.tmp"
-       BINDVERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
        ac_config_files="$ac_config_files $srcdir/bind/Makefile"
 
        ;;
index c819eeb7b4a6080b35f11b4441ded09c42e20eec..f5345550b93af95d1253890b24c6c2a715d009a4 100644 (file)
@@ -735,7 +735,7 @@ AC_CHECK_MEMBER(struct tpacket_auxdata.tp_vlan_tci,
 BINDDIR=
 BINDSRCDIR=
 BINDBIND=
-BINDVERSION=
+BINDBUILD=
 AC_ARG_WITH(libbind,
        AS_HELP_STRING([--with-libbind=PATH],[bind includes and libraries are in PATH]),
        use_libbind="$withval", use_libbind="no")
@@ -746,16 +746,21 @@ yes)
 no)
        BINDDIR="\${top_srcdir}/bind"
        BINDSRCDIR="\${top_srcdir}/bind"
+       my_abs_srcdir=`cd $srcdir && pwd`
+       BINDBIND="${my_abs_srcdir}/bind"
        if test ! -d "$srcdir/bind"; then
                AC_MSG_ERROR([Where to find or build bind includes and libraries must be specified])
        fi
-       if test ! -f "$srcdir/bind/version.tmp"; then
-               AC_MSG_ERROR([Cannot find $srcdir/bind/version.tmp])
+       if test -d "$srcdir/bind/bind9"; then
+               BINDBUILD="${my_abs_srcdir}/bind/bind9"
+       else
+               if test ! -f "$srcdir/bind/version.tmp"; then
+                       AC_MSG_ERROR([Cannot find $srcdir/bind/version.tmp])
+               fi
+               . "$srcdir/bind/version.tmp"
+               bindversion=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
+               BINDBUILD="${my_abs_srcdir}/bind/bind-$bindversion"
        fi
-       my_abs_srcdir=`cd $srcdir && pwd`
-       BINDBIND="${my_abs_srcdir}/bind"
-       . "$srcdir/bind/version.tmp"
-       BINDVERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
        AC_CONFIG_FILES([$srcdir/bind/Makefile])
        ;;
 *)
@@ -774,7 +779,7 @@ esac
 AC_SUBST(BINDDIR)
 AC_SUBST(BINDSRCDIR)
 AC_SUBST(BINDBIND)
-AC_SUBST(BINDVERSION)
+AC_SUBST(BINDBUILD)
 
 # OpenLDAP support.
 AC_ARG_WITH(ldap,
index eb500d5c4bd00db8d9f234aecbe7c071e3acf403..95880347ae5472a9a21e6a30d7fdd8b34d6cb31f 100644 (file)
@@ -16,8 +16,7 @@
 # Configure and build the bind libraries for use by DHCP
 
 binddir=@BINDBIND@
-version=@BINDVERSION@
-bindsrcdir=bind-${version}
+bindsrcdir=@BINDBUILD@
 
 bindconfig = --without-openssl --without-libxml2 \
        --without-gssapi --disable-threads \
index f1ceaa503e0a74c3ad7a6426fb549867b3908921..54f5778a1a71b121bd6e1f18df956aa4a8080d24 100644 (file)
@@ -27,7 +27,7 @@
 
 topdir=`pwd`
 binddir=$topdir/bind
-remote=--remote=cvs.isc.org:/proj/git/prod/bind9.git
+remote=--remote=repo.isc.org:/proj/git/prod/bind9.git
 
 case "${1:-}" in
 --remote=*)
@@ -97,34 +97,44 @@ case $# in
        ;;
 esac
 
-# Delete all previous bind stuff
-rm -rf bind
+if test -d bind/bind9/.git
+then
+       cp util/Makefile.bind.in bind/Makefile.in
+       rm -rf bind/include bind/lib
+       cd bind/bind9
+       test -f Makefile && make distclean
+       git fetch
+       git checkout $BINDTAG && test -n "${noSNAP}" && \
+           git merge --ff-only HEAD
+else
+       # Delete all previous bind stuff
+       rm -rf bind
 
-# Make and move to our directory for all things bind
-mkdir $binddir
-cp util/Makefile.bind.in bind/Makefile.in
-cd $binddir
+       # Make and move to our directory for all things bind
+       mkdir $binddir
+       cp util/Makefile.bind.in bind/Makefile.in
+       cd $binddir
 
-# Get the bind version file and move it to version.tmp
-git archive --format tar $remote $BINDTAG version | tar xf -
-mv version version.tmp
+       # Get the bind version file and move it to version.tmp
+       git archive --format tar $remote $BINDTAG version | tar xf -
+       mv version version.tmp
 
-# Get the bind release kit shell script
-git archive --format tar $remote master:util/ | tar xf - kit.sh
+       # Get the bind release kit shell script
+       git archive --format tar $remote master:util/ | tar xf - kit.sh
 
-# Create the bind tarball, which has the side effect of
-# setting up the bind directory we will use for building
-# the export libraries
-echo Creating tarball for $BINDTAG
-sh kit.sh $remote $SNAP $BINDTAG $binddir
+       # Create the bind tarball, which has the side effect of
+       # setting up the bind directory we will use for building
+       # the export libraries
+       echo Creating tarball for $BINDTAG
+       sh kit.sh $remote $SNAP $BINDTAG $binddir
 
-. ./version.tmp
+       . ./version.tmp
 
-version=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
-bindsrcdir=bind-$version
-mm=${MAJORVER}.${MINORVER}
-
-# move the tar file to a known place for use by the make dist command
-echo Moving tar file to bind.tar.gz for distribution
-mv bind-${mm}*.tar.gz bind.tar.gz
+       version=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
+       bindsrcdir=bind-$version
+       mm=${MAJORVER}.${MINORVER}
 
+       # move the tar file to a known place for use by the make dist command
+       echo Moving tar file to bind.tar.gz for distribution
+       mv bind-${mm}*.tar.gz bind.tar.gz
+fi