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:   10-Nov-2008 09:38:51
  Branch: HEAD                             Handle: 2008111008385000

  Modified files:
    openpkg-src/apache      apache.spec rc.apache

  Log:
    provide daily cache expiring

  Summary:
    Revision    Changes     Path
    1.439       +1  -0      openpkg-src/apache/apache.spec
    1.28        +6  -0      openpkg-src/apache/rc.apache
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/apache/apache.spec
  ============================================================================
  $ cvs diff -u -r1.438 -r1.439 apache.spec
  --- openpkg-src/apache/apache.spec    10 Nov 2008 08:25:03 -0000      1.438
  +++ openpkg-src/apache/apache.spec    10 Nov 2008 08:38:50 -0000      1.439
  @@ -281,6 +281,7 @@
   
       #   install run-command script
       %{l_shtool} install -c -m 755 %{l_value -s -a} \
  +        -e 's;with_mod_filecache;%{with_mod_filecache};g' \
           %{SOURCE rc.apache} \
           $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
   
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/apache/rc.apache
  ============================================================================
  $ cvs diff -u -r1.27 -r1.28 rc.apache
  --- openpkg-src/apache/rc.apache      27 Jul 2007 16:07:03 -0000      1.27
  +++ openpkg-src/apache/rc.apache      10 Nov 2008 08:38:50 -0000      1.28
  @@ -23,9 +23,11 @@
       apache_cgi_rotcomplevel="9"
       apache_cgi_rotprolog="true"
       apache_cgi_rotepilog="true"
  +    apache_cachesize="10M"
   
   %common
       apache_pidfile="@l_prefix@/var/apache/run/apache.pid"
  +    apache_cachedir="@l_prefix@/var/apache/run/apache.cache"
       apache_signal () {
           [ -f $apache_pidfile ] && kill -$1 `cat $apache_pidfile`
       }
  @@ -87,6 +89,10 @@
           -P "$apache_cgi_rotprolog" \
           -E "$apache_cgi_rotepilog; echo 1 >$hintfile" \
           ${apache_cgi_files}
  +    if [ "[EMAIL PROTECTED]@" = .yes ]; then
  +        @l_prefix@/sbin/htcacheclean \
  +            -n -t -l "$apache_cachesize" -p "$apache_cachedir"
  +    fi
       if [ -s $hintfile ]; then
           @l_prefix@/sbin/apache -k graceful
       fi
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to