2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-01 14:55:30 +00:00

Rebased rt43215 to rt43215a

This commit is contained in:
Francis Dupont
2016-09-30 09:43:58 +02:00
parent e7aefac332
commit ae91e4dbd5
5 changed files with 38 additions and 73 deletions

22
configure vendored
View File

@@ -651,8 +651,6 @@ RANLIB
EGREP EGREP
GREP GREP
CPP CPP
CROSS_COMPILING_FALSE
CROSS_COMPILING_TRUE
BINDCONFIG BINDCONFIG
am__fastdepCC_FALSE am__fastdepCC_FALSE
am__fastdepCC_TRUE am__fastdepCC_TRUE
@@ -4504,14 +4502,6 @@ do
esac esac
done done
if test "$cross_compiling" = "yes"; then
CROSS_COMPILING_TRUE=
CROSS_COMPILING_FALSE='#'
else
CROSS_COMPILING_TRUE='#'
CROSS_COMPILING_FALSE=
fi
# POSIX doesn't include the IPv6 Advanced Socket API and glibc hides # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
# parts of the IPv6 Advanced Socket API as a result. This is stupid # parts of the IPv6 Advanced Socket API as a result. This is stupid
@@ -6949,10 +6939,10 @@ no)
ac_config_files="$ac_config_files $srcdir/bind/Makefile" ac_config_files="$ac_config_files $srcdir/bind/Makefile"
BINDLIBIRSDIR="$BINDSRCDIR/lib/export/irs" BINDLIBIRSDIR="$BINDSRCDIR/lib/irs"
BINDLIBDNSDIR="$BINDSRCDIR/lib/export/dns" BINDLIBDNSDIR="$BINDSRCDIR/lib/dns"
BINDLIBISCCFGDIR="$BINDSRCDIR/lib/export/isccfg" BINDLIBISCCFGDIR="$BINDSRCDIR/lib/isccfg"
BINDLIBISCDIR="$BINDSRCDIR/lib/export/isc" BINDLIBISCDIR="$BINDSRCDIR/lib/isc"
;; ;;
*) *)
if test ! -d "$use_libbind"; then if test ! -d "$use_libbind"; then
@@ -7499,10 +7489,6 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi fi
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then
as_fn_error $? "conditional \"BIND_ATF\" was never defined. as_fn_error $? "conditional \"BIND_ATF\" was never defined.

View File

@@ -51,7 +51,6 @@ do
esac esac
done done
AC_SUBST(BINDCONFIG) AC_SUBST(BINDCONFIG)
AM_CONDITIONAL(CROSS_COMPILING, test "$cross_compiling" = "yes")
# POSIX doesn't include the IPv6 Advanced Socket API and glibc hides # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
# parts of the IPv6 Advanced Socket API as a result. This is stupid # parts of the IPv6 Advanced Socket API as a result. This is stupid
@@ -765,10 +764,10 @@ no)
fi fi
AC_CONFIG_FILES([$srcdir/bind/Makefile]) AC_CONFIG_FILES([$srcdir/bind/Makefile])
BINDLIBIRSDIR="$BINDSRCDIR/lib/export/irs" BINDLIBIRSDIR="$BINDSRCDIR/lib/irs"
BINDLIBDNSDIR="$BINDSRCDIR/lib/export/dns" BINDLIBDNSDIR="$BINDSRCDIR/lib/dns"
BINDLIBISCCFGDIR="$BINDSRCDIR/lib/export/isccfg" BINDLIBISCCFGDIR="$BINDSRCDIR/lib/isccfg"
BINDLIBISCDIR="$BINDSRCDIR/lib/export/isc" BINDLIBISCDIR="$BINDSRCDIR/lib/isc"
;; ;;
*) *)
if test ! -d "$use_libbind"; then if test ! -d "$use_libbind"; then

View File

