pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/net-snmp Make this build under NetBSD 2.0D and abo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9287bb4ec991
branches:  trunk
changeset: 474235:9287bb4ec991
user:      tron <tron%pkgsrc.org@localhost>
date:      Mon Apr 26 17:39:00 2004 +0000

description:
Make this build under NetBSD 2.0D and above with statvfs(2).

diffstat:

 net/net-snmp/distinfo         |   4 +++-
 net/net-snmp/patches/patch-ag |  18 ++++++++++++++++++
 net/net-snmp/patches/patch-ah |  31 +++++++++++++++++++++++++++++++
 3 files changed, 52 insertions(+), 1 deletions(-)

diffs (72 lines):

diff -r e4df5fcfb0d4 -r 9287bb4ec991 net/net-snmp/distinfo
--- a/net/net-snmp/distinfo     Mon Apr 26 17:30:33 2004 +0000
+++ b/net/net-snmp/distinfo     Mon Apr 26 17:39:00 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2004/04/22 16:50:02 christos Exp $
+$NetBSD: distinfo,v 1.9 2004/04/26 17:39:00 tron Exp $
 
 SHA1 (net-snmp-5.0.9.tar.gz) = bb27bdf38da96833a3fa55f8c6a14732ab2c1991
 Size (net-snmp-5.0.9.tar.gz) = 2345822 bytes
@@ -8,3 +8,5 @@
 SHA1 (patch-ad) = 947bc9d8d6190584e9c7f93c2b4aeda63fd5139c
 SHA1 (patch-ae) = efc77e7985e9ac44c99e35015e2be55b0601dd4e
 SHA1 (patch-af) = 83e3e7f27865d2423b03fc1d967319bc104c877d
+SHA1 (patch-ag) = 6d07febd92597d1d817e3c1960ce9afcc75a6906
+SHA1 (patch-ah) = 9acc8c432c61e071257c24e2041a23b63f81cfe2
diff -r e4df5fcfb0d4 -r 9287bb4ec991 net/net-snmp/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/net-snmp/patches/patch-ag     Mon Apr 26 17:39:00 2004 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ag,v 1.1 2004/04/26 17:39:00 tron Exp $
+
+--- agent/mibgroup/host/hr_storage.c.orig      2002-12-19 16:07:30.000000000 +0100
++++ agent/mibgroup/host/hr_storage.c   2004-04-26 19:10:23.000000000 +0200
+@@ -148,6 +148,13 @@
+ #define HRFS_mount    mnt_mountp
+ #define HRFS_statfs   statvfs
+ 
++#elif defined(HAVE_STATVFS) && defined(__NetBSD__)
++
++extern struct statvfs *HRFS_entry;
++extern int      fscount;
++#define HRFS_statfs   statvfs
++#define HRFS_mount    f_mntonname
++
+ #elif defined(HAVE_STATVFS)
+ 
+ extern struct mntent *HRFS_entry;
diff -r e4df5fcfb0d4 -r 9287bb4ec991 net/net-snmp/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/net-snmp/patches/patch-ah     Mon Apr 26 17:39:00 2004 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-ah,v 1.1 2004/04/26 17:39:00 tron Exp $
+
+--- agent/mibgroup/host/hr_filesys.c.orig      2003-02-28 19:17:35.000000000 +0100
++++ agent/mibgroup/host/hr_filesys.c   2004-04-26 19:31:03.000000000 +0200
+@@ -85,6 +85,15 @@
+ #define       HRFS_type       mnt_fstype
+ #define       HRFS_statfs     statvfs
+ 
++#elif defined(HAVE_STATVFS) && defined(__NetBSD__)
++
++static struct statvfs *fsstats = NULL;
++struct statvfs                *HRFS_entry;
++static int            fscount;
++#define HRFS_mount    f_mntonname
++#define       HRFS_name       f_mntfromname
++#define HRFS_statfs   statvfs
++#define       HRFS_type       f_fstypename
+ #elif defined(HAVE_GETFSSTAT)
+ static struct statfs *fsstats = 0;
+ static int      fscount;
+@@ -447,7 +456,9 @@
+         return (u_char *) fsys_type_id;
+ 
+     case HRFSYS_ACCESS:
+-#if HAVE_GETFSSTAT
++#if defined(HAVE_STATVFS) && defined(__NetBSD__)
++      long_return = HRFS_entry->f_flag & MNT_RDONLY ? 2 : 1;
++#elif defined(HAVE_GETFSSTAT)
+         long_return = HRFS_entry->f_flags & MNT_RDONLY ? 2 : 1;
+ #elif defined(cygwin)
+         long_return = 1;



Home | Main Index | Thread Index | Old Index