OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src openpkg-web          Date:   30-May-2003 20:43:24
  Branch: HEAD                             Handle: 2003053019432201

  Added files:
    openpkg-src/apache2     rc.apache2
  Modified files:
    openpkg-src/apache2     apache2.spec
    openpkg-web             news.txt

  Log:
    flush some old work on this beast

  Summary:
    Revision    Changes     Path
    1.17        +12 -1      openpkg-src/apache2/apache2.spec
    1.1         +51 -0      openpkg-src/apache2/rc.apache2
    1.4643      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/apache2/apache2.spec
  ============================================================================
  $ cvs diff -u -r1.16 -r1.17 apache2.spec
  --- openpkg-src/apache2/apache2.spec  29 May 2003 07:17:39 -0000      1.16
  +++ openpkg-src/apache2/apache2.spec  30 May 2003 18:43:23 -0000      1.17
  @@ -33,10 +33,11 @@
   Group:        Web
   License:      ASF
   Version:      2.0.46
  -Release:      20030529
  +Release:      20030530
   
   #   list of sources
   Source0:      http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
  +Source1:      rc.apache2
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -45,6 +46,7 @@
   PreReq:       OpenPKG, openpkg >= 20020206, perl
   AutoReq:      no
   AutoReqProv:  no
  +Conflicts:    apache
   
   %description
       The Apache Project is a collaborative software development effort
  @@ -80,6 +82,15 @@
   %install
       rm -rf $RPM_BUILD_ROOT
       %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  +    %{l_shtool} install -c -m 755 \
  +        -e 's;@l_prefix@;%{l_prefix};g' \
  +        -e 's;@l_susr@;%{l_susr};g' \
  +        -e 's;@l_musr@;%{l_musr};g' \
  +        -e 's;@l_mgrp@;%{l_mgrp};g' \
  +        %{SOURCE rc.apache2} \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
       strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
       %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/apache2/rc.apache2
  ============================================================================
  $ cvs diff -u -r0 -r1.1 rc.apache2
  --- /dev/null 2003-05-30 20:43:24.000000000 +0200
  +++ rc.apache2        2003-05-30 20:43:24.000000000 +0200
  @@ -0,0 +1,51 @@
  [EMAIL PROTECTED]@/lib/openpkg/bash @l_prefix@/etc/rc
  +##
  +##  rc.apache2 -- Run-Commands for Apache 2
  +##
  +
  +%config
  +    apache2_enable="yes"
  +    apache2_log_files="@l_prefix@/var/apache2/log/access.log"
  +    apache2_log_rotsteps="10"
  +    apache2_log_rotminsize="10M"
  +    apache2_log_rotcomplevel="9"
  +    apache2_log_rotprolog="true"
  +    apache2_log_rotepilog="true"
  +    apache2_err_files="@l_prefix@/var/apache2/log/error.log"
  +    apache2_err_rotsteps="10"
  +    apache2_err_rotminsize="1M"
  +    apache2_err_rotcomplevel="9"
  +    apache2_err_rotprolog="true"
  +    apache2_err_rotepilog="true"
  +
  +%start -p 200 -u @l_susr@
  +    opServiceEnabled apache2 || exit 0
  +    @l_prefix@/sbin/apachectl start
  +
  +%stop -p 200 -u @l_susr@
  +    opServiceEnabled apache2 || exit 0
  +    @l_prefix@/sbin/apachectl stop
  +
  +%restart -u @l_susr@
  +    opServiceEnabled apache2 || exit 0
  +    @l_prefix@/sbin/apachectl restart
  +
  +%daily -u @l_susr@
  +    opServiceEnabled apache2 || exit 0
  +    if [ ".$apache2_log_files" != . ]; then
  +        shtool rotate -f \
  +            -n${apache2_log_rotsteps} -s${apache2_log_rotminsize} -d \
  +            -z${apache2_log_rotcomplevel} [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ 
-m644 \
  +            -P "$apache2_log_rotprolog" \
  +            -E "@l_prefix@/sbin/apachectl restart; $apache2_log_rotepilog" \
  +            $apache2_log_files
  +    fi
  +    if [ ".$apache2_err_files" != . ]; then
  +        shtool rotate -f \
  +            -n${apache2_err_rotsteps} -s${apache2_err_rotminsize} -d \
  +            -z${apache2_err_rotcomplevel} [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ 
-m644 \
  +            -P "$apache2_err_rotprolog" \
  +            -E "@l_prefix@/sbin/apachectl restart; $apache2_err_rotepilog" \
  +            $apache2_err_files
  +    fi
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.4642 -r1.4643 news.txt
  --- openpkg-web/news.txt      30 May 2003 18:43:00 -0000      1.4642
  +++ openpkg-web/news.txt      30 May 2003 18:43:22 -0000      1.4643
  @@ -1,3 +1,4 @@
  +30-May-2003: Upgraded package: P<apache2-2.0.46-20030530>
   30-May-2003: Upgraded package: P<acroread-5.06-20030530>
   30-May-2003: Upgraded package: P<openpkg-20030530-20030530>
   30-May-2003: Upgraded package: P<iozone-3.178-20030530>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to