| |
@@ -1,151 +1,254 @@
|
| |
- diff -up dhcp-4.3.5b1/client/Makefile.am.remove-bind dhcp-4.3.5b1/client/Makefile.am
|
| |
- --- dhcp-4.3.5b1/client/Makefile.am.remove-bind 2016-08-26 20:19:53.000000000 +0200
|
| |
- +++ dhcp-4.3.5b1/client/Makefile.am 2016-09-12 17:00:22.797902248 +0200
|
| |
- @@ -4,8 +4,6 @@
|
| |
+ From 2698385647a6ebd58b5d25147333e494c3da2409 Mon Sep 17 00:00:00 2001
|
| |
+ From: Petr Mensik <pemensik@redhat.com>
|
| |
+ Date: Fri, 9 Feb 2018 15:24:53 +0100
|
| |
+ Subject: [PATCH] Support for isc-config.sh script on --with-libbind parameter
|
| |
+
|
| |
+ Move checks only to isc-config section
|
| |
+
|
| |
+ Fix detection of bind flags from config
|
| |
+
|
| |
+ Add support for with-libbind=config, Improve help message
|
| |
+ ---
|
| |
+ client/Makefile.am | 5 ++-
|
| |
+ client/tests/Makefile.am | 8 ++---
|
| |
+ common/tests/Makefile.am | 14 +++-----
|
| |
+ configure.ac | 84 ++++++++++++++++++++++++++++++++++++++++++------
|
| |
+ dhcpctl/Makefile.am | 8 ++---
|
| |
+ omapip/Makefile.am | 5 ++-
|
| |
+ relay/Makefile.am | 5 ++-
|
| |
+ server/Makefile.am | 6 ++--
|
| |
+ server/tests/Makefile.am | 9 +++---
|
| |
+ 9 files changed, 98 insertions(+), 46 deletions(-)
|
| |
+
|
| |
+ diff --git a/client/Makefile.am b/client/Makefile.am
|
| |
+ index 2cb83d8..b85f5d2 100644
|
| |
+ --- a/client/Makefile.am
|
| |
+ +++ b/client/Makefile.am
|
| |
+ @@ -4,7 +4,7 @@
|
| |
# production code. Sadly, we are not there yet.
|
| |
SUBDIRS = . tests
|
| |
|
| |
-BINDLIBDIR = @BINDDIR@/lib
|
| |
- -
|
| |
+ +BIND_LIBS = @BIND_LIBS@
|
| |
+
|
| |
AM_CPPFLAGS = -DCLIENT_PATH='"PATH=$(sbindir):/sbin:/bin:/usr/sbin:/usr/bin"' \
|
| |
-DLOCALSTATEDIR='"$(localstatedir)"'
|
| |
-
|
| |
- @@ -15,7 +13,7 @@ dhclient_SOURCES = clparse.c dhclient.c
|
| |
+ @@ -15,7 +15,6 @@ dhclient_SOURCES = clparse.c dhclient.c dhc6.c \
|
| |
scripts/bsdos scripts/freebsd scripts/linux scripts/macos \
|
| |
scripts/netbsd scripts/nextstep scripts/openbsd \
|
| |
scripts/solaris scripts/openwrt
|
| |
-dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
|
| |
- $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
|
| |
- +dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
|
| |
- + $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-export
|
| |
+ +dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a $(BIND_LIBS)
|
| |
man_MANS = dhclient.8 dhclient-script.8 dhclient.conf.5 dhclient.leases.5
|
| |
EXTRA_DIST = $(man_MANS)
|
| |
- diff -up dhcp-4.3.5b1/common/tests/Makefile.am.remove-bind dhcp-4.3.5b1/common/tests/Makefile.am
|
| |
- --- dhcp-4.3.5b1/common/tests/Makefile.am.remove-bind 2016-08-26 20:19:53.000000000 +0200
|
| |
- +++ dhcp-4.3.5b1/common/tests/Makefile.am 2016-09-12 17:07:42.168232452 +0200
|
| |
- @@ -1,7 +1,5 @@
|
| |
+ diff --git a/client/tests/Makefile.am b/client/tests/Makefile.am
|
| |
+ index 5031d0c..bb1fda4 100644
|
| |
+ --- a/client/tests/Makefile.am
|
| |
+ +++ b/client/tests/Makefile.am
|
| |
+ @@ -1,9 +1,9 @@
|
| |
SUBDIRS = .
|
| |
|
| |
-BINDLIBDIR = @BINDDIR@/lib
|
| |
- -
|
| |
+ +BIND_LIBS = @BIND_LIBS@
|
| |
+
|
| |
+ AM_CPPFLAGS = $(ATF_CFLAGS) -DUNIT_TEST -I$(top_srcdir)/includes
|
| |
+ -AM_CPPFLAGS += -I@BINDDIR@/include -I$(top_srcdir)
|
| |
+ +AM_CPPFLAGS += @BIND_CPPFLAGS@ -I$(top_srcdir)
|
| |
+ AM_CPPFLAGS += -DLOCALSTATEDIR='"."'
|
| |
+ AM_CPPFLAGS += -DCLIENT_PATH='"."'
|
| |
+
|
| |
+ @@ -18,9 +18,7 @@ info:
|
| |
+ DHCPSRC = ../clparse.c ../dhc6.c ../dhclient.c
|
| |
+
|
| |
+ DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.a \
|
| |
+ - $(top_builddir)/dhcpctl/libdhcpctl.a $(BINDLIBDIR)/libirs.a \
|
| |
+ - $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a \
|
| |
+ - $(BINDLIBDIR)/libisc.a
|
| |
+ + $(top_builddir)/dhcpctl/libdhcpctl.a $(BIND_LIBS)
|
| |
+
|
| |
+ ATF_TESTS =
|
| |
+ if HAVE_ATF
|
| |
+ diff --git a/common/tests/Makefile.am b/common/tests/Makefile.am
|
| |
+ index f6a43e4..196aa44 100644
|
| |
+ --- a/common/tests/Makefile.am
|
| |
+ +++ b/common/tests/Makefile.am
|
| |
+ @@ -1,6 +1,6 @@
|
| |
+ SUBDIRS = .
|
| |
+
|
| |
+ -BINDLIBDIR = @BINDDIR@/lib
|
| |
+ +BIND_LIBS = @BIND_LIBS@
|
| |
+
|
| |
AM_CPPFLAGS = $(ATF_CFLAGS) -I$(top_srcdir)/includes
|
| |
|
| |
- EXTRA_DIST = Atffile
|
| |
- @@ -15,26 +13,26 @@ ATF_TESTS += alloc_unittest dns_unittest
|
| |
+ @@ -15,26 +15,22 @@ ATF_TESTS += alloc_unittest dns_unittest misc_unittest ns_name_unittest
|
| |
alloc_unittest_SOURCES = test_alloc.c $(top_srcdir)/tests/t_api_dhcp.c
|
| |
alloc_unittest_LDADD = $(ATF_LDFLAGS)
|
| |
alloc_unittest_LDADD += ../libdhcp.a \
|
| |
- ../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
|
| |
- $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
|
| |
- + ../../omapip/libomapi.a \
|
| |
- + $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-export
|
| |
+ + ../../omapip/libomapi.a $(BIND_LIBS)
|
| |
|
| |
dns_unittest_SOURCES = dns_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
|
| |
dns_unittest_LDADD = $(ATF_LDFLAGS)
|
| |
dns_unittest_LDADD += ../libdhcp.a \
|
| |
- ../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
|
| |
- $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
|
| |
- + ../../omapip/libomapi.a \
|
| |
- + $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-export
|
| |
+ + ../../omapip/libomapi.a $(BIND_LIBS)
|
| |
|
| |
misc_unittest_SOURCES = misc_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
|
| |
misc_unittest_LDADD = $(ATF_LDFLAGS)
|
| |
misc_unittest_LDADD += ../libdhcp.a \
|
| |
- ../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
|
| |
- $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
|
| |
- + ../../omapip/libomapi.a \
|
| |
- + $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-export
|
| |
+ + ../../omapip/libomapi.a $(BIND_LIBS)
|
| |
|
| |
ns_name_unittest_SOURCES = ns_name_test.c $(top_srcdir)/tests/t_api_dhcp.c
|
| |
ns_name_unittest_LDADD = $(ATF_LDFLAGS)
|
| |
ns_name_unittest_LDADD += ../libdhcp.a \
|
| |
- ../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
|
| |
- $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
|
| |
- + ../../omapip/libomapi.a \
|
| |
- + $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-export
|
| |
+ + ../../omapip/libomapi.a $(BIND_LIBS)
|
| |
|
| |
check: $(ATF_TESTS)
|
| |
@if test $(top_srcdir) != ${top_builddir}; then \
|
| |
- diff -up dhcp-4.3.5b1/configure.ac.remove-bind dhcp-4.3.5b1/configure.ac
|
| |
- --- dhcp-4.3.5b1/configure.ac.remove-bind 2016-08-26 20:24:41.000000000 +0200
|
| |
- +++ dhcp-4.3.5b1/configure.ac 2016-09-12 17:00:22.798902249 +0200
|
| |
- @@ -682,20 +682,33 @@ AC_CHECK_MEMBER(struct tpacket_auxdata.t
|
| |
+ diff --git a/configure.ac b/configure.ac
|
| |
+ index cdfa352..ef55f8d 100644
|
| |
+ --- a/configure.ac
|
| |
+ +++ b/configure.ac
|
| |
+ @@ -688,8 +688,12 @@ AC_CHECK_MEMBER(struct tpacket_auxdata.tp_vlan_tci,
|
| |
+
|
| |
BINDDIR=
|
| |
BINDSRCDIR=
|
| |
+ +BIND_CONFIG=
|
| |
+ +BIND_CPPFLAGS=
|
| |
+ +BIND_LIBS=
|
| |
AC_ARG_WITH(libbind,
|
| |
- AS_HELP_STRING([--with-libbind=PATH],[bind includes and libraries are in PATH
|
| |
- - (default is ./bind)]),
|
| |
- + AS_HELP_STRING([--with-libbind=PATH],[bind includes are in PATH
|
| |
- + (default is ./bind/includes)]),
|
| |
+ + AS_HELP_STRING([--with-libbind=PATH|config],[bind includes and libraries are in PATH.
|
| |
+ + Use config to obtain libraries from isc-config.sh.
|
| |
+ (default is ./bind)]),
|
| |
use_libbind="$withval", use_libbind="no")
|
| |
case "$use_libbind" in
|
| |
- +yes|no)
|
| |
- + libbind="\${top_srcdir}/bind/include"
|
| |
- + ;;
|
| |
- +*)
|
| |
- + libbind="$use_libbind"
|
| |
- + ;;
|
| |
- +esac
|
| |
- +
|
| |
- +BIND9_LIBDIR='-L$(top_builddir)/bind/lib'
|
| |
- +AC_ARG_WITH(libbind-libs,
|
| |
- + AC_HELP_STRING([--with-libbind-libs=PATH],
|
| |
- + [bind9 export libraries are in PATH]),
|
| |
- + [libbind_libs="$withval"], [libbind_libs='no'])
|
| |
- +case "$libbind_libs" in
|
| |
- yes)
|
| |
- - BINDDIR="\${top_srcdir}/bind"
|
| |
- - BINDSRCDIR="\${top_srcdir}/bind"
|
| |
- + AC_MSG_ERROR([Specify path to bind9 libraries])
|
| |
- ;;
|
| |
- no)
|
| |
- - BINDDIR="\${top_srcdir}/bind"
|
| |
- - BINDSRCDIR="\${top_srcdir}/bind"
|
| |
- + BUNDLED_BIND=yes
|
| |
+ @@ -701,23 +705,85 @@ no)
|
| |
+ BINDDIR="\${top_srcdir}/bind"
|
| |
+ BINDSRCDIR="\${top_srcdir}/bind"
|
| |
;;
|
| |
+ +config)
|
| |
+ + AC_PATH_PROG(BIND_CONFIG, [isc-config.sh bind9-config])
|
| |
+ + ;;
|
| |
*)
|
| |
- BINDDIR="$use_libbind"
|
| |
- + BIND9_LIBDIR="-L$libbind_libs"
|
| |
- + BUNDLED_BIND=no
|
| |
- if test ! -d "$srcdir/bind"; then
|
| |
- # no bind directory, create it with a fake Makefile.in
|
| |
- # (AC_CONFIG_FILES and top Makefile refer to it so
|
| |
- @@ -709,8 +722,8 @@ EOF
|
| |
+ - if test ! -d "$srcdir/bind"; then
|
| |
+ - # no bind directory, create it with a fake Makefile.in
|
| |
+ - # (AC_CONFIG_FILES and top Makefile refer to it so
|
| |
+ - # it must exits)
|
| |
+ - mkdir $srcdir/bind
|
| |
+ - cat > $srcdir/bind/Makefile.in << EOF
|
| |
+ + if test -f "$use_libbind" -a -x "$use_libbind"; then
|
| |
+ + # passed full path of isc-config.sh
|
| |
+ + BIND_CONFIG="$use_libbind"
|
| |
+ + else
|
| |
+ + BINDDIR="$use_libbind"
|
| |
+ + if test ! -d "$srcdir/bind"; then
|
| |
+ + # no bind directory, create it with a fake Makefile.in
|
| |
+ + # (AC_CONFIG_FILES and top Makefile refer to it so
|
| |
+ + # it must exits)
|
| |
+ + mkdir $srcdir/bind
|
| |
+ + cat > $srcdir/bind/Makefile.in << EOF
|
| |
+ # placeholder
|
| |
+ all check clean distclean distdir install uninstall:
|
| |
+
|
| |
+ EOF
|
| |
+ + fi
|
| |
fi
|
| |
;;
|
| |
esac
|
| |
- -AC_SUBST(BINDDIR)
|
| |
- -AC_SUBST(BINDSRCDIR)
|
| |
- +AM_CONDITIONAL([BUNDLED_BIND], [test "$BUNDLED_BIND" = yes])
|
| |
- +AC_SUBST([BIND9_LIBDIR])
|
| |
+ +if test -z "$BIND_CONFIG"; then
|
| |
+ + BIND_CPPFLAGS="-I${BINDDIR}/include"
|
| |
+ + BIND_LIBDIR="${BINDDIR}/lib"
|
| |
+ + BIND_LIBS="$(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a"
|
| |
+ +else
|
| |
+ + BIND_CPPFLAGS=`$BIND_CONFIG --cflags`
|
| |
+ + BIND_LIBS=`$BIND_CONFIG --libs irs dns isccfg isc`
|
| |
+ +
|
| |
+ + # bind is already built
|
| |
+ + AC_CHECKING([Checking bind libraries have no thread support])
|
| |
+ + saved_libs="$LIBS"
|
| |
+ + saved_CPPFLAGS="$CPPFLAGS"
|
| |
+ + CPPFLAGS="${CPPFLAGS} ${BIND_CPPFLAGS}"
|
| |
+ + LIBS="${LIBS} ${BIND_LIBS}"
|
| |
+ +AC_TRY_LINK([
|
| |
+ +#include <isc/bind9.h>
|
| |
+ +#include <isc/lib.h>
|
| |
+ +],[
|
| |
+ +#ifdef BIND9
|
| |
+ +#error Export BIND library has to be used with BIND version up to 9.9
|
| |
+ +#endif
|
| |
+ +isc_lib_register();
|
| |
+ +], [AC_MSG_RESULT(Bind export library found)
|
| |
+ + BIND_EXPORT=yes], [BIND_EXPORT=no]
|
| |
+ +)
|
| |
+ +
|
| |
+ +# Allow build with disabled threads for dhcp
|
| |
+ +AC_TRY_LINK([
|
| |
+ +#include <isc/platform.h>
|
| |
+ +#include <isc/bind9.h>
|
| |
+ +#include <isc/lib.h>
|
| |
+ +],[
|
| |
+ +#ifdef ISC_PLATFORM_USETHREADS
|
| |
+ +#error Bind library must not be compiled with threads
|
| |
+ +#endif
|
| |
+ +isc_lib_register();
|
| |
+ +if (isc_bind9 != 0) {}
|
| |
+ +], [AC_MSG_RESULT(Bind single thread library found)
|
| |
+ + BIND_SINGLETHREAD=yes], [BIND_SINGLETHREAD=no]
|
| |
+ +)
|
| |
+ +
|
| |
+ + if test "x$BIND_EXPORT" != xyes -a "x$BIND_SINGLETHREADED" != xyes
|
| |
+ + then
|
| |
+ + AC_MSG_RESULT([BIND_CONFIG=${BIND_CONFIG}])
|
| |
+ + AC_MSG_RESULT([BIND_CPPFLAGS=${BIND_CPPFLAGS}])
|
| |
+ + AC_MSG_RESULT([BIND_LIBS=${BIND_LIBS}])
|
| |
+ + AC_MSG_ERROR([Bind libraries are not useable for dhcp])
|
| |
+ + fi
|
| |
+ + CPPFLAGS="$saved_CPPFLAGS"
|
| |
+ + LIBS="$saved_LIBS"
|
| |
+ +fi
|
| |
+ +
|
| |
+ AC_SUBST(BINDDIR)
|
| |
+ AC_SUBST(BINDSRCDIR)
|
| |
+ +AC_SUBST(BIND_CPPFLAGS)
|
| |
+ +AC_SUBST(BIND_LIBS)
|
| |
|
| |
# OpenLDAP support.
|
| |
AC_ARG_WITH(ldap,
|
| |
- @@ -788,7 +801,7 @@ fi
|
| |
+ @@ -795,7 +861,7 @@ fi
|
| |
CFLAGS="$CFLAGS $STD_CWARNINGS"
|
| |
|
| |
# Try to add the bind and dhcp include directories
|
| |
-CFLAGS="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include"
|
| |
- +CFLAGS="$CFLAGS -I$libbind"
|
| |
+ +CFLAGS="$CFLAGS -I\$(top_srcdir)/includes $BIND_CPPFLAGS"
|
| |
|
| |
case "$host" in
|
| |
*-darwin*)
|
| |
- diff -up dhcp-4.3.5b1/dhcpctl/Makefile.am.remove-bind dhcp-4.3.5b1/dhcpctl/Makefile.am
|
| |
- --- dhcp-4.3.5b1/dhcpctl/Makefile.am.remove-bind 2016-08-26 20:19:53.000000000 +0200
|
| |
- +++ dhcp-4.3.5b1/dhcpctl/Makefile.am 2016-09-12 17:00:22.798902249 +0200
|
| |
- @@ -1,5 +1,3 @@
|
| |
+ diff --git a/dhcpctl/Makefile.am b/dhcpctl/Makefile.am
|
| |
+ index ceb0de1..fa20a78 100644
|
| |
+ --- a/dhcpctl/Makefile.am
|
| |
+ +++ b/dhcpctl/Makefile.am
|
| |
+ @@ -1,4 +1,4 @@
|
| |
-BINDLIBDIR = @BINDDIR@/lib
|
| |
- -
|
| |
+ +BIND_LIBS = @BIND_LIBS@
|
| |
+
|
| |
bin_PROGRAMS = omshell
|
| |
lib_LIBRARIES = libdhcpctl.a
|
| |
- noinst_PROGRAMS = cltest
|
| |
- @@ -8,12 +6,10 @@ EXTRA_DIST = $(man_MANS)
|
| |
+ @@ -8,12 +8,10 @@ EXTRA_DIST = $(man_MANS)
|
| |
|
| |
omshell_SOURCES = omshell.c
|
| |
omshell_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
|
| |
- $(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
|
| |
- $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
|
| |
- + $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-export
|
| |
+ + $(BIND_LIBS)
|
| |
|
| |
libdhcpctl_a_SOURCES = dhcpctl.c callback.c remote.c
|
| |
|
| |
@@ -153,49 +256,33 @@
|
| |
cltest_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
|
| |
- $(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
|
| |
- $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
|
| |
- + $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-export
|
| |
- diff -up dhcp-4.3.5b1/Makefile.am.remove-bind dhcp-4.3.5b1/Makefile.am
|
| |
- --- dhcp-4.3.5b1/Makefile.am.remove-bind 2016-08-26 20:19:53.000000000 +0200
|
| |
- +++ dhcp-4.3.5b1/Makefile.am 2016-09-12 17:00:22.798902249 +0200
|
| |
- @@ -26,7 +26,13 @@ EXTRA_DIST = RELNOTES LICENSE \
|
| |
- bind/Makefile.in bind/bind.tar.gz bind/version.tmp \
|
| |
- common/tests/Atffile server/tests/Atffile
|
| |
-
|
| |
- -SUBDIRS = @BINDSRCDIR@ includes tests common omapip client dhcpctl relay server
|
| |
- +if BUNDLED_BIND
|
| |
- +SUBDIRS = bind
|
| |
- +else
|
| |
- +SUBDIRS =
|
| |
- +endif
|
| |
- +
|
| |
- +SUBDIRS += includes tests common omapip client dhcpctl relay server
|
| |
-
|
| |
- nobase_include_HEADERS = dhcpctl/dhcpctl.h
|
| |
-
|
| |
- diff -up dhcp-4.3.5b1/omapip/Makefile.am.remove-bind dhcp-4.3.5b1/omapip/Makefile.am
|
| |
- --- dhcp-4.3.5b1/omapip/Makefile.am.remove-bind 2016-08-26 20:19:53.000000000 +0200
|
| |
- +++ dhcp-4.3.5b1/omapip/Makefile.am 2016-09-12 17:00:22.798902249 +0200
|
| |
- @@ -1,5 +1,3 @@
|
| |
+ + $(BIND_LIBS)
|
| |
+ diff --git a/omapip/Makefile.am b/omapip/Makefile.am
|
| |
+ index 446a594..b0d2680 100644
|
| |
+ --- a/omapip/Makefile.am
|
| |
+ +++ b/omapip/Makefile.am
|
| |
+ @@ -1,4 +1,4 @@
|
| |
-BINDLIBDIR = @BINDDIR@/lib
|
| |
- -
|
| |
+ +BIND_LIBS = @BIND_LIBS@
|
| |
+
|
| |
lib_LIBRARIES = libomapi.a
|
| |
noinst_PROGRAMS = svtest
|
| |
-
|
| |
- @@ -12,6 +10,6 @@ man_MANS = omapi.3
|
| |
+ @@ -12,6 +12,5 @@ man_MANS = omapi.3
|
| |
EXTRA_DIST = $(man_MANS)
|
| |
|
| |
svtest_SOURCES = test.c
|
| |
-svtest_LDADD = libomapi.a $(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
|
| |
- $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
|
| |
- +svtest_LDADD = libomapi.a \
|
| |
- + $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-export
|
| |
+ +svtest_LDADD = libomapi.a $(BIND_LIBS)
|
| |
|
| |
- diff -up dhcp-4.3.5b1/relay/Makefile.am.remove-bind dhcp-4.3.5b1/relay/Makefile.am
|
| |
- --- dhcp-4.3.5b1/relay/Makefile.am.remove-bind 2016-08-26 20:19:53.000000000 +0200
|
| |
- +++ dhcp-4.3.5b1/relay/Makefile.am 2016-09-12 17:00:22.798902249 +0200
|
| |
- @@ -1,12 +1,9 @@
|
| |
+ diff --git a/relay/Makefile.am b/relay/Makefile.am
|
| |
+ index 3060eca..c9a1cba 100644
|
| |
+ --- a/relay/Makefile.am
|
| |
+ +++ b/relay/Makefile.am
|
| |
+ @@ -1,12 +1,11 @@
|
| |
-BINDLIBDIR = @BINDDIR@/lib
|
| |
- -
|
| |
+ +BIND_LIBS = @BIND_LIBS@
|
| |
+
|
| |
AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"'
|
| |
|
| |
sbin_PROGRAMS = dhcrelay
|
| |
@@ -203,59 +290,62 @@
|
| |
dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
|
| |
- $(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
|
| |
- $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
|
| |
- + $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-export
|
| |
+ + $(BIND_LIBS)
|
| |
man_MANS = dhcrelay.8
|
| |
EXTRA_DIST = $(man_MANS)
|
| |
|
| |
- diff -up dhcp-4.3.5b1/server/Makefile.am.remove-bind dhcp-4.3.5b1/server/Makefile.am
|
| |
- --- dhcp-4.3.5b1/server/Makefile.am.remove-bind 2016-08-26 20:19:53.000000000 +0200
|
| |
- +++ dhcp-4.3.5b1/server/Makefile.am 2016-09-12 17:00:22.798902249 +0200
|
| |
- @@ -4,8 +4,6 @@
|
| |
+ diff --git a/server/Makefile.am b/server/Makefile.am
|
| |
+ index 54feedf..30cf2b1 100644
|
| |
+ --- a/server/Makefile.am
|
| |
+ +++ b/server/Makefile.am
|
| |
+ @@ -4,7 +4,7 @@
|
| |
# production code. Sadly, we are not there yet.
|
| |
SUBDIRS = . tests
|
| |
|
| |
-BINDLIBDIR = @BINDDIR@/lib
|
| |
- -
|
| |
+ +BIND_LIBS = @BIND_LIBS@
|
| |
+
|
| |
AM_CPPFLAGS = -I.. -DLOCALSTATEDIR='"@localstatedir@"'
|
| |
|
| |
- dist_sysconf_DATA = dhcpd.conf.example
|
| |
- @@ -15,10 +13,9 @@ dhcpd_SOURCES = dhcpd.c dhcp.c bootp.c c
|
| |
- dhcpv6.c mdb6.c ldap.c ldap_casa.c leasechain.c ldap_krb_helper.c
|
| |
+ @@ -16,9 +16,7 @@ dhcpd_SOURCES = dhcpd.c dhcp.c bootp.c confpars.c db.c class.c failover.c \
|
| |
|
| |
dhcpd_CFLAGS = $(LDAP_CFLAGS)
|
| |
- -dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
|
| |
+ dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
|
| |
- ../dhcpctl/libdhcpctl.a $(BINDLIBDIR)/libirs.a \
|
| |
- $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a \
|
| |
- $(BINDLIBDIR)/libisc.a $(LDAP_LIBS)
|
| |
- +dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.a ../dhcpctl/libdhcpctl.a \
|
| |
- + $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-export \
|
| |
- + $(LDAP_LIBS)
|
| |
+ + ../dhcpctl/libdhcpctl.a $(BIND_LIBS) $(LDAP_LIBS)
|
| |
|
| |
man_MANS = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5
|
| |
EXTRA_DIST = $(man_MANS)
|
| |
- diff -up dhcp-4.3.5b1/server/tests/Makefile.am.remove-bind dhcp-4.3.5b1/server/tests/Makefile.am
|
| |
- --- dhcp-4.3.5b1/server/tests/Makefile.am.remove-bind 2016-08-26 20:19:53.000000000 +0200
|
| |
- +++ dhcp-4.3.5b1/server/tests/Makefile.am 2016-09-12 17:00:22.799902249 +0200
|
| |
- @@ -1,9 +1,7 @@
|
| |
+ diff --git a/server/tests/Makefile.am b/server/tests/Makefile.am
|
| |
+ index a87c5e7..771de06 100644
|
| |
+ --- a/server/tests/Makefile.am
|
| |
+ +++ b/server/tests/Makefile.am
|
| |
+ @@ -1,9 +1,10 @@
|
| |
SUBDIRS = .
|
| |
|
| |
-BINDLIBDIR = @BINDDIR@/lib
|
| |
- -
|
| |
+ +BIND_LIBS = @BIND_LIBS@
|
| |
+ +
|
| |
+
|
| |
AM_CPPFLAGS = $(ATF_CFLAGS) -DUNIT_TEST -I$(top_srcdir)/includes
|
| |
-AM_CPPFLAGS += -I@BINDDIR@/include -I$(top_srcdir)
|
| |
- +AM_CPPFLAGS += -I$(top_srcdir)
|
| |
+ +AM_CPPFLAGS += $(BIND_CPPFLAGS) -I$(top_srcdir)
|
| |
AM_CPPFLAGS += -DLOCALSTATEDIR='"."'
|
| |
|
| |
EXTRA_DIST = Atffile
|
| |
- @@ -20,9 +18,8 @@ DHCPSRC = ../dhcp.c ../bootp.c ../confpa
|
| |
+ @@ -20,9 +21,7 @@ DHCPSRC = ../dhcp.c ../bootp.c ../confpars.c ../db.c ../class.c \
|
| |
../ldap.c ../ldap_casa.c ../dhcpd.c ../leasechain.c
|
| |
|
| |
DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.a \
|
| |
- $(top_builddir)/dhcpctl/libdhcpctl.a $(BINDLIBDIR)/libirs.a \
|
| |
- $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a \
|
| |
- $(BINDLIBDIR)/libisc.a
|
| |
- + $(top_builddir)/dhcpctl/libdhcpctl.a \
|
| |
- + $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-export
|
| |
+ + $(top_builddir)/dhcpctl/libdhcpctl.a $(BIND_LIBS)
|
| |
|
| |
ATF_TESTS =
|
| |
if HAVE_ATF
|
| |
+ --
|
| |
+ 2.14.3
|
| |
+
|
| |
Use explicit BuildRequire to choose bind-export-devel. Change dhcp to build from custom separate libdir and includes to using special isc-export-config.sh. It provides accurate flags and all libraries needed to link with bind. Use single variable to pass all bind libraries, because all of them are used for each binary. Add support for BIND 9.11.3b1.