summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/linuxigd/Makefile2
-rw-r--r--net/linuxigd/files/patch-gatedevice.c8
-rw-r--r--net/linuxigd/files/patch-main.c14
-rw-r--r--net/linuxigd/files/patch-pmlist.c16
4 files changed, 27 insertions, 13 deletions
diff --git a/net/linuxigd/Makefile b/net/linuxigd/Makefile
index aa6ef99a292d..3dd7272fc764 100644
--- a/net/linuxigd/Makefile
+++ b/net/linuxigd/Makefile
@@ -16,8 +16,6 @@ COMMENT= Linux UPnP Internet Gateway Device
LIB_DEPENDS= upnp.4:${PORTSDIR}/devel/upnp
-BROKEN= does not compile
-
USE_RC_SUBR= linuxigd
USE_GMAKE= yes
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
diff --git a/net/linuxigd/files/patch-gatedevice.c b/net/linuxigd/files/patch-gatedevice.c
new file mode 100644
index 000000000000..19a82fb2c00c
--- /dev/null
+++ b/net/linuxigd/files/patch-gatedevice.c
@@ -0,0 +1,8 @@
+--- gatedevice.c.orig 2010-11-26 17:54:07.000000000 +0300
++++ gatedevice.c 2010-11-26 17:55:02.000000000 +0300
+@@ -1,3 +1,5 @@
++#include <stdio.h>
++#include <string.h>
+ #include <syslog.h>
+ #include <stdlib.h>
+ #include <upnp/ixml.h>
diff --git a/net/linuxigd/files/patch-main.c b/net/linuxigd/files/patch-main.c
index 97561aee9b57..a02f447903ed 100644
--- a/net/linuxigd/files/patch-main.c
+++ b/net/linuxigd/files/patch-main.c
@@ -1,7 +1,9 @@
---- main.c.orig Wed Jul 26 04:45:13 2006
-+++ main.c Sat Jun 16 19:49:25 2007
-@@ -2,12 +2,14 @@
+--- main.c.orig 2010-11-26 17:45:26.000000000 +0300
++++ main.c 2010-11-26 17:47:46.000000000 +0300
+@@ -1,13 +1,16 @@
+ #include <stdio.h>
#include <stdlib.h>
++#include <string.h>
#include <unistd.h>
#include <syslog.h>
+#include <pthread.h>
@@ -15,7 +17,7 @@
#include <net/if.h>
#include <upnp/upnp.h>
#include "globals.h"
-@@ -22,7 +24,6 @@
+@@ -22,7 +25,6 @@
int main (int argc, char** argv)
{
char descDocUrl[7+15+1+5+1+sizeof(g_vars.descDocName)+1]; // http://ipaddr:port/docName<null>
@@ -23,7 +25,7 @@
sigset_t sigsToCatch;
int ret, signum, arg = 1, foreground = 0;
-@@ -46,11 +47,17 @@
+@@ -46,11 +48,17 @@
strncpy(g_vars.intInterfaceName, argv[arg++], IFNAMSIZ);
// Get the internal ip address to start the daemon on
@@ -42,7 +44,7 @@
if (!foreground) {
struct rlimit resourceLimit = { 0, 0 };
pid_t pid, sid;
-@@ -114,9 +121,9 @@
+@@ -114,9 +122,9 @@
// Initialize UPnP SDK on the internal Interface
trace(3, "Initializing UPnP SDK ... ");
diff --git a/net/linuxigd/files/patch-pmlist.c b/net/linuxigd/files/patch-pmlist.c
index dc6e75dbb1dc..8a61b70c33d9 100644
--- a/net/linuxigd/files/patch-pmlist.c
+++ b/net/linuxigd/files/patch-pmlist.c
@@ -1,6 +1,12 @@
---- pmlist.c.orig Sun Oct 1 23:58:32 2006
-+++ pmlist.c Sat Jun 16 19:55:22 2007
-@@ -8,10 +8,6 @@
+--- pmlist.c.orig 2010-11-26 17:45:26.000000000 +0300
++++ pmlist.c 2010-11-26 17:49:30.000000000 +0300
+@@ -1,3 +1,5 @@
++#include <stdio.h>
++#include <string.h>
+ #include <stdlib.h>
+ #include <sys/wait.h>
+ #include <unistd.h>
+@@ -8,10 +10,6 @@
#include "gatedevice.h"
#include "util.h"
@@ -11,7 +17,7 @@
struct portMap* pmlist_NewNode(int enabled, long int duration, char *remoteHost,
char *externalPort, char *internalPort,
char *protocol, char *internalClient, char *desc)
-@@ -233,55 +229,18 @@
+@@ -233,55 +231,18 @@
{
if (enabled)
{
@@ -77,7 +83,7 @@
}
return 1;
}
-@@ -290,52 +249,18 @@
+@@ -290,52 +251,18 @@
{
if (enabled)
{