diff options
author | marino <marino@pkgsrc.org> | 2011-11-26 17:16:36 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2011-11-26 17:16:36 +0000 |
commit | 60f0cf3c1798facadac2d65e1206ca8b591c3742 (patch) | |
tree | 875e0c2e07918787c062f75719aea3e8e1eb7e27 /net/wmnet | |
parent | c7e8ee3ac0c3a357d3782d36a9dffce7dfaf31f6 (diff) | |
download | pkgsrc-60f0cf3c1798facadac2d65e1206ca8b591c3742.tar.gz |
net/wnmet: Fix DragonFly
This breakage was caused by the ifnet structure getting moved under
the kernel structures macro.
Diffstat (limited to 'net/wmnet')
-rw-r--r-- | net/wmnet/distinfo | 5 | ||||
-rw-r--r-- | net/wmnet/patches/patch-ac | 20 | ||||
-rw-r--r-- | net/wmnet/patches/patch-ag | 12 |
3 files changed, 26 insertions, 11 deletions
diff --git a/net/wmnet/distinfo b/net/wmnet/distinfo index 0b6aea84093..d131de5d6fc 100644 --- a/net/wmnet/distinfo +++ b/net/wmnet/distinfo @@ -1,11 +1,12 @@ -$NetBSD: distinfo,v 1.7 2006/03/23 17:36:16 joerg Exp $ +$NetBSD: distinfo,v 1.8 2011/11/26 17:16:36 marino Exp $ SHA1 (wmnet-1.06.tar.gz) = 978364e0ab45c71730c196334e8fced4ac0a7853 RMD160 (wmnet-1.06.tar.gz) = a6ac89507370acecc9673f52fd26ae896cc5da5c Size (wmnet-1.06.tar.gz) = 27506 bytes SHA1 (patch-aa) = d999f66818c05f2f9a58571abc0e548bb2938a4b SHA1 (patch-ab) = 6a4b975a41204e7173c6f089052f2fbea8580484 -SHA1 (patch-ac) = 56250d7326159ccf3842ebe51bfcca478e8590d4 +SHA1 (patch-ac) = e57d83c66f2c2381dcabc0e3cbe9e7d2005257b2 SHA1 (patch-ad) = af762eb5d6d29685db4d9fc5f3464931e58e8b71 SHA1 (patch-ae) = 09d413422b0074c29da7c8a9c271d9ddb2be04fb SHA1 (patch-af) = 70c0917b465acf778b6b744bef587bc8e41e49fb +SHA1 (patch-ag) = a62fb7f132436ebab75c951ca0897d4375c31776 diff --git a/net/wmnet/patches/patch-ac b/net/wmnet/patches/patch-ac index 6365af03e70..835fa0d4bc4 100644 --- a/net/wmnet/patches/patch-ac +++ b/net/wmnet/patches/patch-ac @@ -1,18 +1,20 @@ -$NetBSD: patch-ac,v 1.5 2006/03/23 17:36:16 joerg Exp $ +$NetBSD: patch-ac,v 1.6 2011/11/26 17:16:36 marino Exp $ --- drivers.c.orig 2000-05-05 00:34:29.000000000 +0000 +++ drivers.c -@@ -24,6 +24,9 @@ +@@ -24,6 +24,11 @@ /* For FreeBSD */ #ifdef USE_KVM #include<net/if.h> +#if defined(__DragonFly__) ++#define _KERNEL_STRUCTURES +#include <net/if_var.h> ++#undef _KERNEL_STRUCTURES +#endif #include<kvm.h> #include<nlist.h> -@@ -37,6 +40,14 @@ int kvm_test(void); +@@ -37,6 +42,14 @@ int kvm_test(void); int kvm_updateStats(void); #endif /* USE_KVM */ @@ -27,7 +29,7 @@ $NetBSD: patch-ac,v 1.5 2006/03/23 17:36:16 joerg Exp $ #ifdef USE_LINUX_PPP #include<net/ppp_defs.h> -@@ -57,7 +68,7 @@ static struct ifpppstatsreq ppp_stats_re +@@ -57,7 +70,7 @@ static struct ifpppstatsreq ppp_stats_re #define ACCOUNT_IN_FOUND 1 #define ACCOUNT_OUT_FOUND 2 @@ -36,7 +38,7 @@ $NetBSD: patch-ac,v 1.5 2006/03/23 17:36:16 joerg Exp $ extern char *in_rule_string, *out_rule_string, *device; extern unsigned long totalbytes_in, totalbytes_out, lastbytes_in, lastbytes_out; extern unsigned long totalpackets_in, totalpackets_out, lastpackets_in, lastpackets_out; -@@ -104,6 +115,9 @@ static struct drivers_struct { +@@ -104,6 +117,9 @@ static struct drivers_struct { #ifdef USE_KVM {"kmem",kvm_updateStats, kvm_test}, #endif @@ -46,7 +48,7 @@ $NetBSD: patch-ac,v 1.5 2006/03/23 17:36:16 joerg Exp $ {NULL, NULL} }; -@@ -445,7 +459,7 @@ int kvm_test(void) { +@@ -445,7 +461,7 @@ int kvm_test(void) { if (((kvmfd = kvm_open(NULL, NULL, NULL, O_RDONLY, buffer)) == NULL) || (kvm_nlist(kvmfd, symbols) < 0) || kvm_read(kvmfd, (unsigned long)symbols[0].n_value, &ifnet_savedaddr, sizeof(unsigned long)) == -1 ) return False; @@ -55,7 +57,7 @@ $NetBSD: patch-ac,v 1.5 2006/03/23 17:36:16 joerg Exp $ fprintf(stderr, "wmnet: using kmem driver to monitor %s\n", device); return True; } -@@ -457,7 +471,7 @@ int kvm_updateStats(void) { +@@ -457,7 +473,7 @@ int kvm_updateStats(void) { int flag = 0; while (ifnet_addr && flag != (ACCOUNT_IN_FOUND|ACCOUNT_OUT_FOUND)) { kvm_read(kvmfd, ifnet_addr, buffer, sizeof(struct ifnet)); @@ -64,7 +66,7 @@ $NetBSD: patch-ac,v 1.5 2006/03/23 17:36:16 joerg Exp $ snprintf(devname, 15, "%s", ifnet->if_xname); #else kvm_read(kvmfd, (unsigned long)ifnet->if_name, devname, 15); -@@ -487,7 +501,7 @@ int kvm_updateStats(void) { +@@ -487,7 +503,7 @@ int kvm_updateStats(void) { flag = (ACCOUNT_IN_FOUND|ACCOUNT_OUT_FOUND); } else { @@ -73,7 +75,7 @@ $NetBSD: patch-ac,v 1.5 2006/03/23 17:36:16 joerg Exp $ ifnet_addr = (unsigned long)ifnet->if_list.tqe_next; #else ifnet_addr = (unsigned long)ifnet->if_next; -@@ -502,8 +516,119 @@ int kvm_updateStats(void) { +@@ -502,8 +518,119 @@ int kvm_updateStats(void) { } diff --git a/net/wmnet/patches/patch-ag b/net/wmnet/patches/patch-ag new file mode 100644 index 00000000000..d97f20f7f02 --- /dev/null +++ b/net/wmnet/patches/patch-ag @@ -0,0 +1,12 @@ +$NetBSD: patch-ag,v 1.1 2011/11/26 17:16:36 marino Exp $ + +--- getopt.c.orig 1998-10-09 06:59:00.000000000 +0000 ++++ getopt.c +@@ -40,6 +40,7 @@ + #endif + + #include <stdio.h> ++#include <string.h> + + /* Comment out all this code if we are using the GNU C Library, and are not + actually compiling the library itself. This code is part of the GNU C |