1 |
%define _catdir /var/cache/man |
%define _catdir /var/cache/man |
2 |
%define pver P2 |
%define pver P1 |
3 |
|
|
4 |
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client |
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client |
5 |
Name: dhcp |
Name: dhcp |
6 |
Epoch: 3 |
Epoch: 3 |
7 |
Version: 4.2.0 |
Version: 4.2.1 |
8 |
Release: %mkrel 0.%{pver}.1 |
Release: %mkrel 0.%{pver}.1 |
9 |
License: Distributable |
License: Distributable |
10 |
Group: System/Servers |
Group: System/Servers |
18 |
Source6: update_dhcp.pl |
Source6: update_dhcp.pl |
19 |
Source7: dhcpreport.pl |
Source7: dhcpreport.pl |
20 |
Source8: dhcpd-chroot.sh |
Source8: dhcpd-chroot.sh |
21 |
|
# (eugeni) dhclient-exit-hooks script |
22 |
|
Source9: dhclient-exit-hooks |
23 |
Source12: draft-ietf-dhc-ldap-schema-01.txt |
Source12: draft-ietf-dhc-ldap-schema-01.txt |
24 |
# customize ifup script |
# customize ifup script |
25 |
Patch0: dhcp-4.1.1-ifup.patch |
Patch0: dhcp-4.1.1-ifup.patch |
28 |
Patch6: dhcp-4.1.1-missing-ipv6-not-fatal.patch |
Patch6: dhcp-4.1.1-missing-ipv6-not-fatal.patch |
29 |
# prevents needless deassociation, working around mdv bug #43441 |
# prevents needless deassociation, working around mdv bug #43441 |
30 |
Patch7: dhcp-4.1.1-prevent_wireless_deassociation.patch |
Patch7: dhcp-4.1.1-prevent_wireless_deassociation.patch |
|
# closes mdv #50194 - reported upstream: ISC-Bugs #19627 |
|
|
Patch8: dhcp-4.1.0-fix_lease_parsing.patch |
|
31 |
# redhat bug #587070 |
# redhat bug #587070 |
32 |
Patch9: dhcp-4.1.1-useless-wait.patch |
Patch9: dhcp-4.1.1-useless-wait.patch |
33 |
BuildRequires: perl groff-for-man |
BuildRequires: perl groff-for-man |
143 |
%patch5 -p1 -b .format_not_a_string_literal_and_no_format_arguments |
%patch5 -p1 -b .format_not_a_string_literal_and_no_format_arguments |
144 |
%patch6 -p1 -b .noipv6nonfatal |
%patch6 -p1 -b .noipv6nonfatal |
145 |
%patch7 -p1 -b .prevent_wireless_deassociation |
%patch7 -p1 -b .prevent_wireless_deassociation |
|
%patch8 -p1 -b .fix_lease_parsing |
|
146 |
%patch9 -p0 -b .useless_wait |
%patch9 -p0 -b .useless_wait |
147 |
|
|
148 |
install -m0644 %{SOURCE12} doc |
install -m0644 %{SOURCE12} doc |
186 |
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/ |
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/ |
187 |
install -m0755 contrib/ldap/dhcpd-conf-to-ldap %{buildroot}%{_sbindir}/ |
install -m0755 contrib/ldap/dhcpd-conf-to-ldap %{buildroot}%{_sbindir}/ |
188 |
|
|
189 |
|
# install exit-hooks script to /etc/ |
190 |
|
install -m0755 %{SOURCE9} %{buildroot}%{_sysconfdir}/ |
191 |
|
|
192 |
cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcpd <<EOF |
cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcpd <<EOF |
193 |
# You can set here various option for dhcpd |
# You can set here various option for dhcpd |
194 |
|
|
294 |
%doc server/dhcpd.conf tests/failover contrib/ldap/dhcp.schema |
%doc server/dhcpd.conf tests/failover contrib/ldap/dhcp.schema |
295 |
%{_initrddir}/dhcpd |
%{_initrddir}/dhcpd |
296 |
%config(noreplace) %{_sysconfdir}/dhcpd.conf |
%config(noreplace) %{_sysconfdir}/dhcpd.conf |
297 |
|
%config(noreplace) %{_sysconfdir}/dhclient-exit-hooks |
298 |
%config(noreplace) %{_sysconfdir}/sysconfig/dhcpd |
%config(noreplace) %{_sysconfdir}/sysconfig/dhcpd |
299 |
%config(noreplace) %ghost %{_var}/lib/dhcp/dhcpd.leases |
%config(noreplace) %ghost %{_var}/lib/dhcp/dhcpd.leases |
300 |
%{_sbindir}/dhcpd |
%{_sbindir}/dhcpd |