dircproxy: add patch from debian
authorOyvind Repvik <nail@nslu2-linux.org>
Thu, 2 Nov 2006 17:09:09 +0000 (17:09 +0000)
committerOyvind Repvik <nail@nslu2-linux.org>
Thu, 2 Nov 2006 17:09:09 +0000 (17:09 +0000)
packages/dircproxy/dircproxy_1.1.0.bb
packages/dircproxy/files/.mtn2git_empty [new file with mode: 0644]
packages/dircproxy/files/dircproxy.patch [new file with mode: 0644]

index 7881189..59e4a33 100644 (file)
@@ -1,5 +1,10 @@
-LICENSE = "GPL"
+DESCRIPTION = "IRC proxy server"
+HOMEPAGE = "http://dircproxy.securiweb.net/"
+LICENSE = "GPLv2"
+PR = "r1"
 
-SRC_URI = "http://dircproxy.securiweb.net/pub/1.1/dircproxy-${PV}.tar.gz"
+SRC_URI = "http://dircproxy.securiweb.net/pub/1.1/dircproxy-${PV}.tar.gz\
+           file://dircproxy.patch;patch=1"
+
+inherit autotools
 
-inherit autotools 
diff --git a/packages/dircproxy/files/.mtn2git_empty b/packages/dircproxy/files/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/dircproxy/files/dircproxy.patch b/packages/dircproxy/files/dircproxy.patch
new file mode 100644 (file)
index 0000000..3f03ff2
--- /dev/null
@@ -0,0 +1,46 @@
+diff -Naur dircproxy-1.1.0.orig/src/irc_server.c dircproxy-1.1.0/src/irc_server.c
+--- dircproxy-1.1.0.orig/src/irc_server.c      2006-10-29 11:16:22.000000000 -0500
++++ dircproxy-1.1.0/src/irc_server.c   2006-10-29 11:20:42.000000000 -0500
+@@ -699,7 +699,8 @@
+               free(s);
+               /* Was in the squelch list, so remove it and stop looking */
+-              s = (l ? l->next : p->squelch_modes) = n;
++            if (l) l->next = n; else p->squelch_modes = n;
++            s = n;
+               squelch = 1;
+               break;
+             } else {
+@@ -740,7 +741,8 @@
+               free(s);
+               /* Was in the squelch list, so remove it and stop looking */
+-              s = (l ? l->next : p->squelch_modes) = n;
++            if (l) l->next = n; else p->squelch_modes = n;
++            s = n;
+               squelch = 1;
+               break;
+             } else {
+--- dircproxy-1.1.0-orig/src/dcc_net.c 2006-10-29 23:39:17.000000000 -0500
++++ dircproxy-1.1.0/src/dcc_net.c      2006-10-29 23:42:27.000000000 -0500
+@@ -365,7 +365,8 @@
+       n = p->next;
+       _dccnet_free(p);
+-      p = (l ? l->next : proxies) = n;
++      if (l) l->next = n; else proxies = n;
++      p = n;
+     } else {
+       l = p;
+       p = p->next;
+--- dircproxy-1.1.0-orig/src/net.c     2006-10-29 23:52:04.000000000 -0500
++++ dircproxy-1.1.0/src/net.c  2006-10-29 23:52:23.000000000 -0500
+@@ -459,7 +459,7 @@
+     return 0;
+   }
+   
+-  l = &(buff == SB_IN ? s->in_buff_last : s->out_buff_last);
++  if (buff == SB_IN) l = &(s->in_buff_last); else l = &(s->out_buff_last);
+   /* Check whether we can just add to the existing buffer */
+   if ((mode == SM_RAW) && *l && ((*l)->mode == mode)) {