summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2002-11-02 18:30:32 +0000
committerPatrick Li <pat@FreeBSD.org>2002-11-02 18:30:32 +0000
commit4e71589ffc82d133e2de6b3b4341c2fde5830deb (patch)
tree6a56f6cb748f3de520757a9b63a0123366e43ecb
parent1. Bump PORTREVISION because of plist changes. (diff)
Allow vncserver to bind to an address and bump PORTREVISION.
PR: ports/44811 Submitted by: Marco Molteni <molter@tin.it>
-rw-r--r--net/tightvnc/Makefile1
-rw-r--r--net/tightvnc/files/patch-Xvnc::programs::Xserver::hw::vnc::sockets.c18
2 files changed, 19 insertions, 0 deletions
diff --git a/net/tightvnc/Makefile b/net/tightvnc/Makefile
index e7380bf2ab09..c049ef5649ff 100644
--- a/net/tightvnc/Makefile
+++ b/net/tightvnc/Makefile
@@ -8,6 +8,7 @@
PORTNAME= tightvnc
PORTVERSION= 1.2.6
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= vnc-tight
diff --git a/net/tightvnc/files/patch-Xvnc::programs::Xserver::hw::vnc::sockets.c b/net/tightvnc/files/patch-Xvnc::programs::Xserver::hw::vnc::sockets.c
new file mode 100644
index 000000000000..0aebcaa10112
--- /dev/null
+++ b/net/tightvnc/files/patch-Xvnc::programs::Xserver::hw::vnc::sockets.c
@@ -0,0 +1,18 @@
+--- Xvnc/programs/Xserver/hw/vnc/sockets.c Tue Mar 19 18:59:22 2002
++++ Xvnc/programs/Xserver/hw/vnc/sockets.c Fri Nov 1 18:03:02 2002
+@@ -38,6 +38,7 @@
+ */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <sys/socket.h>
+@@ -491,6 +492,7 @@
+ int sock;
+ int one = 1;
+
++ memset(&addr, 0, sizeof(addr));
+ addr.sin_family = AF_INET;
+ addr.sin_port = htons(port);
+ addr.sin_addr.s_addr = interface.s_addr;