aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2011-05-04 01:41:27 +0800
committerume <ume@FreeBSD.org>2011-05-04 01:41:27 +0800
commit2d30367e4ed3b4978926c9e48944991537747855 (patch)
tree58a48f24cc1215416f70f76648ca5dd7d8b4656e
parente24292482b6089c186535f6351127626ea53e607 (diff)
downloadfreebsd-ports-gnome-2d30367e4ed3b4978926c9e48944991537747855.tar.gz
freebsd-ports-gnome-2d30367e4ed3b4978926c9e48944991537747855.tar.zst
freebsd-ports-gnome-2d30367e4ed3b4978926c9e48944991537747855.zip
Skip uninterested interfaces such as USB devices added to ifadders
in recent RELENG_8.
-rw-r--r--sysutils/gkrellm2/Makefile2
-rw-r--r--sysutils/gkrellm2/files/patch-src::sysdeps::bsd-common.c15
2 files changed, 16 insertions, 1 deletions
diff --git a/sysutils/gkrellm2/Makefile b/sysutils/gkrellm2/Makefile
index d9b9e2416508..f1994f4cf191 100644
--- a/sysutils/gkrellm2/Makefile
+++ b/sysutils/gkrellm2/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gkrellm
PORTVERSION= 2.3.5
-#PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= sysutils ipv6
MASTER_SITES= http://members.dslextreme.com/users/billw/gkrellm/ \
${MASTER_SITE_LOCAL}
diff --git a/sysutils/gkrellm2/files/patch-src::sysdeps::bsd-common.c b/sysutils/gkrellm2/files/patch-src::sysdeps::bsd-common.c
new file mode 100644
index 000000000000..f99a994e7d6e
--- /dev/null
+++ b/sysutils/gkrellm2/files/patch-src::sysdeps::bsd-common.c
@@ -0,0 +1,15 @@
+Index: src/sysdeps/bsd-common.c
+diff -u -p src/sysdeps/bsd-common.c.orig src/sysdeps/bsd-common.c
+--- src/sysdeps/bsd-common.c.orig 2010-09-15 01:27:35.000000000 +0900
++++ src/sysdeps/bsd-common.c 2011-05-04 02:20:07.328745551 +0900
+@@ -64,6 +64,10 @@ gkrellm_sys_net_read_data(void)
+ {
+ if (ifa->ifa_addr->sa_family != AF_LINK)
+ continue;
++#ifdef IFF_CANTCONFIG
++ if ((ifa->ifa_flags & IFF_CANTCONFIG) != 0)
++ continue;
++#endif
+ ifd = (struct if_data *)ifa->ifa_data;
+ gkrellm_net_assign_data(ifa->ifa_name,
+ ifd->ifi_ibytes, ifd->ifi_obytes);