summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2016-09-30 09:43:58 +0200
committerFrancis Dupont <fdupont@isc.org>2016-09-30 09:43:58 +0200
commitae91e4dbd5b9e2783ffc5c642c230f76565206dc (patch)
tree658c552a3fc54a49f142e3d50a0ce891d72a1fbd /util
parente7aefac332153cb4c70a314997e3e1d6bee8cc75 (diff)
downloadisc-dhcp-ae91e4dbd5b9e2783ffc5c642c230f76565206dc.tar.gz
Rebased rt43215 to rt43215a
Diffstat (limited to 'util')
-rw-r--r--util/Makefile.bind.in66
-rw-r--r--util/bind.sh7
2 files changed, 24 insertions, 49 deletions
diff --git a/util/Makefile.bind.in b/util/Makefile.bind.in
index 7e127e18..47711db9 100644
--- a/util/Makefile.bind.in
+++ b/util/Makefile.bind.in
@@ -18,15 +18,13 @@
binddir=@BINDDIR@
bindsrcdir=@BINDSRCDIR@
-bindconfig = --without-openssl --without-libxml2 \
+bindconfig = --without-openssl --without-libxml2 --without-libjson \
--without-gssapi --disable-threads \
- --enable-exportlib \
- --with-export-includedir=${binddir}/include \
- --with-export-libdir=${binddir}/lib \
+ --prefix=${binddir} \
@BINDIOMUX@ @BINDCONFIG@ --enable-full-report
-@BIND_ATF_FALSE@cleandirs = ./lib ./include
-@BIND_ATF_TRUE@cleandirs = ./lib ./include ./atf
+@BIND_ATF_FALSE@cleandirs = ./lib ./include ./share
+@BIND_ATF_TRUE@cleandirs = ./lib ./include /share ./atf
cleanfiles = ./configure.log ./build.log ./install.log
@BIND_ATF_FALSE@all: bind1 bind2
@@ -40,16 +38,16 @@ bind1:
gunzip -c bind.tar.gz | tar xf - ; \
fi
-# Configure the export libraries
+# Configure the libraries
# Currently disable the epoll, devpoll and kqueue options as they
# don't interact well with the DHCP code.
# If the top-level Bind Makefile exists we skip the configuration step
# as we assume it's done and won't change. Doing a make clean will
# reset things if necessary.
@if test -f ${bindsrcdir}/Makefile ; then \
- echo Bind export libraries already configured ; \
+ echo Bind libraries already configured ; \
else \
- echo Configuring BIND Export libraries for DHCP. ; \
+ echo Configuring BIND libraries for DHCP. ; \
rm -rf ${cleandirs} ${cleanfiles} ; \
(cd ${bindsrcdir} && \
./configure ${bindconfig} > ${binddir}/configure.log); \
@@ -66,46 +64,24 @@ atf:
cp -rp atf ${binddir}) ; \
fi
-@CROSS_COMPILING_FALSE@bind2: bind2-noguest
-@CROSS_COMPILING_TRUE@bind2: bind2-hostgen
-
-bind2-noguest:
-# Build and install the export libraries
-# No need to do anything if we already have something installed.
- @if test -d ${binddir}/lib ; then \
- echo Bind export libraries already installed ; \
- else \
- echo Building BIND Export libraries - this takes some time. ;\
- (cd ${bindsrcdir}/lib/export ; \
- echo building in `pwd` ; \
- $(MAKE) >> ${binddir}/build.log) ; \
- \
- echo Installing BIND Export libraries to ${binddir}. ; \
- (cd ${bindsrcdir}/lib/export ; \
- $(MAKE) install > ${binddir}/install.log) ; \
- fi
-
-bind2-hostgen:
-# Build and install the export libraries
+bind2:
+# Build and install the libraries
# No need to do anything if we already have something installed.
- @if test -d ${binddir}/lib ; then \
- echo Bind export libraries already installed ; \
- else \
- echo Building BIND Export libraries - this takes some time. ;\
- (cd ${bindsrcdir}/lib/export/dns ; \
- echo building gen using ${BUILD_CC} in `pwd` ; \
- $(MAKE) CC=${BUILD_CC} CFLAGS=${BUILD_CFLAGS} CPPFLAGS=${BUILD_CPPFLAGS} LDFLAGS=${BUILD_LDFLAGS} LIBS=${BUILD_LIBS} gen >> ${binddir}/build.log) ; \
- (cd ${bindsrcdir}/lib/export ; \
- echo building in `pwd` ; \
- $(MAKE) >> ${binddir}/build.log) ; \
- \
- echo Installing BIND Export libraries to ${binddir}. ; \
- (cd ${bindsrcdir}/lib/export ; \
- $(MAKE) install > ${binddir}/install.log) ; \
+ @if test -d ${binddir}/lib ; then \
+ echo Bind libraries already installed ; \
+ else \
+ echo Building BIND libraries - this takes some time. ; \
+ (cd ${bindsrcdir}/lib ; \
+ echo building in `pwd` ; \
+ $(MAKE) >> ${binddir}/build.log) ; \
+ \
+ echo Installing BIND libraries to ${binddir}. ; \
+ (cd ${bindsrcdir}/lib ; \
+ $(MAKE) install > ${binddir}/install.log) ; \
fi
clean:
- @echo Cleaning BIND export library.
+ @echo Cleaning BIND library.
rm -rf ${bindsrcdir} ${cleandirs} ${cleanfiles}
# Include the following so that this Makefile is happy when the parent
diff --git a/util/bind.sh b/util/bind.sh
index 54f5778a..75b8dd5e 100644
--- a/util/bind.sh
+++ b/util/bind.sh
@@ -51,9 +51,8 @@ case $# in
###
v4_2) noSNAP=snapshot BINDTAG=v9_9 ;;
v4_3) noSNAP=snapshot BINDTAG=v9_9 ;;
- ### change to using the head of v9_9 until we upgrade DHCP
- ### to use shared libraries
- HEAD|v[0-9]_[0-9].*) noSNAP=snapshot BINDTAG=v9_9 ;;
+ v4_4) noSNAP=snapshot BINDTAG=v9_11 ;;
+ HEAD|v[0-9]_[0-9].*) noSNAP=snapshot BINDTAG=v9_11 ;;
### HEAD|v[0-9]_[0-9].*) noSNAP=snapshot BINDTAG=HEAD ;;
###
### For ease of use, this records the sticky tag of versions
@@ -124,7 +123,7 @@ else
# Create the bind tarball, which has the side effect of
# setting up the bind directory we will use for building
- # the export libraries
+ # the libraries
echo Creating tarball for $BINDTAG
sh kit.sh $remote $SNAP $BINDTAG $binddir