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

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   21-Jul-2003 17:10:06
  Branch: HEAD                             Handle: 2003072116100600

  Modified files:
    openpkg-src/postfix     postfix.spec

  Log:
    do not create/use ghost log; let application create log; remove log on
    erase

  Summary:
    Revision    Changes     Path
    1.158       +3  -9      openpkg-src/postfix/postfix.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/postfix/postfix.spec
  ============================================================================
  $ cvs diff -u -r1.157 -r1.158 postfix.spec
  --- openpkg-src/postfix/postfix.spec  21 Jul 2003 14:46:09 -0000      1.157
  +++ openpkg-src/postfix/postfix.spec  21 Jul 2003 15:10:06 -0000      1.158
  @@ -253,7 +253,7 @@
             flush incoming private saved
         %{l_shtool} mkdir -f -p -m 730 maildrop
         %{l_shtool} mkdir -f -p -m 710 public
  -      %{l_shtool} mkdir -f -p -m 755 pid )
  +      %{l_shtool} mkdir -f -p -m 755 log pid )
   
       #   install addons
       ( cd pflogsumm-%{V_pflogsumm}
  @@ -279,18 +279,11 @@
           %{SOURCE fsl.postfix} \
           $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
   
  -    #   install ghost log
  -    %{l_shtool} mkdir -f -p -m 755 \
  -        $RPM_BUILD_ROOT%{l_prefix}/var/postfix/log
  -    %{l_shtool} install -c /dev/null \
  -        $RPM_BUILD_ROOT%{l_prefix}/var/postfix/log/postfix.log
  -
       #   generate file list
       %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
           %{l_files_std} \
           '%not %dir %{l_prefix}/etc/fsl' \
           '%config %{l_prefix}/etc/fsl/fsl.postfix' \
  -        '%ghost %attr(644,%{l_musr},%{l_mgrp}) 
%{l_prefix}/var/postfix/log/postfix.log' \
           '%attr(-,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/postfix' \
           '%config %attr(-,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/postfix/*' \
           '%attr(-,%{l_susr},%{l_mgrp}) %{l_prefix}/libexec/postfix/*' \
  @@ -326,9 +319,10 @@
       exit 0
   
   %preun
  -    #   before erase, stop service
  +    #   before erase, stop service and remove log files
       [ $1 -eq 0 ] || exit 0
       %{l_rc} postfix stop 2>/dev/null
  +    rm -f $RPM_INSTALL_PREFIX/var/postfix/log/postfix.log* >/dev/null 2>&1 || true
       #   remove generated configuration files
       (cd $RPM_INSTALL_PREFIX/etc/postfix/; %{l_make} clean >/dev/null 2>&1 || true)
       #   remove generated run-time files and directories
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to