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-src                      Date:   20-Aug-2002 16:59:14
  Branch: HEAD                             Handle: 2002082015591400

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

  Log:
    fix it the 'better' way...

  Summary:
    Revision    Changes     Path
    1.1         +14 -0      openpkg-src/libnet/libnet.patch
    1.12        +3  -3      openpkg-src/libnet/libnet.spec
  ____________________________________________________________________________

  Index: openpkg-src/libnet/libnet.patch
  ============================================================
  $ cvs update -p -r1.1 libnet.patch
  --- src/libnet_resolve.c.orig Tue Aug 20 16:56:01 2002
  +++ src/libnet_resolve.c      Tue Aug 20 16:56:01 2002
  @@ -218,7 +218,11 @@
      
       if (use_name == LIBNET_RESOLVE)
       {
  +#if defined(__FreeBSD__) || defined(__linux__)
           if (!(host_ent = gethostbyname2(host_name, AF_INET6)))
  +#else
  +        if (!(host_ent = gethostbyname(host_name)) || host_ent->h_addrtype != 
AF_INET6)
  +#endif
           {
               snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,
                       "libnet_name2addr6(): %s", strerror(errno));
  Index: openpkg-src/libnet/libnet.spec
  ============================================================
  $ cvs diff -u -r1.11 -r1.12 libnet.spec
  --- openpkg-src/libnet/libnet.spec    20 Aug 2002 14:21:13 -0000      1.11
  +++ openpkg-src/libnet/libnet.spec    20 Aug 2002 14:59:14 -0000      1.12
  @@ -37,11 +37,12 @@
   
   #   list of sources
   Source0:      http://www.packetfactory.net/libnet/dist/libnet-%{version}.tar.gz
  +Patch0:       libnet.patch
   
   #   build information
   Prefix:       %{l_prefix}
   BuildRoot:    %{l_buildroot}
  -BuildPreReq:  OpenPKG, openpkg >= 20020206, gcc, make, bind
  +BuildPreReq:  OpenPKG, openpkg >= 20020206, gcc, make
   PreReq:       OpenPKG, openpkg >= 20020206
   AutoReq:      no
   AutoReqProv:  no
  @@ -57,12 +58,11 @@
   
   %prep
       %setup -q -n Libnet-latest
  +    %patch -p0
   
   %build
       CC="%{l_cc}" \
       CFLAGS="%{l_cflags -O}" \
  -    LDFLAGS="-L%{l_prefix}/lib" \
  -    LIBS="-lbind" \
       ./configure \
           --prefix=%{l_prefix}
       %{l_make} %{l_mflags -O}
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to