aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2024-01-08 09:56:38 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2024-01-08 09:56:38 +0000
commit3f8e2df713baa079cddbfc5f73dc782fe0aa1859 (patch)
treeb37c938e7c12c99836f8fea5c2ba30f0a8fcfc5b
parent61e094370c8f25497836af77e55db35c6c66d699 (diff)
downloadports-3f8e2df713baa079cddbfc5f73dc782fe0aa1859.tar.gz
ports-3f8e2df713baa079cddbfc5f73dc782fe0aa1859.zip
net/x11vnc: bugfix for -auth argument
PR: 276194
-rw-r--r--net/x11vnc/Makefile2
-rw-r--r--net/x11vnc/files/patch-ssltools.h11
2 files changed, 12 insertions, 1 deletions
diff --git a/net/x11vnc/Makefile b/net/x11vnc/Makefile
index 5b290dc69d39..3f32bcbbe925 100644
--- a/net/x11vnc/Makefile
+++ b/net/x11vnc/Makefile
@@ -1,6 +1,6 @@
PORTNAME= x11vnc
PORTVERSION= 0.9.16
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= net
MAINTAINER= dinoex@FreeBSD.org
diff --git a/net/x11vnc/files/patch-ssltools.h b/net/x11vnc/files/patch-ssltools.h
new file mode 100644
index 000000000000..e01cd2738f9e
--- /dev/null
+++ b/net/x11vnc/files/patch-ssltools.h
@@ -0,0 +1,11 @@
+--- src/ssltools.h.orig 2019-01-05 13:22:11 UTC
++++ src/ssltools.h
+@@ -1057,7 +1057,7 @@ char find_display[] =
+ "#\n"
+ "if [ \"X$FD_XDM\" != \"X\" ]; then\n"
+ " list=\"\"\n"
+-" for pair in `echo \"$psout\" | grep '/X.* :[0-9][0-9]* .*-auth' | egrep -v 'startx|xinit' | sed -e 's,^.*/X.* \\(:[0-9][0-9]*\\) .* -auth \\([^ ][^ ]*\\).*$,\\1\\,\\2,' | sort -u`\n"
++" for pair in `echo \"$psout\" | grep '/X.* :[0-9][0-9]* .*-auth' | egrep -v 'startx|xinit' | sed -e 's,^.*/X.* \\(:[0-9][0-9]*\\).*-auth \\([^ ][^ ]*\\).*$,\\1\\,\\2,' | sort -u`\n"
+ " do\n"
+ " da=`echo \"$pair\" | awk -F, '{print $1}'`\n"
+ " xa=`echo \"$pair\" | awk -F, '{print $2}'`\n"