OpenPKG CVS Repository
  http://www.openpkg.org/cvsweb/cvsweb.cgi
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-web, openpkg-src         Date:   21-Aug-2002 13:38:50
  Branch: HEAD                             Handle: 2002082112384901

  Added files:
    openpkg-src/ssmtp       ssmtp.patch
  Modified files:
    openpkg-src/ssmtp       ssmtp.spec
    openpkg-web             news.txt

  Log:
    fix building under Solaris

  Summary:
    Revision    Changes     Path
    1.1         +37 -0      openpkg-src/ssmtp/ssmtp.patch
    1.25        +5  -2      openpkg-src/ssmtp/ssmtp.spec
    1.1293      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  Index: openpkg-src/ssmtp/ssmtp.patch
  ============================================================
  $ cvs update -p -r1.1 ssmtp.patch
  --- ssmtp.c.orig      2002-08-21 13:36:01.000000000 +0200
  +++ ssmtp.c   2002-08-21 13:36:01.000000000 +0200
  @@ -18,6 +18,7 @@
   #include <stdlib.h>
   #include <stdio.h>
   #include <pwd.h>
  +#include <netdb.h>
   
   #include <syslog.h>
   #include <signal.h>
  @@ -123,7 +124,7 @@
                if((sd = strdup(buf)) == NULL) {
                        die("strup() failed in get_addr()");
                }
  -             while(*sd && isspace(*sd)) sd++;
  +             while(*sd && isspace((int)(*sd))) sd++;
   
                if(strncpy(buf, sd, sz) == NULL) {
                        die("strncpy() failed in get_addr()");
  @@ -132,7 +133,7 @@
                /* Strip trailing spaces */
                i = strlen(buf);
                while(i-- > 0) {
  -                     if(isspace(buf[i]) == 0) break;
  +                     if(isspace((int)buf[i]) == 0) break;
                }
                buf[(i + 1)] = (char)NULL;
        }
  @@ -171,7 +172,7 @@
                                *p = (char)NULL;
                        }
   
  -                     while(*str && isspace(*str)) str++;
  +                     while(*str && isspace((int)(*str))) str++;
                        get_addr(str, buf, BUF_SZ);
   
                        str = (p + 1);
  Index: openpkg-src/ssmtp/ssmtp.spec
  ============================================================
  $ cvs diff -u -r1.24 -r1.25 ssmtp.spec
  --- openpkg-src/ssmtp/ssmtp.spec      20 Aug 2002 06:42:16 -0000      1.24
  +++ openpkg-src/ssmtp/ssmtp.spec      21 Aug 2002 11:38:50 -0000      1.25
  @@ -33,11 +33,12 @@
   Group:        Mail
   License:      GPL
   Version:      2.48
  -Release:      20020820
  +Release:      20020821
   
   #   list of sources
   Source0:      
ftp://metalab.unc.edu/pub/Linux/system/mail/mta/ssmtp-%{version}.tar.gz
   Source1:      ssmtp.conf
  +Patch0:       ssmtp.patch
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -58,7 +59,9 @@
       one.
   
   %prep
  -    %setup -q
  +    %setup0 -q
  +    rm -rf RCS
  +    %patch0 -p0
       rm config.cache
   
   %build
  Index: openpkg-web/news.txt
  ============================================================
  $ cvs diff -u -r1.1292 -r1.1293 news.txt
  --- openpkg-web/news.txt      21 Aug 2002 11:25:47 -0000      1.1292
  +++ openpkg-web/news.txt      21 Aug 2002 11:38:49 -0000      1.1293
  @@ -1,3 +1,4 @@
  +21-Aug-2002: Upgraded package: P<ssmtp-2.48-20020821>
   21-Aug-2002: Upgraded package: P<socat-1.2.0.0-20020821>
   21-Aug-2002: Upgraded package: P<imagemagick-5.4.8.2-20020821>
   21-Aug-2002: Upgraded package: P<perl-time-20020821-20020821>
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to