|
|
|
|
@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL]
|
|
|
|
|
Group: DNS |
|
|
|
|
License: GPL |
|
|
|
|
Version: 1.2.2 |
|
|
|
|
Release: 20030728 |
|
|
|
|
Release: 20031111 |
|
|
|
|
|
|
|
|
|
# package option |
|
|
|
|
%option with_fsl yes |
|
|
|
|
@ -56,8 +56,8 @@ BuildRoot: %{l_buildroot}
|
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20030718, make |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20030718 |
|
|
|
|
%if "%{with_fsl}" == "yes" |
|
|
|
|
BuildPreReq: fsl >= 1.2.0 |
|
|
|
|
PreReq: fsl >= 1.2.0 |
|
|
|
|
BuildPreReq: fsl >= 1.3.0 |
|
|
|
|
PreReq: fsl >= 1.3.0 |
|
|
|
|
%endif |
|
|
|
|
AutoReq: no |
|
|
|
|
AutoReqProv: no |
|
|
|
|
@ -159,6 +159,19 @@ AutoReqProv: no
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|
|
|
|
|
|
%post |
|
|
|
|
# update database |
|
|
|
|
# update database in every case |
|
|
|
|
$RPM_INSTALL_PREFIX/sbin/nsdc rebuild |
|
|
|
|
|
|
|
|
|
# after upgrade, restart service |
|
|
|
|
[ $1 -eq 2 ] || exit 0 |
|
|
|
|
eval `%{l_rc} nsd status 2>/dev/null` |
|
|
|
|
[ ".$nsd_active" = .yes ] && %{l_rc} nsd restart |
|
|
|
|
exit 0 |
|
|
|
|
|
|
|
|
|
%preun |
|
|
|
|
# before erase, stop service and remove log files |
|
|
|
|
[ $1 -eq 0 ] || exit 0 |
|
|
|
|
%{l_rc} nsd stop 2>/dev/null |
|
|
|
|
rm -f $RPM_INSTALL_PREFIX/var/nsd/*.log* >/dev/null 2>&1 || true |
|
|
|
|
exit 0 |
|
|
|
|
|
|
|
|
|
|