Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/net
In directory vz-cvs-3.sog:/tmp/cvs-serv26229/main/finkinfo/net

Modified Files:
        net-snmp-unified.info net-snmp-unified.patch 
Added Files:
        net-snmp-unified-5.4.2.1.info net-snmp-unified-5.4.2.1.patch 
Log Message:
new upstream net-snmp

Index: net-snmp-unified.patch
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/net/net-snmp-unified.patch,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- net-snmp-unified.patch      4 Sep 2009 21:03:04 -0000       1.7
+++ net-snmp-unified.patch      23 May 2011 15:27:11 -0000      1.8
@@ -1,48 +1,110 @@
-diff -Nurd net-snmp-5.4.2.1/configure.in net-snmp-5.4.2.1-new/configure.in
---- net-snmp-5.4.2.1/configure.in      2008-10-31 11:22:23.000000000 -0400
-+++ net-snmp-5.4.2.1-new/configure.in  2009-09-04 16:32:58.000000000 -0400
-@@ -1057,7 +1057,7 @@
-           AC_MSG_RESULT([none])
-       fi
-       ;;
--    darwin8*|darwin9*)
-+    darwin8*|darwin9*|darwin10*)
-         AC_MSG_CHECKING([whether darwin ld might need -flat_namespace])
-       if test -z "$MACOSX_DEPLOYMENT_TARGET"; then
-               LDFLAGS="-flat_namespace $LDFLAGS"
-@@ -2986,7 +2986,7 @@
+diff -Nurd net-snmp-5.6.1/agent/mibgroup/hardware/memory/memory_darwin.c 
net-snmp-5.6.1-new/agent/mibgroup/hardware/memory/memory_darwin.c
+--- net-snmp-5.6.1/agent/mibgroup/hardware/memory/memory_darwin.c      
2007-06-18 17:12:35.000000000 -0400
++++ net-snmp-5.6.1-new/agent/mibgroup/hardware/memory/memory_darwin.c  
2011-03-30 10:29:12.000000000 -0400
+@@ -9,6 +9,11 @@
+ #include <sys/stat.h>
+ #include <sys/sysctl.h>
+ 
++#ifdef HAVE_VM_REGION_64
++#define VM_REGION_FUNC vm_region_64
++#else
++#define VM_REGION_FUNC vm_region
++#endif
+ 
+ /*
+  * Retained from UCD implementation
+@@ -75,7 +80,7 @@
+             for (address = 0;; address += size) {
+                 /* Get memory region. */
+                 count = VM_REGION_EXTENDED_INFO_COUNT; 
+-                if (vm_region(tasks[j], &address, &size, 
VM_REGION_EXTENDED_INFO, (vm_region_extended_info_t)&info, &count, 
&object_name) != KERN_SUCCESS) {
++                if (VM_REGION_FUNC(tasks[j], &address, &size, 
VM_REGION_EXTENDED_INFO, (vm_region_extended_info_t)&info, &count, 
&object_name) != KERN_SUCCESS) {
+                     /* No more memory regions. */
+                     break;
+                 }
+diff -Nurd net-snmp-5.6.1/agent/mibgroup/host/hr_swrun.c 
net-snmp-5.6.1-new/agent/mibgroup/host/hr_swrun.c
+--- net-snmp-5.6.1/agent/mibgroup/host/hr_swrun.c      2010-07-29 
10:58:47.000000000 -0400
++++ net-snmp-5.6.1-new/agent/mibgroup/host/hr_swrun.c  2011-03-30 
09:35:37.000000000 -0400
+@@ -39,9 +39,6 @@
+ #if HAVE_SYS_PROC_H
+ #include <sys/proc.h>
+ #endif
+-#if HAVE_KVM_H
+-#include <kvm.h>
+-#endif
+ #if HAVE_SYS_SYSCTL_H
+ #include <sys/sysctl.h>
+ #endif
+diff -Nurd net-snmp-5.6.1/agent/mibgroup/ucd-snmp/memory_darwin7.c 
net-snmp-5.6.1-new/agent/mibgroup/ucd-snmp/memory_darwin7.c
+--- net-snmp-5.6.1/agent/mibgroup/ucd-snmp/memory_darwin7.c    2008-10-21 
17:10:43.000000000 -0400
++++ net-snmp-5.6.1-new/agent/mibgroup/ucd-snmp/memory_darwin7.c        
2011-03-30 10:29:30.000000000 -0400
+@@ -48,6 +48,12 @@
+ #include "memory.h"
+ #include "memory_darwin7.h"
+ 
++#ifdef HAVE_VM_REGION_64
++#define VM_REGION_FUNC vm_region_64
++#else
++#define VM_REGION_FUNC vm_region
++#endif
++
+ /*
+  *  * Swap info 
+  *   */
+@@ -387,7 +393,7 @@
+             for (address = 0;; address += size) {
+                 /* Get memory region. */
+                 count = VM_REGION_EXTENDED_INFO_COUNT; 
+-                if (vm_region(tasks[j], &address, &size, 
VM_REGION_EXTENDED_INFO, (vm_region_extended_info_t)&info, &count, 
&object_name) != KERN_SUCCESS) {
++                if (VM_REGION_FUNC(tasks[j], &address, &size, 
VM_REGION_EXTENDED_INFO, (vm_region_extended_info_t)&info, &count, 
&object_name) != KERN_SUCCESS) {
+                     /* No more memory regions. */
+                     break;
+                 }
+diff -Nurd net-snmp-5.6.1/configure.d/config_os_functions 
net-snmp-5.6.1-new/configure.d/config_os_functions
+--- net-snmp-5.6.1/configure.d/config_os_functions     2010-12-06 
17:08:12.000000000 -0500
++++ net-snmp-5.6.1-new/configure.d/config_os_functions 2011-03-30 
10:27:44.000000000 -0400
+@@ -95,7 +95,8 @@
+                [sigprocmask                                    ] dnl
+                [statfs          statvfs       stime            ] dnl
+                [strncasecmp     system                         ] dnl
+-               [uname           usleep                         ] )
++               [uname           usleep                         ] dnl
++               [vm_region       vm_region_64                   ] )
+ 
+ #  Apps:
+ AC_CHECK_FUNCS([getdtablesize                                  ] dnl
+diff -Nurd net-snmp-5.6.1/configure.d/config_project_perl_python 
net-snmp-5.6.1-new/configure.d/config_project_perl_python
+--- net-snmp-5.6.1/configure.d/config_project_perl_python      2010-07-29 
11:47:40.000000000 -0400
++++ net-snmp-5.6.1-new/configure.d/config_project_perl_python  2011-03-30 
09:32:45.000000000 -0400
+@@ -87,7 +87,7 @@
      if test "xenable_perl_cc_checks" != "xno" ; then
-       AC_MSG_CHECKING([for Perl cc])
-       changequote(, )
--      PERLCC=`$myperl -V:cc | $myperl -n -e 'print if 
(s/^\s*cc=.([-=\w\s\/]+).;\s*/$1/);'`
-+      PERLCC=`$myperl -V:cc | $myperl -n -e 'print if 
(s/^\s*cc=.([-=\w\s\.\/]+).;\s*/$1/);'`
-       changequote([, ])
-       if test "x$PERLCC" != "x" ; then
-         AC_MSG_RESULT([$PERLCC])
-@@ -3072,7 +3072,9 @@
- # check the cflags
+         AC_MSG_CHECKING([for Perl cc])
+         changequote(, )
+-        PERLCC=`$myperl -V:cc | $myperl -n -e 'print if 
(s/^\s*cc=.([-=\w\s\/]+).;\s*/$1/);'`
++        PERLCC=`$myperl -V:cc | $myperl -n -e 'print if 
(s/^\s*cc=.([-=\w\s\.\/]+).;\s*/$1/);'`
+         changequote([, ])
+         if test "x$PERLCC" != "x" ; then
+             AC_MSG_RESULT([$PERLCC])
+@@ -192,7 +192,7 @@
+ #
  if test "x$embed_perl" != "xno" ; then
      AC_MSG_CHECKING([for Perl CFLAGS])
 -    perlcflags=`$myperl -MExtUtils::Embed -e ccopts`
-+    changequote(, )
 +    perlcflags=`$myperl -MExtUtils::Embed -e ccopts | /usr/bin/sed -e 
's,-arch [^ ]*,,g'`
-+    changequote([, ])
      if test "x$perlcflags" != "x" ; then
        AC_MSG_RESULT([$perlcflags])
        CFLAGS="$CFLAGS $perlcflags"
-@@ -3088,7 +3090,9 @@
- # check the ldflags
+@@ -209,7 +209,7 @@
+ #
  if test "x$embed_perl" != "xno" ; then
      AC_MSG_CHECKING([for Perl LDFLAGS])
 -    netsnmp_perlldopts=`$myperl -MExtUtils::Embed -e ldopts`
-+    changequote(, )
 +    netsnmp_perlldopts=`$myperl -MExtUtils::Embed -e ldopts | /usr/bin/sed -e 
's,-arch [^ ]*,,g'`
-+    changequote([, ])
      if test "x$netsnmp_perlldopts" != "x" ; then
        AC_MSG_RESULT([$netsnmp_perlldopts])
      else
-@@ -3104,7 +3108,7 @@
-       # Perl ccdlflags (RPATH to libperl, hopefully)
+@@ -228,7 +228,7 @@
+       #
        AC_MSG_CHECKING([for Perl CCDLFLAGS])
        changequote(, )
 -      netsnmp_perlccdlflags=`$myperl -V:ccdlflags | $myperl -n -e 'print $1 
'"if (/^\s*ccdlflags='([^']+)';/);"`
@@ -50,15 +112,15 @@
        changequote([, ])
        AC_MSG_RESULT([$netsnmp_perlccdlflags])
        PERLLDOPTS_FOR_APPS="$netsnmp_perlccdlflags"
-diff -Nurd net-snmp-5.4.2.1/perl/TrapReceiver/Makefile.PL 
net-snmp-5.4.2.1-new/perl/TrapReceiver/Makefile.PL
---- net-snmp-5.4.2.1/perl/TrapReceiver/Makefile.PL     2007-06-18 
10:10:08.000000000 -0400
-+++ net-snmp-5.4.2.1-new/perl/TrapReceiver/Makefile.PL 2009-09-04 
16:21:14.000000000 -0400
-@@ -108,7 +108,7 @@
-     else {
-       $opts = NetSNMPGetOpts();
-       $Params{'LDDLFLAGS'} = "$Config{lddlflags} " . `$opts->{'nsconfig'} 
--ldflags`;
--      $Params{'LIBS'} = '-lnetsnmptrapd -lnetsnmpagent -lnetsnmp';
-+      $Params{'LIBS'} = '-lnetsnmptrapd -lnetsnmpagent -lnetsnmp 
-lnetsnmpmibs -lnetsnmphelpers ';
-       chomp($Params{'LIBS'});
-       if (!$ENV{'NETSNMP_CCFLAGS'}) {
-           $Params{'CCFLAGS'} = `$opts->{'nsconfig'} --cflags`;
+diff -Nurd net-snmp-5.6.1/net-snmp-config.in 
net-snmp-5.6.1-new/net-snmp-config.in
+--- net-snmp-5.6.1/net-snmp-config.in  2010-10-13 05:58:34.000000000 -0400
++++ net-snmp-5.6.1-new/net-snmp-config.in      2011-03-30 09:34:09.000000000 
-0400
+@@ -57,7 +57,7 @@
+ NSC_SRCDIR=@srcdir@
+ NSC_INCDIR=${NSC_PREFIX}/include
+ NSC_BASE_SUBAGENT_LIBS="-lnetsnmpagent -lnetsnmp"
+-NSC_BASE_AGENT_LIBS="-lnetsnmpagent -lnetsnmpmibs -lnetsnmp"
++NSC_BASE_AGENT_LIBS="-lnetsnmpagent -lnetsnmpmibs -lnetsnmp -lnetsnmphelpers"
+ NSC_SRC_LIBDIRS="agent/.libs snmplib/.libs"
+ NSC_SRC_LIBDEPS="agent/.libs/libnetsnmpmibs.a agent/.libs/libnetsnmpagent.a 
snmplib/.libs/libnetsnmp.a"
+ 

--- NEW FILE: net-snmp-unified-5.4.2.1.patch ---
diff -Nurd net-snmp-5.4.2.1/configure.in net-snmp-5.4.2.1-new/configure.in
--- net-snmp-5.4.2.1/configure.in       2008-10-31 11:22:23.000000000 -0400
+++ net-snmp-5.4.2.1-new/configure.in   2009-09-04 16:32:58.000000000 -0400
@@ -1057,7 +1057,7 @@
            AC_MSG_RESULT([none])
        fi
        ;;
-    darwin8*|darwin9*)
+    darwin8*|darwin9*|darwin10*)
         AC_MSG_CHECKING([whether darwin ld might need -flat_namespace])
        if test -z "$MACOSX_DEPLOYMENT_TARGET"; then
                LDFLAGS="-flat_namespace $LDFLAGS"
@@ -2986,7 +2986,7 @@
     if test "xenable_perl_cc_checks" != "xno" ; then
       AC_MSG_CHECKING([for Perl cc])
       changequote(, )
-      PERLCC=`$myperl -V:cc | $myperl -n -e 'print if 
(s/^\s*cc=.([-=\w\s\/]+).;\s*/$1/);'`
+      PERLCC=`$myperl -V:cc | $myperl -n -e 'print if 
(s/^\s*cc=.([-=\w\s\.\/]+).;\s*/$1/);'`
       changequote([, ])
       if test "x$PERLCC" != "x" ; then
         AC_MSG_RESULT([$PERLCC])
@@ -3072,7 +3072,9 @@
 # check the cflags
 if test "x$embed_perl" != "xno" ; then
     AC_MSG_CHECKING([for Perl CFLAGS])
-    perlcflags=`$myperl -MExtUtils::Embed -e ccopts`
+    changequote(, )
+    perlcflags=`$myperl -MExtUtils::Embed -e ccopts | /usr/bin/sed -e 's,-arch 
[^ ]*,,g'`
+    changequote([, ])
     if test "x$perlcflags" != "x" ; then
       AC_MSG_RESULT([$perlcflags])
       CFLAGS="$CFLAGS $perlcflags"
@@ -3088,7 +3090,9 @@
 # check the ldflags
 if test "x$embed_perl" != "xno" ; then
     AC_MSG_CHECKING([for Perl LDFLAGS])
-    netsnmp_perlldopts=`$myperl -MExtUtils::Embed -e ldopts`
+    changequote(, )
+    netsnmp_perlldopts=`$myperl -MExtUtils::Embed -e ldopts | /usr/bin/sed -e 
's,-arch [^ ]*,,g'`
+    changequote([, ])
     if test "x$netsnmp_perlldopts" != "x" ; then
       AC_MSG_RESULT([$netsnmp_perlldopts])
     else
@@ -3104,7 +3108,7 @@
       # Perl ccdlflags (RPATH to libperl, hopefully)
       AC_MSG_CHECKING([for Perl CCDLFLAGS])
       changequote(, )
-      netsnmp_perlccdlflags=`$myperl -V:ccdlflags | $myperl -n -e 'print $1 
'"if (/^\s*ccdlflags='([^']+)';/);"`
+      netsnmp_perlccdlflags=`$myperl -V:ccdlflags | /usr/bin/sed -e 's,-arch 
[^ ]*,,g'`
       changequote([, ])
       AC_MSG_RESULT([$netsnmp_perlccdlflags])
       PERLLDOPTS_FOR_APPS="$netsnmp_perlccdlflags"
diff -Nurd net-snmp-5.4.2.1/perl/TrapReceiver/Makefile.PL 
net-snmp-5.4.2.1-new/perl/TrapReceiver/Makefile.PL
--- net-snmp-5.4.2.1/perl/TrapReceiver/Makefile.PL      2007-06-18 
10:10:08.000000000 -0400
+++ net-snmp-5.4.2.1-new/perl/TrapReceiver/Makefile.PL  2009-09-04 
16:21:14.000000000 -0400
@@ -108,7 +108,7 @@
     else {
        $opts = NetSNMPGetOpts();
        $Params{'LDDLFLAGS'} = "$Config{lddlflags} " . `$opts->{'nsconfig'} 
--ldflags`;
-       $Params{'LIBS'} = '-lnetsnmptrapd -lnetsnmpagent -lnetsnmp';
+       $Params{'LIBS'} = '-lnetsnmptrapd -lnetsnmpagent -lnetsnmp 
-lnetsnmpmibs -lnetsnmphelpers ';
        chomp($Params{'LIBS'});
        if (!$ENV{'NETSNMP_CCFLAGS'}) {
            $Params{'CCFLAGS'} = `$opts->{'nsconfig'} --cflags`;

Index: net-snmp-unified.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/net/net-snmp-unified.info,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- net-snmp-unified.info       26 Apr 2011 12:27:50 -0000      1.13
+++ net-snmp-unified.info       23 May 2011 15:27:11 -0000      1.14
@@ -1,19 +1,20 @@
+Info4: <<
 Package: net-snmp-unified
-Version: 5.4.2.1
-Revision: 6
+Version: 5.6.1
+Revision: 1
 Description: SNMP tools and libraries
 License: BSD
-Maintainer: Benjamin Reed <net-s...@fink.racoonfink.com>
+Maintainer: Benjamin Reed <net-s...@fink.raccoonfink.com>
 
 Depends: <<
        daemonic,
-       %N15-shlibs (>= %v-%r)
+       %N25-shlibs (>= %v-%r)
 <<
 BuildDepends: <<
        autoconf (>= 2.63-1),
-       automake1.10,
+       automake1.11,
        expat1,
-       fink (>= 0.26.0-1),
+       fink (>= 0.30.0-1),
        gawk,
        libtool2,
        system-openssl-dev,
@@ -32,44 +33,47 @@
 <<
 
 Source: mirror:sourceforge:net-snmp/net-snmp-%v.tar.gz
-Source-MD5: 984932520143f0c8bf7b7ce1fc9e1da1
-PatchFile: %n.patch
-PatchFile-MD5: 162a91a53fbd2bfa6ea82433862e382a
+Source-MD5: b4e30ead5783b0bb1d280172c6095ea4
 PatchScript: <<
-       perl -pi -e 's/#include <kvm.h>/$&\nkvm_t *kd;/' 
agent/mibgroup/host/hr_swrun.c
        patch -p1 --fuzz=4 < %{PatchFile}
        autoreconf -fvi
 <<
+PatchFile: %n.patch
+PatchFile-MD5: dd74cb8804fff24d2464cc7ec6b05dda
 
 SetCPPFLAGS: -I%p/lib/system-openssl/include
 SetLDFLAGS: -L%p/lib/system-openssl/lib
 SetMAKEFLAGS: -j1
 NoSetMAKEFLAGS: true
+UseMaxBuildJobs: false
 ConfigureParams: <<
-       --with-install-prefix='%d' \
-       --enable-ipv6 \
-       --with-out-mib-modules=mibII/ipv6 \
-       --mandir='${prefix}/share/man' \
-       --with-ldflags='-Wl,-flat_namespace' \
-       --with-logfile=%p/var/log/snmpd.log \
-       --with-persistent-directory=%p/var/%N \
-       --with-default-snmp-version="3" \
-       --enable-shared \
-       --with-openssl=%p/lib/system-openssl \
-       
--with-mibdirs='$HOME/.snmp/mibs:%p/share/snmp/mibs:/usr/share/snmp/mibs' \
-       --with-sys-contact='finku...@example.com' \
-       --with-sys-location=Unknown \
-       --without-kmem-usage \
-       --without-python-modules
+--with-install-prefix='%d' \
+--enable-ipv6 \
+--mandir='${prefix}/share/man' \
+--with-ldflags='-Wl,-flat_namespace' \
+--with-logfile=%p/var/log/snmpd.log \
+--with-persistent-directory=%p/var/%N \
+--with-default-snmp-version="3" \
+--enable-shared \
+--with-openssl=%p/lib/system-openssl \
+--with-mibdirs='$HOME/.snmp/mibs:%p/share/snmp/mibs:/usr/share/snmp/mibs' \
+--with-mib-modules='ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable if-mib 
tcp-mib udp-mib mibII/ipv6' \
+--enable-mfd-rewrites \
+--with-sys-contact='finku...@example.com' \
+--with-sys-location=Unknown \
+--without-kmem-usage \
+--without-python-modules
 <<
 CompileScript: <<
-#!/bin/sh -ev
-
+       #!/bin/sh -ev
+       
        ln -sf darwin9.h include/net-snmp/system/darwin10.h
        eval "`/usr/bin/perl -V:archname -V:version`"
        export PERLMAKEARGS="PREFIX=%p INSTALLPRIVLIB=%p/lib/perl5/$version 
INSTALLARCHLIB=%p/lib/perl5/$version/$archname 
INSTALLSITELIB=%p/lib/perl5/$version 
INSTALLSITEARCH=%p/lib/perl5/$version/$archname 
INSTALLMAN1DIR=%p/lib/perl5/$version INSTALLMAN3DIR=%p/lib/perl5/$version 
INSTALLSITEMAN1DIR=%p/lib/perl5/$version 
INSTALLSITEMAN3DIR=%p/lib/perl5/$version INSTALLBIN=%p/bin 
INSTALLSITEBIN=%p/bin INSTALLSCRIPT=%p/bin"
-
+       
        PERLPROG=/usr/bin/perl ./configure %c 
--with-perl-modules="$PERLMAKEARGS"
+       make perlmakefiles
+       find . -name Makefile | xargs perl -pi -e 's,-arch [^ ]*,,g'
        make
 <<
 
@@ -87,24 +91,24 @@
 <<
 DocFiles: AGENT.txt CHANGES COPYING ChangeLog CodingStyle EXAMPLE.conf.def FAQ 
NEWS PORTING README* TODO
 SplitOff: <<
-       Package: %N15-shlibs
+       Package: %N25-shlibs
        DocFiles: COPYING
-       Files: lib/libnetsnmp*.15*.dylib
+       Files: lib/libnetsnmp*.25*.dylib
        Shlibs: <<
-               %p/lib/libnetsnmp.15.dylib        17.0.0 
net-snmp-unified15-shlibs (>= 5.4.1-1)
-               %p/lib/libnetsnmpagent.15.dylib   17.0.0 
net-snmp-unified15-shlibs (>= 5.4.1-1)
-               %p/lib/libnetsnmphelpers.15.dylib 17.0.0 
net-snmp-unified15-shlibs (>= 5.4.1-1)
-               %p/lib/libnetsnmpmibs.15.dylib    17.0.0 
net-snmp-unified15-shlibs (>= 5.4.1-1)
-               %p/lib/libnetsnmptrapd.15.dylib   17.0.0 
net-snmp-unified15-shlibs (>= 5.4.1-1)
+               %p/lib/libnetsnmp.25.dylib        26.0.0 
net-snmp-unified25-shlibs (>= 5.6.1-1)
+               %p/lib/libnetsnmpagent.25.dylib   26.0.0 
net-snmp-unified25-shlibs (>= 5.6.1-1)
+               %p/lib/libnetsnmphelpers.25.dylib 26.0.0 
net-snmp-unified25-shlibs (>= 5.6.1-1)
+               %p/lib/libnetsnmpmibs.25.dylib    26.0.0 
net-snmp-unified25-shlibs (>= 5.6.1-1)
+               %p/lib/libnetsnmptrapd.25.dylib   26.0.0 
net-snmp-unified25-shlibs (>= 5.6.1-1)
        <<
 <<
 SplitOff2: <<
-       Package: %N15-dev
-       Depends: %N15-shlibs (= %v-%r)
-       BuildDependsOnly: true
+       Package: %N25-dev
+       Depends: %N25-shlibs (= %v-%r)
        Conflicts: <<
                net-snmp-dev (<< 5.4-1),
                net-snmp-ssl-dev (<< 5.4-1),
+               net-snmp-unified15-dev,
                net-snmp-unified-dev
        <<
        Replaces: <<
@@ -112,27 +116,29 @@
                net-snmp (<< 5.4-1),
                net-snmp-ssl-dev (<< 5.4-1),
                net-snmp-ssl (<< 5.4-1),
+               net-snmp-unified15-dev,
                net-snmp-unified-dev
        <<
+       BuildDependsOnly: true
        DocFiles: COPYING
        Files: include lib/*.a lib/*.dylib bin/net-snmp-config
 <<
 SplitOff3: <<
        Package: net-snmp
-       Description: OBSOLETE use package 'net-snmp-unified' instead
+       Description: upgrade package for net-snmp-unified
        Depends: <<
                %N (>= %v-%r),
-               fink (>= 0.26.0-1),
+               fink (>= 0.30.0-1),
                fink-obsolete-packages
        <<
        Files: share/doc/installed-packages/%n
 <<
 SplitOff4: <<
        Package: net-snmp-ssl
-       Description: OBSOLETE use package 'net-snmp-unified' instead
+       Description: upgrade package for net-snmp-unified
        Depends: <<
                %N (>= %v-%r),
-               fink (>= 0.26.0-1),
+               fink (>= 0.30.0-1),
                fink-obsolete-packages
        <<
        Files: share/doc/installed-packages/%n
@@ -164,9 +170,9 @@
 
 Homepage: http://net-snmp.sourceforge.net/
 DescDetail: <<
-       The net-snmp package, previously known as ucd-snmp, provides tools 
-       and libraries relating to SNMP. It provides SNMP libraries, tools 
-       to request and set information, an SNMP daemon, among other features.
+The net-snmp package, previously known as ucd-snmp, provides tools 
+and libraries relating to SNMP. It provides SNMP libraries, tools 
+to request and set information, an SNMP daemon, among other features.
 <<
 DescUsage: <<
 In order to run net-snmp correctly, the community name needs to be set. The
@@ -197,4 +203,5 @@
 solution to 10.3 fails to build for deeper reasons. So we'll just
 declare kd and hope for the best.
 <<
+<<
 

--- NEW FILE: net-snmp-unified-5.4.2.1.info ---
Package: net-snmp-unified
Version: 5.4.2.1
Revision: 7
Description: SNMP tools and libraries
License: BSD
Maintainer: Benjamin Reed <net-s...@fink.raccoonfink.com>

Depends: <<
        daemonic,
        %N15-shlibs (>= %v-%r)
<<
BuildDepends: <<
        autoconf (>= 2.63-1),
        automake1.10,
        expat1,
        fink (>= 0.30.0-1),
        gawk,
        libtool2,
        system-openssl-dev,
        system-perl
<<
BuildConflicts: coreutils-default
Conflicts: <<
        net-snmp (<< 5.4-1),
        net-snmp-ssl (<< 5.4-1),
        ucd-snmp (<< 5.4-1)
<<
Replaces: <<
        net-snmp (<< 5.4-1),
        net-snmp-ssl (<< 5.4-1),
        ucd-snmp (<< 5.4-1)
<<

Source: mirror:sourceforge:net-snmp/net-snmp-%v.tar.gz
Source-MD5: 984932520143f0c8bf7b7ce1fc9e1da1
PatchScript: <<
        perl -pi -e 's/#include <kvm.h>/$&\nkvm_t *kd;/' 
agent/mibgroup/host/hr_swrun.c
        patch -p1 --fuzz=4 < %{PatchFile}
        autoreconf -fvi
<<
PatchFile: %n-%v.patch
PatchFile-MD5: 162a91a53fbd2bfa6ea82433862e382a

SetCPPFLAGS: -I%p/lib/system-openssl/include
SetLDFLAGS: -L%p/lib/system-openssl/lib
SetMAKEFLAGS: -j1
NoSetMAKEFLAGS: true
UseMaxBuildJobs: false
ConfigureParams: <<
        --with-install-prefix='%d' \
        --enable-ipv6 \
        --with-out-mib-modules=mibII/ipv6 \
        --mandir='${prefix}/share/man' \
        --with-ldflags='-Wl,-flat_namespace' \
        --with-logfile=%p/var/log/snmpd.log \
        --with-persistent-directory=%p/var/%N \
        --with-default-snmp-version="3" \
        --enable-shared \
        --with-openssl=%p/lib/system-openssl \
        
--with-mibdirs='$HOME/.snmp/mibs:%p/share/snmp/mibs:/usr/share/snmp/mibs' \
        --with-sys-contact='finku...@example.com' \
        --with-sys-location=Unknown \
        --without-kmem-usage \
        --without-python-modules
<<
CompileScript: <<
        #!/bin/sh -ev
        
        ln -sf darwin9.h include/net-snmp/system/darwin10.h
        eval "`/usr/bin/perl -V:archname -V:version`"
        export PERLMAKEARGS="PREFIX=%p INSTALLPRIVLIB=%p/lib/perl5/$version 
INSTALLARCHLIB=%p/lib/perl5/$version/$archname 
INSTALLSITELIB=%p/lib/perl5/$version 
INSTALLSITEARCH=%p/lib/perl5/$version/$archname 
INSTALLMAN1DIR=%p/lib/perl5/$version INSTALLMAN3DIR=%p/lib/perl5/$version 
INSTALLSITEMAN1DIR=%p/lib/perl5/$version 
INSTALLSITEMAN3DIR=%p/lib/perl5/$version INSTALLBIN=%p/bin 
INSTALLSITEBIN=%p/bin INSTALLSCRIPT=%p/bin"
        
        PERLPROG=/usr/bin/perl ./configure %c 
--with-perl-modules="$PERLMAKEARGS"
        make perlmakefiles
        find . -name Makefile | xargs perl -pi -e 's,-arch [^ ]*,,g'
        make
<<

InstallScript: <<
#!/bin/sh -ev

        make -j1 install DESTDIR=%d
        install -d -m 755 %i/var/log
        install -d -m 755 %i/share/doc/installed-packages
        find %i -name perllocal.pod -exec rm -rf {} \; || :

        for type in "" "-ssl"; do
                touch %i/share/doc/installed-packages/net-snmp$type
        done
<<
DocFiles: AGENT.txt CHANGES COPYING ChangeLog CodingStyle EXAMPLE.conf.def FAQ 
NEWS PORTING README* TODO
SplitOff: <<
        Package: %N15-shlibs
        DocFiles: COPYING
        Files: lib/libnetsnmp*.15*.dylib
        Shlibs: <<
                %p/lib/libnetsnmp.15.dylib        17.0.0 
net-snmp-unified15-shlibs (>= 5.4.1-1)
                %p/lib/libnetsnmpagent.15.dylib   17.0.0 
net-snmp-unified15-shlibs (>= 5.4.1-1)
                %p/lib/libnetsnmphelpers.15.dylib 17.0.0 
net-snmp-unified15-shlibs (>= 5.4.1-1)
                %p/lib/libnetsnmpmibs.15.dylib    17.0.0 
net-snmp-unified15-shlibs (>= 5.4.1-1)
                %p/lib/libnetsnmptrapd.15.dylib   17.0.0 
net-snmp-unified15-shlibs (>= 5.4.1-1)
        <<
<<
SplitOff2: <<
        Package: %N15-dev
        Depends: %N15-shlibs (= %v-%r)
        Conflicts: <<
                net-snmp-dev (<< 5.4-1),
                net-snmp-ssl-dev (<< 5.4-1),
                net-snmp-unified25-dev,
                net-snmp-unified-dev
        <<
        Replaces: <<
                net-snmp-dev (<< 5.4-1),
                net-snmp (<< 5.4-1),
                net-snmp-ssl-dev (<< 5.4-1),
                net-snmp-ssl (<< 5.4-1),
                net-snmp-unified25-dev,
                net-snmp-unified-dev
        <<
        BuildDependsOnly: true
        DocFiles: COPYING
        Files: include lib/*.a lib/*.dylib bin/net-snmp-config
<<
SplitOff3: <<
        Package: net-snmp
        Description: OBSOLETE use package 'net-snmp-unified' instead
        Depends: <<
                %N (>= %v-%r),
                fink (>= 0.30.0-1),
                fink-obsolete-packages
        <<
        Files: share/doc/installed-packages/%n
<<
SplitOff4: <<
        Package: net-snmp-ssl
        Description: OBSOLETE use package 'net-snmp-unified' instead
        Depends: <<
                %N (>= %v-%r),
                fink (>= 0.30.0-1),
                fink-obsolete-packages
        <<
        Files: share/doc/installed-packages/%n
<<

PreRmScript: <<
if [ $1 != "upgrade" ]; then
        daemonic disable %N
fi
<<
PostRmScript: <<
if [ $1 = "remove" ]; then
        rm -rf %p/share/snmp
        rm -rf %p/var/%n
fi
<<
DaemonicFile: <<
<service>
<description>An SNMP daemon to respond to SNMP request packets.</description>
<message>snmpd</message>

<daemon name="snmpd">
<executable checkexit="true">%p/sbin/snmpd</executable>

</daemon>

</service>
<<

Homepage: http://net-snmp.sourceforge.net/
DescDetail: <<
        The net-snmp package, previously known as ucd-snmp, provides tools 
        and libraries relating to SNMP. It provides SNMP libraries, tools 
        to request and set information, an SNMP daemon, among other features.
<<
DescUsage: <<
In order to run net-snmp correctly, the community name needs to be set. The
easiest way to set this is to run the 'snmpconf' program, allowing you to
setup the various net-snmp configuration files.
<<
DescPackaging: <<
Customised install script to put files in correct directories.

Logfile set to PREFIX/var/log/snmpd.log
Persistent directory set to PREFIX/var/net-snmp

Default snmp version set to 3, but can be overridden using the '-v' flag for
the command tools, or alternatively using the 'defVersion' option in the
snmp.conf file.

Need -flat_namespace because net-snmp apps fail otherwise:

http://lists.apple.com/archives/Unix-porting/2005/Jul/msg00044.html
<<
DescPort: <<
Based on the net-snmp package developed by Justin Hallett and Jeremy Higgs.

dmacks: OS X 10.3 has kvm.h but that header does not declare an
(apparently global var) "kd". Later OS X disable kvm altogether (via
the platform-specific defs in net-snmp/system/*.h, which override
configure detection) so it's not a problem there, but backporting that
solution to 10.3 fails to build for deeper reasons. So we'll just
declare kd and hope for the best.
<<



------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to