summaryrefslogtreecommitdiff
path: root/net/net-snmp4
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>2000-05-17 20:27:13 +0000
committerBill Fumerola <billf@FreeBSD.org>2000-05-17 20:27:13 +0000
commit982787c28b7555d836845406da79aa52e229d3f2 (patch)
tree74a8185c4c1b9dea73850f6b9e0422d9595ecd58 /net/net-snmp4
parentUpdate to 1.0.1. (diff)
Fixes for recent kernel changes, this will screw over people (like me)
who have a -CURRENT before: Fri May 5 9:58:59 2000 UTC by phk .. however, since no __FreeBSD_version bump was performed, I can't handle this with the usual Makefile magic. Submitted by: kuriyama-san Reviewed by: Matt Ayres <mayres@chc-chimes.com> ("it works now")
Notes
Notes: svn path=/head/; revision=28539
Diffstat (limited to 'net/net-snmp4')
-rw-r--r--net/net-snmp4/Makefile3
-rw-r--r--net/net-snmp4/files/patch-al29
-rw-r--r--net/net-snmp4/files/patch-am12
-rw-r--r--net/net-snmp4/files/patch-an12
4 files changed, 54 insertions, 2 deletions
diff --git a/net/net-snmp4/Makefile b/net/net-snmp4/Makefile
index e6f29b277225..d1ba408bdd6c 100644
--- a/net/net-snmp4/Makefile
+++ b/net/net-snmp4/Makefile
@@ -14,7 +14,7 @@ MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \
MAINTAINER= billf@FreeBSD.org
-GNU_CONFIGURE= YES
+USE_AUTOCONF= YES
CONFIGURE_ARGS+= --enable-shared
.if defined(BATCH)
CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where
@@ -71,5 +71,4 @@ post-install:
fi
${SETENV} OBJFORMAT="${PORTOBJFORMAT}" ${LDCONFIG} -m ${PREFIX}/lib
-
.include <bsd.port.post.mk>
diff --git a/net/net-snmp4/files/patch-al b/net/net-snmp4/files/patch-al
new file mode 100644
index 000000000000..c2464056b6bc
--- /dev/null
+++ b/net/net-snmp4/files/patch-al
@@ -0,0 +1,29 @@
+--- configure.in~ Sat May 6 01:46:26 2000
++++ configure.in Wed May 17 11:09:08 2000
+@@ -1286,6 +1286,26 @@
+ AC_CACHE_CHECK(type of rtentry structure,ac_cv_RTENTRY_TYPE,
+ [
+
++dnl 4.4 compatible but renamed on FreeBSD
++AC_TRY_COMPILE([
++#include <sys/types.h>
++#define KERNEL
++#define _KERNEL
++#include <sys/socket.h>
++#undef KERNEL
++#undef _KERNEL
++#include <net/route.h>
++],[
++
++#ifndef STRUCT_RTENTRY_HAS_RT_DST
++#define rt_dst rt_nodes->rn_key
++#endif
++
++ struct rtentry rt;
++ rt.rt_nodes[0].rn_bit = 1;
++ rt.rt_dst;
++ ], ac_cv_RTENTRY_TYPE="BSD-4.4")
++
+ dnl 4.4 compat
+ AC_TRY_COMPILE([
+ #include <sys/types.h>
diff --git a/net/net-snmp4/files/patch-am b/net/net-snmp4/files/patch-am
new file mode 100644
index 000000000000..0ad08d546705
--- /dev/null
+++ b/net/net-snmp4/files/patch-am
@@ -0,0 +1,12 @@
+--- agent/mibgroup/ucd-snmp/vmstat_freebsd2.c~ Sat Dec 18 08:41:14 1999
++++ agent/mibgroup/ucd-snmp/vmstat_freebsd2.c Wed May 17 11:18:59 2000
+@@ -9,6 +9,9 @@
+ #include <sys/time.h>
+ #include <sys/proc.h>
+ #include <sys/dkstat.h>
++#ifdef freebsd5
++#include <sys/bio.h>
++#endif
+ #include <sys/buf.h>
+ #include <sys/uio.h>
+ #include <sys/namei.h>
diff --git a/net/net-snmp4/files/patch-an b/net/net-snmp4/files/patch-an
new file mode 100644
index 000000000000..8153ba8c5653
--- /dev/null
+++ b/net/net-snmp4/files/patch-an
@@ -0,0 +1,12 @@
+--- agent/mibgroup/ucd-snmp/memory_freebsd2.c~ Tue Mar 14 06:27:00 2000
++++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Wed May 17 11:19:23 2000
+@@ -10,6 +10,9 @@
+ #include <sys/time.h>
+ #include <sys/proc.h>
+ #include <sys/dkstat.h>
++#ifdef freebsd5
++#include <sys/bio.h>
++#endif
+ #include <sys/buf.h>
+ #include <sys/uio.h>
+ #include <sys/namei.h>