From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] dhcp: Update to 4.3.5b1 Date: Sat, 25 Feb 2017 15:24:39 +0000 Message-ID: <1488036279.24657.217.camel@ipfire.org> In-Reply-To: <20170223115433.23219-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5095931064113955356==" List-Id: --===============5095931064113955356== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This depends on the bind update. Please note that in the comment of the patch in the future. Couldn't build it, so please submit again after the bind update has been applied. Best, -Michael On Thu, 2017-02-23 at 12:54 +0100, Stefan Schantl wrote: > This is an update to the latest available version of the isc-dhcp. >=20 > Also rework the patch handling. >=20 > Signed-off-by: Stefan Schantl > --- > =C2=A0dhcp/dhcp.nm=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A081 +- > =C2=A0dhcp/patches/0001-dhcp-remove-bind.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| 261 +++++++ > =C2=A0dhcp/patches/0002-dhcp-sharedlib.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| 140 ++++ > =C2=A0dhcp/patches/0003-dhcp-errwarn-message.patch=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0|=C2=A0=C2=A064 ++ > =C2=A0...ions.patch =3D> 0004-dhcp-dhclient-options.patch} | 254 +++---- > =C2=A0...-ifup.patch =3D> 0005-dhcp-release-by-ifup.patch} |=C2=A0=C2=A010 = +- > =C2=A0...ch =3D> 0006-dhcp-dhclient-decline-backoff.patch} |=C2=A0=C2=A038 = +- > =C2=A0...t-bootp.patch =3D> 0007-dhcp-unicast-bootp.patch} |=C2=A0=C2=A030 = +- > =C2=A0...h =3D> 0008-dhcp-default-requested-options.patch} |=C2=A0=C2=A014 = +- > =C2=A0...2.5-manpages.patch =3D> 0009-dhcp-manpages.patch} |=C2=A0=C2=A061 = +- > =C2=A0...hcp-4.2.4-paths.patch =3D> 0010-dhcp-paths.patch} |=C2=A0=C2=A016 = +- > =C2=A0...4.2.2-CLOEXEC.patch =3D> 0011-dhcp-CLOEXEC.patch} | 178 +++-- > =C2=A0dhcp/patches/0012-dhcp-garbage-chars.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A012 + > =C2=A0dhcp/patches/0013-dhcp-add_timeout_when_NULL.patch |=C2=A0=C2=A014 + > =C2=A0...se.patch =3D> 0014-dhcp-64_bit_lease_parse.patch} |=C2=A0=C2=A043 = +- > =C2=A0...capability.patch =3D> 0015-dhcp-capability.patch} | 100 +-- > =C2=A0...ndDecline.patch =3D> 0016-dhcp-sendDecline.patch} |=C2=A0=C2=A026 = +- > =C2=A0...017-dhcp-rfc3442-classless-static-routes.patch} | 110 +-- > =C2=A0...expired.patch =3D> 0018-dhcp-honor-expired.patch} |=C2=A0=C2=A010 = +- > =C2=A0.../{dhcp-4.2.5-PPP.patch =3D> 0019-dhcp-PPP.patch}=C2=A0=C2=A0| 116 = +-- > =C2=A0...p-4.2.5-lpf-ib.patch =3D> 0020-dhcp-lpf-ib.patch} | 247 ++++--- > =C2=A0dhcp/patches/0021-dhcp-IPoIB-log-id.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| 165 +++++ > =C2=A0...oved-xid.patch =3D> 0022-dhcp-improved-xid.patch} |=C2=A0=C2=A074 = +- > =C2=A0dhcp/patches/0023-dhcp-duidv4.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A03= 4 + > =C2=A0dhcp/patches/0024-dhcp-duid_uuid.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| 111 +++ > =C2=A0...getifaddrs.patch =3D> 0025-dhcp-getifaddrs.patch} |=C2=A0=C2=A050 = +- > =C2=A0...26-dhcp-client-request-release-bind-iface.patch |=C2=A0=C2=A061 ++ > =C2=A0...-P1-interval.patch =3D> 0027-dhcp-interval.patch} |=C2=A0=C2=A0=C2= =A08 +- > =C2=A0dhcp/patches/0028-dhcp-no-subnet-error2info.patch=C2=A0=C2=A0|=C2=A0= =C2=A048 ++ > =C2=A0dhcp/patches/0029-dhcp-sd_notify.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A079 ++ > =C2=A0.../patches/0030-dhcp-option97-pxe-client-id.patch | 217 ++++++ > =C2=A0dhcp/patches/0031-dhcp-stateless-DUID-LLT.patch=C2=A0=C2=A0=C2=A0=C2= =A0|=C2=A0=C2=A013 + > =C2=A0dhcp/patches/0032-dhcp-dhclient-preinit6s.patch=C2=A0=C2=A0=C2=A0=C2= =A0|=C2=A0=C2=A064 ++ > =C2=A0.../patches/dhcp-4.2.0-add_timeout_when_NULL.patch |=C2=A0=C2=A014 - > =C2=A0dhcp/patches/dhcp-4.2.0-errwarn-message.patch=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0|=C2=A0=C2=A030 - > =C2=A0dhcp/patches/dhcp-4.2.0-garbage-chars.patch=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A012 - > =C2=A0dhcp/patches/dhcp-4.2.0-logpid.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A012 - > =C2=A0dhcp/patches/dhcp-4.2.1-retransmission.patch=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0|=C2=A0=C2=A048 -- > =C2=A0dhcp/patches/dhcp-4.2.2-gpxe-cid.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A083 --- > =C2=A0dhcp/patches/dhcp-4.2.2-xen-checksum.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0| 249 ------- > =C2=A0dhcp/patches/dhcp-4.2.3-P2-log_perror.patch=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A011 - > =C2=A0.../dhcp-4.2.3-dhclient-decline-onetry.patch=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0|=C2=A0=C2=A027 - > =C2=A0dhcp/patches/dhcp-4.2.4-P1-remove-dst.patch=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A046 -- > =C2=A0.../dhcp-4.2.4-P2-conflex-do-forward-updates.patch |=C2=A0=C2=A012 - > =C2=A0dhcp/patches/dhcp-4.2.4-P2-dupl-key.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A013 - > =C2=A0dhcp/patches/dhcp-4.2.4-UseMulticast.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0| 239 ------ > =C2=A0dhcp/patches/dhcp-4.2.4-failOverPeer.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A012 - > =C2=A0dhcp/patches/dhcp-4.2.4-send_release.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A023 - > =C2=A0dhcp/patches/dhcp-4.2.5-next-server.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A072 -- > =C2=A0dhcp/patches/dhcp-4.2.5-paranoia.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| 202 ----- > =C2=A0dhcp/patches/dhcp-4.2.5-range6.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A042 -- > =C2=A0dhcp/patches/dhcp-4.2.5-remove-bind.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| 164 ---- > =C2=A0...5-rfc5970-dhcpv6-options-for-network-boot.patch |=C2=A0=C2=A089 --- > =C2=A0dhcp/patches/dhcp-4.2.5-sharedlib.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| 120 --- > =C2=A0dhcp/patches/dhcp-4.2.5-systemtap.patch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| 822 -------------------- > - > =C2=A0dhcp/patches/dhcp-4.2.5b1-atf-pkgconfig.patch=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0|=C2=A0=C2=A023 - > =C2=A056 files changed, 2014 insertions(+), 3100 deletions(-) > =C2=A0create mode 100644 dhcp/patches/0001-dhcp-remove-bind.patch > =C2=A0create mode 100644 dhcp/patches/0002-dhcp-sharedlib.patch > =C2=A0create mode 100644 dhcp/patches/0003-dhcp-errwarn-message.patch > =C2=A0rename dhcp/patches/{dhcp-4.2.4-dhclient-options.patch =3D> 0004-dhcp= -dhclient- > options.patch} (72%) > =C2=A0rename dhcp/patches/{dhcp-4.2.0-release-by-ifup.patch =3D> 0005-dhcp-= release- > by-ifup.patch} (88%) > =C2=A0rename dhcp/patches/{dhcp-4.2.0-dhclient-decline-backoff.patch =3D> 0= 006-dhcp- > dhclient-decline-backoff.patch} (56%) > =C2=A0rename dhcp/patches/{dhcp-4.2.4-unicast-bootp.patch =3D> 0007-dhcp-un= icast- > bootp.patch} (72%) > =C2=A0rename dhcp/patches/{dhcp-4.2.0-default-requested-options.patch =3D> = 0008-dhcp- > default-requested-options.patch} (76%) > =C2=A0rename dhcp/patches/{dhcp-4.2.5-manpages.patch =3D> 0009-dhcp-manpage= s.patch} > (70%) > =C2=A0rename dhcp/patches/{dhcp-4.2.4-paths.patch =3D> 0010-dhcp-paths.patc= h} (57%) > =C2=A0rename dhcp/patches/{dhcp-4.2.2-CLOEXEC.patch =3D> 0011-dhcp-CLOEXEC.= patch} > (63%) > =C2=A0create mode 100644 dhcp/patches/0012-dhcp-garbage-chars.patch > =C2=A0create mode 100644 dhcp/patches/0013-dhcp-add_timeout_when_NULL.patch > =C2=A0rename dhcp/patches/{dhcp-4.2.4-64_bit_lease_parse.patch =3D> 0014-dh= cp- > 64_bit_lease_parse.patch} (51%) > =C2=A0rename dhcp/patches/{dhcp-4.2.2-capability.patch =3D> 0015-dhcp- > capability.patch} (64%) > =C2=A0rename dhcp/patches/{dhcp-4.2.5-sendDecline.patch =3D> 0016-dhcp- > sendDecline.patch} (88%) > =C2=A0rename dhcp/patches/{dhcp-4.2.5-rfc3442-classless-static-routes.patch= =3D> > 0017-dhcp-rfc3442-classless-static-routes.patch} (76%) > =C2=A0rename dhcp/patches/{dhcp-4.2.0-honor-expired.patch =3D> 0018-dhcp-ho= nor- > expired.patch} (77%) > =C2=A0rename dhcp/patches/{dhcp-4.2.5-PPP.patch =3D> 0019-dhcp-PPP.patch} (= 62%) > =C2=A0rename dhcp/patches/{dhcp-4.2.5-lpf-ib.patch =3D> 0020-dhcp-lpf-ib.pa= tch} (70%) > =C2=A0create mode 100644 dhcp/patches/0021-dhcp-IPoIB-log-id.patch > =C2=A0rename dhcp/patches/{dhcp-4.2.4-improved-xid.patch =3D> 0022-dhcp-imp= roved- > xid.patch} (71%) > =C2=A0create mode 100644 dhcp/patches/0023-dhcp-duidv4.patch > =C2=A0create mode 100644 dhcp/patches/0024-dhcp-duid_uuid.patch > =C2=A0rename dhcp/patches/{dhcp-4.2.4-getifaddrs.patch =3D> 0025-dhcp- > getifaddrs.patch} (89%) > =C2=A0create mode 100644 dhcp/patches/0026-dhcp-client-request-release-bind- > iface.patch > =C2=A0rename dhcp/patches/{dhcp-4.2.4-P1-interval.patch =3D> 0027-dhcp- > interval.patch} (72%) > =C2=A0create mode 100644 dhcp/patches/0028-dhcp-no-subnet-error2info.patch > =C2=A0create mode 100644 dhcp/patches/0029-dhcp-sd_notify.patch > =C2=A0create mode 100644 dhcp/patches/0030-dhcp-option97-pxe-client-id.patch > =C2=A0create mode 100644 dhcp/patches/0031-dhcp-stateless-DUID-LLT.patch > =C2=A0create mode 100644 dhcp/patches/0032-dhcp-dhclient-preinit6s.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.0-add_timeout_when_NULL.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.0-errwarn-message.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.0-garbage-chars.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.0-logpid.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.1-retransmission.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.2-gpxe-cid.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.2-xen-checksum.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.3-P2-log_perror.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.3-dhclient-decline-onetry.pa= tch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.4-P1-remove-dst.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.4-P2-conflex-do-forward- > updates.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.4-P2-dupl-key.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.4-UseMulticast.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.4-failOverPeer.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.4-send_release.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.5-next-server.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.5-paranoia.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.5-range6.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.5-remove-bind.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.5-rfc5970-dhcpv6-options-for- > network-boot.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.5-sharedlib.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.5-systemtap.patch > =C2=A0delete mode 100644 dhcp/patches/dhcp-4.2.5b1-atf-pkgconfig.patch >=20 > diff --git a/dhcp/dhcp.nm b/dhcp/dhcp.nm > index 4cee3bd..eafb0b0 100644 > --- a/dhcp/dhcp.nm > +++ b/dhcp/dhcp.nm > @@ -4,8 +4,8 @@ > =C2=A0#####################################################################= ######## > ## > =C2=A0 > =C2=A0name=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D dhcp > -version=C2=A0=C2=A0=C2=A0=C2=A0=3D 4.2.5 > -release=C2=A0=C2=A0=C2=A0=C2=A0=3D 3 > +version=C2=A0=C2=A0=C2=A0=C2=A0=3D 4.3.5b1 > +release=C2=A0=C2=A0=C2=A0=C2=A0=3D 1 > =C2=A0 > =C2=A0groups=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D Networking/Daemons > =C2=A0url=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D http://isc.org= /products/DHCP/ > @@ -22,61 +22,17 @@ end > =C2=A0 > =C2=A0source_dl=C2=A0=C2=A0=3D ftp://ftp.isc.org/isc/dhcp/%{version}/ > =C2=A0 > -# Apply patches in a special order. > -patches =3D \ > - dhcp-4.2.5-remove-bind.patch \ > - dhcp-4.2.4-P1-remove-dst.patch \ > - dhcp-4.2.0-errwarn-message.patch \ > - dhcp-4.2.4-dhclient-options.patch \ > - dhcp-4.2.0-release-by-ifup.patch \ > - dhcp-4.2.0-dhclient-decline-backoff.patch \ > - dhcp-4.2.4-unicast-bootp.patch \ > - dhcp-4.2.0-default-requested-options.patch \ > - dhcp-4.2.2-xen-checksum.patch \ > - dhcp-4.2.5-manpages.patch \ > - dhcp-4.2.4-paths.patch \ > - dhcp-4.2.2-CLOEXEC.patch \ > - dhcp-4.2.0-garbage-chars.patch \ > - dhcp-4.2.0-add_timeout_when_NULL.patch \ > - dhcp-4.2.4-64_bit_lease_parse.patch \ > - dhcp-4.2.2-capability.patch \ > - dhcp-4.2.0-logpid.patch \ > - dhcp-4.2.4-UseMulticast.patch \ > - dhcp-4.2.5-sendDecline.patch \ > - dhcp-4.2.1-retransmission.patch \ > - dhcp-4.2.5-rfc3442-classless-static-routes.patch \ > - dhcp-4.2.0-honor-expired.patch \ > - dhcp-4.2.5-sharedlib.patch \ > - dhcp-4.2.5-PPP.patch \ > - dhcp-4.2.5-paranoia.patch \ > - dhcp-4.2.5-lpf-ib.patch \ > - dhcp-4.2.4-improved-xid.patch \ > - dhcp-4.2.2-gpxe-cid.patch \ > - dhcp-4.2.5-systemtap.patch \ > - dhcp-4.2.3-dhclient-decline-onetry.patch \ > - dhcp-4.2.3-P2-log_perror.patch \ > - dhcp-4.2.4-getifaddrs.patch \ > - dhcp-4.2.4-send_release.patch \ > - dhcp-4.2.5-rfc5970-dhcpv6-options-for-network-boot.patch \ > - dhcp-4.2.4-failOverPeer.patch \ > - dhcp-4.2.5b1-atf-pkgconfig.patch \ > - dhcp-4.2.4-P1-interval.patch \ > - dhcp-4.2.4-P2-conflex-do-forward-updates.patch \ > - dhcp-4.2.4-P2-dupl-key.patch \ > - dhcp-4.2.5-range6.patch \ > - dhcp-4.2.5-next-server.patch > - > =C2=A0build > =C2=A0 requires > =C2=A0 autoconf > =C2=A0 automake > - bind-devel>=3D9 > + bind-devel>=3D9.9.9-P6 > =C2=A0 bind-devel<10 > =C2=A0 groff > =C2=A0 libtool > =C2=A0 openldap-devel > =C2=A0 libcap-ng-devel > - systemd-units > + systemd-devel > =C2=A0 end > =C2=A0 > =C2=A0 CFLAGS +=3D -fno-strict-aliasing > @@ -98,18 +54,37 @@ build > =C2=A0 --with-libbind-libs=3D/usr/lib/ \ > =C2=A0 --disable-static \ > =C2=A0 --enable-paranoia \ > - --enable-early-chroot > + --enable-early-chroot \ > + --enable-binary-leases \ > + --with-systemd > =C2=A0 > =C2=A0 prepare_cmds > =C2=A0 # Remove bundled BIND source > =C2=A0 rm -rvf %{DIR_APP}/bind/bind.tar.gz > =C2=A0 > - # Remove dst. > - rm -rvf dst includes/isc-dhcp > - > =C2=A0 # Regenerate build environment > - #libtoolize --copy --force > =C2=A0 autoreconf --verbose --force --install > + > + # Change DHCLIENT_DEFAULT_PREFIX_LEN=C2=A0=C2=A064 -> 128 > + sed -i -e 's|DHCLIENT_DEFAULT_PREFIX_LEN > 64|DHCLIENT_DEFAULT_PREFIX_LEN 128|g' \ > + includes/site.h > + > + # Update PATH in all manpages > + for page in client/dhclient.conf.5 client/dhclient.leases.5 \ > + client/dhclient-script.8 client/dhclient.8 ; do > + > + sed -i -e 's|CLIENTBINDIR|%{sbindir}|g' \ > + -e 's|RUNDIR|/run|g' \ > + -e 's|DBDIR|%{localstatedir}/lib/dhclient|g' > \ > + -e 's|ETCDIR|%{dhcpconfdir}|g' $page > + done > + > + for page in server/dhcpd.conf.5 server/dhcpd.leases.5 > server/dhcpd.8 ; do > + sed -i -e 's|CLIENTBINDIR|%{sbindir}|g' \ > + -e 's|RUNDIR|/run|g' \ > + -e 's|DBDIR|%{localstatedir}/lib/dhcpd|g' \ > + -e 's|ETCDIR|%{dhcpconfdir}|g' $page > + done > =C2=A0 end > =C2=A0 > =C2=A0 install_cmds > diff --git a/dhcp/patches/0001-dhcp-remove-bind.patch b/dhcp/patches/0001- > dhcp-remove-bind.patch > new file mode 100644 > index 0000000..46bd323 > --- /dev/null > +++ b/dhcp/patches/0001-dhcp-remove-bind.patch > @@ -0,0 +1,261 @@ > +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 @@ > + # production code. Sadly, we are not there yet. > + SUBDIRS =3D . tests > +=C2=A0 > +-BINDLIBDIR =3D @BINDDIR@/lib > +- > + AM_CPPFLAGS =3D > -DCLIENT_PATH=3D'"PATH=3D$(sbindir):/sbin:/bin:/usr/sbin:/usr/bin"' \ > +=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0-DLOCALSTATEDIR=3D'"$(localstat= edir)"' > +=C2=A0 > +@@ -15,7 +13,7 @@ dhclient_SOURCES =3D clparse.c dhclient.c > +=C2=A0 =C2=A0=C2=A0=C2=A0scripts/bsdos scripts/freebsd scripts/linux scri= pts/macos > \ > +=C2=A0 =C2=A0=C2=A0=C2=A0scripts/netbsd scripts/nextstep scripts/openbsd \ > +=C2=A0 =C2=A0=C2=A0=C2=A0scripts/solaris scripts/openwrt > +-dhclient_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.a > $(BINDLIBDIR)/libirs.a \ > +- =C2=A0$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a > $(BINDLIBDIR)/libisc.a > ++dhclient_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.a \ > ++ =C2=A0$(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/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 @@ > + SUBDIRS =3D . > +=C2=A0 > +-BINDLIBDIR =3D @BINDDIR@/lib > +- > + AM_CPPFLAGS =3D $(ATF_CFLAGS) -I$(top_srcdir)/includes > +=C2=A0 > + 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=C2=A0=C2=A0\ > +- ../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \ > +- $(BINDLIBDIR)/libdns.a > $(BINDLIBDIR)/libisccfg.a=C2=A0=C2=A0$(BINDLIBDIR)/libisc.a > ++ ../../omapip/libomapi.a \ > ++ $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc- > export > +=C2=A0 > + 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=C2=A0=C2=A0\ > +- ../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \ > +- $(BINDLIBDIR)/libdns.a > $(BINDLIBDIR)/libisccfg.a=C2=A0=C2=A0$(BINDLIBDIR)/libisc.a > ++ ../../omapip/libomapi.a \ > ++ $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc- > export > +=C2=A0 > + 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=C2=A0=C2=A0\ > +- ../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \ > +- $(BINDLIBDIR)/libdns.a > $(BINDLIBDIR)/libisccfg.a=C2=A0=C2=A0$(BINDLIBDIR)/libisc.a > ++ ../../omapip/libomapi.a \ > ++ $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc- > export > +=C2=A0 > + ns_name_unittest_SOURCES =3D ns_name_test.c $(top_srcdir)/tests/t_api_dhc= p.c > + ns_name_unittest_LDADD =3D $(ATF_LDFLAGS) > + ns_name_unittest_LDADD +=3D ../libdhcp.a=C2=A0=C2=A0\ > +- ../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \ > +- $(BINDLIBDIR)/libdns.a > $(BINDLIBDIR)/libisccfg.a=C2=A0=C2=A0$(BINDLIBDIR)/libisc.a > ++ ../../omapip/libomapi.a \ > ++ $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc- > export > +=C2=A0 > + check: $(ATF_TESTS) > +=C2=A0 @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 > +- =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0(default is ./bind)]), > ++ AS_HELP_STRING([--with-libbind=3DPATH],[bind includes are in PATH > ++ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0(default is ./bind/incl= udes)]), > +=C2=A0 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], > ++ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[bind9 export libraries are i= n PATH]), > ++ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0[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]) > +=C2=A0 ;; > + no) > +- BINDDIR=3D"\${top_srcdir}/bind" > +- BINDSRCDIR=3D"\${top_srcdir}/bind" > ++ BUNDLED_BIND=3Dyes > +=C2=A0 ;; > + *) > +- BINDDIR=3D"$use_libbind" > ++ BIND9_LIBDIR=3D"-L$libbind_libs" > ++ BUNDLED_BIND=3Dno > +=C2=A0 if test ! -d "$srcdir/bind"; then > +=C2=A0 # no bind directory, create it with a fake Makefile.in > +=C2=A0 # (AC_CONFIG_FILES and top Makefile refer to it so > +@@ -709,8 +722,8 @@ EOF > +=C2=A0 fi > +=C2=A0 ;; > + esac > +-AC_SUBST(BINDDIR) > +-AC_SUBST(BINDSRCDIR) > ++AM_CONDITIONAL([BUNDLED_BIND], [test "$BUNDLED_BIND" =3D yes]) > ++AC_SUBST([BIND9_LIBDIR]) > +=C2=A0 > + # OpenLDAP support. > + AC_ARG_WITH(ldap, > +@@ -788,7 +801,7 @@ fi > + CFLAGS=3D"$CFLAGS $STD_CWARNINGS" > +=C2=A0 > + # Try to add the bind and dhcp include directories > +-CFLAGS=3D"$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include" > ++CFLAGS=3D"$CFLAGS -I$libbind" > +=C2=A0 > + 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 @@ > +-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) > +=C2=A0 > + omshell_SOURCES =3D omshell.c > + omshell_LDADD =3D libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \ > +- =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(BINDLIBDIR)/libirs.a $= (BINDLIBDIR)/libdns.a \ > +- =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(BINDLIBDIR)/libisccfg.= a $(BINDLIBDIR)/libisc.a > ++ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(BIND9_LIBDIR) -lirs-ex= port -ldns-export -lisccfg-export > -lisc-export > +=C2=A0 > + libdhcpctl_a_SOURCES =3D dhcpctl.c callback.c remote.c > +=C2=A0 > + cltest_SOURCES =3D cltest.c > + cltest_LDADD =3D libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \ > +- =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(BINDLIBDIR)/libirs.a $(BINDL= IBDIR)/libdns.a \ > +-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0$(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a > ++ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(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 =3D RELNOTES LICENSE \ > +=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0bind/Makefile.in bind/bind.tar.gz bin= d/version.tmp \ > +=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0common/tests/Atffile server/tests/Atf= file > +=C2=A0 > +-SUBDIRS =3D @BINDSRCDIR@ includes tests common omapip client dhcpctl relay > server > ++if BUNDLED_BIND > ++SUBDIRS =3D bind > ++else > ++SUBDIRS =3D=C2=A0 > ++endif > ++ > ++SUBDIRS +=3D includes tests common omapip client dhcpctl relay server > +=C2=A0 > + nobase_include_HEADERS =3D dhcpctl/dhcpctl.h > +=C2=A0 > +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 @@ > +-BINDLIBDIR =3D @BINDDIR@/lib > +- > + lib_LIBRARIES =3D libomapi.a > + noinst_PROGRAMS =3D svtest > +=C2=A0 > +@@ -12,6 +10,6 @@ man_MANS =3D omapi.3 > + EXTRA_DIST =3D $(man_MANS) > +=C2=A0 > + 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 \ > ++ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(BIND9_LIBDIR) -lirs-export -= ldns-export -lisccfg-export > -lisc-export > +=C2=A0 > +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 @@ > +-BINDLIBDIR =3D @BINDDIR@/lib > +- > + AM_CPPFLAGS =3D -DLOCALSTATEDIR=3D'"@localstatedir@"' > +=C2=A0 > + sbin_PROGRAMS =3D dhcrelay > + dhcrelay_SOURCES =3D dhcrelay.c > + dhcrelay_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.a \ > +- =C2=A0$(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \ > +- =C2=A0$(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a > ++ =C2=A0$(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export > -lisc-export > + man_MANS =3D dhcrelay.8 > + EXTRA_DIST =3D $(man_MANS) > +=C2=A0 > +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 @@ > + # production code. Sadly, we are not there yet. > + SUBDIRS =3D . tests > +=C2=A0 > +-BINDLIBDIR =3D @BINDDIR@/lib > +- > + AM_CPPFLAGS =3D -I.. -DLOCALSTATEDIR=3D'"@localstatedir@"' > +=C2=A0 > + dist_sysconf_DATA =3D dhcpd.conf.example > +@@ -15,10 +13,9 @@ dhcpd_SOURCES =3D dhcpd.c dhcp.c bootp.c c > +=C2=A0 dhcpv6.c mdb6.c ldap.c ldap_casa.c leasechain.c > ldap_krb_helper.c > +=C2=A0 > + dhcpd_CFLAGS =3D $(LDAP_CFLAGS) > +-dhcpd_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.a \ > +- =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0../dhcpctl/libdhcpctl.a $(BINDLIBDIR= )/libirs.a \ > +- =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)= /libisccfg.a \ > +- =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(BINDLIBDIR)/libisc.a $(LDAP_LIBS) > ++dhcpd_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.a > ../dhcpctl/libdhcpctl.a \ > ++ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(BIND9_LIBDIR) -lirs-export -ldns-e= xport -lisccfg-export > -lisc-export \ > ++ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(LDAP_LIBS) > +=C2=A0 > + 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/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 @@ > + SUBDIRS =3D . > +=C2=A0 > +-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'"."' > +=C2=A0 > + EXTRA_DIST =3D Atffile > +@@ -20,9 +18,8 @@ DHCPSRC =3D ../dhcp.c ../bootp.c ../confpa > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0../ldap.= c ../ldap_casa.c ../dhcpd.c ../leasechain.c > +=C2=A0 > + DHCPLIBS =3D $(top_builddir)/common/libdhcp.a > $(top_builddir)/omapip/libomapi.a \ > +-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(top_builddi= r)/dhcpctl/libdhcpctl.a $(BINDLIBDIR)/libirs.a \ > +- =C2=A0=C2=A0$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a \ > +- =C2=A0=C2=A0$(BINDLIBDIR)/libisc.a > ++ =C2=A0=C2=A0=C2=A0$(top_builddir)/dhcpctl/libdhcpctl.a \ > ++ =C2=A0=C2=A0=C2=A0$(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-exp= ort -lisc- > export > +=C2=A0 > + ATF_TESTS =3D > + if HAVE_ATF > diff --git a/dhcp/patches/0002-dhcp-sharedlib.patch b/dhcp/patches/0002-dhc= p- > sharedlib.patch > new file mode 100644 > index 0000000..3427f78 > --- /dev/null > +++ b/dhcp/patches/0002-dhcp-sharedlib.patch > @@ -0,0 +1,140 @@ > +diff -up dhcp-4.3.4/client/Makefile.am.sharedlib dhcp- > 4.3.4/client/Makefile.am > +--- dhcp-4.3.4/client/Makefile.am.sharedlib 2016-04-29 > 11:48:30.389923087 +0200 > ++++ dhcp-4.3.4/client/Makefile.am 2016-04-29 11:48:30.393923084 +0200 > +@@ -13,7 +13,7 @@ dhclient_SOURCES =3D clparse.c dhclient.c > +=C2=A0 =C2=A0=C2=A0=C2=A0scripts/bsdos scripts/freebsd scripts/linux scri= pts/macos > \ > +=C2=A0 =C2=A0=C2=A0=C2=A0scripts/netbsd scripts/nextstep scripts/openbsd \ > +=C2=A0 =C2=A0=C2=A0=C2=A0scripts/solaris scripts/openwrt > +-dhclient_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.a \ > ++dhclient_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.la \ > +=C2=A0 =C2=A0$(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.4/common/tests/Makefile.am.sharedlib dhcp- > 4.3.4/common/tests/Makefile.am > +--- dhcp-4.3.4/common/tests/Makefile.am.sharedlib 2016-04-29 > 11:48:30.394923084 +0200 > ++++ dhcp-4.3.4/common/tests/Makefile.am 2016-04-29 11:54:16.890716651 > +0200 > +@@ -13,25 +13,25 @@ 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=C2=A0=C2=A0\ > +- ../../omapip/libomapi.a \ > ++ ../../omapip/libomapi.la \ > +=C2=A0 $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc- > export > +=C2=A0 > + 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=C2=A0=C2=A0\ > +- ../../omapip/libomapi.a \ > ++ ../../omapip/libomapi.la \ > +=C2=A0 $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc- > export > +=C2=A0 > + 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=C2=A0=C2=A0\ > +- ../../omapip/libomapi.a \ > ++ ../../omapip/libomapi.la \ > +=C2=A0 $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc- > export > +=C2=A0 > + ns_name_unittest_SOURCES =3D ns_name_test.c $(top_srcdir)/tests/t_api_dhc= p.c > + ns_name_unittest_LDADD =3D $(ATF_LDFLAGS) > + ns_name_unittest_LDADD +=3D ../libdhcp.a=C2=A0=C2=A0\ > +- ../../omapip/libomapi.a \ > ++ ../../omapip/libomapi.la \ > +=C2=A0 $(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export -lisc- > export > +=C2=A0 > + check: $(ATF_TESTS) > +diff -up dhcp-4.3.4/configure.ac.sharedlib dhcp-4.3.4/configure.ac > +--- dhcp-4.3.4/configure.ac.sharedlib 2016-04-29 11:48:30.394923084 > +0200 > ++++ dhcp-4.3.4/configure.ac 2016-04-29 11:55:22.729691668 +0200 > +@@ -47,7 +47,8 @@ AM_CONDITIONAL(CROSS_COMPILING, test "$c > + # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. > + AC_USE_SYSTEM_EXTENSIONS > +=C2=A0 > +-AC_PROG_RANLIB > ++# Use libtool to simplify building of shared libraries > ++AC_PROG_LIBTOOL > +=C2=A0 > + AC_PATH_PROG(AR, ar) > + AC_SUBST(AR) > +diff -up dhcp-4.3.4/dhcpctl/Makefile.am.sharedlib dhcp- > 4.3.4/dhcpctl/Makefile.am > +--- dhcp-4.3.4/dhcpctl/Makefile.am.sharedlib 2016-04-29 > 11:48:30.394923084 +0200 > ++++ dhcp-4.3.4/dhcpctl/Makefile.am 2016-04-29 11:56:18.390670546 +0200 > +@@ -1,15 +1,15 @@ > + bin_PROGRAMS =3D omshell > +-lib_LIBRARIES =3D libdhcpctl.a > ++lib_LTLIBRARIES =3D libdhcpctl.la > + noinst_PROGRAMS =3D cltest > + man_MANS =3D omshell.1 dhcpctl.3 > + EXTRA_DIST =3D $(man_MANS) > +=C2=A0 > + omshell_SOURCES =3D omshell.c > +-omshell_LDADD =3D libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \ > ++omshell_LDADD =3D libdhcpctl.la ../common/libdhcp.a ../omapip/libomapi.la= \ > +=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(BIND9_LIBDIR) -li= rs-export -ldns-export -lisccfg-export > -lisc-export > +=C2=A0 > +-libdhcpctl_a_SOURCES =3D dhcpctl.c callback.c remote.c > ++libdhcpctl_la_SOURCES =3D dhcpctl.c callback.c remote.c > +=C2=A0 > + cltest_SOURCES =3D cltest.c > +-cltest_LDADD =3D libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \ > ++cltest_LDADD =3D libdhcpctl.la ../common/libdhcp.a ../omapip/libomapi.la \ > +=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(BIND9_LIBDIR) -lirs-exp= ort -ldns-export -lisccfg-export > -lisc-export > +diff -up dhcp-4.3.4/omapip/Makefile.am.sharedlib dhcp- > 4.3.4/omapip/Makefile.am > +--- dhcp-4.3.4/omapip/Makefile.am.sharedlib 2016-04-29 > 11:48:30.392923085 +0200 > ++++ dhcp-4.3.4/omapip/Makefile.am 2016-04-29 11:57:33.709641969 +0200 > +@@ -1,7 +1,7 @@ > +-lib_LIBRARIES =3D libomapi.a > ++lib_LTLIBRARIES =3D libomapi.la > + noinst_PROGRAMS =3D svtest > +=C2=A0 > +-libomapi_a_SOURCES =3D protocol.c buffer.c alloc.c result.c connection.c \ > ++libomapi_la_SOURCES =3D protocol.c buffer.c alloc.c result.c connection.c= \ > +=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0errwarn.c listener.c dispatch.c gene= ric.c support.c \ > +=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0handle.c message.c convert.c hash.c = auth.c inet_addr.c > \ > +=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0array.c trace.c toisc.c iscprint.c i= sclib.c > +@@ -10,6 +10,6 @@ man_MANS =3D omapi.3 > + EXTRA_DIST =3D $(man_MANS) > +=C2=A0 > + svtest_SOURCES =3D test.c > +-svtest_LDADD =3D libomapi.a \ > ++svtest_LDADD =3D libomapi.la \ > +=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(BIND9_LIBDIR) -lirs-exp= ort -ldns-export -lisccfg-export > -lisc-export > +=C2=A0 > +diff -up dhcp-4.3.4/relay/Makefile.am.sharedlib dhcp-4.3.4/relay/Makefile.= am > +--- dhcp-4.3.4/relay/Makefile.am.sharedlib 2016-04-29 > 11:48:30.392923085 +0200 > ++++ dhcp-4.3.4/relay/Makefile.am 2016-04-29 11:48:30.395923083 +0200 > +@@ -2,7 +2,7 @@ AM_CPPFLAGS =3D -DLOCALSTATEDIR=3D'"@localst > +=C2=A0 > + sbin_PROGRAMS =3D dhcrelay > + dhcrelay_SOURCES =3D dhcrelay.c > +-dhcrelay_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.a \ > ++dhcrelay_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.la \ > +=C2=A0 =C2=A0$(BIND9_LIBDIR) -lirs-export -ldns-export -lisccfg-export > -lisc-export > + man_MANS =3D dhcrelay.8 > + EXTRA_DIST =3D $(man_MANS) > +diff -up dhcp-4.3.4/server/Makefile.am.sharedlib dhcp- > 4.3.4/server/Makefile.am > +--- dhcp-4.3.4/server/Makefile.am.sharedlib 2016-04-29 > 11:48:30.392923085 +0200 > ++++ dhcp-4.3.4/server/Makefile.am 2016-04-29 11:48:30.395923083 +0200 > +@@ -13,7 +13,7 @@ dhcpd_SOURCES =3D dhcpd.c dhcp.c bootp.c c > +=C2=A0 dhcpv6.c mdb6.c ldap.c ldap_casa.c leasechain.c > ldap_krb_helper.c > +=C2=A0 > + dhcpd_CFLAGS =3D $(LDAP_CFLAGS) > +-dhcpd_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.a > ../dhcpctl/libdhcpctl.a \ > ++dhcpd_LDADD =3D ../common/libdhcp.a ../omapip/libomapi.la > ../dhcpctl/libdhcpctl.la \ > +=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(BIND9_LIBDIR) -lirs-export -l= dns-export -lisccfg-export > -lisc-export \ > +=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0$(LDAP_LIBS) > +=C2=A0 > +diff -up dhcp-4.3.4/server/tests/Makefile.am.sharedlib dhcp- > 4.3.4/server/tests/Makefile.am > +--- dhcp-4.3.4/server/tests/Makefile.am.sharedlib 2016-04-29 > 11:48:30.395923083 +0200 > ++++ dhcp-4.3.4/server/tests/Makefile.am 2016-04-29 11:59:13.414604130 > +0200 > +@@ -17,8 +17,8 @@ DHCPSRC =3D ../dhcp.c ../bootp.c ../confpa > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0../ddns.= c ../dhcpleasequery.c ../dhcpv6.c ../mdb6.c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0\ > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0../ldap.= c ../ldap_casa.c ../dhcpd.c ../leasechain.c > +=C2=A0 > +-DHCPLIBS =3D $(top_builddir)/common/libdhcp.a > $(top_builddir)/omapip/libomapi.a \ > +- =C2=A0=C2=A0=C2=A0$(top_builddir)/dhcpctl/libdhcpctl.a \ > ++DHCPLIBS =3D $(top_builddir)/common/libdhcp.a > $(top_builddir)/omapip/libomapi.la \ > ++ =C2=A0=C2=A0=C2=A0$(top_builddir)/dhcpctl/libdhcpctl.la \ > +=C2=A0 =C2=A0=C2=A0=C2=A0$(BIND9_LIBDIR) -lirs-export -ldns-export -lisccf= g-export -lisc- > export > +=C2=A0 > + ATF_TESTS =3D > diff --git a/dhcp/patches/0003-dhcp-errwarn-message.patch b/dhcp/patches/00= 03- > dhcp-errwarn-message.patch > new file mode 100644 > index 0000000..f42d1e9 > --- /dev/null > +++ b/dhcp/patches/0003-dhcp-errwarn-message.patch > @@ -0,0 +1,64 @@ > +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); > + static char mbuf [CVT_BUF_MAX + 1]; > + static char fbuf [CVT_BUF_MAX + 1]; > +=C2=A0 > ++// get BUG_REPORT_URL from /etc/os-release > ++char * bug_report_url(void) { > ++=C2=A0=C2=A0=C2=A0=C2=A0FILE * file =3D fopen("/etc/os-release", "r"); > ++=C2=A0=C2=A0=C2=A0=C2=A0size_t len; > ++=C2=A0=C2=A0=C2=A0=C2=A0char * line =3D NULL; > ++=C2=A0=C2=A0=C2=A0=C2=A0char * url =3D NULL; > ++=C2=A0=C2=A0=C2=A0=C2=A0size_t url_len =3D 256; > ++ > ++=C2=A0=C2=A0=C2=A0=C2=A0url =3D (char *) malloc(url_len * sizeof(char)); > ++=C2=A0=C2=A0=C2=A0=C2=A0strcpy(url, "https://bugzilla.redhat.com/"); > ++ > ++=C2=A0=C2=A0=C2=A0=C2=A0if (!file) > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return url; > ++ > ++=C2=A0=C2=A0=C2=A0=C2=A0while ((getline(&line, &len, file)) !=3D -1) { > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if (strstr(line, "BUG_REP= ORT_URL") !=3D NULL) { > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0c= har * start =3D strchr(line, '=3D'); > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0c= har * rquotes =3D strrchr(line, '"'); > ++ > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0i= f (rquotes !=3D NULL) { > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0*rquotes =3D '\0'; > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0strncpy(url, start+2, url_len); > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}= else { > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0strncpy(url, start+1, url_len); > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0} > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0u= rl[url_len-1] =3D '\0'; > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0f= close(file); > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0r= eturn url; > ++=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0} > ++=C2=A0=C2=A0=C2=A0=C2=A0} > ++=C2=A0=C2=A0=C2=A0=C2=A0fclose(file); > ++=C2=A0=C2=A0=C2=A0=C2=A0return url; > ++} > ++ > ++ > + /* Log an error message, then exit... */ > +=C2=A0 > + void log_fatal (const char * fmt, ... ) > +@@ -75,11 +110,13 @@ void log_fatal (const char * fmt, ... ) > +=C2=A0=C2=A0=C2=A0} > +=C2=A0 > +=C2=A0=C2=A0=C2=A0log_error ("%s", ""); > +-=C2=A0=C2=A0log_error ("If you think you have received this message due t= o a bug > rather"); > +-=C2=A0=C2=A0log_error ("than a configuration issue please read the sectio= n on > submitting"); > +-=C2=A0=C2=A0log_error ("bugs on either our web page at www.isc.org or in = the README > file"); > +-=C2=A0=C2=A0log_error ("before submitting a bug.=C2=A0=C2=A0These pages e= xplain the proper"); > +-=C2=A0=C2=A0log_error ("process and the information we find helpful for d= ebugging.."); > ++=C2=A0=C2=A0log_error ("This version of ISC DHCP is based on the release = available"); > ++=C2=A0=C2=A0log_error ("on ftp.isc.org. Features have been added and othe= r changes"); > ++=C2=A0=C2=A0log_error ("have been made to the base software release in or= der to > make"); > ++=C2=A0=C2=A0log_error ("it work better with this distribution."); > ++=C2=A0=C2=A0log_error ("%s", ""); > ++=C2=A0=C2=A0log_error ("Please report issues with this software via: "); > ++=C2=A0=C2=A0log_error ("%s", bug_report_url()); > +=C2=A0=C2=A0=C2=A0log_error ("%s", ""); > +=C2=A0=C2=A0=C2=A0log_error ("exiting."); > +=C2=A0 > diff --git a/dhcp/patches/dhcp-4.2.4-dhclient-options.patch > b/dhcp/patches/0004-dhcp-dhclient-options.patch > similarity index 72% > rename from dhcp/patches/dhcp-4.2.4-dhclient-options.patch > rename to dhcp/patches/0004-dhcp-dhclient-options.patch > index 40c3271..8f0dfe9 100644 > --- a/dhcp/patches/dhcp-4.2.4-dhclient-options.patch > +++ b/dhcp/patches/0004-dhcp-dhclient-options.patch > @@ -1,14 +1,48 @@ > -diff -up dhcp-4.2.1b1/client/dhclient.8.man dhcp-4.2.1b1/client/dhclient.8 > ---- dhcp-4.2.1b1/client/dhclient.8.man 2010-07-14 22:09:34.000000000 > +0200 > -+++ dhcp-4.2.1b1/client/dhclient.8 2011-01-27 18:19:07.000000000 +0100 > -@@ -115,6 +115,33 @@ dhclient - Dynamic Host Configuration Pr > +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 > +@@ -189,6 +189,7 @@ isc_result_t read_client_conf () > +=C2=A0 /* Requested lease time, used by DHCPv6 (DHCPv4 uses the option > cache) > +=C2=A0 =C2=A0*/ > +=C2=A0 top_level_config.requested_lease =3D 7200; > ++ top_level_config.bootp_broadcast_always =3D 0; > +=C2=A0 > +=C2=A0 group_allocate (&top_level_config.on_receipt, MDL); > +=C2=A0 if (!top_level_config.on_receipt) > +@@ -394,7 +395,8 @@ void read_client_leases () > +=C2=A0 interface-declaration | > +=C2=A0 LEASE client-lease-statement | > +=C2=A0 ALIAS client-lease-statement | > +- KEY key-definition */ > ++ KEY key-definition | > ++ BOOTP_BROADCAST_ALWAYS */ > +=C2=A0 > + void parse_client_statement (cfile, ip, config) > +=C2=A0 struct parse *cfile; > +@@ -817,6 +819,12 @@ void parse_client_statement (cfile, ip, > +=C2=A0 parse_lease_id_format(cfile); > +=C2=A0 break; > +=C2=A0 > ++ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0case BOOTP_BROADCAST_ALWAYS: > ++ token =3D next_token(&val, (unsigned*)0, cfile); > ++ config -> bootp_broadcast_always =3D 1; > ++ parse_semi (cfile); > ++ return; > ++ > +=C2=A0 > +=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0default: > +=C2=A0 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 > =C2=A0 .B -w > =C2=A0 ] > =C2=A0 [ > =C2=A0+.B -B > =C2=A0+] > =C2=A0+[ > -+.B -I > ++.B -C > =C2=A0+.I dhcp-client-identifier > =C2=A0+] > =C2=A0+[ > @@ -24,18 +58,18 @@ diff -up dhcp-4.2.1b1/client/dhclient.8.man dhcp- > 4.2.1b1/client/dhclient.8 > =C2=A0+.I vendor-class-identifier > =C2=A0+] > =C2=A0+[ > -+.B -R > ++.B --request-options > =C2=A0+.I request-option-list > =C2=A0+] > =C2=A0+[ > -+.B -timeout > ++.B --timeout > =C2=A0+.I timeout > =C2=A0+] > =C2=A0+[ > =C2=A0 .B -v > =C2=A0 ] > =C2=A0 [ > -@@ -264,6 +291,69 @@ not to exit when it doesn't find any suc > +@@ -289,6 +316,69 @@ not to exit when it doesn't find any suc > =C2=A0 program can then be used to notify the client when a network interfa= ce > =C2=A0 has been added or removed, so that the client can attempt to configu= re an IP > =C2=A0 address on that interface. > @@ -46,7 +80,7 @@ diff -up dhcp-4.2.1b1/client/dhclient.8.man dhcp- > 4.2.1b1/client/dhclient.8 > =C2=A0+broadcast replies. > =C2=A0+ > =C2=A0+.TP > -+.BI \-I\ > ++.BI \-C\ > =C2=A0+Specify the dhcp-client-identifier option to send to the DHCP server. > =C2=A0+ > =C2=A0+.TP > @@ -73,7 +107,7 @@ diff -up dhcp-4.2.1b1/client/dhclient.8.man dhcp- > 4.2.1b1/client/dhclient.8 > =C2=A0+Specify the vendor-class-identifier option to send to the DHCP serve= r. > =C2=A0+ > =C2=A0+.TP > -+.BI \-R\