2007-01-10 17:39:58 +01:00
|
|
|
#
|
2011-02-18 11:34:04 +01:00
|
|
|
# spec file for package dhcp
|
2007-01-10 17:39:58 +01:00
|
|
|
#
|
2020-01-22 09:01:33 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-01-10 17:39:58 +01:00
|
|
|
#
|
2008-08-23 00:17:43 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-01-21 18:51:49 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-10 17:39:58 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-06-26 11:02:03 +02:00
|
|
|
%define isc_version 4.3.6-P1
|
2017-11-24 11:37:35 +01:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
2018-06-26 11:02:03 +02:00
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
2017-11-24 11:37:35 +01:00
|
|
|
%endif
|
2007-01-10 17:39:58 +01:00
|
|
|
Name: dhcp
|
2017-07-06 17:49:46 +02:00
|
|
|
Version: 4.3.5
|
2014-09-09 16:58:52 +02:00
|
|
|
Release: 0
|
2007-01-10 17:39:58 +01:00
|
|
|
Summary: Common Files Used by ISC DHCP Software
|
2012-03-28 17:29:59 +02:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Networking/Boot/Servers
|
2018-06-26 11:02:03 +02:00
|
|
|
URL: http://www.isc.org/software/dhcp
|
2013-01-11 12:58:29 +01:00
|
|
|
Source0: dhcp-%{isc_version}.tar.gz
|
|
|
|
Source1: dhcp-%{isc_version}.tar.gz.asc
|
|
|
|
Source2: %{name}.keyring
|
2010-05-14 00:27:05 +02:00
|
|
|
#
|
2014-02-10 19:14:12 +01:00
|
|
|
Source10: dhcpd.script
|
|
|
|
Source11: dhcrelay.script
|
|
|
|
Source12: dhcpd.service
|
|
|
|
Source13: dhcpd6.service
|
|
|
|
Source14: dhcrelay.service
|
|
|
|
Source15: dhcrelay6.service
|
|
|
|
Source17: sysconfig.dhcpd
|
|
|
|
Source18: sysconfig.dhcrelay
|
2010-05-14 00:27:05 +02:00
|
|
|
Source19: if-up.d.dhcpd-restart-hook
|
|
|
|
#
|
|
|
|
Source20: dhclient.conf
|
|
|
|
Source21: dhclient6.conf
|
|
|
|
Source22: dhcpd.conf
|
|
|
|
Source23: dhcpd6.conf
|
2014-02-10 19:14:12 +01:00
|
|
|
Source26: sysconfig.syslog-dhcpd
|
|
|
|
Source27: dhclient-script
|
2010-05-14 00:27:05 +02:00
|
|
|
#
|
|
|
|
Source41: dhcp.README
|
|
|
|
Source43: DDNS-howto.txt
|
|
|
|
Source44: contrib.tar.gz
|
|
|
|
Source45: examples.tar.gz
|
2016-11-29 09:40:31 +01:00
|
|
|
Source46: slp.reg.d.dhcp.reg
|
2014-02-10 19:14:12 +01:00
|
|
|
Patch1: 0001-dhcp-4.1.1-default-paths.patch
|
2010-05-14 00:27:05 +02:00
|
|
|
# paranoia patch is included now, but not the
|
|
|
|
# additional patch by thomas@suse.de not ...
|
2014-02-10 19:14:12 +01:00
|
|
|
Patch2: 0002-dhcp-4.1.1-paranoia.patch
|
|
|
|
Patch3: 0003-dhcp-4.2.2-man-includes.patch
|
|
|
|
Patch4: 0004-dhcp-4.1.1-tmpfile.patch
|
|
|
|
Patch5: 0005-dhcp-4.1.1-dhclient-exec-filedes.patch
|
- Update to dhcp-4.3.3 (fate#319067) provinding many bug fixes,
features and obsoletes several patches we were using before.
For complete list of the changes, please read the RELNOTES
file shipped along with the package or online:
https://kb.isc.org/article/AA-01297/82/DHCP-4.3.3-Release-Notes.html
- Removed obsolete patches included upstream now:
[- 0007-dhcp-4.2.6-ldap-mt01.patch,
- 0009-dhcp-4.2.6-xen-checksum.patch,
- 0013-dhcp-4.2.3-P1-dhclient-log-pid.patch,
- 0015-Ignore-SIGPIPE-to-not-die-in-socket-code.patch,
- 0016-server-log-DHCPv6-addresses-assigned-to-clients.patch,
- 0019-dhcp-4.2.x-ldap-debug-write.bnc835818.patch,
- 0021-dhcp-4.2.4-P2-bnc878846-conf-to-ldap.patch,
- 0022-dhcp-4.2.x-contrib-conf-to-ldap-reorder.886094.patch,
- 0023-dhcp-4.2.x-ddns-tsig-hmac-sha-support.890731.patch,
- 0025-dhcp-4.2.x-dhcpv6-retransmission-until-MRD.872609.patch,
- 0026-dhcp-4.2.x-disable-unused-ddns-port-in-server.891655.patch]
- Replaced hostname patch with a dhcpv6 and fqdn aware variant:
[- 0006-dhcp-4.2.5-dhclient-send-hostname-rml.patch,
+ 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch]
- Replaced infiniband support patch with fixed variant:
[- 0017-dhcp-4.2.6-lpf-ip-over-ib-support.patch
- 0018-dhcp-4.2.6-improved-xid.patch
- 0027-dhcp-4.2.x-handle-ifa_addr-NULL.909189.patch,
+ 0030-infiniband-support.patch]
- Merged/Adopted patches for the dhcp-4.3.3 sources:
[* 0004-dhcp-4.1.1-tmpfile.patch,
* 0011-dhcp-4.2.6-close-on-exec.patch,
* 0020-dhcp-4.2.x-chown-server-leases.bnc868253.patch]
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=151
2015-09-14 14:11:04 +02:00
|
|
|
Patch6: 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch
|
2014-02-10 19:14:12 +01:00
|
|
|
# PATCH-FIX-UPSTREAM lpf-bind-msg-fix bnc#617795
|
For complete changelog, please read the RELNOTES file shipped
along with this package or online at:
- Replaced hostname patch with a dhcpv6 and fqdn aware variant:
[- 0006-dhcp-4.2.5-dhclient-send-hostname-rml.patch,
+ 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch]
- Adjusted patch numbers in the spec file:
[- 0008-dhcp-4.1.1-P1-lpf-bind-msg-fix.patch,
- 0010-dhcp-4.2.2-dhclient-option-checks.patch,
- 0011-dhcp-4.2.6-close-on-exec.patch,
- 0012-dhcp-4.2.2-quiet-dhclient.patch,
- 0014-Fixed-linux-interface-discovery-using-getifaddrs.patch,
- 0020-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
- 0024-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch,
+ 0008-dhcp-4.2.2-dhclient-option-checks.patch,
+ 0009-dhcp-4.2.6-close-on-exec.patch,
+ 0010-dhcp-4.2.2-quiet-dhclient.patch,
+ 0011-Fixed-linux-interface-discovery-using-getifaddrs.patch,
+ 0012-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
+ 0013-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch]
- Fixed to not pass DHCPv6 address lifetimes a positive (unsigned
32bit) integers to scripts and properly format timestamps as long
to not break them on 64bit architectures (bsc#926159).
[+ 0014-dhclient6-unsigned-lifetimes-for-script-bsc-926159.patch]
- dhclient: expose next-server DHCPv4 option to script (bsc#928390)
[+ 0015-Expose-next-server-DHCPv4-option-to-dhclient-script.patch]
- Replaced infiniband support patch with fixed variant (bsc#910984):
[- 0017-dhcp-4.2.6-lpf-ip-over-ib-support.patch,
- 0018-dhcp-4.2.6-improved-xid.patch,
+ 0016-infiniband-support.patch]
- Moved dhcp-devel package include files and static libraries
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=154
2015-09-14 17:35:16 +02:00
|
|
|
Patch7: 0007-dhcp-4.1.1-P1-lpf-bind-msg-fix.patch
|
2014-02-10 19:14:12 +01:00
|
|
|
# PATCH-FIX-SLE dhclient-option-checks bnc#675052
|
For complete changelog, please read the RELNOTES file shipped
along with this package or online at:
- Replaced hostname patch with a dhcpv6 and fqdn aware variant:
[- 0006-dhcp-4.2.5-dhclient-send-hostname-rml.patch,
+ 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch]
- Adjusted patch numbers in the spec file:
[- 0008-dhcp-4.1.1-P1-lpf-bind-msg-fix.patch,
- 0010-dhcp-4.2.2-dhclient-option-checks.patch,
- 0011-dhcp-4.2.6-close-on-exec.patch,
- 0012-dhcp-4.2.2-quiet-dhclient.patch,
- 0014-Fixed-linux-interface-discovery-using-getifaddrs.patch,
- 0020-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
- 0024-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch,
+ 0008-dhcp-4.2.2-dhclient-option-checks.patch,
+ 0009-dhcp-4.2.6-close-on-exec.patch,
+ 0010-dhcp-4.2.2-quiet-dhclient.patch,
+ 0011-Fixed-linux-interface-discovery-using-getifaddrs.patch,
+ 0012-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
+ 0013-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch]
- Fixed to not pass DHCPv6 address lifetimes a positive (unsigned
32bit) integers to scripts and properly format timestamps as long
to not break them on 64bit architectures (bsc#926159).
[+ 0014-dhclient6-unsigned-lifetimes-for-script-bsc-926159.patch]
- dhclient: expose next-server DHCPv4 option to script (bsc#928390)
[+ 0015-Expose-next-server-DHCPv4-option-to-dhclient-script.patch]
- Replaced infiniband support patch with fixed variant (bsc#910984):
[- 0017-dhcp-4.2.6-lpf-ip-over-ib-support.patch,
- 0018-dhcp-4.2.6-improved-xid.patch,
+ 0016-infiniband-support.patch]
- Moved dhcp-devel package include files and static libraries
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=154
2015-09-14 17:35:16 +02:00
|
|
|
Patch8: 0008-dhcp-4.2.2-dhclient-option-checks.patch
|
2014-02-10 19:14:12 +01:00
|
|
|
# PATCH-FIX-OPENSUSE close-on-exec bnc#732910
|
For complete changelog, please read the RELNOTES file shipped
along with this package or online at:
- Replaced hostname patch with a dhcpv6 and fqdn aware variant:
[- 0006-dhcp-4.2.5-dhclient-send-hostname-rml.patch,
+ 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch]
- Adjusted patch numbers in the spec file:
[- 0008-dhcp-4.1.1-P1-lpf-bind-msg-fix.patch,
- 0010-dhcp-4.2.2-dhclient-option-checks.patch,
- 0011-dhcp-4.2.6-close-on-exec.patch,
- 0012-dhcp-4.2.2-quiet-dhclient.patch,
- 0014-Fixed-linux-interface-discovery-using-getifaddrs.patch,
- 0020-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
- 0024-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch,
+ 0008-dhcp-4.2.2-dhclient-option-checks.patch,
+ 0009-dhcp-4.2.6-close-on-exec.patch,
+ 0010-dhcp-4.2.2-quiet-dhclient.patch,
+ 0011-Fixed-linux-interface-discovery-using-getifaddrs.patch,
+ 0012-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
+ 0013-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch]
- Fixed to not pass DHCPv6 address lifetimes a positive (unsigned
32bit) integers to scripts and properly format timestamps as long
to not break them on 64bit architectures (bsc#926159).
[+ 0014-dhclient6-unsigned-lifetimes-for-script-bsc-926159.patch]
- dhclient: expose next-server DHCPv4 option to script (bsc#928390)
[+ 0015-Expose-next-server-DHCPv4-option-to-dhclient-script.patch]
- Replaced infiniband support patch with fixed variant (bsc#910984):
[- 0017-dhcp-4.2.6-lpf-ip-over-ib-support.patch,
- 0018-dhcp-4.2.6-improved-xid.patch,
+ 0016-infiniband-support.patch]
- Moved dhcp-devel package include files and static libraries
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=154
2015-09-14 17:35:16 +02:00
|
|
|
Patch9: 0009-dhcp-4.2.6-close-on-exec.patch
|
2014-02-10 19:14:12 +01:00
|
|
|
# PATCH-FIX-OPENSUSE quiet-dhclient bnc#711420
|
For complete changelog, please read the RELNOTES file shipped
along with this package or online at:
- Replaced hostname patch with a dhcpv6 and fqdn aware variant:
[- 0006-dhcp-4.2.5-dhclient-send-hostname-rml.patch,
+ 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch]
- Adjusted patch numbers in the spec file:
[- 0008-dhcp-4.1.1-P1-lpf-bind-msg-fix.patch,
- 0010-dhcp-4.2.2-dhclient-option-checks.patch,
- 0011-dhcp-4.2.6-close-on-exec.patch,
- 0012-dhcp-4.2.2-quiet-dhclient.patch,
- 0014-Fixed-linux-interface-discovery-using-getifaddrs.patch,
- 0020-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
- 0024-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch,
+ 0008-dhcp-4.2.2-dhclient-option-checks.patch,
+ 0009-dhcp-4.2.6-close-on-exec.patch,
+ 0010-dhcp-4.2.2-quiet-dhclient.patch,
+ 0011-Fixed-linux-interface-discovery-using-getifaddrs.patch,
+ 0012-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
+ 0013-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch]
- Fixed to not pass DHCPv6 address lifetimes a positive (unsigned
32bit) integers to scripts and properly format timestamps as long
to not break them on 64bit architectures (bsc#926159).
[+ 0014-dhclient6-unsigned-lifetimes-for-script-bsc-926159.patch]
- dhclient: expose next-server DHCPv4 option to script (bsc#928390)
[+ 0015-Expose-next-server-DHCPv4-option-to-dhclient-script.patch]
- Replaced infiniband support patch with fixed variant (bsc#910984):
[- 0017-dhcp-4.2.6-lpf-ip-over-ib-support.patch,
- 0018-dhcp-4.2.6-improved-xid.patch,
+ 0016-infiniband-support.patch]
- Moved dhcp-devel package include files and static libraries
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=154
2015-09-14 17:35:16 +02:00
|
|
|
Patch10: 0010-dhcp-4.2.2-quiet-dhclient.patch
|
2014-06-10 04:45:09 +02:00
|
|
|
# PATCH-FIX-OPENSUSE dhcp-4.2.x-chown-server-leases bnc#868253
|
For complete changelog, please read the RELNOTES file shipped
along with this package or online at:
- Replaced hostname patch with a dhcpv6 and fqdn aware variant:
[- 0006-dhcp-4.2.5-dhclient-send-hostname-rml.patch,
+ 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch]
- Adjusted patch numbers in the spec file:
[- 0008-dhcp-4.1.1-P1-lpf-bind-msg-fix.patch,
- 0010-dhcp-4.2.2-dhclient-option-checks.patch,
- 0011-dhcp-4.2.6-close-on-exec.patch,
- 0012-dhcp-4.2.2-quiet-dhclient.patch,
- 0014-Fixed-linux-interface-discovery-using-getifaddrs.patch,
- 0020-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
- 0024-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch,
+ 0008-dhcp-4.2.2-dhclient-option-checks.patch,
+ 0009-dhcp-4.2.6-close-on-exec.patch,
+ 0010-dhcp-4.2.2-quiet-dhclient.patch,
+ 0011-Fixed-linux-interface-discovery-using-getifaddrs.patch,
+ 0012-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
+ 0013-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch]
- Fixed to not pass DHCPv6 address lifetimes a positive (unsigned
32bit) integers to scripts and properly format timestamps as long
to not break them on 64bit architectures (bsc#926159).
[+ 0014-dhclient6-unsigned-lifetimes-for-script-bsc-926159.patch]
- dhclient: expose next-server DHCPv4 option to script (bsc#928390)
[+ 0015-Expose-next-server-DHCPv4-option-to-dhclient-script.patch]
- Replaced infiniband support patch with fixed variant (bsc#910984):
[- 0017-dhcp-4.2.6-lpf-ip-over-ib-support.patch,
- 0018-dhcp-4.2.6-improved-xid.patch,
+ 0016-infiniband-support.patch]
- Moved dhcp-devel package include files and static libraries
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=154
2015-09-14 17:35:16 +02:00
|
|
|
Patch12: 0012-dhcp-4.2.x-chown-server-leases.bnc868253.patch
|
2014-11-21 12:33:30 +01:00
|
|
|
# PATCH-FIX-SLE dhcp-4.2.x-dhcpv6-decline-on-DAD-failure bnc#872609
|
For complete changelog, please read the RELNOTES file shipped
along with this package or online at:
- Replaced hostname patch with a dhcpv6 and fqdn aware variant:
[- 0006-dhcp-4.2.5-dhclient-send-hostname-rml.patch,
+ 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch]
- Adjusted patch numbers in the spec file:
[- 0008-dhcp-4.1.1-P1-lpf-bind-msg-fix.patch,
- 0010-dhcp-4.2.2-dhclient-option-checks.patch,
- 0011-dhcp-4.2.6-close-on-exec.patch,
- 0012-dhcp-4.2.2-quiet-dhclient.patch,
- 0014-Fixed-linux-interface-discovery-using-getifaddrs.patch,
- 0020-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
- 0024-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch,
+ 0008-dhcp-4.2.2-dhclient-option-checks.patch,
+ 0009-dhcp-4.2.6-close-on-exec.patch,
+ 0010-dhcp-4.2.2-quiet-dhclient.patch,
+ 0011-Fixed-linux-interface-discovery-using-getifaddrs.patch,
+ 0012-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
+ 0013-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch]
- Fixed to not pass DHCPv6 address lifetimes a positive (unsigned
32bit) integers to scripts and properly format timestamps as long
to not break them on 64bit architectures (bsc#926159).
[+ 0014-dhclient6-unsigned-lifetimes-for-script-bsc-926159.patch]
- dhclient: expose next-server DHCPv4 option to script (bsc#928390)
[+ 0015-Expose-next-server-DHCPv4-option-to-dhclient-script.patch]
- Replaced infiniband support patch with fixed variant (bsc#910984):
[- 0017-dhcp-4.2.6-lpf-ip-over-ib-support.patch,
- 0018-dhcp-4.2.6-improved-xid.patch,
+ 0016-infiniband-support.patch]
- Moved dhcp-devel package include files and static libraries
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=154
2015-09-14 17:35:16 +02:00
|
|
|
Patch13: 0013-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch
|
|
|
|
# PATCH-FIX-SLE dhclient6-unsigned-lifetimes-for-script bsc#926159
|
|
|
|
Patch14: 0014-dhclient6-unsigned-lifetimes-for-script-bsc-926159.patch
|
|
|
|
# PATCH-FIX-SLE Expose-next-server-DHCPv4-option-to-dhclient-script bsc#928390
|
|
|
|
Patch15: 0015-Expose-next-server-DHCPv4-option-to-dhclient-script.patch
|
|
|
|
# PATCH-FIX-SLE infiniband-support bnc#870535,bsc#909189,bsc#910984
|
|
|
|
Patch16: 0016-infiniband-support.patch
|
|
|
|
# PATCH-FIX-SLE server-no-success-report-before-send bsc#919959
|
|
|
|
Patch17: 0017-server-no-success-report-before-send.919959.patch
|
2015-09-14 19:43:49 +02:00
|
|
|
# PATCH-FIX-SLE client-fail-on-script-pre-init-error bsc#912098
|
2015-09-14 19:28:50 +02:00
|
|
|
Patch18: 0018-client-fail-on-script-pre-init-error-bsc-912098.patch
|
2015-10-13 15:14:02 +02:00
|
|
|
# PATCH-FIX-SLE dhcp-4.2.4-P1-interval bsc#947780
|
2016-01-26 17:59:05 +01:00
|
|
|
Patch20: 0020-dhcp-4.x.x-fixed-improper-lease-duration-checking.patch
|
2019-10-15 17:56:51 +02:00
|
|
|
Patch21: 0021-dhcp-ip-family-symlinks.patch
|
|
|
|
Patch22: dhcp-CVE-2019-6470.patch
|
2014-02-10 19:14:12 +01:00
|
|
|
BuildRequires: automake
|
2018-06-26 11:02:03 +02:00
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: openldap2-devel
|
2007-11-22 18:09:01 +01:00
|
|
|
|
2007-01-10 17:39:58 +01:00
|
|
|
%package server
|
|
|
|
Summary: ISC DHCP Server
|
|
|
|
Group: Productivity/Networking/Boot/Servers
|
2019-05-17 10:41:13 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
# Workaround: require insserv-compat, until this package is
|
|
|
|
# converted to be shipping proper systemd units (boo#1133632)
|
|
|
|
Requires: insserv-compat
|
|
|
|
%endif
|
2012-03-28 17:29:59 +02:00
|
|
|
Requires: dhcp = %{version}
|
2020-01-22 09:01:33 +01:00
|
|
|
%if 0%{?suse_version} < 1500
|
2012-03-28 17:29:59 +02:00
|
|
|
Requires: net-tools
|
2020-01-22 09:01:33 +01:00
|
|
|
%endif
|
2018-06-26 11:02:03 +02:00
|
|
|
Requires(post): %fillup_prereq
|
|
|
|
Requires(pre): shadow
|
2019-10-22 15:55:46 +02:00
|
|
|
%systemd_ordering
|
2018-06-26 11:02:03 +02:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
Requires(pre): group(nogroup)
|
|
|
|
%endif
|
2007-11-22 18:09:01 +01:00
|
|
|
|
2007-01-10 17:39:58 +01:00
|
|
|
%package client
|
|
|
|
Summary: ISC DHCP Client
|
|
|
|
Group: Productivity/Networking/Boot/Clients
|
2019-08-27 14:02:07 +02:00
|
|
|
Requires: %{_bindir}/getent
|
2012-03-28 17:29:59 +02:00
|
|
|
Requires: dhcp = %{version}
|
2018-06-26 11:02:03 +02:00
|
|
|
Requires: iproute2
|
|
|
|
Requires: iputils
|
2017-10-18 11:10:44 +02:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
Requires: hostname
|
|
|
|
%else
|
|
|
|
Requires: net-tools
|
|
|
|
%endif
|
2007-11-22 18:09:01 +01:00
|
|
|
|
2007-01-10 17:39:58 +01:00
|
|
|
%package relay
|
2010-05-14 00:27:05 +02:00
|
|
|
Summary: ISC DHCP Relay Agent
|
2007-01-10 17:39:58 +01:00
|
|
|
Group: Productivity/Networking/Boot/Servers
|
2012-03-28 17:29:59 +02:00
|
|
|
Requires: dhcp = %{version}
|
2020-01-22 09:01:33 +01:00
|
|
|
%if 0%{?suse_version} < 1500
|
2012-03-28 17:29:59 +02:00
|
|
|
Requires: net-tools
|
2020-01-22 09:01:33 +01:00
|
|
|
%endif
|
2018-06-26 11:02:03 +02:00
|
|
|
Requires(post): %fillup_prereq
|
2020-01-22 09:01:33 +01:00
|
|
|
%systemd_ordering
|
2007-11-22 18:09:01 +01:00
|
|
|
|
2007-01-10 17:39:58 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Header Files and Libraries for dhcpctl API
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: dhcp = %{version}
|
|
|
|
|
2010-05-14 00:27:05 +02:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation
|
|
|
|
Group: Productivity/Networking/Boot/Servers
|
2007-01-10 17:39:58 +01:00
|
|
|
|
2010-05-14 00:27:05 +02:00
|
|
|
%description
|
|
|
|
This package contains common programs used by both the ISC DHCP
|
|
|
|
server ("dhcp-server" package) and client ("dhcp-client") as the
|
|
|
|
omshell and common manual pages.
|
2007-01-10 17:39:58 +01:00
|
|
|
|
|
|
|
%description server
|
|
|
|
This package contains the ISC DHCP server.
|
|
|
|
|
|
|
|
%description client
|
|
|
|
This is an alternative DHCP client, the ISC DHCP client for Linux. Like
|
|
|
|
"dhcpcd" (the client that is installed by default), it can be used to
|
|
|
|
configure the network setup. IP address, hostname, routing,
|
|
|
|
nameserver, netmask, and broadcast can be dynamically assigned while
|
|
|
|
booting the machine.
|
|
|
|
|
2018-06-26 11:02:03 +02:00
|
|
|
It is configurable via the configuration file %{_sysconfdir}/dhclient.conf and
|
2007-01-10 17:39:58 +01:00
|
|
|
you can define your own 'hooks' to be used by the /sbin/dhclient-script
|
|
|
|
(which is called by the daemon).
|
|
|
|
|
|
|
|
%description relay
|
|
|
|
This is the ISC DHCP relay agent. It can be used as a 'gateway' for
|
|
|
|
DHCP messages across physical network segments. This is necessary
|
|
|
|
because requests can be broadcast, and they will normally not be
|
|
|
|
routed.
|
|
|
|
|
2010-05-14 00:27:05 +02:00
|
|
|
%description doc
|
|
|
|
This package contains additional documentation files provided with
|
|
|
|
the software. The manual pages are in the corresponding packages.
|
|
|
|
|
2007-01-10 17:39:58 +01:00
|
|
|
%description devel
|
|
|
|
This package contains all of the libraries and headers for developing
|
|
|
|
with the Internet Software Consortium (ISC) dhcpctl API.
|
|
|
|
|
|
|
|
%prep
|
2010-09-29 12:28:25 +02:00
|
|
|
%setup -q -n %{name}-%{isc_version} -a 44 -a 45
|
2008-09-13 00:24:42 +02:00
|
|
|
##
|
2014-02-10 19:14:12 +01:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
For complete changelog, please read the RELNOTES file shipped
along with this package or online at:
- Replaced hostname patch with a dhcpv6 and fqdn aware variant:
[- 0006-dhcp-4.2.5-dhclient-send-hostname-rml.patch,
+ 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch]
- Adjusted patch numbers in the spec file:
[- 0008-dhcp-4.1.1-P1-lpf-bind-msg-fix.patch,
- 0010-dhcp-4.2.2-dhclient-option-checks.patch,
- 0011-dhcp-4.2.6-close-on-exec.patch,
- 0012-dhcp-4.2.2-quiet-dhclient.patch,
- 0014-Fixed-linux-interface-discovery-using-getifaddrs.patch,
- 0020-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
- 0024-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch,
+ 0008-dhcp-4.2.2-dhclient-option-checks.patch,
+ 0009-dhcp-4.2.6-close-on-exec.patch,
+ 0010-dhcp-4.2.2-quiet-dhclient.patch,
+ 0011-Fixed-linux-interface-discovery-using-getifaddrs.patch,
+ 0012-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
+ 0013-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch]
- Fixed to not pass DHCPv6 address lifetimes a positive (unsigned
32bit) integers to scripts and properly format timestamps as long
to not break them on 64bit architectures (bsc#926159).
[+ 0014-dhclient6-unsigned-lifetimes-for-script-bsc-926159.patch]
- dhclient: expose next-server DHCPv4 option to script (bsc#928390)
[+ 0015-Expose-next-server-DHCPv4-option-to-dhclient-script.patch]
- Replaced infiniband support patch with fixed variant (bsc#910984):
[- 0017-dhcp-4.2.6-lpf-ip-over-ib-support.patch,
- 0018-dhcp-4.2.6-improved-xid.patch,
+ 0016-infiniband-support.patch]
- Moved dhcp-devel package include files and static libraries
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=154
2015-09-14 17:35:16 +02:00
|
|
|
%patch7 -p1
|
2014-02-10 19:14:12 +01:00
|
|
|
%patch8 -p1
|
2018-03-08 14:53:43 +01:00
|
|
|
%patch9
|
2008-09-13 00:24:42 +02:00
|
|
|
%patch10 -p1
|
2010-05-14 00:27:05 +02:00
|
|
|
%patch12 -p1
|
For complete changelog, please read the RELNOTES file shipped
along with this package or online at:
- Replaced hostname patch with a dhcpv6 and fqdn aware variant:
[- 0006-dhcp-4.2.5-dhclient-send-hostname-rml.patch,
+ 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch]
- Adjusted patch numbers in the spec file:
[- 0008-dhcp-4.1.1-P1-lpf-bind-msg-fix.patch,
- 0010-dhcp-4.2.2-dhclient-option-checks.patch,
- 0011-dhcp-4.2.6-close-on-exec.patch,
- 0012-dhcp-4.2.2-quiet-dhclient.patch,
- 0014-Fixed-linux-interface-discovery-using-getifaddrs.patch,
- 0020-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
- 0024-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch,
+ 0008-dhcp-4.2.2-dhclient-option-checks.patch,
+ 0009-dhcp-4.2.6-close-on-exec.patch,
+ 0010-dhcp-4.2.2-quiet-dhclient.patch,
+ 0011-Fixed-linux-interface-discovery-using-getifaddrs.patch,
+ 0012-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
+ 0013-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch]
- Fixed to not pass DHCPv6 address lifetimes a positive (unsigned
32bit) integers to scripts and properly format timestamps as long
to not break them on 64bit architectures (bsc#926159).
[+ 0014-dhclient6-unsigned-lifetimes-for-script-bsc-926159.patch]
- dhclient: expose next-server DHCPv4 option to script (bsc#928390)
[+ 0015-Expose-next-server-DHCPv4-option-to-dhclient-script.patch]
- Replaced infiniband support patch with fixed variant (bsc#910984):
[- 0017-dhcp-4.2.6-lpf-ip-over-ib-support.patch,
- 0018-dhcp-4.2.6-improved-xid.patch,
+ 0016-infiniband-support.patch]
- Moved dhcp-devel package include files and static libraries
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=154
2015-09-14 17:35:16 +02:00
|
|
|
%patch13 -p1
|
2018-03-08 14:53:43 +01:00
|
|
|
%patch14
|
For complete changelog, please read the RELNOTES file shipped
along with this package or online at:
- Replaced hostname patch with a dhcpv6 and fqdn aware variant:
[- 0006-dhcp-4.2.5-dhclient-send-hostname-rml.patch,
+ 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch]
- Adjusted patch numbers in the spec file:
[- 0008-dhcp-4.1.1-P1-lpf-bind-msg-fix.patch,
- 0010-dhcp-4.2.2-dhclient-option-checks.patch,
- 0011-dhcp-4.2.6-close-on-exec.patch,
- 0012-dhcp-4.2.2-quiet-dhclient.patch,
- 0014-Fixed-linux-interface-discovery-using-getifaddrs.patch,
- 0020-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
- 0024-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch,
+ 0008-dhcp-4.2.2-dhclient-option-checks.patch,
+ 0009-dhcp-4.2.6-close-on-exec.patch,
+ 0010-dhcp-4.2.2-quiet-dhclient.patch,
+ 0011-Fixed-linux-interface-discovery-using-getifaddrs.patch,
+ 0012-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
+ 0013-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch]
- Fixed to not pass DHCPv6 address lifetimes a positive (unsigned
32bit) integers to scripts and properly format timestamps as long
to not break them on 64bit architectures (bsc#926159).
[+ 0014-dhclient6-unsigned-lifetimes-for-script-bsc-926159.patch]
- dhclient: expose next-server DHCPv4 option to script (bsc#928390)
[+ 0015-Expose-next-server-DHCPv4-option-to-dhclient-script.patch]
- Replaced infiniband support patch with fixed variant (bsc#910984):
[- 0017-dhcp-4.2.6-lpf-ip-over-ib-support.patch,
- 0018-dhcp-4.2.6-improved-xid.patch,
+ 0016-infiniband-support.patch]
- Moved dhcp-devel package include files and static libraries
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=154
2015-09-14 17:35:16 +02:00
|
|
|
%patch15 -p1
|
2018-03-08 14:53:43 +01:00
|
|
|
%patch16
|
For complete changelog, please read the RELNOTES file shipped
along with this package or online at:
- Replaced hostname patch with a dhcpv6 and fqdn aware variant:
[- 0006-dhcp-4.2.5-dhclient-send-hostname-rml.patch,
+ 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch]
- Adjusted patch numbers in the spec file:
[- 0008-dhcp-4.1.1-P1-lpf-bind-msg-fix.patch,
- 0010-dhcp-4.2.2-dhclient-option-checks.patch,
- 0011-dhcp-4.2.6-close-on-exec.patch,
- 0012-dhcp-4.2.2-quiet-dhclient.patch,
- 0014-Fixed-linux-interface-discovery-using-getifaddrs.patch,
- 0020-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
- 0024-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch,
+ 0008-dhcp-4.2.2-dhclient-option-checks.patch,
+ 0009-dhcp-4.2.6-close-on-exec.patch,
+ 0010-dhcp-4.2.2-quiet-dhclient.patch,
+ 0011-Fixed-linux-interface-discovery-using-getifaddrs.patch,
+ 0012-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
+ 0013-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch]
- Fixed to not pass DHCPv6 address lifetimes a positive (unsigned
32bit) integers to scripts and properly format timestamps as long
to not break them on 64bit architectures (bsc#926159).
[+ 0014-dhclient6-unsigned-lifetimes-for-script-bsc-926159.patch]
- dhclient: expose next-server DHCPv4 option to script (bsc#928390)
[+ 0015-Expose-next-server-DHCPv4-option-to-dhclient-script.patch]
- Replaced infiniband support patch with fixed variant (bsc#910984):
[- 0017-dhcp-4.2.6-lpf-ip-over-ib-support.patch,
- 0018-dhcp-4.2.6-improved-xid.patch,
+ 0016-infiniband-support.patch]
- Moved dhcp-devel package include files and static libraries
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=154
2015-09-14 17:35:16 +02:00
|
|
|
%patch17 -p1
|
2015-09-14 19:28:50 +02:00
|
|
|
%patch18 -p1
|
2018-03-08 14:53:43 +01:00
|
|
|
%patch20
|
2019-10-15 17:56:51 +02:00
|
|
|
%patch21
|
|
|
|
%patch22
|
2008-09-13 00:24:42 +02:00
|
|
|
##
|
2007-01-10 17:39:58 +01:00
|
|
|
find . -type f -name \*.cat\* -exec rm -f {} \;
|
2008-09-13 00:24:42 +02:00
|
|
|
dos2unix contrib/ms2isc/*
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
# Remove GPL licensed files to make sure,
|
|
|
|
# they're not used to build (bnc#714004).
|
|
|
|
pushd bind
|
|
|
|
gunzip -c bind.tar.gz | tar xf -
|
|
|
|
rm -rf bind-*/contrib/dbus
|
2014-02-10 19:14:12 +01:00
|
|
|
bind_dir=$(ls -1d bind-*)
|
2018-06-26 11:02:03 +02:00
|
|
|
for i in %{_datadir}/automake-*/config.{sub,guess} ; do
|
2014-02-10 19:14:12 +01:00
|
|
|
install -v -m755 $i $bind_dir/
|
|
|
|
done
|
2017-10-09 10:22:17 +02:00
|
|
|
# use the year from source gzip header instead of current one to make reproducible rpms
|
|
|
|
year=$(perl -e 'sysread(STDIN, $h, 8); print (1900+(gmtime(unpack("l",substr($h,4))))[5])' < bind.tar.gz)
|
|
|
|
sed -i "s/stdout, copyright, year/stdout, copyright, \"-$year\"/" $bind_dir/lib/dns/gen.c
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
popd
|
2013-03-28 08:42:40 +01:00
|
|
|
##
|
2013-03-27 15:46:26 +01:00
|
|
|
|
|
|
|
%build
|
2019-08-07 15:53:08 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2020-03-02 18:33:34 +01:00
|
|
|
CFLAGS="%{optflags} -D_GNU_SOURCE -W -Wall -Wno-unused -fcommon"
|
2007-01-10 17:39:58 +01:00
|
|
|
%ifarch ppc ppc64 s390x
|
|
|
|
# bugs 134590, 171532
|
|
|
|
CFLAGS="$CFLAGS -fsigned-char"
|
|
|
|
%endif
|
2018-06-26 11:02:03 +02:00
|
|
|
%ifarch ia64 %{sparc} alpha s390x ppc64 x86_64
|
|
|
|
CFLAGS="$CFLAGS -fPIE"
|
2007-01-10 17:39:58 +01:00
|
|
|
%else
|
2018-06-26 11:02:03 +02:00
|
|
|
CFLAGS="$CFLAGS -fpie"
|
2007-01-10 17:39:58 +01:00
|
|
|
%endif
|
2011-08-29 17:13:53 +02:00
|
|
|
LDFLAGS="-Wl,-z,relro,-z,now -pie"
|
2010-05-14 00:27:05 +02:00
|
|
|
FFLAGS="$CFLAGS"
|
|
|
|
CXXFLAGS="$CFLAGS"
|
2018-06-26 11:02:03 +02:00
|
|
|
export CFLAGS LDFLAGS FFLAGS CXXFLAGS
|
2010-05-14 00:27:05 +02:00
|
|
|
#
|
2015-09-14 14:16:28 +02:00
|
|
|
#libtoolize --force
|
|
|
|
#autoreconf -f -i
|
2010-05-14 00:27:05 +02:00
|
|
|
#
|
|
|
|
%configure \
|
|
|
|
--enable-dhcpv6 \
|
|
|
|
--enable-failover \
|
|
|
|
--enable-paranoia \
|
|
|
|
--enable-early-chroot \
|
2019-10-15 17:56:51 +02:00
|
|
|
--enable-secs-byteorder \
|
2010-11-26 15:57:47 +01:00
|
|
|
--with-ldap \
|
|
|
|
--with-ldapcrypto \
|
2010-05-14 00:27:05 +02:00
|
|
|
--with-cli-pid-file=%{_localstatedir}/run/dhclient.pid \
|
|
|
|
--with-cli-lease-file=%{_localstatedir}/lib/dhcp/dhclient.leases \
|
|
|
|
--with-cli6-pid-file=%{_localstatedir}/run/dhclient6.pid \
|
|
|
|
--with-cli6-lease-file=%{_localstatedir}/lib/dhcp6/dhclient.leases \
|
|
|
|
--with-srv-pid-file=%{_localstatedir}/run/dhcpd.pid \
|
|
|
|
--with-srv-lease-file=%{_localstatedir}/lib/dhcp/db/dhcpd.leases \
|
|
|
|
--with-srv6-pid-file=%{_localstatedir}/run/dhcpd6.pid \
|
|
|
|
--with-srv6-lease-file=%{_localstatedir}/lib/dhcp6/db/dhcpd6.leases
|
|
|
|
#
|
2013-03-27 15:46:26 +01:00
|
|
|
: building bind sources
|
2018-06-26 11:02:03 +02:00
|
|
|
make -j1 -C bind all
|
2013-03-27 15:46:26 +01:00
|
|
|
cat bind/configure.log
|
|
|
|
cat bind/build.log
|
|
|
|
cat bind/install.log
|
|
|
|
: building dhcp sources
|
2010-05-14 00:27:05 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
2014-02-10 19:14:12 +01:00
|
|
|
# check example config, see if it runs
|
|
|
|
./server/dhcpd -4 -t -cf $RPM_SOURCE_DIR/dhcpd.conf
|
|
|
|
./server/dhcpd -6 -t -cf $RPM_SOURCE_DIR/dhcpd6.conf
|
2010-05-14 00:27:05 +02:00
|
|
|
# check syntax in our scripts
|
2014-02-10 19:14:12 +01:00
|
|
|
bash -n $RPM_SOURCE_DIR/dhcpd.script
|
|
|
|
bash -n $RPM_SOURCE_DIR/dhcrelay.script
|
2010-05-14 00:27:05 +02:00
|
|
|
bash -n $RPM_SOURCE_DIR/dhclient-script
|
2007-01-10 17:39:58 +01:00
|
|
|
|
|
|
|
%install
|
2018-06-26 11:02:03 +02:00
|
|
|
%make_install
|
2010-05-14 00:27:05 +02:00
|
|
|
#
|
|
|
|
# directories
|
2018-06-26 11:02:03 +02:00
|
|
|
install -d -m0755 %{buildroot}/sbin
|
|
|
|
install -d -m0755 %{buildroot}%{_sysconfdir}/dhcpd{,6}.d
|
|
|
|
install -d -m0755 %{buildroot}%{_sysconfdir}/openldap/schema
|
|
|
|
install -d -m0755 %{buildroot}%{_localstatedir}/run
|
|
|
|
install -d -m0755 %{buildroot}%{_fillupdir}
|
2010-05-14 00:27:05 +02:00
|
|
|
# chroot jail
|
2018-06-26 11:02:03 +02:00
|
|
|
install -d -m0755 %{buildroot}%{_localstatedir}/lib/{dhcp,dhcp6}%{_sysconfdir}
|
|
|
|
install -d -m0755 %{buildroot}%{_localstatedir}/lib/{dhcp,dhcp6}/dev
|
|
|
|
install -d -m0755 %{buildroot}%{_localstatedir}/lib/{dhcp,dhcp6}/%{_lib}
|
|
|
|
install -d -m0755 %{buildroot}%{_localstatedir}/lib/{dhcp,dhcp6}%{_localstatedir}/run
|
|
|
|
install -d -m0755 %{buildroot}%{_localstatedir}/lib/{dhcp,dhcp6}/db
|
2010-05-14 00:27:05 +02:00
|
|
|
# move the dhclient binary to /sbin
|
2018-06-26 11:02:03 +02:00
|
|
|
mv -f %{buildroot}%{_sbindir}/dhclient %{buildroot}/sbin/
|
2010-05-14 00:27:05 +02:00
|
|
|
# provide a ...6 link, so we know it supports DHCPv6
|
2018-06-26 11:02:03 +02:00
|
|
|
ln -sf dhcpd %{buildroot}%{_sbindir}/dhcpd6
|
|
|
|
ln -sf dhcrelay %{buildroot}%{_sbindir}/dhcrelay6
|
|
|
|
ln -sf dhclient %{buildroot}/sbin/dhclient6
|
2010-05-14 00:27:05 +02:00
|
|
|
# install our adopted config examples and dhclient-script:
|
2018-06-26 11:02:03 +02:00
|
|
|
install -m0644 $RPM_SOURCE_DIR/dhcpd.conf %{buildroot}%{_sysconfdir}/
|
|
|
|
install -m0644 $RPM_SOURCE_DIR/dhcpd6.conf %{buildroot}%{_sysconfdir}/
|
|
|
|
install -m0644 $RPM_SOURCE_DIR/dhclient.conf %{buildroot}%{_sysconfdir}/
|
|
|
|
install -m0644 $RPM_SOURCE_DIR/dhclient6.conf %{buildroot}%{_sysconfdir}/
|
|
|
|
install -m0754 $RPM_SOURCE_DIR/dhclient-script %{buildroot}/sbin/
|
2014-02-10 19:14:12 +01:00
|
|
|
# helper / wrapper scripts
|
2018-06-26 11:02:03 +02:00
|
|
|
install -d -m0755 %{buildroot}%{_libexecdir}/dhcp
|
2014-02-10 19:14:12 +01:00
|
|
|
install -m0755 $RPM_SOURCE_DIR/dhcpd.script \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_libexecdir}/dhcp/dhcpd
|
|
|
|
sed -e 's/@LIBDIR@/%{_lib}/g' -i %{buildroot}%{_libexecdir}/dhcp/dhcpd
|
2014-02-10 19:14:12 +01:00
|
|
|
install -m0755 $RPM_SOURCE_DIR/dhcrelay.script \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_libexecdir}/dhcp/dhcrelay
|
2014-02-10 19:14:12 +01:00
|
|
|
# service units
|
2018-06-26 11:02:03 +02:00
|
|
|
install -d -m0755 %{buildroot}%{_unitdir}
|
2014-02-10 19:14:12 +01:00
|
|
|
install -m0644 $RPM_SOURCE_DIR/dhcpd.service \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_unitdir}/dhcpd.service
|
2014-02-10 19:14:12 +01:00
|
|
|
install -m0644 $RPM_SOURCE_DIR/dhcpd6.service \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_unitdir}/dhcpd6.service
|
2014-02-10 19:14:12 +01:00
|
|
|
install -m0644 $RPM_SOURCE_DIR/dhcrelay.service \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_unitdir}/dhcrelay.service
|
2014-02-10 19:14:12 +01:00
|
|
|
install -m0644 $RPM_SOURCE_DIR/dhcrelay6.service \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_unitdir}/dhcrelay6.service
|
2014-02-10 19:14:12 +01:00
|
|
|
# rcservice links
|
2018-06-26 11:02:03 +02:00
|
|
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcdhcpd
|
|
|
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcdhcpd6
|
|
|
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcdhcrelay
|
|
|
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcdhcrelay6
|
2014-03-17 17:40:09 +01:00
|
|
|
# rcservice actions
|
2018-06-26 11:02:03 +02:00
|
|
|
legacy_actionsdir=%{buildroot}%{_libexecdir}/initscripts/legacy-actions
|
2014-03-17 17:40:09 +01:00
|
|
|
cat >dhcpd.action <<'EOF'
|
|
|
|
#!/bin/bash
|
2018-06-26 11:02:03 +02:00
|
|
|
exec %{_libexecdir}/dhcp/dhcpd -4 ${0##*/}
|
2014-03-17 17:40:09 +01:00
|
|
|
EOF
|
|
|
|
install -d -m0755 ${legacy_actionsdir}/dhcpd
|
|
|
|
install -m0755 dhcpd.action ${legacy_actionsdir}/dhcpd/syntax-check
|
|
|
|
ln -sf syntax-check ${legacy_actionsdir}/dhcpd/check-syntax
|
|
|
|
ln -sf syntax-check ${legacy_actionsdir}/dhcpd/check-lease
|
|
|
|
rm -f dhcpd.action
|
|
|
|
cat >dhcpd.action <<'EOF'
|
|
|
|
#!/bin/bash
|
2018-06-26 11:02:03 +02:00
|
|
|
exec %{_libexecdir}/dhcp/dhcpd -6 ${0##*/}
|
2014-03-17 17:40:09 +01:00
|
|
|
EOF
|
|
|
|
install -d -m0755 ${legacy_actionsdir}/dhcpd6
|
|
|
|
install -m0755 dhcpd.action ${legacy_actionsdir}/dhcpd6/syntax-check
|
|
|
|
ln -sf syntax-check ${legacy_actionsdir}/dhcpd6/check-syntax
|
|
|
|
ln -sf syntax-check ${legacy_actionsdir}/dhcpd6/check-lease
|
|
|
|
rm -f dhcpd.action
|
2010-05-14 00:27:05 +02:00
|
|
|
# sysconfig files
|
|
|
|
install -m0644 $RPM_SOURCE_DIR/sysconfig.dhcpd \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_fillupdir}/
|
2010-05-14 00:27:05 +02:00
|
|
|
install -m0644 $RPM_SOURCE_DIR/sysconfig.syslog-dhcpd \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_fillupdir}/
|
2010-05-14 00:27:05 +02:00
|
|
|
install -m0644 $RPM_SOURCE_DIR/sysconfig.dhcrelay \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_fillupdir}/
|
2010-05-14 00:27:05 +02:00
|
|
|
# another config files and scripts
|
2010-11-26 15:57:47 +01:00
|
|
|
install -m0644 contrib/ldap/dhcp.schema \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_sysconfdir}/openldap/schema
|
|
|
|
install -d -m0755 %{buildroot}%{_sysconfdir}/sysconfig/network/if-up.d
|
|
|
|
install -d -m0755 %{buildroot}%{_sysconfdir}/sysconfig/network/scripts
|
2010-05-14 00:27:05 +02:00
|
|
|
install -m0755 $RPM_SOURCE_DIR/if-up.d.dhcpd-restart-hook \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_sysconfdir}/sysconfig/network/scripts/dhcpd-restart-hook
|
2009-08-13 18:04:28 +02:00
|
|
|
ln -sf ../scripts/dhcpd-restart-hook \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_sysconfdir}/sysconfig/network/if-up.d/60-dhcpd-restart-hook
|
2016-11-29 09:40:31 +01:00
|
|
|
# slp support
|
2018-06-26 11:02:03 +02:00
|
|
|
install -d -m0755 %{buildroot}%{_sysconfdir}/slp.reg.d
|
2016-11-29 09:40:31 +01:00
|
|
|
install -m0644 $RPM_SOURCE_DIR/slp.reg.d.dhcp.reg \
|
2018-06-26 11:02:03 +02:00
|
|
|
%{buildroot}%{_sysconfdir}/slp.reg.d/dhcp.reg
|
2010-05-14 00:27:05 +02:00
|
|
|
# fix manual page permissions
|
2018-06-26 11:02:03 +02:00
|
|
|
find %{buildroot}/%{_mandir} -type f | xargs chmod 644
|
2010-05-14 00:27:05 +02:00
|
|
|
# copy some documentation and examples from src dir
|
2014-02-10 19:14:12 +01:00
|
|
|
install -m0644 $RPM_SOURCE_DIR/dhcp.README README.SUSE
|
2010-05-14 00:27:05 +02:00
|
|
|
install -m0644 $RPM_SOURCE_DIR/DDNS-howto.txt .
|
2010-09-29 12:28:25 +02:00
|
|
|
cp doc/examples/* ./examples/
|
2010-05-14 00:27:05 +02:00
|
|
|
rm -f doc/{References.xml,Makefile*}
|
|
|
|
rm -f contrib/dhcp.spec
|
2018-06-26 11:02:03 +02:00
|
|
|
rm -f %{buildroot}%{_sysconfdir}/{dhcpd,dhclient}.conf.example
|
2014-02-10 19:14:12 +01:00
|
|
|
find contrib doc/examples -type f | xargs chmod -x
|
2013-04-02 11:23:05 +02:00
|
|
|
# install bind libs+includes needed for dhcp-devel
|
|
|
|
pushd bind
|
2018-06-26 11:02:03 +02:00
|
|
|
install -d -m0755 %{buildroot}%{_includedir}/dhcp/
|
2013-04-02 11:23:05 +02:00
|
|
|
for i in include/* ; do
|
2018-06-26 11:02:03 +02:00
|
|
|
cp -r $i %{buildroot}%{_includedir}/dhcp/
|
2013-04-02 11:23:05 +02:00
|
|
|
done
|
2018-06-26 11:02:03 +02:00
|
|
|
install -d -m0755 %{buildroot}%{_libdir}/dhcp/
|
2013-04-02 11:23:05 +02:00
|
|
|
for l in lib/lib*.a ; do
|
2018-06-26 11:02:03 +02:00
|
|
|
install -m0644 $l %{buildroot}%{_libdir}/dhcp/
|
2013-04-02 11:29:49 +02:00
|
|
|
done
|
2013-04-02 11:23:05 +02:00
|
|
|
popd
|
For complete changelog, please read the RELNOTES file shipped
along with this package or online at:
- Replaced hostname patch with a dhcpv6 and fqdn aware variant:
[- 0006-dhcp-4.2.5-dhclient-send-hostname-rml.patch,
+ 0006-dhcp-4.3.2-dhclient-send-hostname-or-fqdn.patch]
- Adjusted patch numbers in the spec file:
[- 0008-dhcp-4.1.1-P1-lpf-bind-msg-fix.patch,
- 0010-dhcp-4.2.2-dhclient-option-checks.patch,
- 0011-dhcp-4.2.6-close-on-exec.patch,
- 0012-dhcp-4.2.2-quiet-dhclient.patch,
- 0014-Fixed-linux-interface-discovery-using-getifaddrs.patch,
- 0020-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
- 0024-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch,
+ 0008-dhcp-4.2.2-dhclient-option-checks.patch,
+ 0009-dhcp-4.2.6-close-on-exec.patch,
+ 0010-dhcp-4.2.2-quiet-dhclient.patch,
+ 0011-Fixed-linux-interface-discovery-using-getifaddrs.patch,
+ 0012-dhcp-4.2.x-chown-server-leases.bnc868253.patch,
+ 0013-dhcp-4.2.x-dhcpv6-decline-on-DAD-failure.872609.patch]
- Fixed to not pass DHCPv6 address lifetimes a positive (unsigned
32bit) integers to scripts and properly format timestamps as long
to not break them on 64bit architectures (bsc#926159).
[+ 0014-dhclient6-unsigned-lifetimes-for-script-bsc-926159.patch]
- dhclient: expose next-server DHCPv4 option to script (bsc#928390)
[+ 0015-Expose-next-server-DHCPv4-option-to-dhclient-script.patch]
- Replaced infiniband support patch with fixed variant (bsc#910984):
[- 0017-dhcp-4.2.6-lpf-ip-over-ib-support.patch,
- 0018-dhcp-4.2.6-improved-xid.patch,
+ 0016-infiniband-support.patch]
- Moved dhcp-devel package include files and static libraries
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=154
2015-09-14 17:35:16 +02:00
|
|
|
# move also all dhcp-devel files to dhcp subdirectories
|
2018-06-26 11:02:03 +02:00
|
|
|
mv %{buildroot}%{_includedir}/{dhcpctl,isc-dhcp,omapip} \
|
|
|
|
%{buildroot}%{_includedir}/dhcp/
|
|
|
|
mv %{buildroot}%{_libdir}/lib*.* \
|
|
|
|
%{buildroot}%{_libdir}/dhcp/
|
2007-01-10 17:39:58 +01:00
|
|
|
|
|
|
|
%pre server
|
2018-06-26 11:02:03 +02:00
|
|
|
getent passwd dhcpd >/dev/null || useradd -r -g nogroup -s /bin/false -c "DHCP server daemon" -d %{_localstatedir}/lib/dhcp dhcpd
|
2014-05-28 10:49:05 +02:00
|
|
|
%service_add_pre dhcpd.service
|
|
|
|
%service_add_pre dhcpd6.service
|
2007-01-10 17:39:58 +01:00
|
|
|
|
|
|
|
%post server
|
2014-06-10 04:45:09 +02:00
|
|
|
%{fillup_only -n dhcpd dhcpd}
|
2014-02-10 19:14:12 +01:00
|
|
|
%{fillup_only -ans syslog dhcpd}
|
|
|
|
%service_add_post dhcpd.service
|
|
|
|
%service_add_post dhcpd6.service
|
|
|
|
# FIXME: update?
|
2019-03-05 17:24:38 +01:00
|
|
|
if [ $1 -gt 1 ]; then
|
2010-05-14 00:27:05 +02:00
|
|
|
if grep -q '^DHCPD_RUN_AS=.*nobody' etc/sysconfig/dhcpd; then
|
2007-01-10 17:39:58 +01:00
|
|
|
tmpfile=$(mktemp -q etc/sysconfig/dhcpd.XXXXXX)
|
2010-05-14 00:27:05 +02:00
|
|
|
sed 's|^DHCPD_RUN_AS=.*|DHCPD_RUN_AS="dhcpd"|' etc/sysconfig/dhcpd \
|
2007-01-10 17:39:58 +01:00
|
|
|
> $tmpfile && mv $tmpfile etc/sysconfig/dhcpd
|
|
|
|
rm -f $tmpfile
|
2010-05-14 00:27:05 +02:00
|
|
|
fi
|
|
|
|
if grep -q '^DHCPD_BINARY=.*dhcpd\..*' etc/sysconfig/dhcpd; then
|
|
|
|
tmpfile=$(mktemp -q etc/sysconfig/dhcpd.XXXXXX)
|
|
|
|
sed 's|^DHCPD_BINARY=.*|DHCPD_BINARY=""|' etc/sysconfig/dhcpd \
|
|
|
|
> $tmpfile && mv $tmpfile etc/sysconfig/dhcpd
|
|
|
|
rm -f $tmpfile
|
|
|
|
fi
|
2007-01-10 17:39:58 +01:00
|
|
|
fi
|
|
|
|
|
2010-05-14 00:27:05 +02:00
|
|
|
%preun server
|
2014-02-10 19:14:12 +01:00
|
|
|
%service_del_preun dhcpd.service
|
|
|
|
%service_del_preun dhcpd6.service
|
2010-05-14 00:27:05 +02:00
|
|
|
|
2007-01-10 17:39:58 +01:00
|
|
|
%postun server
|
2014-02-10 19:14:12 +01:00
|
|
|
%service_del_postun dhcpd.service
|
|
|
|
%service_del_postun dhcpd6.service
|
2007-01-10 17:39:58 +01:00
|
|
|
|
2014-11-21 12:33:30 +01:00
|
|
|
%pre relay
|
|
|
|
%service_add_pre dhcrelay.service
|
|
|
|
%service_add_pre dhcrelay6.service
|
|
|
|
|
2010-05-14 00:26:56 +02:00
|
|
|
%post relay
|
2014-02-10 19:14:12 +01:00
|
|
|
#
|
2010-11-30 22:53:03 +01:00
|
|
|
%{rename_sysconfig_variable -f etc/sysconfig/dhcrelay
|
|
|
|
DHCRELAY6_LOWER_INTERFACES_ARGS DHCRELAY6_LOWER_INTERFACES}
|
|
|
|
%{rename_sysconfig_variable -f etc/sysconfig/dhcrelay
|
|
|
|
DHCRELAY6_UPPER_INTERFACES_ARGS DHCRELAY6_UPPER_INTERFACES}
|
2014-02-10 19:14:12 +01:00
|
|
|
#
|
|
|
|
%{fillup_only -n dhcrelay dhcrelay}
|
|
|
|
%service_add_post dhcrelay.service
|
|
|
|
%service_add_post dhcrelay6.service
|
2010-05-14 00:27:05 +02:00
|
|
|
|
|
|
|
%preun relay
|
2014-02-10 19:14:12 +01:00
|
|
|
%service_del_preun dhcrelay.service
|
|
|
|
%service_del_preun dhcrelay6.service
|
2007-01-10 17:39:58 +01:00
|
|
|
|
|
|
|
%postun relay
|
2014-02-10 19:14:12 +01:00
|
|
|
%service_del_postun dhcrelay.service
|
|
|
|
%service_del_postun dhcrelay6.service
|
2007-01-10 17:39:58 +01:00
|
|
|
|
2010-04-30 01:02:03 +02:00
|
|
|
%post client
|
2010-05-14 00:27:05 +02:00
|
|
|
test -e %{_localstatedir}/lib/dhcp/dhclient.leases || \
|
2020-01-22 09:01:33 +01:00
|
|
|
echo -n > %{_localstatedir}/lib/dhcp/dhclient.leases
|
2010-05-14 00:27:05 +02:00
|
|
|
test -e %{_localstatedir}/lib/dhcp6/dhclient6.leases || \
|
2020-01-22 09:01:33 +01:00
|
|
|
echo -n > %{_localstatedir}/lib/dhcp6/dhclient6.leases
|
2010-04-30 01:02:03 +02:00
|
|
|
|
2007-01-10 17:39:58 +01:00
|
|
|
%files
|
2018-06-26 11:02:03 +02:00
|
|
|
%license LICENSE
|
2010-05-14 00:27:05 +02:00
|
|
|
%{_bindir}/omshell
|
2018-06-26 11:02:03 +02:00
|
|
|
%{_mandir}/man1/omshell.1%{?ext_man}
|
|
|
|
%{_mandir}/man5/dhcp-eval.5%{?ext_man}
|
|
|
|
%{_mandir}/man5/dhcp-options.5%{?ext_man}
|
2010-05-14 00:27:05 +02:00
|
|
|
|
2007-01-10 17:39:58 +01:00
|
|
|
%files server
|
2010-05-14 00:27:05 +02:00
|
|
|
%{_sbindir}/dhcpd
|
|
|
|
%{_sbindir}/dhcpd6
|
|
|
|
%{_sbindir}/rcdhcpd
|
|
|
|
%{_sbindir}/rcdhcpd6
|
2014-02-10 19:14:12 +01:00
|
|
|
%{_unitdir}/dhcpd.service
|
|
|
|
%{_unitdir}/dhcpd6.service
|
2018-06-26 11:02:03 +02:00
|
|
|
%dir %{_libexecdir}/initscripts/legacy-actions/dhcpd
|
|
|
|
%{_libexecdir}/initscripts/legacy-actions/dhcpd/*
|
|
|
|
%dir %{_libexecdir}/initscripts/legacy-actions/dhcpd6
|
|
|
|
%{_libexecdir}/initscripts/legacy-actions/dhcpd6/*
|
2010-05-14 00:27:05 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/dhcpd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/dhcpd6.conf
|
2011-08-31 11:13:05 +02:00
|
|
|
%attr(755,root,root) %dir %config(noreplace) %ghost %{_sysconfdir}/dhcpd.d/
|
|
|
|
%attr(755,root,root) %dir %config(noreplace) %ghost %{_sysconfdir}/dhcpd6.d/
|
2018-06-26 11:02:03 +02:00
|
|
|
%dir %{_libexecdir}/dhcp
|
|
|
|
%{_libexecdir}/dhcp/dhcpd
|
2010-05-14 00:27:05 +02:00
|
|
|
%dir %{_localstatedir}/lib/dhcp
|
2018-06-26 11:02:03 +02:00
|
|
|
%dir %{_localstatedir}/lib/dhcp%{_sysconfdir}
|
2010-05-14 00:27:05 +02:00
|
|
|
%dir %{_localstatedir}/lib/dhcp/dev
|
2018-06-26 11:02:03 +02:00
|
|
|
%dir %{_localstatedir}/lib/dhcp/%{_lib}
|
|
|
|
%dir %{_localstatedir}/lib/dhcp%{_localstatedir}
|
|
|
|
%dir %{_localstatedir}/lib/dhcp%{_localstatedir}/run
|
2010-05-14 00:27:05 +02:00
|
|
|
%attr(755,dhcpd,root) %dir %{_localstatedir}/lib/dhcp/db
|
|
|
|
%dir %{_localstatedir}/lib/dhcp6
|
2018-06-26 11:02:03 +02:00
|
|
|
%dir %{_localstatedir}/lib/dhcp6%{_sysconfdir}
|
2010-05-14 00:27:05 +02:00
|
|
|
%dir %{_localstatedir}/lib/dhcp6/dev
|
2018-06-26 11:02:03 +02:00
|
|
|
%dir %{_localstatedir}/lib/dhcp6/%{_lib}
|
|
|
|
%dir %{_localstatedir}/lib/dhcp6%{_localstatedir}
|
|
|
|
%dir %{_localstatedir}/lib/dhcp6%{_localstatedir}/run
|
2010-05-14 00:27:05 +02:00
|
|
|
%attr(755,dhcpd,root) %dir %{_localstatedir}/lib/dhcp6/db
|
2018-06-26 11:02:03 +02:00
|
|
|
%{_mandir}/man8/dhcpd.8%{?ext_man}
|
|
|
|
%{_mandir}/man5/dhcpd.conf.5%{?ext_man}
|
|
|
|
%{_mandir}/man5/dhcpd.leases.5%{?ext_man}
|
2010-05-14 00:27:05 +02:00
|
|
|
%dir %{_sysconfdir}/openldap
|
|
|
|
%dir %{_sysconfdir}/openldap/schema
|
|
|
|
%attr(0644, root, root) %config %{_sysconfdir}/openldap/schema/dhcp.schema
|
2016-11-29 09:40:31 +01:00
|
|
|
%dir %{_sysconfdir}/slp.reg.d
|
|
|
|
%config(noreplace) %{_sysconfdir}/slp.reg.d/dhcp.reg
|
2010-05-14 00:27:05 +02:00
|
|
|
%{_sysconfdir}/sysconfig/network/scripts/dhcpd-restart-hook
|
|
|
|
%{_sysconfdir}/sysconfig/network/if-up.d/60-dhcpd-restart-hook
|
2017-11-24 11:37:35 +01:00
|
|
|
%{_fillupdir}/sysconfig.dhcpd
|
|
|
|
%{_fillupdir}/sysconfig.syslog-dhcpd
|
2011-05-16 11:17:24 +02:00
|
|
|
|
2011-05-10 13:50:05 +02:00
|
|
|
%files doc
|
2018-06-26 11:02:03 +02:00
|
|
|
%doc README RELNOTES
|
2014-02-10 19:14:12 +01:00
|
|
|
%doc README.* DDNS-howto.txt doc/*
|
2011-05-10 13:50:05 +02:00
|
|
|
%doc contrib examples
|
2007-01-10 17:39:58 +01:00
|
|
|
|
2018-06-26 11:02:03 +02:00
|
|
|
%files client
|
2007-01-10 17:39:58 +01:00
|
|
|
/sbin/dhclient
|
2010-05-14 00:27:05 +02:00
|
|
|
/sbin/dhclient6
|
2007-01-10 17:39:58 +01:00
|
|
|
/sbin/dhclient-script
|
2010-05-14 00:27:05 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/dhclient.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/dhclient6.conf
|
2018-06-26 11:02:03 +02:00
|
|
|
%{_mandir}/man5/dhclient.conf.5%{?ext_man}
|
|
|
|
%{_mandir}/man5/dhclient.leases.5%{?ext_man}
|
|
|
|
%{_mandir}/man8/dhclient.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/dhclient-script.8%{?ext_man}
|
2010-05-14 00:27:05 +02:00
|
|
|
%dir %{_localstatedir}/lib/dhcp
|
|
|
|
%dir %{_localstatedir}/lib/dhcp6
|
2007-01-10 17:39:58 +01:00
|
|
|
|
2018-06-26 11:02:03 +02:00
|
|
|
%files relay
|
2010-05-14 00:27:05 +02:00
|
|
|
%{_sbindir}/dhcrelay
|
|
|
|
%{_sbindir}/dhcrelay6
|
|
|
|
%{_sbindir}/rcdhcrelay
|
|
|
|
%{_sbindir}/rcdhcrelay6
|
2018-06-26 11:02:03 +02:00
|
|
|
%dir %{_libexecdir}/dhcp
|
|
|
|
%{_libexecdir}/dhcp/dhcrelay
|
2014-02-10 19:14:12 +01:00
|
|
|
%{_unitdir}/dhcrelay.service
|
|
|
|
%{_unitdir}/dhcrelay6.service
|
2018-06-26 11:02:03 +02:00
|
|
|
%{_mandir}/man8/dhcrelay.8%{?ext_man}
|
2017-11-24 11:37:35 +01:00
|
|
|
%{_fillupdir}/sysconfig.dhcrelay
|
2007-01-10 17:39:58 +01:00
|
|
|
|
|
|
|
%files devel
|
2018-06-26 11:02:03 +02:00
|
|
|
%dir %{_libdir}/dhcp
|
|
|
|
%{_libdir}/dhcp/lib*
|
|
|
|
%dir %{_includedir}/dhcp
|
|
|
|
%{_includedir}/dhcp/*
|
|
|
|
%{_mandir}/man3/omapi.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/dhcpctl.3%{?ext_man}
|
2007-01-10 17:39:58 +01:00
|
|
|
|
2007-02-25 23:22:54 +01:00
|
|
|
%changelog
|