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

  Server: cvs.openpkg.org                  Name:   Peter Smej
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   11-Feb-2003 15:35:55
  Branch: HEAD                             Handle: 2003021114355400

  Added files:
    openpkg-src/apg         apg.patch
  Modified files:
    openpkg-src/apg         apg.spec

  Log:
    Appended patch for Solaris 2.6

  Summary:
    Revision    Changes     Path
    1.1         +22 -0      openpkg-src/apg/apg.patch
    1.26        +10 -4      openpkg-src/apg/apg.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/apg/apg.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 apg.patch
  --- /dev/null 2003-02-11 15:35:55.000000000 +0100
  +++ apg.patch 2003-02-11 15:35:55.000000000 +0100
  @@ -0,0 +1,22 @@
  +--- apg.c.org        Tue Feb 11 15:11:31 2003
  ++++ apg.c    Tue Feb 11 15:10:52 2003
  +@@ -132,7 +132,7 @@
  + #endif /* APG_USE_CRYPT */
  + #endif /* CLISERV */
  + #ifdef CLISERV
  +-#ifdef sgi /* Thanks to Andrew J. Caird */
  ++#ifdef NEED_SOCKLEN_T /* Thanks to Andrew J. Caird */
  +  typedef unsigned int socklen_t;
  + #endif
  +  socklen_t len;
  +--- Makefile.org     Tue Feb 11 15:32:34 2003
  ++++ Makefile Tue Feb 11 15:32:50 2003
  +@@ -6,7 +6,7 @@
  + ##################################################################
  + # Compilation flags
  + # You should comment the line below for AIX+native cc
  +-FLAGS = -Wall
  ++FLAGS = -Wall ${CFLAGS}
  + 
  + ##################################################################
  + # Libraries
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/apg/apg.spec
  ============================================================================
  $ cvs diff -u -r1.25 -r1.26 apg.spec
  --- openpkg-src/apg/apg.spec  3 Jan 2003 10:51:03 -0000       1.25
  +++ openpkg-src/apg/apg.spec  11 Feb 2003 14:35:54 -0000      1.26
  @@ -37,6 +37,7 @@
   
   #   list of sources
   Source0:      http://www.adel.nursat.kz/apg/download/apg-%{version}.tar.gz
  +Patch0:       apg.patch
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -56,16 +57,21 @@
   
   %prep
       %setup -q
  +    %patch -p0
   
   %build
  +     libs=""
  +     defs=""
       case "%{l_target}" in
  -        *-freebsd* ) libs=""               ;;
  -        *-linux*   ) libs="-lnsl"          ;;
  -        *-solaris* ) libs="-lnsl -lsocket" ;;
  +        *-freebsd*    ) libs=""               ;;
  +        *-linux*      ) libs="-lnsl"          ;;
  +        *-solaris2.6* ) libs="-lnsl -lsocket" ; defs="-DNEED_SOCKLEN_T" ;;
  +        *-solaris*    ) libs="-lnsl -lsocket" ;;
  +        *-irix*       ) libs="-lnsl -lsocket" ; defs="-DNEED_SOCKLEN_T";;
       esac
       %{l_make} %{l_mflags -O} \
           CC="%{l_cc}" \
  -        CFLAGS="%{l_cflags -O}" \
  +        CFLAGS="%{l_cflags -O} $defs" \
           CS_LIBS="$libs"
   
   %install
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to