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