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

  Server: cvs.openpkg.org                  Name:   Michael van Elst
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src openpkg-web          Date:   05-Jun-2003 02:16:28
  Branch: HEAD                             Handle: 2003060501162502

  Modified files:
    openpkg-src/sendmail    sendmail.spec
    openpkg-web             news.txt

  Log:
    fix hardcoded platform-specific paths

  Summary:
    Revision    Changes     Path
    1.69        +11 -1      openpkg-src/sendmail/sendmail.spec
    1.4728      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/sendmail/sendmail.spec
  ============================================================================
  $ cvs diff -u -r1.68 -r1.69 sendmail.spec
  --- openpkg-src/sendmail/sendmail.spec        30 May 2003 18:50:42 -0000      1.68
  +++ openpkg-src/sendmail/sendmail.spec        5 Jun 2003 00:16:27 -0000       1.69
  @@ -33,7 +33,7 @@
   Group:        Mail
   License:      BSD
   Version:      8.12.9
  -Release:      20030530
  +Release:      20030605
   
   #   package options
   %option       with_tls      no
  @@ -105,6 +105,15 @@
         %{l_tar} xf %{SOURCE cf.tar}
       )
   
  +    #   override platform-specific definitions
  +    ( cd sendmail-%{version}
  +      %{l_shtool} subst \
  +        -e 's;\(define *SMRSH_CMDDIR *\).*;\1 "%{l_prefix}/var/sendmail/sm.bin";g' \
  +        -e 's;\(define *_PATH_SENDMAIL *\).*;\1 "%{l_prefix}/sbin/sendmail";g' \
  +        -e 's;\(include *<paths.h>.*\);\1\n#ifdef _PATH_SENDMAIL\n#undef 
_PATH_SENDMAIL\n#endif;g' \
  +        include/sendmail/pathnames.h include/sm/conf.h
  +    )
  +
   %build
       #   build Sendmail
       ( cd sendmail-%{version}
  @@ -282,6 +291,7 @@
   
       #   create important files which have to be present from the beginning
       %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/sendmail/sm.bin \
           $RPM_BUILD_ROOT%{l_prefix}/var/sendmail/mqueue \
           $RPM_BUILD_ROOT%{l_prefix}/var/sendmail/mqueue/.hoststat
       %{l_shtool} mkdir -f -p -m 755 \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.4727 -r1.4728 news.txt
  --- openpkg-web/news.txt      4 Jun 2003 18:13:56 -0000       1.4727
  +++ openpkg-web/news.txt      5 Jun 2003 00:16:25 -0000       1.4728
  @@ -1,3 +1,4 @@
  +05-Jun-2003: Upgraded package: P<sendmail-8.12.9-20030605>
   04-Jun-2003: Upgraded package: P<sqlite-2.8.3-20030604>
   04-Jun-2003: Upgraded package: P<bison-1.35-20030604>
   04-Jun-2003: Upgraded package: P<apache-1.3.27-20030604>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to