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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  r...@openpkg.org
  Module: openpkg-src                      Date:   29-Nov-2009 11:08:19
  Branch: HEAD                             Handle: 2009112910081800

  Modified files:
    openpkg-src/snmp        snmp.patch snmp.spec

  Log:
    add FreeBSD 8 and 9 support

  Summary:
    Revision    Changes     Path
    1.17        +27 -13     openpkg-src/snmp/snmp.patch
    1.101       +1  -1      openpkg-src/snmp/snmp.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/snmp/snmp.patch
  ============================================================================
  $ cvs diff -u -r1.16 -r1.17 snmp.patch
  --- openpkg-src/snmp/snmp.patch       16 May 2009 16:39:56 -0000      1.16
  +++ openpkg-src/snmp/snmp.patch       29 Nov 2009 10:08:18 -0000      1.17
  @@ -1,18 +1,18 @@
   Index: Makefile.in
   --- Makefile.in.orig 2007-06-08 22:32:56 +0200
  -+++ Makefile.in      2009-05-16 18:34:20 +0200
  ++++ Makefile.in      2009-11-29 11:03:13 +0100
   @@ -16,7 +16,7 @@
    INSTALLHEADERS=version.h
    INCLUDESUBDIR=system
    INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h \
   -    darwin.h darwin7.h darwin8.h darwin9.h freebsd5.h freebsd6.h \
  -+    darwin.h darwin7.h darwin8.h darwin9.h freebsd5.h freebsd6.h freebsd7.h 
\
  ++    darwin.h darwin7.h darwin8.h darwin9.h freebsd5.h freebsd6.h freebsd7.h 
