From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] dhcp: Update to 4.4.1 Date: Sat, 22 Jun 2019 12:18:43 +0200 Message-ID: <20190622101843.5770-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8442373869076876824==" List-Id: --===============8442373869076876824== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Stefan Schantl --- dhcp/dhcp.nm | 9 +- ...essage.patch =3D> 0001-change-bug-url.patch} | 26 +- dhcp/patches/0001-dhcp-remove-bind.patch | 261 ----------- ...=3D> 0002-additional-dhclient-options.patch} | 211 ++++----- dhcp/patches/0002-dhcp-sharedlib.patch | 140 ------ ...g-interfaces-requested-by-sbin-ifup.patch} | 22 +- ...OOTP-for-IBM-pSeries-systems-and-ma.patch} | 37 +- ...05-Change-default-requested-options.patch} | 22 +- ...=3D> 0006-Various-man-page-only-fixes.patch} | 116 +++-- .../0006-dhcp-dhclient-decline-backoff.patch | 63 --- ...ge-paths-to-conform-to-our-standards.patch | 54 +++ ...n-file-descriptors-are-closed-on-ex.patch} | 179 +++++--- ...9-Fix-garbage-in-format-string-error.patch | 27 ++ dhcp/patches/0010-Handle-null-timeout.patch | 32 ++ dhcp/patches/0010-dhcp-paths.patch | 38 -- ... 0011-Drop-unnecessary-capabilities.patch} | 186 ++++---- ...s-Static-Route-Option-for-DHCPv4-51.patch} | 150 +++--- dhcp/patches/0012-dhcp-garbage-chars.patch | 12 - ...0013-DHCPv6-over-PPP-support-626514.patch} | 104 +++-- .../0013-dhcp-add_timeout_when_NULL.patch | 14 - ....patch =3D> 0014-IPoIB-support-660681.patch} | 165 ++++--- .../0014-dhcp-64_bit_lease_parse.patch | 75 --- ...-Add-GUID-DUID-to-dhcpd-logs-1064416.patch | 332 ++++++++++++++ ...16-Turn-on-creating-sending-of-DUID.patch} | 33 +- dhcp/patches/0016-dhcp-sendDecline.patch | 231 ---------- ...quest-release-via-correct-interface.patch} | 30 +- ...tion-for-iface-should-be-info-not-e.patch} | 25 +- dhcp/patches/0018-dhcp-honor-expired.patch | 49 -- ...UID_LLT-even-in-stateless-mode-11563.patch | 29 ++ ...ver-all-hwaddress-for-xid-uniqueness.patch | 101 +++++ ...ad-leases-DB-in-non-replay-mode-only.patch | 51 +++ dhcp/patches/0021-dhcp-IPoIB-log-id.patch | 165 ------- ...y-patch-for-systemd-support-1687040.patch} | 48 +- dhcp/patches/0022-dhcp-improved-xid.patch | 138 ------ dhcp/patches/0023-dhcp-duidv4.patch | 34 -- dhcp/patches/0025-dhcp-getifaddrs.patch | 429 ------------------ dhcp/patches/0027-dhcp-interval.patch | 25 - .../0030-dhcp-option97-pxe-client-id.patch | 217 --------- .../0031-dhcp-stateless-DUID-LLT.patch | 13 - .../0032-dhcp-dhclient-preinit6s.patch | 64 --- 40 files changed, 1409 insertions(+), 2548 deletions(-) rename dhcp/patches/{0003-dhcp-errwarn-message.patch =3D> 0001-change-bug-ur= l.patch} (76%) delete mode 100644 dhcp/patches/0001-dhcp-remove-bind.patch rename dhcp/patches/{0004-dhcp-dhclient-options.patch =3D> 0002-additional-d= hclient-options.patch} (69%) delete mode 100644 dhcp/patches/0002-dhcp-sharedlib.patch rename dhcp/patches/{0005-dhcp-release-by-ifup.patch =3D> 0003-Handle-releas= ing-interfaces-requested-by-sbin-ifup.patch} (80%) rename dhcp/patches/{0007-dhcp-unicast-bootp.patch =3D> 0004-Support-unicast= -BOOTP-for-IBM-pSeries-systems-and-ma.patch} (75%) rename dhcp/patches/{0008-dhcp-default-requested-options.patch =3D> 0005-Cha= nge-default-requested-options.patch} (69%) rename dhcp/patches/{0009-dhcp-manpages.patch =3D> 0006-Various-man-page-onl= y-fixes.patch} (73%) delete mode 100644 dhcp/patches/0006-dhcp-dhclient-decline-backoff.patch create mode 100644 dhcp/patches/0007-Change-paths-to-conform-to-our-standard= s.patch rename dhcp/patches/{0011-dhcp-CLOEXEC.patch =3D> 0008-Make-sure-all-open-fi= le-descriptors-are-closed-on-ex.patch} (67%) create mode 100644 dhcp/patches/0009-Fix-garbage-in-format-string-error.patch create mode 100644 dhcp/patches/0010-Handle-null-timeout.patch delete mode 100644 dhcp/patches/0010-dhcp-paths.patch rename dhcp/patches/{0015-dhcp-capability.patch =3D> 0011-Drop-unnecessary-c= apabilities.patch} (62%) rename dhcp/patches/{0017-dhcp-rfc3442-classless-static-routes.patch =3D> 00= 12-RFC-3442-Classless-Static-Route-Option-for-DHCPv4-51.patch} (76%) delete mode 100644 dhcp/patches/0012-dhcp-garbage-chars.patch rename dhcp/patches/{0019-dhcp-PPP.patch =3D> 0013-DHCPv6-over-PPP-support-6= 26514.patch} (64%) delete mode 100644 dhcp/patches/0013-dhcp-add_timeout_when_NULL.patch rename dhcp/patches/{0020-dhcp-lpf-ib.patch =3D> 0014-IPoIB-support-660681.p= atch} (77%) delete mode 100644 dhcp/patches/0014-dhcp-64_bit_lease_parse.patch create mode 100644 dhcp/patches/0015-Add-GUID-DUID-to-dhcpd-logs-1064416.pat= ch rename dhcp/patches/{0024-dhcp-duid_uuid.patch =3D> 0016-Turn-on-creating-se= nding-of-DUID.patch} (72%) delete mode 100644 dhcp/patches/0016-dhcp-sendDecline.patch rename dhcp/patches/{0026-dhcp-client-request-release-bind-iface.patch =3D> = 0017-Send-unicast-request-release-via-correct-interface.patch} (70%) rename dhcp/patches/{0028-dhcp-no-subnet-error2info.patch =3D> 0018-No-subne= t-declaration-for-iface-should-be-info-not-e.patch} (70%) delete mode 100644 dhcp/patches/0018-dhcp-honor-expired.patch create mode 100644 dhcp/patches/0019-dhclient-write-DUID_LLT-even-in-statele= ss-mode-11563.patch create mode 100644 dhcp/patches/0020-Discover-all-hwaddress-for-xid-uniquene= ss.patch create mode 100644 dhcp/patches/0021-Load-leases-DB-in-non-replay-mode-only.= patch delete mode 100644 dhcp/patches/0021-dhcp-IPoIB-log-id.patch rename dhcp/patches/{0029-dhcp-sd_notify.patch =3D> 0022-Backport-sd-notify-= patch-for-systemd-support-1687040.patch} (63%) delete mode 100644 dhcp/patches/0022-dhcp-improved-xid.patch delete mode 100644 dhcp/patches/0023-dhcp-duidv4.patch delete mode 100644 dhcp/patches/0025-dhcp-getifaddrs.patch delete mode 100644 dhcp/patches/0027-dhcp-interval.patch delete mode 100644 dhcp/patches/0030-dhcp-option97-pxe-client-id.patch delete mode 100644 dhcp/patches/0031-dhcp-stateless-DUID-LLT.patch delete mode 100644 dhcp/patches/0032-dhcp-dhclient-preinit6s.patch diff --git a/dhcp/dhcp.nm b/dhcp/dhcp.nm index eafb0b0fc..421c6ca4f 100644 --- a/dhcp/dhcp.nm +++ b/dhcp/dhcp.nm @@ -4,7 +4,7 @@ ############################################################################= ### =20 name =3D dhcp -version =3D 4.3.5b1 +version =3D 4.4.1 release =3D 1 =20 groups =3D Networking/Daemons @@ -37,6 +37,8 @@ build =20 CFLAGS +=3D -fno-strict-aliasing =20 + PARALLELISMFLAGS =3D # No parallel build. + configure_options +=3D \ --sysconfdir=3D%{sysconfdir}/dhcp \ --with-srv-lease-file=3D/var/lib/dhcpd/dhcpd.leases \ @@ -50,8 +52,6 @@ build --with-relay-pid-file=3D/run/dhcrelay.pid \ --with-ldap \ --with-ldapcrypto \ - --with-libbind=3D/usr/include/ \ - --with-libbind-libs=3D/usr/lib/ \ --disable-static \ --enable-paranoia \ --enable-early-chroot \ @@ -59,9 +59,6 @@ build --with-systemd =20 prepare_cmds - # Remove bundled BIND source - rm -rvf %{DIR_APP}/bind/bind.tar.gz - # Regenerate build environment autoreconf --verbose --force --install =20 diff --git a/dhcp/patches/0003-dhcp-errwarn-message.patch b/dhcp/patches/0001= -change-bug-url.patch similarity index 76% rename from dhcp/patches/0003-dhcp-errwarn-message.patch rename to dhcp/patches/0001-change-bug-url.patch index f42d1e980..150a3b2ba 100644 --- a/dhcp/patches/0003-dhcp-errwarn-message.patch +++ b/dhcp/patches/0001-change-bug-url.patch @@ -1,7 +1,18 @@ -diff -up dhcp-4.3.5/omapip/errwarn.c.errwarn dhcp-4.3.5/omapip/errwarn.c ---- dhcp-4.3.5/omapip/errwarn.c.errwarn 2016-09-27 21:16:50.000000000 +0200 -+++ dhcp-4.3.5/omapip/errwarn.c 2016-11-29 19:44:03.515031147 +0100 -@@ -49,6 +49,41 @@ void (*log_cleanup) (void); +From 31ef6eadb15c3773b81256a8617eccc7657fd2fd Mon Sep 17 00:00:00 2001 +From: Pavel Zhukov +Date: Thu, 21 Feb 2019 10:09:57 +0100 +Subject: [PATCH 01/21] change bug url +Cc: pzhukov(a)redhat.com + +--- + omapip/errwarn.c | 47 ++++++++++++++++++++++++++++++++++++++++++----- + 1 file changed, 42 insertions(+), 5 deletions(-) + +diff --git a/omapip/errwarn.c b/omapip/errwarn.c +index e30f8a0..09a3004 100644 +--- a/omapip/errwarn.c ++++ b/omapip/errwarn.c +@@ -48,6 +48,41 @@ void (*log_cleanup) (void); static char mbuf [CVT_BUF_MAX + 1]; static char fbuf [CVT_BUF_MAX + 1]; =20 @@ -43,7 +54,7 @@ diff -up dhcp-4.3.5/omapip/errwarn.c.errwarn dhcp-4.3.5/oma= pip/errwarn.c /* Log an error message, then exit... */ =20 void log_fatal (const char * fmt, ... ) -@@ -75,11 +110,13 @@ void log_fatal (const char * fmt, ... ) +@@ -74,11 +109,13 @@ void log_fatal (const char * fmt, ... ) } =20 log_error ("%s", ""); @@ -51,7 +62,7 @@ diff -up dhcp-4.3.5/omapip/errwarn.c.errwarn dhcp-4.3.5/oma= pip/errwarn.c - log_error ("than a configuration issue please read the section on submitt= ing"); - log_error ("bugs on either our web page at www.isc.org or in the README f= ile"); - log_error ("before submitting a bug. These pages explain the proper"); -- log_error ("process and the information we find helpful for debugging.."); +- log_error ("process and the information we find helpful for debugging."); + log_error ("This version of ISC DHCP is based on the release available"); + log_error ("on ftp.isc.org. Features have been added and other changes"); + log_error ("have been made to the base software release in order to make"= ); @@ -62,3 +73,6 @@ diff -up dhcp-4.3.5/omapip/errwarn.c.errwarn dhcp-4.3.5/oma= pip/errwarn.c log_error ("%s", ""); log_error ("exiting."); =20 +--=20 +2.14.5 + diff --git a/dhcp/patches/0001-dhcp-remove-bind.patch b/dhcp/patches/0001-dhc= p-remove-bind.patch deleted file mode 100644 index 46bd323d6..000000000 --- a/dhcp/patches/0001-dhcp-remove-bind.patch +++ /dev/null @@ -1,261 +0,0 @@ -diff -up dhcp-4.3.5b1/client/Makefile.am.remove-bind dhcp-4.3.5b1/client/Mak= efile.am ---- dhcp-4.3.5b1/client/Makefile.am.remove-bind 2016-08-26 20:19:53.00000000= 0 +0200 -+++ dhcp-4.3.5b1/client/Makefile.am 2016-09-12 17:00:22.797902248 +0200 -@@ -4,8 +4,6 @@ - # production code. Sadly, we are not there yet. - SUBDIRS =3D . tests -=20 --BINDLIBDIR =3D @BINDDIR@/lib -- - AM_CPPFLAGS =3D -DCLIENT_PATH=3D'"PATH=3D$(sbindir):/sbin:/bin:/usr/sbin:/u= sr/bin"' \ - -DLOCALSTATEDIR=3D'"$(localstatedir)"' -=20 -@@ -15,7 +13,7 @@ dhclient_SOURCES =3D clparse.c dhclient.c - scripts/bsdos scripts/freebsd scripts/linux scripts/macos \ - scripts/netbsd scripts/nextstep scripts/openbsd \ - scripts/solaris scripts/openwrt --dhclient_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.a $(BINDLIBDIR)/l= ibirs.a \ -- $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a -+dhclient_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.a \ -+ $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-export - man_MANS =3D dhclient.8 dhclient-script.8 dhclient.conf.5 dhclient.leases.5 - EXTRA_DIST =3D $(man_MANS) -diff -up dhcp-4.3.5b1/common/tests/Makefile.am.remove-bind dhcp-4.3.5b1/comm= on/tests/Makefile.am ---- dhcp-4.3.5b1/common/tests/Makefile.am.remove-bind 2016-08-26 20:19:53.00= 0000000 +0200 -+++ dhcp-4.3.5b1/common/tests/Makefile.am 2016-09-12 17:07:42.168232452 +0200 -@@ -1,7 +1,5 @@ - SUBDIRS =3D . -=20 --BINDLIBDIR =3D @BINDDIR@/lib -- - AM_CPPFLAGS =3D $(ATF_CFLAGS) -I$(top_srcdir)/includes -=20 - EXTRA_DIST =3D Atffile -@@ -15,26 +13,26 @@ ATF_TESTS +=3D alloc_unittest dns_unittest - alloc_unittest_SOURCES =3D test_alloc.c $(top_srcdir)/tests/t_api_dhcp.c - alloc_unittest_LDADD =3D $(ATF_LDFLAGS) - alloc_unittest_LDADD +=3D ../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 -=20 - dns_unittest_SOURCES =3D dns_unittest.c $(top_srcdir)/tests/t_api_dhcp.c - dns_unittest_LDADD =3D $(ATF_LDFLAGS) - dns_unittest_LDADD +=3D ../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 -=20 - misc_unittest_SOURCES =3D misc_unittest.c $(top_srcdir)/tests/t_api_dhcp.c - misc_unittest_LDADD =3D $(ATF_LDFLAGS) - misc_unittest_LDADD +=3D ../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 -=20 - ns_name_unittest_SOURCES =3D ns_name_test.c $(top_srcdir)/tests/t_api_dhcp.c - ns_name_unittest_LDADD =3D $(ATF_LDFLAGS) - ns_name_unittest_LDADD +=3D ../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 -=20 - check: $(ATF_TESTS) - @if test $(top_srcdir) !=3D ${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 - BINDDIR=3D - BINDSRCDIR=3D - AC_ARG_WITH(libbind, -- AS_HELP_STRING([--with-libbind=3DPATH],[bind includes and libraries are in= PATH -- (default is ./bind)]), -+ AS_HELP_STRING([--with-libbind=3DPATH],[bind includes are in PATH -+ (default is ./bind/includes)]), - use_libbind=3D"$withval", use_libbind=3D"no") - case "$use_libbind" in -+yes|no) -+ libbind=3D"\${top_srcdir}/bind/include" -+ ;; -+*) -+ libbind=3D"$use_libbind" -+ ;; -+esac -+ -+BIND9_LIBDIR=3D'-L$(top_builddir)/bind/lib' -+AC_ARG_WITH(libbind-libs, -+ AC_HELP_STRING([--with-libbind-libs=3DPATH], -+ [bind9 export libraries are in PATH]), -+ [libbind_libs=3D"$withval"], [libbind_libs=3D'no']) -+case "$libbind_libs" in - yes) -- BINDDIR=3D"\${top_srcdir}/bind" -- BINDSRCDIR=3D"\${top_srcdir}/bind" -+ AC_MSG_ERROR([Specify path to bind9 libraries]) - ;; - no) -- BINDDIR=3D"\${top_srcdir}/bind" -- BINDSRCDIR=3D"\${top_srcdir}/bind" -+ BUNDLED_BIND=3Dyes - ;; - *) -- BINDDIR=3D"$use_libbind" -+ BIND9_LIBDIR=3D"-L$libbind_libs" -+ BUNDLED_BIND=3Dno - 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 - fi - ;; - esac --AC_SUBST(BINDDIR) --AC_SUBST(BINDSRCDIR) -+AM_CONDITIONAL([BUNDLED_BIND], [test "$BUNDLED_BIND" =3D yes]) -+AC_SUBST([BIND9_LIBDIR]) -=20 - # OpenLDAP support. - AC_ARG_WITH(ldap, -@@ -788,7 +801,7 @@ fi - CFLAGS=3D"$CFLAGS $STD_CWARNINGS" -=20 - # Try to add the bind and dhcp include directories --CFLAGS=3D"$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include" -+CFLAGS=3D"$CFLAGS -I$libbind" -=20 - case "$host" in - *-darwin*) -diff -up dhcp-4.3.5b1/dhcpctl/Makefile.am.remove-bind dhcp-4.3.5b1/dhcpctl/M= akefile.am ---- dhcp-4.3.5b1/dhcpctl/Makefile.am.remove-bind 2016-08-26 20:19:53.0000000= 00 +0200 -+++ dhcp-4.3.5b1/dhcpctl/Makefile.am 2016-09-12 17:00:22.798902249 +0200 -@@ -1,5 +1,3 @@ --BINDLIBDIR =3D @BINDDIR@/lib -- - bin_PROGRAMS =3D omshell - lib_LIBRARIES =3D libdhcpctl.a - noinst_PROGRAMS =3D cltest -@@ -8,12 +6,10 @@ EXTRA_DIST =3D $(man_MANS) -=20 - omshell_SOURCES =3D omshell.c - omshell_LDADD =3D 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-ex= port -=20 - libdhcpctl_a_SOURCES =3D dhcpctl.c callback.c remote.c -=20 - cltest_SOURCES =3D cltest.c - cltest_LDADD =3D 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-exp= ort -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 =3D RELNOTES LICENSE \ - bind/Makefile.in bind/bind.tar.gz bind/version.tmp \ - common/tests/Atffile server/tests/Atffile -=20 --SUBDIRS =3D @BINDSRCDIR@ includes tests common omapip client dhcpctl relay = server -+if BUNDLED_BIND -+SUBDIRS =3D bind -+else -+SUBDIRS =3D=20 -+endif -+ -+SUBDIRS +=3D includes tests common omapip client dhcpctl relay server -=20 - nobase_include_HEADERS =3D dhcpctl/dhcpctl.h -=20 -diff -up dhcp-4.3.5b1/omapip/Makefile.am.remove-bind dhcp-4.3.5b1/omapip/Mak= efile.am ---- dhcp-4.3.5b1/omapip/Makefile.am.remove-bind 2016-08-26 20:19:53.00000000= 0 +0200 -+++ dhcp-4.3.5b1/omapip/Makefile.am 2016-09-12 17:00:22.798902249 +0200 -@@ -1,5 +1,3 @@ --BINDLIBDIR =3D @BINDDIR@/lib -- - lib_LIBRARIES =3D libomapi.a - noinst_PROGRAMS =3D svtest -=20 -@@ -12,6 +10,6 @@ man_MANS =3D omapi.3 - EXTRA_DIST =3D $(man_MANS) -=20 - svtest_SOURCES =3D test.c --svtest_LDADD =3D libomapi.a $(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \ -- $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a -+svtest_LDADD =3D libomapi.a \ -+ $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-exp= ort -=20 -diff -up dhcp-4.3.5b1/relay/Makefile.am.remove-bind dhcp-4.3.5b1/relay/Makef= ile.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 @@ --BINDLIBDIR =3D @BINDDIR@/lib -- - AM_CPPFLAGS =3D -DLOCALSTATEDIR=3D'"@localstatedir@"' -=20 - sbin_PROGRAMS =3D dhcrelay - dhcrelay_SOURCES =3D dhcrelay.c - dhcrelay_LDADD =3D ../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 - man_MANS =3D dhcrelay.8 - EXTRA_DIST =3D $(man_MANS) -=20 -diff -up dhcp-4.3.5b1/server/Makefile.am.remove-bind dhcp-4.3.5b1/server/Mak= efile.am ---- dhcp-4.3.5b1/server/Makefile.am.remove-bind 2016-08-26 20:19:53.00000000= 0 +0200 -+++ dhcp-4.3.5b1/server/Makefile.am 2016-09-12 17:00:22.798902249 +0200 -@@ -4,8 +4,6 @@ - # production code. Sadly, we are not there yet. - SUBDIRS =3D . tests -=20 --BINDLIBDIR =3D @BINDDIR@/lib -- - AM_CPPFLAGS =3D -I.. -DLOCALSTATEDIR=3D'"@localstatedir@"' -=20 - dist_sysconf_DATA =3D dhcpd.conf.example -@@ -15,10 +13,9 @@ dhcpd_SOURCES =3D dhcpd.c dhcp.c bootp.c c - dhcpv6.c mdb6.c ldap.c ldap_casa.c leasechain.c ldap_krb_helper.c -=20 - dhcpd_CFLAGS =3D $(LDAP_CFLAGS) --dhcpd_LDADD =3D ../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 =3D ../common/libdhcp.a ../omapip/libomapi.a ../dhcpctl/libdhcp= ctl.a \ -+ $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc-expo= rt \ -+ $(LDAP_LIBS) -=20 - man_MANS =3D dhcpd.8 dhcpd.conf.5 dhcpd.leases.5 - EXTRA_DIST =3D $(man_MANS) -diff -up dhcp-4.3.5b1/server/tests/Makefile.am.remove-bind dhcp-4.3.5b1/serv= er/tests/Makefile.am ---- dhcp-4.3.5b1/server/tests/Makefile.am.remove-bind 2016-08-26 20:19:53.00= 0000000 +0200 -+++ dhcp-4.3.5b1/server/tests/Makefile.am 2016-09-12 17:00:22.799902249 +0200 -@@ -1,9 +1,7 @@ - SUBDIRS =3D . -=20 --BINDLIBDIR =3D @BINDDIR@/lib -- - AM_CPPFLAGS =3D $(ATF_CFLAGS) -DUNIT_TEST -I$(top_srcdir)/includes --AM_CPPFLAGS +=3D -I(a)BINDDIR@/include -I$(top_srcdir) -+AM_CPPFLAGS +=3D -I$(top_srcdir) - AM_CPPFLAGS +=3D -DLOCALSTATEDIR=3D'"."' -=20 - EXTRA_DIST =3D Atffile -@@ -20,9 +18,8 @@ DHCPSRC =3D ../dhcp.c ../bootp.c ../confpa - ../ldap.c ../ldap_casa.c ../dhcpd.c ../leasechain.c -=20 - DHCPLIBS =3D $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/liboma= pi.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 -=20 - ATF_TESTS =3D - if HAVE_ATF diff --git a/dhcp/patches/0004-dhcp-dhclient-options.patch b/dhcp/patches/000= 2-additional-dhclient-options.patch similarity index 69% rename from dhcp/patches/0004-dhcp-dhclient-options.patch rename to dhcp/patches/0002-additional-dhclient-options.patch index 8f0dfe98b..e11213041 100644 --- a/dhcp/patches/0004-dhcp-dhclient-options.patch +++ b/dhcp/patches/0002-additional-dhclient-options.patch @@ -1,6 +1,22 @@ -diff -up dhcp-4.3.4/client/clparse.c.options dhcp-4.3.4/client/clparse.c ---- dhcp-4.3.4/client/clparse.c.options 2016-03-22 14:16:51.000000000 +0100 -+++ dhcp-4.3.4/client/clparse.c 2016-04-29 12:06:13.485470579 +0200 +From 3a86bcb58a7c081df22b6f55e973d5e3c99065d8 Mon Sep 17 00:00:00 2001 +From: Pavel Zhukov +Date: Thu, 21 Feb 2019 10:19:47 +0100 +Subject: [PATCH 02/21] additional dhclient options +Cc: pzhukov(a)redhat.com + +--- + client/clparse.c | 10 +- + client/dhclient.8 | 27 ++++++ + client/dhclient.c | 271 +++++++++++++++++++++++++++++++++++++++++++++++++= ++- + common/conflex.c | 2 + + includes/dhcpd.h | 3 + + includes/dhctoken.h | 1 + + 6 files changed, 308 insertions(+), 6 deletions(-) + +diff --git a/client/clparse.c b/client/clparse.c +index eaf48a8..7212e3a 100644 +--- a/client/clparse.c ++++ b/client/clparse.c @@ -189,6 +189,7 @@ isc_result_t read_client_conf () /* Requested lease time, used by DHCPv6 (DHCPv4 uses the option cache) */ @@ -19,7 +35,7 @@ diff -up dhcp-4.3.4/client/clparse.c.options dhcp-4.3.4/cli= ent/clparse.c =20 void parse_client_statement (cfile, ip, config) struct parse *cfile; -@@ -817,6 +819,12 @@ void parse_client_statement (cfile, ip, +@@ -817,6 +819,12 @@ void parse_client_statement (cfile, ip, config) parse_lease_id_format(cfile); break; =20 @@ -32,10 +48,11 @@ diff -up dhcp-4.3.4/client/clparse.c.options dhcp-4.3.4/c= lient/clparse.c =20 default: lose =3D 0; -diff -up dhcp-4.3.4/client/dhclient.8.options dhcp-4.3.4/client/dhclient.8 ---- dhcp-4.3.4/client/dhclient.8.options 2016-03-22 14:16:51.000000000 +0100 -+++ dhcp-4.3.4/client/dhclient.8 2016-04-29 11:59:50.446590077 +0200 -@@ -134,6 +134,33 @@ dhclient - Dynamic Host Configuration Pr +diff --git a/client/dhclient.8 b/client/dhclient.8 +index ebc750f..6d7fbdb 100644 +--- a/client/dhclient.8 ++++ b/client/dhclient.8 +@@ -134,6 +134,33 @@ dhclient - Dynamic Host Configuration Protocol Client .B -w ] [ @@ -66,85 +83,16 @@ diff -up dhcp-4.3.4/client/dhclient.8.options dhcp-4.3.4/= client/dhclient.8 +.I timeout +] +[ - .B -v + .B --dad-wait-time + .I seconds ] - [ -@@ -289,6 +316,69 @@ not to exit when it doesn't find any suc - program can then be used to notify the client when a network interface - has been added or removed, so that the client can attempt to configure an IP - address on that interface. -+ -+.TP -+.BI \-B -+Set the BOOTP broadcast flag in request packets so servers will always -+broadcast replies. -+ -+.TP -+.BI \-C\ -+Specify the dhcp-client-identifier option to send to the DHCP server. -+ -+.TP -+.BI \-H\ -+Specify the host-name option to send to the DHCP server. The host-name -+string only contains the client's hostname prefix, to which the server will -+append the ddns-domainname or domain-name options, if any, to derive the -+fully qualified domain name of the client. The -+.B -H -+option cannot be used with the -+.B -F -+option. -+ -+.TP -+.BI \-F\ -+Specify the fqdn.fqdn option to send to the DHCP server. This option cannot -+be used with the -+.B -H -+option. The fqdn.fqdn option must specify the complete domain name of the -+client host, which the server may use for dynamic DNS updates. -+ -+.TP -+.BI \-V\ -+Specify the vendor-class-identifier option to send to the DHCP server. -+ -+.TP -+.BI \--request-options\