@@ -22,7 +22,7 @@
*/ */
/*Trying to figure out what we need to define to get things to work. /*Trying to figure out what we need to define to get things to work.
It looks like we want/need the export library but need the fdwatchcommand It looks like we want/need the library but need the fdwatchcommand
which may be a problem */ which may be a problem */
#include "dhcpd.h" #include "dhcpd.h"
@@ -195,6 +195,11 @@ dhcp_context_create(int flags,
* broken connections to fail gracefully with EPIPE on writes */ * broken connections to fail gracefully with EPIPE on writes */
handle_signal(SIGPIPE, SIG_IGN); handle_signal(SIGPIPE, SIG_IGN);
/* Reset handlers installed by isc_app_ctxstart()
* to default for control-c and kill */
handle_signal(SIGINT, SIG_DFL);
handle_signal(SIGTERM, SIG_DFL);
result = isc_taskmgr_createinctx(dhcp_gbl_ctx.mctx, result = isc_taskmgr_createinctx(dhcp_gbl_ctx.mctx,
dhcp_gbl_ctx.actx, dhcp_gbl_ctx.actx,
1, 0, 1, 0,

View File

@@ -18,15 +18,13 @@
binddir=@BINDDIR@ binddir=@BINDDIR@
bindsrcdir=@BINDSRCDIR@ bindsrcdir=@BINDSRCDIR@
bindconfig = --without-openssl --without-libxml2 \ bindconfig = --without-openssl --without-libxml2 --without-libjson \
--without-gssapi --disable-threads \ --without-gssapi --disable-threads \
--enable-exportlib \ --prefix=${binddir} \
--with-export-includedir=${binddir}/include \
--with-export-libdir=${binddir}/lib \
@BINDIOMUX@ @BINDCONFIG@ --enable-full-report @BINDIOMUX@ @BINDCONFIG@ --enable-full-report
@BIND_ATF_FALSE@cleandirs = ./lib ./include @BIND_ATF_FALSE@cleandirs = ./lib ./include ./share
@BIND_ATF_TRUE@cleandirs = ./lib ./include ./atf @BIND_ATF_TRUE@cleandirs = ./lib ./include /share ./atf
cleanfiles = ./configure.log ./build.log ./install.log cleanfiles = ./configure.log ./build.log ./install.log
@BIND_ATF_FALSE@all: bind1 bind2 @BIND_ATF_FALSE@all: bind1 bind2
@@ -40,16 +38,16 @@ bind1:
gunzip -c bind.tar.gz | tar xf - ; \ gunzip -c bind.tar.gz | tar xf - ; \
fi fi
# Configure the export libraries # Configure the libraries
# Currently disable the epoll, devpoll and kqueue options as they # Currently disable the epoll, devpoll and kqueue options as they
# don't interact well with the DHCP code. # don't interact well with the DHCP code.
# If the top-level Bind Makefile exists we skip the configuration step # 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 # as we assume it's done and won't change. Doing a make clean will
# reset things if necessary. # reset things if necessary.
@if test -f ${bindsrcdir}/Makefile ; then \ @if test -f ${bindsrcdir}/Makefile ; then \
echo Bind export libraries already configured ; \ echo Bind libraries already configured ; \
else \ else \
echo Configuring BIND Export libraries for DHCP. ; \ echo Configuring BIND libraries for DHCP. ; \
rm -rf ${cleandirs} ${cleanfiles} ; \ rm -rf ${cleandirs} ${cleanfiles} ; \
(cd ${bindsrcdir} && \ (cd ${bindsrcdir} && \
./configure ${bindconfig} > ${binddir}/configure.log); \ ./configure ${bindconfig} > ${binddir}/configure.log); \
@@ -66,46 +64,24 @@ atf:
cp -rp atf ${binddir}) ; \ cp -rp atf ${binddir}) ; \
fi fi
@CROSS_COMPILING_FALSE@bind2: bind2-noguest bind2:
@CROSS_COMPILING_TRUE@bind2: bind2-hostgen # Build and install the libraries
bind2-noguest:
# Build and install the export libraries
# No need to do anything if we already have something installed. # No need to do anything if we already have something installed.
@if test -d ${binddir}/lib ; then \ @if test -d ${binddir}/lib ; then \
echo Bind export libraries already installed ; \ echo Bind libraries already installed ; \
else \ else \
echo Building BIND Export libraries - this takes some time. ;\ echo Building BIND libraries - this takes some time. ; \
(cd ${bindsrcdir}/lib/export ; \ (cd ${bindsrcdir}/lib ; \
echo building in `pwd` ; \ echo building in `pwd` ; \
$(MAKE) >> ${binddir}/build.log) ; \ $(MAKE) >> ${binddir}/build.log) ; \
\ \
echo Installing BIND Export libraries to ${binddir}. ; \ echo Installing BIND libraries to ${binddir}. ; \
(cd ${bindsrcdir}/lib/export ; \ (cd ${bindsrcdir}/lib ; \
$(MAKE) install > ${binddir}/install.log) ; \ $(MAKE) install > ${binddir}/install.log) ; \
fi
bind2-hostgen:
# 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/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) ; \
fi fi
clean: clean:
@echo Cleaning BIND export library. @echo Cleaning BIND library.
rm -rf ${bindsrcdir} ${cleandirs} ${cleanfiles} rm -rf ${bindsrcdir} ${cleandirs} ${cleanfiles}
# Include the following so that this Makefile is happy when the parent # Include the following so that this Makefile is happy when the parent

View File

@@ -51,9 +51,8 @@ case $# in
### ###
v4_2) noSNAP=snapshot BINDTAG=v9_9 ;; v4_2) noSNAP=snapshot BINDTAG=v9_9 ;;
v4_3) noSNAP=snapshot BINDTAG=v9_9 ;; v4_3) noSNAP=snapshot BINDTAG=v9_9 ;;
### change to using the head of v9_9 until we upgrade DHCP v4_4) noSNAP=snapshot BINDTAG=v9_11 ;;
### to use shared libraries HEAD|v[0-9]_[0-9].*) noSNAP=snapshot BINDTAG=v9_11 ;;
HEAD|v[0-9]_[0-9].*) noSNAP=snapshot BINDTAG=v9_9 ;;
### HEAD|v[0-9]_[0-9].*) noSNAP=snapshot BINDTAG=HEAD ;; ### HEAD|v[0-9]_[0-9].*) noSNAP=snapshot BINDTAG=HEAD ;;
### ###
### For ease of use, this records the sticky tag of versions ### 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 # Create the bind tarball, which has the side effect of
# setting up the bind directory we will use for building # setting up the bind directory we will use for building
# the export libraries # the libraries
echo Creating tarball for $BINDTAG echo Creating tarball for $BINDTAG
sh kit.sh $remote $SNAP $BINDTAG $binddir sh kit.sh $remote $SNAP $BINDTAG $binddir