OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 05-Dec-2005 19:52:54
Branch: HEAD Handle: 2005120518525400
Modified files:
openpkg-src/apache apache.spec rc.apache
Log:
The ssl.log should be also rotated, please.
Summary:
Revision Changes Path
1.317 +1 -1 openpkg-src/apache/apache.spec
1.21 +14 -0 openpkg-src/apache/rc.apache
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/apache/apache.spec
============================================================================
$ cvs diff -u -r1.316 -r1.317 apache.spec
--- openpkg-src/apache/apache.spec 29 Nov 2005 15:41:25 -0000 1.316
+++ openpkg-src/apache/apache.spec 5 Dec 2005 18:52:54 -0000 1.317
@@ -65,7 +65,7 @@
Group: Web
License: ASF
Version: %{V_apache}
-Release: 20051129
+Release: 20051205
# package options (suexec related)
%option with_suexec yes
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/apache/rc.apache
============================================================================
$ cvs diff -u -r1.20 -r1.21 rc.apache
--- openpkg-src/apache/rc.apache 16 Nov 2005 07:39:58 -0000 1.20
+++ openpkg-src/apache/rc.apache 5 Dec 2005 18:52:54 -0000 1.21
@@ -17,6 +17,12 @@
apache_err_numfiles="10"
apache_err_minsize="1M"
apache_err_complevel="9"
+ apache_ssl_files="@l_prefix@/var/apache/log/ssl.log"
+ apache_ssl_prolog="true"
+ apache_ssl_epilog="true"
+ apache_ssl_numfiles="10"
+ apache_ssl_minsize="1M"
+ apache_ssl_complevel="9"
%common
apache_pidfile="@l_prefix@/var/apache/run/apache.pid"
@@ -81,4 +87,12 @@
-E "${apache_err_epilog} && rc apache reload" \
$apache_err_files
fi
+ if [ ".$apache_ssl_files" != . ]; then
+ shtool rotate -f \
+ -n ${apache_ssl_numfiles} -s ${apache_ssl_minsize} -d \
+ -z ${apache_ssl_complevel} -m 644 -o @l_susr@ -g @l_mgrp@ \
+ -P "${apache_ssl_prolog}" \
+ -E "${apache_ssl_epilog} && rc apache reload" \
+ $apache_ssl_files
+ fi
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]