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                      Date:   22-Jul-2003 10:51:31
  Branch: HEAD                             Handle: 2003072209513000

  Modified files:
    openpkg-src/openssh     openssh.spec

  Log:
    make sure PAM config is only touched on initial install and final
    deinstall

  Summary:
    Revision    Changes     Path
    1.102       +6  -2      openpkg-src/openssh/openssh.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/openssh/openssh.spec
  ============================================================================
  $ cvs diff -u -r1.101 -r1.102 openssh.spec
  --- openpkg-src/openssh/openssh.spec  22 Jul 2003 08:10:57 -0000      1.101
  +++ openpkg-src/openssh/openssh.spec  22 Jul 2003 08:51:30 -0000      1.102
  @@ -265,12 +265,16 @@
   
       #   add PAM configuration entry
   %if "%{with_pam}" == "yes"
  -    $RPM_INSTALL_PREFIX/sbin/pamtool --add --smart --name=openssh
  +    if [ $1 -eq 1 ]; then
  +        $RPM_INSTALL_PREFIX/sbin/pamtool --add --smart --name=openssh
  +    fi
   %endif
   
   %preun
       #   remove PAM configuration entry
   %if "%{with_pam}" == "yes"
  -    $RPM_INSTALL_PREFIX/sbin/pamtool --remove --smart --name=openssh
  +    if [ $1 -eq 0 ]; then
  +        $RPM_INSTALL_PREFIX/sbin/pamtool --remove --smart --name=openssh
  +    fi
   %endif
   
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to