|
|
@@ -35,7 +35,7 @@ Distribution: OpenPKG [JUNK]
|
|
|
Group: Mail
|
|
|
License: GPL
|
|
|
Version: 4.24
|
|
|
-Release: 20030923
|
|
|
+Release: 20031021
|
|
|
|
|
|
# package options
|
|
|
%option with_fsl yes
|
|
|
@@ -54,8 +54,8 @@ PreReq: OpenPKG, openpkg >= 20030909, perl, gzip
|
|
|
BuildPreReq: openssl, db >= 4.1.24, libiconv
|
|
|
PreReq: openssl, db >= 4.1.24, libiconv
|
|
|
%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
|
|
|
@@ -187,3 +187,17 @@ Conflicts: postfix, sendmail, ssmtp
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+%post
|
|
|
+ # after upgrade, restart service
|
|
|
+ [ $1 -eq 2 ] || exit 0
|
|
|
+ eval `%{l_rc} exim status 2>/dev/null`
|
|
|
+ [ ".$exim_active" = .yes ] && %{l_rc} exim restart
|
|
|
+ exit 0
|
|
|
+
|
|
|
+%preun
|
|
|
+ # before erase, stop service and remove log files
|
|
|
+ [ $1 -eq 0 ] || exit 0
|
|
|
+ %{l_rc} exim stop 2>/dev/null
|
|
|
+ rm -f $RPM_INSTALL_PREFIX/var/exim/* >/dev/null 2>&1 || true
|
|
|
+ exit 0
|
|
|
+
|