diff options
author | Markus Brueffer <markus@FreeBSD.org> | 2005-05-10 22:29:44 +0000 |
---|---|---|
committer | Markus Brueffer <markus@FreeBSD.org> | 2005-05-10 22:29:44 +0000 |
commit | f03b2f3ce05cd40243f7fc0f6aec3536e03f038f (patch) | |
tree | 36f55a9e2abbb57070e53862eac5335a3788e22f /deskutils | |
parent | 631390b56a9539866e28609ae72d1be3950b94d3 (diff) | |
download | ports-f03b2f3ce05cd40243f7fc0f6aec3536e03f038f.tar.gz ports-f03b2f3ce05cd40243f7fc0f6aec3536e03f038f.zip |
Notes
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/superkaramba/Makefile | 1 | ||||
-rw-r--r-- | deskutils/superkaramba/files/patch-misc_python.cpp | 15 |
2 files changed, 13 insertions, 3 deletions
diff --git a/deskutils/superkaramba/Makefile b/deskutils/superkaramba/Makefile index 1d827445703e..83b043c38011 100644 --- a/deskutils/superkaramba/Makefile +++ b/deskutils/superkaramba/Makefile @@ -6,6 +6,7 @@ PORTNAME= superkaramba PORTVERSION= 0.36 +PORTREVISION= 1 CATEGORIES= deskutils kde MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= netdragon diff --git a/deskutils/superkaramba/files/patch-misc_python.cpp b/deskutils/superkaramba/files/patch-misc_python.cpp index 22b3e7b8267c..53aaf624bc71 100644 --- a/deskutils/superkaramba/files/patch-misc_python.cpp +++ b/deskutils/superkaramba/files/patch-misc_python.cpp @@ -1,6 +1,6 @@ ---- src/misc_python.cpp.orig Fri Nov 19 13:31:33 2004 -+++ src/misc_python.cpp Fri Nov 19 13:37:12 2004 -@@ -380,6 +380,9 @@ +--- src/misc_python.cpp.orig Wed Apr 20 00:55:42 2005 ++++ src/misc_python.cpp Wed May 11 00:05:48 2005 +@@ -385,6 +385,9 @@ #include <sys/ioctl.h> #include <net/if.h> #include <arpa/inet.h> @@ -10,3 +10,12 @@ /* now a method we need to expose to Python */ QString getIp(char *device_name) +@@ -435,7 +438,7 @@ + /* devptr points into an array of ifreq structs. */ + devptr = &ifc_conf.ifc_req[i]; + +- if (devptr->ifr_addr.sa_family != AF_INET) ++ if (ioctl(sd, SIOCGIFADDR, devptr) < 0 || devptr->ifr_addr.sa_family != AF_INET) + continue; + + if (ioctl(sd,SIOCGIFFLAGS,devptr) < 0) |