commit:     5e342f86e7159135a11ce4602388859eac240ff8
Author:     Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
AuthorDate: Thu Jul 12 21:16:31 2018 +0000
Commit:     Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
CommitDate: Thu Jul 12 21:16:31 2018 +0000
URL:        https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=5e342f86

add x11vnc 0.9.15

 x11-misc/x11vnc/Manifest             |  5 +++
 x11-misc/x11vnc/files/x11vnc.conf.d  | 37 +++++++++++++++++++
 x11-misc/x11vnc/files/x11vnc.init.d  | 70 ++++++++++++++++++++++++++++++++++++
 x11-misc/x11vnc/metadata.xml         | 21 +++++++++++
 x11-misc/x11vnc/x11vnc-0.9.15.ebuild | 55 ++++++++++++++++++++++++++++
 5 files changed, 188 insertions(+)

diff --git a/x11-misc/x11vnc/Manifest b/x11-misc/x11vnc/Manifest
new file mode 100644
index 0000000..2e523b3
--- /dev/null
+++ b/x11-misc/x11vnc/Manifest
@@ -0,0 +1,5 @@
+AUX x11vnc.conf.d 1435 BLAKE2B 
8403d61a4941c56127e869d6ac90d4f85237af9af786f864d32afbedf3e736528b74c8c83fcf3491794b9e62db6ef2a354dccd61f368c8e9251f915e2bd683f8
 SHA512 
dedc94fab89a06ca6025b99c2c944cabe77640487c8fc761a6420e5be7062ee4c1c383f3846c17bed434ad4f3ec3b994badb493919acb99da3f61caa40c60246
+AUX x11vnc.init.d 1728 BLAKE2B 
45680af6aad530a9b36f29adc61c1f90ad272bd7201c30f29b3d6c5b980012ddb299c878ae1bb20734496c4f2b8b1e1c507cadee875305167e3f298993947a9e
 SHA512 
8de7966b79b5acc83c8cebc3c2ef0819196f5a33eabad619991d04c7c059a68afbf44d0ece6b0db33cea1f525402a601b25db220733f0ff69c0fff48d3c50ac2
+DIST x11vnc-0.9.15.tar.gz 1701821 BLAKE2B 
b53de9b86c8f9da27388898fe70b6b331a5f00348391f1ccd3c21097a66e967b862ec665f8c9ef9023770a795bb079545012f1f5747fc6d39fda339fcbee9404
 SHA512 
d5db90f87ba4b9801e8f6bb2c0821657c6388ce2c64e1565aeeabe41edf63b56ad72dc7be4cf874b817dacd7de5988eddd466df5b9396c13d69340ac90a1ca4d
+EBUILD x11vnc-0.9.15.ebuild 1350 BLAKE2B 
b3cbcb6745630909c620e3cdba5c66416edaa315a893011d02e5bc172d32fc04dded097d0188deffbc143b5f7e1f2b9563375b68cf06980c7a59938203987208
 SHA512 
9a4b5da0698ea0420ce5f61ec3173cb95551018f0f322e655fe02615f349662638acf746983255cb62e58015707358a9c1dde4acc499f25df42856f78aa830b8
+MISC metadata.xml 694 BLAKE2B 
c81a1713da2084ad68df6c91b75cba02df7c39950b331916362ffc8dd67b6b72dbf40248c3a906d1f582a8ed5034c4cbebcab7bc4b9db69508a753f44df07102
 SHA512 
842b0faca49ae6810c42d117ca3f79fc693acfb8a965d3fd2a8c890f475350c29175303f1b56b0c64468dae20e692d2430fc790e7b88165c0f30d65e1bdcb606

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..b6b16da
--- /dev/null
+++ b/x11-misc/x11vnc/files/x11vnc.init.d
@@ -0,0 +1,70 @@
+#!/sbin/openrc-run
+# 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
new file mode 100644
index 0000000..5c7cf98
--- /dev/null
+++ b/x11-misc/x11vnc/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>alex_y...@yahoo.ca</email>
+               <name>Alex Xu</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-ma...@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <longdescription>
+               The primary goal of this program is to create a portable and
+               simple command-line server utility that allows a VNC viewer
+               to connect to an actual X display.
+       </longdescription>
+       <upstream>
+               <remote-id type="sourceforge">libvncserver</remote-id>
+               <remote-id type="github">LibVNC/x11vnc</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/x11-misc/x11vnc/x11vnc-0.9.15.ebuild 
b/x11-misc/x11vnc/x11vnc-0.9.15.ebuild
new file mode 100644
index 0000000..d50afe9
--- /dev/null
+++ b/x11-misc/x11vnc/x11vnc-0.9.15.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools vcs-snapshot
+
+DESCRIPTION="A 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"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 
~x86-fbsd ~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[ssl?]
+       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-base/xorg-proto
+       x11-libs/libXt"
+
+src_prepare() {
+       default
+       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"
+}

Reply via email to