From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- x11-misc/x11vnc/Manifest | 7 +++ 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.14_p20161013.ebuild | 60 ++++++++++++++++++++++ 5 files changed, 195 insertions(+) create mode 100644 x11-misc/x11vnc/Manifest create mode 100644 x11-misc/x11vnc/files/x11vnc.conf.d create mode 100644 x11-misc/x11vnc/files/x11vnc.init.d create mode 100644 x11-misc/x11vnc/metadata.xml create mode 100644 x11-misc/x11vnc/x11vnc-0.9.14_p20161013.ebuild (limited to 'x11-misc/x11vnc') diff --git a/x11-misc/x11vnc/Manifest b/x11-misc/x11vnc/Manifest new file mode 100644 index 000000000000..bc18072e65f8 --- /dev/null +++ b/x11-misc/x11vnc/Manifest @@ -0,0 +1,7 @@ +AUX x11vnc.conf.d 1435 SHA256 2657c7687876372a5196027b2fb694ff5364f59a054ea961015384d66bf4a80e SHA512 dedc94fab89a06ca6025b99c2c944cabe77640487c8fc761a6420e5be7062ee4c1c383f3846c17bed434ad4f3ec3b994badb493919acb99da3f61caa40c60246 WHIRLPOOL feef515c561ef06d640c09c0507e03fb60d018a2ac19e78419abf6557cb0d43010f08fb3e9e88ed81bfef0f09d8e88955f2607b448157a8cc7fee7ac7d164961 +AUX x11vnc.init.d 1728 SHA256 55a2460d3922e062b7ea122c09518403974eb54379c7c98bfe19b2621cae1c93 SHA512 8de7966b79b5acc83c8cebc3c2ef0819196f5a33eabad619991d04c7c059a68afbf44d0ece6b0db33cea1f525402a601b25db220733f0ff69c0fff48d3c50ac2 WHIRLPOOL 3a02414cfa7b5f326edcf8f3c1fe5c0c078099a63e1fa80f447eb0325900885fbd3674cc21bc8d2c37fdc5c94680b6b81b086c04ea69c497bf1ed3b1977c41b8 +DIST x11vnc-0.9.14_p20161013.tar.gz 1702047 SHA256 050f2d9428996a8c3ad420933923b45fe516122f2966aefb5fb8dbf10dcc7917 SHA512 82207e4d721dde633aaa13dbd1e6a18799615f8e3c225c33d4f8b01775fb81fb6b92a817e7d014653ac7b2349b0b31e46be8db25c5fd5e3ecee8fb93ca665b97 WHIRLPOOL 449f729044b98f86850779343105bb4edd71861225b1a0eb64d1a977e21918d0669b0c50fe696fba46bb6d6709f31c3445b775392c46b49a0af9bf53f62f6196 +EBUILD x11vnc-0.9.14_p20161013.ebuild 1508 SHA256 a94b4b407511d71416768d75260bf72d8467783bce104757728fbb268ddb198c SHA512 0431ae53fafdebe04786f9879f12a7e4f8882407f628f75dd01a5922db2b6ce9b43bcfe728c6d759099cf3123747f37118f7c7acee234da1acaadfa2955bdfcc WHIRLPOOL b0b79c4b83fd4b745b36201b6e21160465db4291f4e4cd0bb18bd81cc83a662ce831c1788a5f9f8ed7e14e1e49ca8b70e876ce5a6503657aba6937c6823b29d9 +MISC ChangeLog 6680 SHA256 e6610d7f31031f7240c8a98a0ffb90f2d4d01c7739fd2fd3419e440c0f3e2b88 SHA512 3428c30757d94e0f1b0de40f7b6a183c05ef0175e4cd6101cb8ac6dc8bdccb75ee92abb32c6eab9dddd3164386a03f65505da2549420bf1954aeefb37f101813 WHIRLPOOL 3430eedc1664715b916f8f0ac3039dac93e4c8e7234a30536f9ee7600a4d07177a381b529e711277eed2dbdcea9a47f9467276c2b628a76da05712d47a8b6011 +MISC ChangeLog-2015 16652 SHA256 6e144c043741ba849817f72760fd0a7678cd356be2db07656ffe8bdac2b6a782 SHA512 9342adf2a8833e80fd662bf63a6e18766ad58bb4d3d91b2dcb67efc197bcd1f5cc576c7174107814e1b5d845290e8c7e1e86399174d605d0bc0843e8fd405781 WHIRLPOOL a37a6ccb5fa7fc4daf6d75abd07c11fcdc582cd9e4a3b6559804a886a97c409591d1d3d4e86fe0a89504f085ef28ea022dc603b3d84fea6435b1e33e7c73b740 +MISC metadata.xml 694 SHA256 1f2e0535e20d4db32baa81dc18384aad05c94e53822f68cb2efb71e5adf7b903 SHA512 842b0faca49ae6810c42d117ca3f79fc693acfb8a965d3fd2a8c890f475350c29175303f1b56b0c64468dae20e692d2430fc790e7b88165c0f30d65e1bdcb606 WHIRLPOOL b241cb6f41ea61991631edc7412c24715b1424e840fbb73284b979d814c2bb999577f5d50f8f97e6e79431b24199042434cb4b53d30a66914e956711c84de43b diff --git a/x11-misc/x11vnc/files/x11vnc.conf.d b/x11-misc/x11vnc/files/x11vnc.conf.d new file mode 100644 index 000000000000..7df3a1317a97 --- /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 000000000000..b6b16dafb943 --- /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 000000000000..5c7cf9889fd4 --- /dev/null +++ b/x11-misc/x11vnc/metadata.xml @@ -0,0 +1,21 @@ + + + + + alex_y_xu@yahoo.ca + Alex Xu + + + proxy-maint@gentoo.org + Proxy Maintainers + + + 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. + + + libvncserver + LibVNC/x11vnc + + diff --git a/x11-misc/x11vnc/x11vnc-0.9.14_p20161013.ebuild b/x11-misc/x11vnc/x11vnc-0.9.14_p20161013.ebuild new file mode 100644 index 000000000000..820d6f6ac5e6 --- /dev/null +++ b/x11-misc/x11vnc/x11vnc-0.9.14_p20161013.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 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/e191071c1f375d04ba8f955ea0a30292a485999e.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-libs/libXt + x11-proto/inputproto + x11-proto/trapproto + x11-proto/recordproto + x11-proto/xproto + x11-proto/xextproto + xinerama? ( x11-proto/xineramaproto )" + +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" +} -- cgit v1.2.3