|
@@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
|
|
|
Group: Web
|
|
Group: Web
|
|
|
License: GPL
|
|
License: GPL
|
|
|
Version: 1.5
|
|
Version: 1.5
|
|
|
-Release: 20031014
|
|
|
|
|
|
|
+Release: 20031113
|
|
|
|
|
|
|
|
# package options
|
|
# package options
|
|
|
%option with_fsl yes
|
|
%option with_fsl yes
|
|
@@ -55,8 +55,8 @@ PreReq: pcre, openssl, openssl::with_threads = yes
|
|
|
BuildPreReq: pth, pth::with_pthread = yes
|
|
BuildPreReq: pth, pth::with_pthread = yes
|
|
|
PreReq: pth, pth::with_pthread = yes
|
|
PreReq: pth, pth::with_pthread = yes
|
|
|
%if "%{with_fsl}" == "yes"
|
|
%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
|
|
%endif
|
|
|
AutoReq: no
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
AutoReqProv: no
|
|
@@ -149,3 +149,17 @@ AutoReqProv: no
|
|
|
%clean
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
+%post
|
|
|
|
|
+ # after upgrade, restart service
|
|
|
|
|
+ [ $1 -eq 2 ] || exit 0
|
|
|
|
|
+ eval `%{l_rc} pound status 2>/dev/null`
|
|
|
|
|
+ [ ".$pound_active" = .yes ] && %{l_rc} pound restart
|
|
|
|
|
+ exit 0
|
|
|
|
|
+
|
|
|
|
|
+%preun
|
|
|
|
|
+ # before erase, stop service and remove log files
|
|
|
|
|
+ [ $1 -eq 0 ] || exit 0
|
|
|
|
|
+ %{l_rc} pound stop 2>/dev/null
|
|
|
|
|
+ rm -f $RPM_INSTALL_PREFIX/var/pound/*.log* >/dev/null 2>&1 || true
|
|
|
|
|
+ exit 0
|
|
|
|
|
+
|