This commit is contained in:
fred_nerk 2004-09-16 03:13:58 +00:00
parent 2cce196e64
commit 02fac4336b

View file

@ -30,24 +30,6 @@ make install DESTDIR=%{buildroot}
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%post
/sbin/chkconfig --add dhcpd
/sbin/chkconfig --add dhcrelay
%preun
if [ $1 = 0 ]; then # execute this only if we are NOT doing an upgrade
service dhcpd stop >/dev/null 2>&1
service dhcrelay stop >/dev/null 2>&1
/sbin/chkconfig --del dhcpd
/sbin/chkconfig --del dhcrelay
fi
%postun
if [ "$1" -ge "1" ]; then
service dhcpd condrestart >/dev/null 2>&1
service dhcrelay condrestart >/dev/null 2>&1
fi
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc Changes INSTALL INTERNALS COPYING Docs/manual.html %doc Changes INSTALL INTERNALS COPYING Docs/manual.html