* [gentoo-commits] repo/gentoo:master commit in: x11-misc/x11vnc/files/, x11-misc/x11vnc/
@ 2015-11-27 17:20 Patrice Clement
0 siblings, 0 replies; 5+ messages in thread
From: Patrice Clement @ 2015-11-27 17:20 UTC (permalink / raw
To: gentoo-commits
commit: eaf94805fbdfae94005b6798052091b40818eccb
Author: Alex Xu <alex_y_xu <AT> yahoo <DOT> ca>
AuthorDate: Fri Nov 27 15:38:46 2015 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Fri Nov 27 17:20:46 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaf94805
x11-misc/x11vnc: 0.9.14 bump, clean metadata.xml
Credit for init.d and conf.d script to:
Sal Gonzalez <sgonzalez <AT> codejunkie.net>.
Package-Manager: portage-2.2.24
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
x11-misc/x11vnc/Manifest | 1 +
x11-misc/x11vnc/files/x11vnc.conf.d | 37 +++++++++++++++++++
x11-misc/x11vnc/files/x11vnc.init.d | 70 ++++++++++++++++++++++++++++++++++++
x11-misc/x11vnc/metadata.xml | 5 ---
x11-misc/x11vnc/x11vnc-0.9.14.ebuild | 62 ++++++++++++++++++++++++++++++++
5 files changed, 170 insertions(+), 5 deletions(-)
diff --git a/x11-misc/x11vnc/Manifest b/x11-misc/x11vnc/Manifest
index 0ad1bcf..85e88f5 100644
--- a/x11-misc/x11vnc/Manifest
+++ b/x11-misc/x11vnc/Manifest
@@ -1,2 +1,3 @@
DIST 82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a.zip 1830730 SHA256 fc6a28df089e47b68931019ce038b6e2fcd78e93de7f6984a22262252d01c16f SHA512 0fa4f7b52442793ec1bd82c74f9d092c69262e4f1fa93584fef17bbe0e5cbde08bc5ad0924631801bb43b41d90c37077a317c61511553f98698096eab05791eb WHIRLPOOL f1a45b549fb6ff9bea2eb4e3719b5dd43a78f6f418c61691cebab313d56761147d928648e103c654309575bec7c716a6f1cd1ef7a9b484c09edee37233cb0ce7
DIST x11vnc-0.9.13_p20150627.tar.gz 1700142 SHA256 14fb77e9b875224b47fee659d5a883c26c2792c5e37d1e32286b03103fdaef07 SHA512 c28cfe47c1a0bb486bb3290511a8a71cf499e55617e3f488d45cb6a1e9050e4f52c5bb6eb9f2f655728f2028d2472a88d8b9178d59e79c1f07464782555abc82 WHIRLPOOL d0342ef8d948b0dda119967f9e59be6f1e4d2639859f8c2a45c37eeb644e970b322937635f151256b3c30a69d37838f380ab4732c5afd44499e9decb8412aa15
+DIST x11vnc-0.9.14.tar.gz 1700802 SHA256 45f87c5e4382988c73e8c7891ac2bfb45d8f9ce1196ae06651c84636684ea143 SHA512 5d18e5ff493fbc4f6f1efe952812c1acd3087e855a2a9f2c99f3b2606cfa40a20b83e2d0c736e12b453b47f7ff7746069a1b6718d842d1a8f73b00d5c4c4a93f WHIRLPOOL 3980edaa9327395e55dffdf06fb4a2eab9b94e1aaf8da65cdd1b4c5d765351eedc003b1150b7d4da065385cb7460a556509bf57c58cf1cbe443865c551f6a170
diff --git a/x11-misc/x11vnc/files/x11vnc.conf.d b/x11-misc/x11vnc/files/x11vnc.conf.d
new file mode 100644
index 0000000..7df3a13
--- /dev/null
+++ b/x11-misc/x11vnc/files/x11vnc.conf.d
@@ -0,0 +1,37 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Configuration for running x11vnc as a service. This allows VNC
+# connections prior to logging in to the X display manager.
+
+# Password file location of the password file for VNC Connections
+# Prior to first run, you must configure a password, to do so please
+# run `x11vnc -storepasswd /etc/x11vnc.pass`. Replace /etc/x11vnc.pass
+# ith the location you have specified below
+#X11VNC_RFBAUTH="/etc/x11vnc.pass"
+
+# Port to listen on for incoming connections
+#X11VNC_RFBPORT="5900"
+
+# Automatically probe for a free port to listen on for incoming connections
+# starting from the port number specified
+# Setting this will diable X11VNC_RFBPORT above
+# See `man x11vnc`, option `-autoport` for more information
+#X11VNC_AUTOPORT=""
+
+# X Display to attach to
+# This should match the display your DM is running on
+#X11VNC_DISPLAY=":0"
+
+# Location of the x11vnc logfile
+#X11VNC_LOG="/var/log/x11vnc"
+
+# Miscelaneous options to pass to x11vnc.
+# Do not set options that are configurable above.
+# Check `x11vnc -help` or `man x11vnc` for more options.
+# * Modern composting DMs/WMs will require "-noxdamage"
+# * If you experience crashes on logging in, try "-noxfixes"
+# * Other suggested options include "-noxrecord" and "-ncache ##"
+# Refer to the x11vnc man page for further explanations.
+#X11VNC_OPTS=""
+
diff --git a/x11-misc/x11vnc/files/x11vnc.init.d b/x11-misc/x11vnc/files/x11vnc.init.d
new file mode 100644
index 0000000..08968f0
--- /dev/null
+++ b/x11-misc/x11vnc/files/x11vnc.init.d
@@ -0,0 +1,70 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="The x11vnc daemon init script"
+
+depend() {
+ need net
+ need xdm
+}
+
+checkconfig() {
+
+ # Set Defaults
+ X11VNC_RFBAUTH=${X11VNC_RFBAUTH:-/etc/x11vnc.pass}
+ X11VNC_RFBPORT=${X11VNC_RFBPORT:-5900}
+ X11VNC_DISPLAY=${X11VNC_DISPLAY:-:0}
+ X11VNC_LOG=${X11VNC_LOG:-/var/log/x11vnc}
+
+ X11VNC_AUTH="/var/run/x11vnc-${X11VNC_DISPLAY}"
+
+ if [ -n "${X11VNC_AUTOPORT}" ]; then
+ X11VNC_PORT=""
+ fi
+
+ if [ ! -f "${X11VNC_RFBAUTH}" -o ! -s "${X11VNC_RFBAUTH}" ]; then
+ eerror "VNC Password not set, please set one by running: \`x11vnc -storepasswd ${X11VNC_RFBAUTH}\`"
+ return 1
+ fi
+ checkpath -q -f -m 0600 -o root:root "${X11VNC_RFBAUTH}"
+
+ # Attempt to find X-Auth file
+ if ! type xauth > /dev/null 2>&1 ||
+ ! xauth -f /root/.Xauthority extract - "${X11VNC_DISPLAY}" > "${X11VNC_AUTH}" 2>/dev/null ||
+ [ ! -s "${X11VNC_AUTH}" ]; then
+ # Let x11vnc guess at auth
+ X11VNC_AUTH_OPTS="--env FD_XDM=1 -auth guess"
+ else
+ # We found the proper auth
+ X11VNC_AUTH_OPTS="-auth ${X11VNC_AUTH}"
+ fi
+
+ if [ ! -f "${X11VNC_AUTH}" ]; then
+ eerror "Specified X-Authority file '${X11VNC_AUTH}' not found!"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start \
+ --exec /usr/bin/x11vnc -- \
+ ${X11VNC_AUTH_OPTS} \
+ -rfbauth ${X11VNC_RFBAUTH} \
+ ${X11VNC_RFBPORT:+-rfbport} ${X11VNC_RFBPORT} \
+ ${X11VNC_AUTOPORT:+-autoport} ${X11VNC_AUTOPORT} \
+ -display ${X11VNC_DISPLAY} \
+ -o ${X11VNC_LOG} \
+ -bg -forever \
+ ${X11VNC_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop /usr/bin/x11vnc
+ eend $?
+}
diff --git a/x11-misc/x11vnc/metadata.xml b/x11-misc/x11vnc/metadata.xml
index ab3d805..a9e6e83 100644
--- a/x11-misc/x11vnc/metadata.xml
+++ b/x11-misc/x11vnc/metadata.xml
@@ -12,11 +12,6 @@
simple command-line server utility that allows a VNC viewer
to connect to an actual X display.
</longdescription>
- <use>
- <flag name="system-libvncserver">Build x11vnc against the system
- libvncserver (experimental)</flag>
- <flag name="tk">Support the simple tcl/tk -gui option</flag>
- </use>
<upstream>
<remote-id type="sourceforge">libvncserver</remote-id>
<remote-id type="github">LibVNC/x11vnc</remote-id>
diff --git a/x11-misc/x11vnc/x11vnc-0.9.14.ebuild b/x11-misc/x11vnc/x11vnc-0.9.14.ebuild
new file mode 100644
index 0000000..0829431
--- /dev/null
+++ b/x11-misc/x11vnc/x11vnc-0.9.14.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils vcs-snapshot
+
+DESCRIPTION="A VNC server for real X displays"
+HOMEPAGE="https://libvnc.github.io/"
+SRC_URI="https://github.com/LibVNC/x11vnc/archive/0.9.14.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="avahi crypt fbcon libressl ssl xinerama"
+
+RDEPEND=">=net-libs/libvncserver-0.9.8
+ x11-libs/libX11
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ >=x11-libs/libXtst-1.1.0
+ avahi? ( >=net-dns/avahi-0.6.4 )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )
+ xinerama? ( x11-libs/libXinerama )"
+DEPEND="${RDEPEND}
+ x11-libs/libXt
+ x11-proto/inputproto
+ x11-proto/trapproto
+ x11-proto/recordproto
+ x11-proto/xproto
+ x11-proto/xextproto
+ xinerama? ( x11-proto/xineramaproto )"
+
+DOCS=(ChangeLog README)
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ # --without-v4l because of missing video4linux 2.x support wrt #389079
+ econf \
+ $(use_with avahi) \
+ $(use_with crypt) \
+ $(use_with fbcon fbdev) \
+ $(use_with ssl) \
+ $(use_with ssl crypto) \
+ --without-v4l \
+ $(use_with xinerama)
+}
+
+src_install() {
+ default
+ doinitd "${FILESDIR}/x11vnc.init.d"
+ doconfd "${FILESDIR}/x11vnc.conf.d"
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: x11-misc/x11vnc/files/, x11-misc/x11vnc/
@ 2016-12-05 16:10 Pacho Ramos
0 siblings, 0 replies; 5+ messages in thread
From: Pacho Ramos @ 2016-12-05 16:10 UTC (permalink / raw
To: gentoo-commits
commit: 38dcf9422d04e2f4c1d8301ae39fb80c63fabdf9
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 5 16:10:31 2016 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Mon Dec 5 16:10:43 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38dcf942
x11-misc/x11vnc: Drop old
Package-Manager: portage-2.3.2
x11-misc/x11vnc/Manifest | 2 -
.../x11vnc-0.9.14-libvncserver-defines-1.patch | 50 ----
.../x11vnc-0.9.14-libvncserver-defines-2.patch | 264 ---------------------
x11-misc/x11vnc/x11vnc-0.9.13_p20150111-r1.ebuild | 60 -----
x11-misc/x11vnc/x11vnc-0.9.13_p20150627.ebuild | 57 -----
x11-misc/x11vnc/x11vnc-0.9.14-r1.ebuild | 65 -----
x11-misc/x11vnc/x11vnc-0.9.14.ebuild | 64 -----
7 files changed, 562 deletions(-)
diff --git a/x11-misc/x11vnc/Manifest b/x11-misc/x11vnc/Manifest
index 663ef67..95936b9 100644
--- a/x11-misc/x11vnc/Manifest
+++ b/x11-misc/x11vnc/Manifest
@@ -1,4 +1,2 @@
DIST 82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a.zip 1830730 SHA256 fc6a28df089e47b68931019ce038b6e2fcd78e93de7f6984a22262252d01c16f SHA512 0fa4f7b52442793ec1bd82c74f9d092c69262e4f1fa93584fef17bbe0e5cbde08bc5ad0924631801bb43b41d90c37077a317c61511553f98698096eab05791eb WHIRLPOOL f1a45b549fb6ff9bea2eb4e3719b5dd43a78f6f418c61691cebab313d56761147d928648e103c654309575bec7c716a6f1cd1ef7a9b484c09edee37233cb0ce7
-DIST x11vnc-0.9.13_p20150627.tar.gz 1700142 SHA256 14fb77e9b875224b47fee659d5a883c26c2792c5e37d1e32286b03103fdaef07 SHA512 c28cfe47c1a0bb486bb3290511a8a71cf499e55617e3f488d45cb6a1e9050e4f52c5bb6eb9f2f655728f2028d2472a88d8b9178d59e79c1f07464782555abc82 WHIRLPOOL d0342ef8d948b0dda119967f9e59be6f1e4d2639859f8c2a45c37eeb644e970b322937635f151256b3c30a69d37838f380ab4732c5afd44499e9decb8412aa15
-DIST x11vnc-0.9.14.tar.gz 1700802 SHA256 45f87c5e4382988c73e8c7891ac2bfb45d8f9ce1196ae06651c84636684ea143 SHA512 5d18e5ff493fbc4f6f1efe952812c1acd3087e855a2a9f2c99f3b2606cfa40a20b83e2d0c736e12b453b47f7ff7746069a1b6718d842d1a8f73b00d5c4c4a93f WHIRLPOOL 3980edaa9327395e55dffdf06fb4a2eab9b94e1aaf8da65cdd1b4c5d765351eedc003b1150b7d4da065385cb7460a556509bf57c58cf1cbe443865c551f6a170
DIST x11vnc-0.9.14_p20161013.tar.gz 1702047 SHA256 050f2d9428996a8c3ad420933923b45fe516122f2966aefb5fb8dbf10dcc7917 SHA512 82207e4d721dde633aaa13dbd1e6a18799615f8e3c225c33d4f8b01775fb81fb6b92a817e7d014653ac7b2349b0b31e46be8db25c5fd5e3ecee8fb93ca665b97 WHIRLPOOL 449f729044b98f86850779343105bb4edd71861225b1a0eb64d1a977e21918d0669b0c50fe696fba46bb6d6709f31c3445b775392c46b49a0af9bf53f62f6196
diff --git a/x11-misc/x11vnc/files/x11vnc-0.9.14-libvncserver-defines-1.patch b/x11-misc/x11vnc/files/x11vnc-0.9.14-libvncserver-defines-1.patch
deleted file mode 100644
index 9129e3c..00000000
--- a/x11-misc/x11vnc/files/x11vnc-0.9.14-libvncserver-defines-1.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-https://bugs.gentoo.org/567612
-
-From a6852d61dce708bf5185a7e42770475a070433bc Mon Sep 17 00:00:00 2001
-From: Christian Beier <dontmind@freeshell.org>
-Date: Fri, 27 Nov 2015 15:57:51 +0100
-Subject: [PATCH] Fix the remaining HAVE_WAITPID occurences.
-
----
- src/sslhelper.c | 4 ++--
- src/unixpw.c | 2 +-
- 2 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/src/sslhelper.c b/src/sslhelper.c
-index bae897fd22d1..8045d7706ba5 100644
---- a/src/sslhelper.c
-+++ b/src/sslhelper.c
-@@ -2964,7 +2964,7 @@ void ssl_helper_pid(pid_t pid, int sock) {
- }
- }
-
--#if LIBVNCSERVER_HAVE_SYS_WAIT_H && LIBVNCSERVER_HAVE_WAITPID
-+#if LIBVNCSERVER_HAVE_SYS_WAIT_H && HAVE_WAITPID
- wret = waitpid(helpers[i], &status, WNOHANG);
-
- if (db) fprintf(stderr, "waitpid(%d)\n", helpers[i]);
-@@ -3000,7 +3000,7 @@ if (db) fprintf(stderr, "ssl_helper_pid(%d, %d)\n", pid, sock);
- for (i=0; i < HPSIZE; i++) {
- if (helpers[i] == pid) {
- if (sock == -1) {
--#if LIBVNCSERVER_HAVE_SYS_WAIT_H && LIBVNCSERVER_HAVE_WAITPID
-+#if LIBVNCSERVER_HAVE_SYS_WAIT_H && HAVE_WAITPID
- pid_t wret;
- wret = waitpid(helpers[i], &status, WNOHANG);
-
-diff --git a/src/unixpw.c b/src/unixpw.c
-index 4267b5ccf659..3a548808881f 100644
---- a/src/unixpw.c
-+++ b/src/unixpw.c
-@@ -56,7 +56,7 @@ extern char *crypt(const char*, const char *);
- #include "default8x16.h"
-
- #if LIBVNCSERVER_HAVE_FORK
--#if LIBVNCSERVER_HAVE_SYS_WAIT_H && LIBVNCSERVER_HAVE_WAITPID
-+#if LIBVNCSERVER_HAVE_SYS_WAIT_H && HAVE_WAITPID
- #define UNIXPW_SU
- #endif
- #endif
---
-2.11.0.rc2
-
diff --git a/x11-misc/x11vnc/files/x11vnc-0.9.14-libvncserver-defines-2.patch b/x11-misc/x11vnc/files/x11vnc-0.9.14-libvncserver-defines-2.patch
deleted file mode 100644
index d010837..00000000
--- a/x11-misc/x11vnc/files/x11vnc-0.9.14-libvncserver-defines-2.patch
+++ /dev/null
@@ -1,264 +0,0 @@
-https://bugs.gentoo.org/567612
-
-From e70123d8f778e3f0c3bf1606f68a70b0d9748c6a Mon Sep 17 00:00:00 2001
-From: Christian Beier <dontmind@freeshell.org>
-Date: Tue, 1 Dec 2015 14:14:00 +0100
-Subject: [PATCH] Fix the remaining x11vnc-specific defines that are not in
- LibVNCServer anymore.
-
----
- src/macosx.c | 4 ++--
- src/macosx_opengl.c | 2 +-
- src/screen.c | 2 +-
- src/uinput.c | 4 ++--
- src/unixpw.c | 30 +++++++++++++++---------------
- src/user.c | 6 +++---
- src/v4l.c | 2 +-
- src/x11vnc.h | 8 ++++----
- 8 files changed, 29 insertions(+), 29 deletions(-)
-
-diff --git a/src/macosx.c b/src/macosx.c
-index 6645018968c3..df622db0232d 100644
---- a/src/macosx.c
-+++ b/src/macosx.c
-@@ -33,7 +33,7 @@ so, delete this exception statement from your version.
- /* -- macosx.c -- */
-
- #include "config.h"
--#if (defined(__MACH__) && defined(__APPLE__) && defined(LIBVNCSERVER_HAVE_MACOSX_NATIVE_DISPLAY))
-+#if (defined(__MACH__) && defined(__APPLE__) && defined(HAVE_MACOSX_NATIVE_DISPLAY))
-
- #define DOMAC 1
-
-@@ -748,5 +748,5 @@ int macosx_check_clipped(int win, int *list, int n) {
- }
-
-
--#endif /* LIBVNCSERVER_HAVE_MACOSX_NATIVE_DISPLAY */
-+#endif /* HAVE_MACOSX_NATIVE_DISPLAY */
-
-diff --git a/src/macosx_opengl.c b/src/macosx_opengl.c
-index 97882797452e..4efc7be94c2e 100644
---- a/src/macosx_opengl.c
-+++ b/src/macosx_opengl.c
-@@ -38,7 +38,7 @@ so, delete this exception statement from your version.
- #include <ApplicationServices/ApplicationServices.h>
-
- #include <rfb/rfb.h>
--#if LIBVNCSERVER_HAVE_MACOSX_OPENGL_H
-+#if HAVE_MACOSX_OPENGL_H
- #include <OpenGL/OpenGL.h>
- #include <OpenGL/gl.h>
- #endif
-diff --git a/src/screen.c b/src/screen.c
-index 5d37761c9038..bda46903b59a 100644
---- a/src/screen.c
-+++ b/src/screen.c
-@@ -2119,7 +2119,7 @@ if (db) fprintf(stderr, "initialize_raw_fb reset\n");
-
- if (sscanf(str, "shm:%d", &shmid) == 1) {
- /* shm:N */
--#if HAVE_XSHM || LIBVNCSERVER_HAVE_SHMAT
-+#if HAVE_XSHM || HAVE_SHMAT
- raw_fb_addr = (char *) shmat(shmid, 0, SHM_RDONLY);
- if (! raw_fb_addr) {
- rfbLogEnable(1);
-diff --git a/src/uinput.c b/src/uinput.c
-index ac0324f1b0f0..d9e2b2656a5f 100644
---- a/src/uinput.c
-+++ b/src/uinput.c
-@@ -42,8 +42,8 @@ so, delete this exception statement from your version.
- #include "allowed_input_t.h"
-
- #if LIBVNCSERVER_HAVE_SYS_IOCTL_H
--#if LIBVNCSERVER_HAVE_LINUX_INPUT_H
--#if LIBVNCSERVER_HAVE_LINUX_UINPUT_H
-+#if HAVE_LINUX_INPUT_H
-+#if HAVE_LINUX_UINPUT_H
- #define UINPUT_OK
- #endif
- #endif
-diff --git a/src/unixpw.c b/src/unixpw.c
-index 3a548808881f..66b776f1e8a4 100644
---- a/src/unixpw.c
-+++ b/src/unixpw.c
-@@ -62,14 +62,14 @@ extern char *crypt(const char*, const char *);
- #endif
-
- #ifdef IGNORE_GETSPNAM
--#undef LIBVNCSERVER_HAVE_GETSPNAM
--#define LIBVNCSERVER_HAVE_GETSPNAM 0
-+#undef HAVE_GETSPNAM
-+#define HAVE_GETSPNAM 0
- #endif
-
--#if LIBVNCSERVER_HAVE_PWD_H && LIBVNCSERVER_HAVE_GETPWNAM
-+#if LIBVNCSERVER_HAVE_PWD_H && HAVE_GETPWNAM
- #if LIBVNCSERVER_HAVE_CRYPT || LIBVNCSERVER_HAVE_LIBCRYPT || HAVE_LIBCRYPT
- #define UNIXPW_CRYPT
--#if LIBVNCSERVER_HAVE_GETSPNAM
-+#if HAVE_GETSPNAM
- #include <shadow.h>
- #endif
- #endif
-@@ -78,10 +78,10 @@ extern char *crypt(const char*, const char *);
- #if LIBVNCSERVER_HAVE_SYS_IOCTL_H
- #include <sys/ioctl.h>
- #endif
--#if LIBVNCSERVER_HAVE_TERMIOS_H
-+#if HAVE_TERMIOS_H
- #include <termios.h>
- #endif
--#if LIBVNCSERVER_HAVE_SYS_STROPTS_H
-+#if HAVE_SYS_STROPTS_H
- #include <sys/stropts.h>
- #endif
-
-@@ -520,7 +520,7 @@ char *get_pty_ptmx(int *fd_p) {
-
- *fd_p = -1;
-
--#if LIBVNCSERVER_HAVE_GRANTPT
-+#if HAVE_GRANTPT
-
- for (i=0; i < ndevs; i++) {
- #ifdef O_NOCTTY
-@@ -628,7 +628,7 @@ char *get_pty(int *fd_p) {
- #ifdef IS_BSD
- return get_pty_loop(fd_p);
- #else
--#if LIBVNCSERVER_HAVE_GRANTPT
-+#if HAVE_GRANTPT
- used_get_pty_ptmx = 1;
- return get_pty_ptmx(fd_p);
- #else
-@@ -644,16 +644,16 @@ void try_to_be_nobody(void) {
- pw = getpwnam("nobody");
-
- if (pw) {
--#if LIBVNCSERVER_HAVE_SETUID
-+#if HAVE_SETUID
- setuid(pw->pw_uid);
- #endif
--#if LIBVNCSERVER_HAVE_SETEUID
-+#if HAVE_SETEUID
- seteuid(pw->pw_uid);
- #endif
--#if LIBVNCSERVER_HAVE_SETGID
-+#if HAVE_SETGID
- setgid(pw->pw_gid);
- #endif
--#if LIBVNCSERVER_HAVE_SETEGID
-+#if HAVE_SETEGID
- setegid(pw->pw_gid);
- #endif
- }
-@@ -788,7 +788,7 @@ int crypt_verify(char *user, char *pass) {
-
- if (strlen(realpw) < 12) {
- /* e.g. "x", try getspnam(), sometimes root for inetd, etc */
--#if LIBVNCSERVER_HAVE_GETSPNAM
-+#if HAVE_GETSPNAM
- struct spwd *sp = getspnam(user);
- if (sp != NULL && sp->sp_pwdp != NULL) {
- if (db) fprintf(stderr, "using getspnam()\n");
-@@ -1086,7 +1086,7 @@ int su_verify(char *user, char *pass, char *cmd, char *rbuf, int *rbuf_size, int
-
- /* streams options fixups, handle cases as they are found: */
- #if defined(__hpux)
--#if LIBVNCSERVER_HAVE_SYS_STROPTS_H
-+#if HAVE_SYS_STROPTS_H
- #if LIBVNCSERVER_HAVE_SYS_IOCTL_H && defined(I_PUSH)
- if (used_get_pty_ptmx) {
- ioctl(sfd, I_PUSH, "ptem");
-@@ -1127,7 +1127,7 @@ int su_verify(char *user, char *pass, char *cmd, char *rbuf, int *rbuf_size, int
- chdir("/");
-
- try_to_be_nobody();
--#if LIBVNCSERVER_HAVE_GETUID
-+#if HAVE_GETUID
- if (getuid() == 0 || geteuid() == 0) {
- exit(1);
- }
-diff --git a/src/user.c b/src/user.c
-index b759a61ae50a..aa14814de2b7 100644
---- a/src/user.c
-+++ b/src/user.c
-@@ -140,7 +140,7 @@ void check_switched_user(void) {
- /* utilities for switching users */
- static char *get_login_list(int with_display) {
- char *out;
--#if LIBVNCSERVER_HAVE_UTMPX_H
-+#if HAVE_UTMPX_H
- int i, cnt, max = 200, ut_namesize = 32;
- int dpymax = 1000, sawdpy[1000];
- struct utmpx *utx;
-@@ -761,7 +761,7 @@ static int switch_user_env(uid_t uid, gid_t gid, char *name, char *home, int fb_
- int reset_fb = 0;
- int grp_ok = 0;
-
--#if !LIBVNCSERVER_HAVE_SETUID
-+#if !HAVE_SETUID
- return 0;
- #else
- /*
-@@ -773,7 +773,7 @@ static int switch_user_env(uid_t uid, gid_t gid, char *name, char *home, int fb_
- clean_shm(0);
- free_tiles();
- }
--#if LIBVNCSERVER_HAVE_INITGROUPS
-+#if HAVE_INITGROUPS
- #if LIBVNCSERVER_HAVE_PWD_H
- if (getpwuid(uid) != NULL && getenv("X11VNC_SINGLE_GROUP") == NULL) {
- struct passwd *p = getpwuid(uid);
-diff --git a/src/v4l.c b/src/v4l.c
-index 86c33a6b9e75..8a3581362599 100644
---- a/src/v4l.c
-+++ b/src/v4l.c
-@@ -41,7 +41,7 @@ so, delete this exception statement from your version.
- #include "keyboard.h"
- #include "allowed_input_t.h"
-
--#if LIBVNCSERVER_HAVE_LINUX_VIDEODEV_H
-+#if HAVE_LINUX_VIDEODEV_H
- #if LIBVNCSERVER_HAVE_SYS_IOCTL_H
- #include <sys/ioctl.h>
- #define CONFIG_VIDEO_V4L1_COMPAT
-diff --git a/src/x11vnc.h b/src/x11vnc.h
-index 7a84703eabc8..79319a420eec 100644
---- a/src/x11vnc.h
-+++ b/src/x11vnc.h
-@@ -255,10 +255,10 @@ so, delete this exception statement from your version.
- #endif
-
- #if (SMALL_FOOTPRINT > 2)
--#undef LIBVNCSERVER_HAVE_UTMPX_H
-+#undef HAVE_UTMPX_H
- #undef LIBVNCSERVER_HAVE_PWD_H
- #undef REMOTE_CONTROL
--#define LIBVNCSERVER_HAVE_UTMPX_H 0
-+#define HAVE_UTMPX_H 0
- #define LIBVNCSERVER_HAVE_PWD_H 0
- #define REMOTE_CONTROL 0
- #endif
-@@ -308,7 +308,7 @@ so, delete this exception statement from your version.
- #include <sys/shm.h>
- #include <X11/extensions/XShm.h>
- #endif
--#if LIBVNCSERVER_HAVE_SHMAT
-+#if HAVE_SHMAT
- #include <sys/ipc.h>
- #include <sys/shm.h>
- #endif
-@@ -392,7 +392,7 @@ extern int h_errno;
- #if LIBVNCSERVER_HAVE_SYS_WAIT_H
- #include <sys/wait.h>
- #endif
--#if LIBVNCSERVER_HAVE_UTMPX_H
-+#if HAVE_UTMPX_H
- #include <utmpx.h>
- #endif
-
---
-2.11.0.rc2
-
diff --git a/x11-misc/x11vnc/x11vnc-0.9.13_p20150111-r1.ebuild b/x11-misc/x11vnc/x11vnc-0.9.13_p20150111-r1.ebuild
deleted file mode 100644
index b7ccc06..00000000
--- a/x11-misc/x11vnc/x11vnc-0.9.13_p20150111-r1.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit autotools eutils
-
-DESCRIPTION="A VNC server for real X displays"
-HOMEPAGE="http://www.karlrunge.com/x11vnc/"
-SRC_URI="https://github.com/LibVNC/x11vnc/archive/82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a.zip"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
-IUSE="avahi crypt fbcon libressl ssl xinerama"
-
-RDEPEND="
- x11-libs/libX11
- x11-libs/libXdamage
- x11-libs/libXext
- x11-libs/libXfixes
- x11-libs/libXrandr
- >=x11-libs/libXtst-1.1.0
- avahi? ( >=net-dns/avahi-0.6.4 )
- ssl? (
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:= )
- )
- >=net-libs/libvncserver-0.9.8
- xinerama? ( x11-libs/libXinerama )"
-DEPEND="${RDEPEND}
- x11-libs/libXt
- x11-proto/inputproto
- x11-proto/trapproto
- x11-proto/recordproto
- x11-proto/xproto
- x11-proto/xextproto
- xinerama? ( x11-proto/xineramaproto )"
-
-S="${WORKDIR}/x11vnc-82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a"
-
-DOCS=(ChangeLog README)
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-0.9.13-fix-compiler-detection.patch
- eautoreconf
-}
-
-src_configure() {
- # --without-v4l because of missing video4linux 2.x support wrt #389079
- econf \
- $(use_with avahi) \
- $(use_with crypt) \
- $(use_with fbcon fbdev) \
- $(use_with ssl) \
- $(use_with ssl crypto) \
- --without-v4l \
- $(use_with xinerama)
-}
diff --git a/x11-misc/x11vnc/x11vnc-0.9.13_p20150627.ebuild b/x11-misc/x11vnc/x11vnc-0.9.13_p20150627.ebuild
deleted file mode 100644
index f00bc73..00000000
--- a/x11-misc/x11vnc/x11vnc-0.9.13_p20150627.ebuild
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit autotools eutils vcs-snapshot
-
-DESCRIPTION="A VNC server for real X displays"
-HOMEPAGE="https://libvnc.github.io/"
-SRC_URI="https://github.com/LibVNC/x11vnc/archive/7aba1a36d902ec601e4aae1bc32e957749eb25d3.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
-IUSE="avahi crypt fbcon libressl ssl xinerama"
-
-RDEPEND=">=net-libs/libvncserver-0.9.8
- x11-libs/libX11
- x11-libs/libXdamage
- x11-libs/libXext
- x11-libs/libXfixes
- x11-libs/libXrandr
- >=x11-libs/libXtst-1.1.0
- avahi? ( >=net-dns/avahi-0.6.4 )
- ssl? (
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:= )
- )
- xinerama? ( x11-libs/libXinerama )"
-DEPEND="${RDEPEND}
- x11-libs/libXt
- x11-proto/inputproto
- x11-proto/trapproto
- x11-proto/recordproto
- x11-proto/xproto
- x11-proto/xextproto
- xinerama? ( x11-proto/xineramaproto )"
-
-DOCS=(ChangeLog README)
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-0.9.13-fix-compiler-detection.patch
- eautoreconf
-}
-
-src_configure() {
- # --without-v4l because of missing video4linux 2.x support wrt #389079
- econf \
- $(use_with avahi) \
- $(use_with crypt) \
- $(use_with fbcon fbdev) \
- $(use_with ssl) \
- $(use_with ssl crypto) \
- --without-v4l \
- $(use_with xinerama)
-}
diff --git a/x11-misc/x11vnc/x11vnc-0.9.14-r1.ebuild b/x11-misc/x11vnc/x11vnc-0.9.14-r1.ebuild
deleted file mode 100644
index 43e7b13..00000000
--- a/x11-misc/x11vnc/x11vnc-0.9.14-r1.ebuild
+++ /dev/null
@@ -1,65 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit autotools eutils vcs-snapshot
-
-DESCRIPTION="A VNC server for real X displays"
-HOMEPAGE="https://libvnc.github.io/"
-SRC_URI="https://github.com/LibVNC/x11vnc/archive/0.9.14.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
-IUSE="crypt fbcon libressl ssl xinerama zeroconf"
-
-RDEPEND=">=net-libs/libvncserver-0.9.8
- x11-libs/libX11
- x11-libs/libXdamage
- x11-libs/libXext
- x11-libs/libXfixes
- x11-libs/libXrandr
- >=x11-libs/libXtst-1.1.0
- ssl? (
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:= )
- )
- xinerama? ( x11-libs/libXinerama )
- zeroconf? ( >=net-dns/avahi-0.6.4 )
-"
-DEPEND="${RDEPEND}
- x11-libs/libXt
- x11-proto/inputproto
- x11-proto/trapproto
- x11-proto/recordproto
- x11-proto/xproto
- x11-proto/xextproto
- xinerama? ( x11-proto/xineramaproto )"
-
-DOCS=(ChangeLog README)
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-0.9.13-fix-compiler-detection.patch
- epatch "${FILESDIR}"/${P}-libvncserver-defines-1.patch #567612
- epatch "${FILESDIR}"/${P}-libvncserver-defines-2.patch #567612
- eautoreconf
-}
-
-src_configure() {
- # --without-v4l because of missing video4linux 2.x support wrt #389079
- econf \
- $(use_with crypt) \
- $(use_with fbcon fbdev) \
- $(use_with ssl) \
- $(use_with ssl crypto) \
- --without-v4l \
- $(use_with xinerama) \
- $(use_with zeroconf avahi)
-}
-
-src_install() {
- default
- doinitd "${FILESDIR}/x11vnc.init.d"
- doconfd "${FILESDIR}/x11vnc.conf.d"
-}
diff --git a/x11-misc/x11vnc/x11vnc-0.9.14.ebuild b/x11-misc/x11vnc/x11vnc-0.9.14.ebuild
deleted file mode 100644
index 4e87afb..00000000
--- a/x11-misc/x11vnc/x11vnc-0.9.14.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit autotools eutils vcs-snapshot
-
-DESCRIPTION="A VNC server for real X displays"
-HOMEPAGE="https://libvnc.github.io/"
-SRC_URI="https://github.com/LibVNC/x11vnc/archive/0.9.14.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
-IUSE="crypt fbcon libressl ssl xinerama zeroconf"
-
-RDEPEND=">=net-libs/libvncserver-0.9.8
- x11-libs/libX11
- x11-libs/libXdamage
- x11-libs/libXext
- x11-libs/libXfixes
- x11-libs/libXrandr
- >=x11-libs/libXtst-1.1.0
- ssl? (
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:= )
- )
- xinerama? ( x11-libs/libXinerama )
- zeroconf? ( >=net-dns/avahi-0.6.4 )
-"
-DEPEND="${RDEPEND}
- x11-libs/libXt
- x11-proto/inputproto
- x11-proto/trapproto
- x11-proto/recordproto
- x11-proto/xproto
- x11-proto/xextproto
- xinerama? ( x11-proto/xineramaproto )"
-
-DOCS=(ChangeLog README)
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-0.9.13-fix-compiler-detection.patch
- eautoreconf
-}
-
-src_configure() {
- # --without-v4l because of missing video4linux 2.x support wrt #389079
- econf \
- $(use_with crypt) \
- $(use_with fbcon fbdev) \
- $(use_with ssl) \
- $(use_with ssl crypto) \
- --without-v4l \
- $(use_with xinerama) \
- $(use_with zeroconf avahi)
-}
-
-src_install() {
- default
- doinitd "${FILESDIR}/x11vnc.init.d"
- doconfd "${FILESDIR}/x11vnc.conf.d"
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: x11-misc/x11vnc/files/, x11-misc/x11vnc/
@ 2019-05-21 18:41 Andreas Sturmlechner
0 siblings, 0 replies; 5+ messages in thread
From: Andreas Sturmlechner @ 2019-05-21 18:41 UTC (permalink / raw
To: gentoo-commits
commit: 8f8397278392054a78ad0d75c86577a12e6204f5
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue May 21 18:34:33 2019 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue May 21 18:40:54 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f839727
x11-misc/x11vnc: Fix anonymous SSL w/ OpenSSL-1.1
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../x11vnc/files/x11vnc-0.9.16-anonymous-ssl.patch | 26 ++++++++++++++++++++++
x11-misc/x11vnc/x11vnc-0.9.16-r2.ebuild | 4 ++--
2 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/x11-misc/x11vnc/files/x11vnc-0.9.16-anonymous-ssl.patch b/x11-misc/x11vnc/files/x11vnc-0.9.16-anonymous-ssl.patch
new file mode 100644
index 00000000000..3dafb9aa6b0
--- /dev/null
+++ b/x11-misc/x11vnc/files/x11vnc-0.9.16-anonymous-ssl.patch
@@ -0,0 +1,26 @@
+From b9cf79fd3d61a7586fe6b24b3141e406cdf334eb Mon Sep 17 00:00:00 2001
+From: Jim Broadus <jbroadus@xevo.com>
+Date: Wed, 2 Jan 2019 17:37:40 -0800
+Subject: [PATCH] Fix anonymous SSL. In version 1.1.0, openssl introduced a
+ security level concept. Only level 0 allows the use of unauthenticated cipher
+ suites such as ADH.
+
+---
+ src/sslhelper.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/sslhelper.c b/src/sslhelper.c
+index 1a3e7474..04c2e273 100644
+--- a/src/sslhelper.c
++++ b/src/sslhelper.c
+@@ -1596,6 +1596,10 @@ static int switch_to_anon_dh(void) {
+ if (ssl_client_mode) {
+ return 1;
+ }
++#if OPENSSL_VERSION_NUMBER >= 0x10100000L
++ /* Security level must be set to 0 for unauthenticated suites. */
++ SSL_CTX_set_security_level(ctx, 0);
++#endif
+ if (!SSL_CTX_set_cipher_list(ctx, "ADH:@STRENGTH")) {
+ return 0;
+ }
diff --git a/x11-misc/x11vnc/x11vnc-0.9.16-r2.ebuild b/x11-misc/x11vnc/x11vnc-0.9.16-r2.ebuild
index 55edb78e789..f78d4c9f6ab 100644
--- a/x11-misc/x11vnc/x11vnc-0.9.16-r2.ebuild
+++ b/x11-misc/x11vnc/x11vnc-0.9.16-r2.ebuild
@@ -41,8 +41,8 @@ RDEPEND="${COMMON_DEPEND}
"
PATCHES=(
- # https://github.com/LibVNC/x11vnc/issues/86
- "${FILESDIR}"/${P}-crypto.patch
+ "${FILESDIR}"/${P}-crypto.patch # https://github.com/LibVNC/x11vnc/issues/86
+ "${FILESDIR}"/${P}-anonymous-ssl.patch # https://github.com/LibVNC/x11vnc/pull/85
)
src_prepare() {
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: x11-misc/x11vnc/files/, x11-misc/x11vnc/
@ 2021-03-24 16:07 Matt Turner
0 siblings, 0 replies; 5+ messages in thread
From: Matt Turner @ 2021-03-24 16:07 UTC (permalink / raw
To: gentoo-commits
commit: 3513ee16314296fb4de6bf6e42f3e7f1c80d3cf7
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Sat Feb 13 01:35:58 2021 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Mar 24 16:06:57 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3513ee16
x11-misc/x11vnc: revbump for d-m-i
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
x11-misc/x11vnc/files/x11vnc.init.d-r1 | 70 ++++++++++++++++++++++++++++
x11-misc/x11vnc/x11vnc-0.9.16-r5.ebuild | 81 +++++++++++++++++++++++++++++++++
2 files changed, 151 insertions(+)
diff --git a/x11-misc/x11vnc/files/x11vnc.init.d-r1 b/x11-misc/x11vnc/files/x11vnc.init.d-r1
new file mode 100644
index 00000000000..04c36ea361d
--- /dev/null
+++ b/x11-misc/x11vnc/files/x11vnc.init.d-r1
@@ -0,0 +1,70 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="The x11vnc daemon init script"
+
+depend() {
+ need net
+ need display-manager
+}
+
+checkconfig() {
+
+ # Set Defaults
+ X11VNC_RFBAUTH=${X11VNC_RFBAUTH:-/etc/x11vnc.pass}
+ X11VNC_RFBPORT=${X11VNC_RFBPORT:-5900}
+ X11VNC_DISPLAY=${X11VNC_DISPLAY:-:0}
+ X11VNC_LOG=${X11VNC_LOG:-/var/log/x11vnc}
+
+ X11VNC_AUTH="/var/run/x11vnc-${X11VNC_DISPLAY}"
+
+ if [ -n "${X11VNC_AUTOPORT}" ]; then
+ X11VNC_PORT=""
+ fi
+
+ if [ ! -f "${X11VNC_RFBAUTH}" -o ! -s "${X11VNC_RFBAUTH}" ]; then
+ eerror "VNC Password not set, please set one by running: \`x11vnc -storepasswd ${X11VNC_RFBAUTH}\`"
+ return 1
+ fi
+ checkpath -q -f -m 0600 -o root:root "${X11VNC_RFBAUTH}"
+
+ # Attempt to find X-Auth file
+ if ! type xauth > /dev/null 2>&1 ||
+ ! xauth -f /root/.Xauthority extract - "${X11VNC_DISPLAY}" > "${X11VNC_AUTH}" 2>/dev/null ||
+ [ ! -s "${X11VNC_AUTH}" ]; then
+ # Let x11vnc guess at auth
+ X11VNC_AUTH_OPTS="--env FD_XDM=1 -auth guess"
+ else
+ # We found the proper auth
+ X11VNC_AUTH_OPTS="-auth ${X11VNC_AUTH}"
+ fi
+
+ if [ ! -f "${X11VNC_AUTH}" ]; then
+ eerror "Specified X-Authority file '${X11VNC_AUTH}' not found!"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start \
+ --exec /usr/bin/x11vnc -- \
+ ${X11VNC_AUTH_OPTS} \
+ -rfbauth ${X11VNC_RFBAUTH} \
+ ${X11VNC_RFBPORT:+-rfbport} ${X11VNC_RFBPORT} \
+ ${X11VNC_AUTOPORT:+-autoport} ${X11VNC_AUTOPORT} \
+ -display ${X11VNC_DISPLAY} \
+ -o ${X11VNC_LOG} \
+ -bg -forever \
+ ${X11VNC_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop /usr/bin/x11vnc
+ eend $?
+}
diff --git a/x11-misc/x11vnc/x11vnc-0.9.16-r5.ebuild b/x11-misc/x11vnc/x11vnc-0.9.16-r5.ebuild
new file mode 100644
index 00000000000..e8292188e98
--- /dev/null
+++ b/x11-misc/x11vnc/x11vnc-0.9.16-r5.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="VNC server for real X displays"
+HOMEPAGE="https://libvnc.github.io/"
+SRC_URI="https://github.com/LibVNC/x11vnc/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+-with-openssl-exception"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="crypt fbcon libressl ssl +xcomposite +xdamage +xfixes xinerama +xrandr zeroconf"
+
+COMMON_DEPEND="
+ >=net-libs/libvncserver-0.9.8[ssl=]
+ x11-libs/libX11
+ x11-libs/libXcursor
+ x11-libs/libXext
+ >=x11-libs/libXtst-1.1.0
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )
+ )
+ xcomposite? ( x11-libs/libXcomposite )
+ xdamage? ( x11-libs/libXdamage )
+ xfixes? ( x11-libs/libXfixes )
+ xinerama? ( x11-libs/libXinerama )
+ xrandr? ( x11-libs/libXrandr )
+ zeroconf? ( >=net-dns/avahi-0.6.4 )
+"
+DEPEND="${COMMON_DEPEND}
+ x11-base/xorg-proto
+ x11-libs/libXt
+"
+# https://bugzilla.redhat.com/show_bug.cgi?id=920554
+RDEPEND="${COMMON_DEPEND}
+ dev-lang/tk:0
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-crypto.patch # https://github.com/LibVNC/x11vnc/issues/86
+ "${FILESDIR}"/${P}-anonymous-ssl.patch # https://github.com/LibVNC/x11vnc/pull/85
+ "${FILESDIR}"/${P}-libressl.patch
+ "${FILESDIR}"/${P}-fno-common.patch
+ "${FILESDIR}"/${P}-CVE-2020-29074.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # --without-v4l because of missing video4linux 2.x support wrt #389079
+ local myconf=(
+ --without-v4l
+ --without-xkeyboard
+ --without-fbpm
+ --without-dpms
+ $(use_with crypt)
+ $(use_with fbcon fbdev)
+ $(use_with ssl)
+ $(use_with ssl crypto)
+ $(use_with xcomposite)
+ $(use_with xdamage)
+ $(use_with xfixes)
+ $(use_with xinerama)
+ $(use_with xrandr)
+ $(use_with zeroconf avahi)
+ )
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+ newinitd "${FILESDIR}/x11vnc.init.d-r1" x11vnc
+ newconfd "${FILESDIR}/x11vnc.conf.d" x11vnc
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: x11-misc/x11vnc/files/, x11-misc/x11vnc/
@ 2023-03-11 17:15 Sam James
0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2023-03-11 17:15 UTC (permalink / raw
To: gentoo-commits
commit: b76f091b2cd8248248a55d9e8af6c3ea829e41ee
Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Sun Mar 5 22:26:23 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 11 17:15:12 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b76f091b
x11-misc/x11vnc: fix implicit function declarations in configure
Also fix issue reported by checkbashisms and remove trailing spaces from
init script.
Closes: https://bugs.gentoo.org/849227
Closes: https://bugs.gentoo.org/898398
Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Signed-off-by: Sam James <sam <AT> gentoo.org>
...1vnc-0.9.16-implicit-function-declaration.patch | 26 ++++++++++++++++++++++
x11-misc/x11vnc/files/x11vnc.init.d-r1 | 8 +++----
x11-misc/x11vnc/x11vnc-0.9.16-r7.ebuild | 5 +++--
3 files changed, 33 insertions(+), 6 deletions(-)
diff --git a/x11-misc/x11vnc/files/x11vnc-0.9.16-implicit-function-declaration.patch b/x11-misc/x11vnc/files/x11vnc-0.9.16-implicit-function-declaration.patch
new file mode 100644
index 000000000000..c6d1c494bd23
--- /dev/null
+++ b/x11-misc/x11vnc/files/x11vnc-0.9.16-implicit-function-declaration.patch
@@ -0,0 +1,26 @@
+From 351d27d4a846e3d0e5c724e067f44b52e04402f1 Mon Sep 17 00:00:00 2001
+From: Alexander Tsoy <alexander@tsoy.me>
+Date: Mon, 6 Mar 2023 00:57:20 +0300
+Subject: [PATCH] Drop AC_FUNC_STAT macro
+
+This macro is obsolescent and doesn't work with
+-Werror=implicit-function-declaration compiler flag
+---
+ configure.ac | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6b62ac5..5a386db 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -474,7 +474,6 @@ if test $inaddrt = no ; then
+ fi
+ # Checks for library functions.
+ AC_FUNC_MEMCMP
+-AC_FUNC_STAT
+ AC_FUNC_STRFTIME
+ AC_FUNC_VPRINTF
+ AC_FUNC_FORK
+--
+2.39.2
+
diff --git a/x11-misc/x11vnc/files/x11vnc.init.d-r1 b/x11-misc/x11vnc/files/x11vnc.init.d-r1
index 04c36ea361db..8907b3858a31 100644
--- a/x11-misc/x11vnc/files/x11vnc.init.d-r1
+++ b/x11-misc/x11vnc/files/x11vnc.init.d-r1
@@ -16,8 +16,8 @@ checkconfig() {
X11VNC_RFBPORT=${X11VNC_RFBPORT:-5900}
X11VNC_DISPLAY=${X11VNC_DISPLAY:-:0}
X11VNC_LOG=${X11VNC_LOG:-/var/log/x11vnc}
-
- X11VNC_AUTH="/var/run/x11vnc-${X11VNC_DISPLAY}"
+
+ X11VNC_AUTH="/var/run/x11vnc-${X11VNC_DISPLAY}"
if [ -n "${X11VNC_AUTOPORT}" ]; then
X11VNC_PORT=""
@@ -30,7 +30,7 @@ checkconfig() {
checkpath -q -f -m 0600 -o root:root "${X11VNC_RFBAUTH}"
# Attempt to find X-Auth file
- if ! type xauth > /dev/null 2>&1 ||
+ if ! command -v xauth > /dev/null 2>&1 ||
! xauth -f /root/.Xauthority extract - "${X11VNC_DISPLAY}" > "${X11VNC_AUTH}" 2>/dev/null ||
[ ! -s "${X11VNC_AUTH}" ]; then
# Let x11vnc guess at auth
@@ -43,7 +43,7 @@ checkconfig() {
if [ ! -f "${X11VNC_AUTH}" ]; then
eerror "Specified X-Authority file '${X11VNC_AUTH}' not found!"
return 1
- fi
+ fi
}
start() {
diff --git a/x11-misc/x11vnc/x11vnc-0.9.16-r7.ebuild b/x11-misc/x11vnc/x11vnc-0.9.16-r7.ebuild
index 74b94b9ee0ae..63e3af4a67a1 100644
--- a/x11-misc/x11vnc/x11vnc-0.9.16-r7.ebuild
+++ b/x11-misc/x11vnc/x11vnc-0.9.16-r7.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit autotools
@@ -43,6 +43,7 @@ PATCHES=(
"${FILESDIR}"/${P}-anonymous-ssl.patch # https://github.com/LibVNC/x11vnc/pull/85
"${FILESDIR}"/${P}-fno-common.patch
"${FILESDIR}"/${P}-CVE-2020-29074.patch
+ "${FILESDIR}"/${P}-implicit-function-declaration.patch
)
src_prepare() {
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-03-11 17:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-05 16:10 [gentoo-commits] repo/gentoo:master commit in: x11-misc/x11vnc/files/, x11-misc/x11vnc/ Pacho Ramos
-- strict thread matches above, loose matches on Subject: below --
2023-03-11 17:15 Sam James
2021-03-24 16:07 Matt Turner
2019-05-21 18:41 Andreas Sturmlechner
2015-11-27 17:20 Patrice Clement
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox