- coreutils reqs for scripts
This commit is contained in:
parent
1a00a769eb
commit
1f099b5975
49
dhcp.spec
49
dhcp.spec
@ -4,7 +4,7 @@
|
|||||||
Summary: A DHCP (Dynamic Host Configuration Protocol) server and relay agent.
|
Summary: A DHCP (Dynamic Host Configuration Protocol) server and relay agent.
|
||||||
Name: dhcp
|
Name: dhcp
|
||||||
Version: 3.0.4
|
Version: 3.0.4
|
||||||
Release: 15
|
Release: 16
|
||||||
Epoch: 12
|
Epoch: 12
|
||||||
License: distributable
|
License: distributable
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -99,7 +99,9 @@ Patch181: dhcp-3.0.4-timeouts.patch
|
|||||||
|
|
||||||
URL: http://isc.org/products/DHCP/
|
URL: http://isc.org/products/DHCP/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
Prereq: /sbin/chkconfig
|
Requires(post): chkconfig, coreutils
|
||||||
|
Requires(preun): chkconfig
|
||||||
|
Requires(postun): coreutils
|
||||||
BuildRequires: groff perl
|
BuildRequires: groff perl
|
||||||
#BuildRequires: compat-gcc >= 8-3.3.4.2 groff
|
#BuildRequires: compat-gcc >= 8-3.3.4.2 groff
|
||||||
|
|
||||||
@ -375,12 +377,13 @@ rm -rf %{buildroot}
|
|||||||
/sbin/chkconfig --add dhcrelay
|
/sbin/chkconfig --add dhcrelay
|
||||||
if [ "$1" -ge 1 ]; then
|
if [ "$1" -ge 1 ]; then
|
||||||
if [ ! -e %{_mandir}/man5/dhcp-options.5.gz ]; then
|
if [ ! -e %{_mandir}/man5/dhcp-options.5.gz ]; then
|
||||||
/bin/ln -s %{_mandir}/man5/dhcpd-options.5.gz %{_mandir}/man5/dhcp-options.5.gz;
|
/bin/ln -s %{_mandir}/man5/dhcpd-options.5.gz %{_mandir}/man5/dhcp-options.5.gz
|
||||||
fi;
|
fi
|
||||||
if [ ! -e %{_mandir}/man5/dhcp-eval.5.gz ]; then
|
if [ ! -e %{_mandir}/man5/dhcp-eval.5.gz ]; then
|
||||||
/bin/ln -s %{_mandir}/man5/dhcpd-eval.5.gz %{_mandir}/man5/dhcp-eval.5.gz;
|
/bin/ln -s %{_mandir}/man5/dhcpd-eval.5.gz %{_mandir}/man5/dhcp-eval.5.gz
|
||||||
fi;
|
fi
|
||||||
fi;
|
fi
|
||||||
|
exit 0
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then # execute this only if we are NOT doing an upgrade
|
if [ $1 = 0 ]; then # execute this only if we are NOT doing an upgrade
|
||||||
@ -389,6 +392,7 @@ if [ $1 = 0 ]; then # execute this only if we are NOT doing an upgrade
|
|||||||
/sbin/chkconfig --del dhcpd
|
/sbin/chkconfig --del dhcpd
|
||||||
/sbin/chkconfig --del dhcrelay
|
/sbin/chkconfig --del dhcrelay
|
||||||
fi
|
fi
|
||||||
|
exit 0
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ "$1" -ge "1" ]; then
|
if [ "$1" -ge "1" ]; then
|
||||||
@ -396,35 +400,35 @@ if [ "$1" -ge "1" ]; then
|
|||||||
service dhcrelay condrestart >/dev/null 2>&1
|
service dhcrelay condrestart >/dev/null 2>&1
|
||||||
elif [ "$1" -eq 0 ]; then
|
elif [ "$1" -eq 0 ]; then
|
||||||
if [ -e %{_mandir}/man5/dhclient-options.5.gz ]; then
|
if [ -e %{_mandir}/man5/dhclient-options.5.gz ]; then
|
||||||
/bin/ln -sf %{_mandir}/man5/dhclient-options.5.gz %{_mandir}/man5/dhcp-options.5.gz;
|
/bin/ln -sf %{_mandir}/man5/dhclient-options.5.gz %{_mandir}/man5/dhcp-options.5.gz
|
||||||
fi;
|
fi
|
||||||
if [ -e %{_mandir}/man5/dhclient-eval.5.gz ]; then
|
if [ -e %{_mandir}/man5/dhclient-eval.5.gz ]; then
|
||||||
/bin/ln -sf %{_mandir}/man5/dhclient-eval.5.gz %{_mandir}/man5/dhcp-eval.5.gz;
|
/bin/ln -sf %{_mandir}/man5/dhclient-eval.5.gz %{_mandir}/man5/dhcp-eval.5.gz
|
||||||
fi;
|
fi
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post -n dhclient
|
%post -n dhclient
|
||||||
if [ "$1" -ge 1 ]; then
|
if [ "$1" -ge 1 ]; then
|
||||||
if [ ! -e %{_mandir}/man5/dhcp-options.5.gz ]; then
|
if [ ! -e %{_mandir}/man5/dhcp-options.5.gz ]; then
|
||||||
/bin/ln -s %{_mandir}/man5/dhclient-options.5.gz %{_mandir}/man5/dhcp-options.5.gz;
|
/bin/ln -s %{_mandir}/man5/dhclient-options.5.gz %{_mandir}/man5/dhcp-options.5.gz
|
||||||
fi;
|
fi
|
||||||
if [ ! -e %{_mandir}/man5/dhcp-eval.5.gz ]; then
|
if [ ! -e %{_mandir}/man5/dhcp-eval.5.gz ]; then
|
||||||
/bin/ln -s %{_mandir}/man5/dhclient-eval.5.gz %{_mandir}/man5/dhcp-eval.5.gz;
|
/bin/ln -s %{_mandir}/man5/dhclient-eval.5.gz %{_mandir}/man5/dhcp-eval.5.gz
|
||||||
fi;
|
fi
|
||||||
fi
|
fi
|
||||||
:;
|
exit 0
|
||||||
|
|
||||||
%postun -n dhclient
|
%postun -n dhclient
|
||||||
if [ "$1" -eq 0 ]; then
|
if [ "$1" -eq 0 ]; then
|
||||||
if [ -e %{_mandir}/man5/dhcpd-options.5.gz ]; then
|
if [ -e %{_mandir}/man5/dhcpd-options.5.gz ]; then
|
||||||
/bin/ln -sf %{_mandir}/man5/dhcpd-options.5.gz %{_mandir}/man5/dhcp-options.5.gz;
|
/bin/ln -sf %{_mandir}/man5/dhcpd-options.5.gz %{_mandir}/man5/dhcp-options.5.gz
|
||||||
fi;
|
fi
|
||||||
if [ -e %{_mandir}/man5/dhcpd-eval.5.gz ]; then
|
if [ -e %{_mandir}/man5/dhcpd-eval.5.gz ]; then
|
||||||
/bin/ln -sf %{_mandir}/man5/dhcpd-eval.5.gz %{_mandir}/man5/dhcp-eval.5.gz;
|
/bin/ln -sf %{_mandir}/man5/dhcpd-eval.5.gz %{_mandir}/man5/dhcp-eval.5.gz
|
||||||
fi;
|
fi
|
||||||
fi
|
fi
|
||||||
:;
|
exit 0
|
||||||
|
|
||||||
%post -n libdhcp4client -p /sbin/ldconfig
|
%post -n libdhcp4client -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -492,6 +496,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 28 2006 Florian La Roche <laroche@redhat.com>
|
||||||
|
- add proper coreutils requires for the scripts
|
||||||
|
|
||||||
* Thu Jun 22 2006 Peter Jones <pjones@redhat.com> - 12:3.0.4-15
|
* Thu Jun 22 2006 Peter Jones <pjones@redhat.com> - 12:3.0.4-15
|
||||||
- Make timeout dispatch code not recurse while traversing a linked
|
- Make timeout dispatch code not recurse while traversing a linked
|
||||||
list, so it doesn't try to free an entries that have been removed.
|
list, so it doesn't try to free an entries that have been removed.
|
||||||
|
Loading…
Reference in New Issue
Block a user