freebsd8.h freebsd9.h \
        dynix.h freebsd2.h freebsd3.h freebsd4.h freebsd.h generic.h hpux.h \
        irix.h linux.h mingw32.h mips.h netbsd.h openbsd.h osf5.h \
        solaris2.3.h solaris2.4.h solaris2.5.h solaris2.6.h \
   Index: agent/auto_nlist.c
   --- agent/auto_nlist.c.orig  2008-06-05 23:11:53 +0200
  -+++ agent/auto_nlist.c       2009-05-16 18:34:20 +0200
  ++++ agent/auto_nlist.c       2009-11-29 11:02:56 +0100
   @@ -53,6 +53,7 @@
        }
        if (*ptr == 0) {
  @@ -23,7 +23,7 @@
            it->right = 0;
   Index: agent/mibgroup/mibII/tcp.c
   --- agent/mibgroup/mibII/tcp.c.orig  2008-06-05 23:11:53 +0200
  -+++ agent/mibgroup/mibII/tcp.c       2009-05-16 18:34:20 +0200
  ++++ agent/mibgroup/mibII/tcp.c       2009-11-29 11:02:56 +0100
   @@ -84,7 +84,7 @@
                     * But only define it under FreeBSD, since it
                     *   breaks other systems (notable AIX)
  @@ -35,7 +35,7 @@
    
   Index: agent/mibgroup/mibII/tcpTable.c
   --- agent/mibgroup/mibII/tcpTable.c.orig     2007-10-14 14:12:58 +0200
  -+++ agent/mibgroup/mibII/tcpTable.c  2009-05-16 18:34:20 +0200
  ++++ agent/mibgroup/mibII/tcpTable.c  2009-11-29 11:02:56 +0100
   @@ -100,6 +100,11 @@
    #define     TCPTABLE_REMOTEPORT     pcb.inp_fport
    #define     TCPTABLE_IS_LINKED_LIST
  @@ -68,7 +68,7 @@
        tcp_head   = nnew;
   Index: agent/mibgroup/ucd-snmp/diskio.c
   --- agent/mibgroup/ucd-snmp/diskio.c.orig    2008-06-05 23:11:53 +0200
  -+++ agent/mibgroup/ucd-snmp/diskio.c 2009-05-16 18:34:20 +0200
  ++++ agent/mibgroup/ucd-snmp/diskio.c 2009-11-29 11:02:56 +0100
   @@ -593,6 +593,20 @@
        case DISKIO_DEVICE:
            *var_len = strlen(stat->dinfo->devices[indx].device_name);
  @@ -100,7 +100,7 @@
            ERROR_MSG("diskio.c: don't know how to handle this request.");
   Index: agent/mibgroup/ucd-snmp/memory_solaris2.c
   --- agent/mibgroup/ucd-snmp/memory_solaris2.c.orig   2006-09-15 02:48:50 
+0200
  -+++ agent/mibgroup/ucd-snmp/memory_solaris2.c        2009-05-16 18:34:20 
+0200
  ++++ agent/mibgroup/ucd-snmp/memory_solaris2.c        2009-11-29 11:02:56 
+0100
   @@ -1,3 +1,4 @@
   +#undef _FILE_OFFSET_BITS /* swapctl doesn't support 64bit off_t */
    #include <net-snmp/net-snmp-config.h>   /* local SNMP configuration details 
*/
  @@ -108,7 +108,7 @@
    #include <string.h>
   Index: agent/mibgroup/ucd-snmp/proc.c
   --- agent/mibgroup/ucd-snmp/proc.c.orig      2008-06-05 23:11:53 +0200
  -+++ agent/mibgroup/ucd-snmp/proc.c   2009-05-16 18:34:20 +0200
  ++++ agent/mibgroup/ucd-snmp/proc.c   2009-11-29 11:02:56 +0100
   @@ -1,3 +1,6 @@
   +#ifdef solaris2
   +#undef _FILE_OFFSET_BITS /* solaris procfs doesn't support 64bit off_t */
  @@ -118,7 +118,7 @@
    #ifdef solaris2
   Index: agent/mibgroup/util_funcs.c
   --- agent/mibgroup/util_funcs.c.orig 2007-08-16 16:12:47 +0200
  -+++ agent/mibgroup/util_funcs.c      2009-05-16 18:34:20 +0200
  ++++ agent/mibgroup/util_funcs.c      2009-11-29 11:02:56 +0100
   @@ -461,6 +461,9 @@
        int             fd[2][2], i, cnt;
        char            ctmp[STRMAX], *cptr1, *cptr2, argvs[STRMAX], **argv,
  @@ -131,7 +131,7 @@
         */
   Index: agent/snmpd.c
   --- agent/snmpd.c.orig       2008-08-17 22:50:55 +0200
  -+++ agent/snmpd.c    2009-05-16 18:34:20 +0200
  ++++ agent/snmpd.c    2009-11-29 11:02:56 +0100
   @@ -424,7 +424,7 @@
        int             uid = 0, gid = 0;
        int             agent_mode = -1;
  @@ -143,7 +143,7 @@
        int fd;
   Index: apps/snmptrapd.c
   --- apps/snmptrapd.c.orig    2007-08-16 11:35:12 +0200
  -+++ apps/snmptrapd.c 2009-05-16 18:34:20 +0200
  ++++ apps/snmptrapd.c 2009-11-29 11:02:56 +0100
   @@ -748,6 +748,7 @@
         */
    #if HAVE_GETPID
  @@ -154,7 +154,7 @@
    #ifdef WIN32
   Index: include/net-snmp/library/system.h
   --- include/net-snmp/library/system.h.orig   2007-01-11 23:13:56 +0100
  -+++ include/net-snmp/library/system.h        2009-05-16 18:34:20 +0200
  ++++ include/net-snmp/library/system.h        2009-11-29 11:02:56 +0100
   @@ -114,7 +114,8 @@
        char           *strdup(const char *);
    #endif
  @@ -165,9 +165,23 @@
    #endif
    
        int             calculate_time_diff(struct timeval *,
  +Index: include/net-snmp/system/freebsd8.h
  +--- include/net-snmp/system/freebsd8.h.orig  2009-11-29 11:04:44 +0100
  ++++ include/net-snmp/system/freebsd8.h       2009-11-29 11:04:16 +0100
  +@@ -0,0 +1,3 @@
  ++/* freebsd8 is a superset of freebsd7 */
  ++#include "freebsd7.h"
  ++#define freebsd7 freebsd7
  +Index: include/net-snmp/system/freebsd9.h
  +--- include/net-snmp/system/freebsd9.h.orig  2009-11-29 11:04:48 +0100
  ++++ include/net-snmp/system/freebsd9.h       2009-11-29 11:04:31 +0100
  +@@ -0,0 +1,3 @@
  ++/* freebsd9 is a superset of freebsd8 */
  ++#include "freebsd8.h"
  ++#define freebsd8 freebsd8
   Index: snmplib/system.c
   --- snmplib/system.c.orig    2008-06-05 23:11:53 +0200
  -+++ snmplib/system.c 2009-05-16 18:34:20 +0200
  ++++ snmplib/system.c 2009-11-29 11:02:56 +0100
   @@ -894,7 +894,7 @@
    
    #ifndef HAVE_SETENV
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/snmp/snmp.spec
  ============================================================================
  $ cvs diff -u -r1.100 -r1.101 snmp.spec
  --- openpkg-src/snmp/snmp.spec        30 Jun 2009 20:21:28 -0000      1.100
  +++ openpkg-src/snmp/snmp.spec        29 Nov 2009 10:08:18 -0000      1.101
  @@ -32,7 +32,7 @@
   Group:        Network
   License:      BSD
   Version:      5.4.2.1
  -Release:      20090516
  +Release:      20091129
   
   #   package options
   %option       with_fsl          yes
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to