Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/x11vnc/files/, x11-misc/x11vnc/
Date: Fri, 27 Nov 2015 17:21:10
Message-Id: 1448644846.eaf94805fbdfae94005b6798052091b40818eccb.monsieurp@gentoo
1 commit: eaf94805fbdfae94005b6798052091b40818eccb
2 Author: Alex Xu <alex_y_xu <AT> yahoo <DOT> ca>
3 AuthorDate: Fri Nov 27 15:38:46 2015 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 27 17:20:46 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaf94805
7
8 x11-misc/x11vnc: 0.9.14 bump, clean metadata.xml
9
10 Credit for init.d and conf.d script to:
11 Sal Gonzalez <sgonzalez <AT> codejunkie.net>.
12
13 Package-Manager: portage-2.2.24
14
15 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
16
17 x11-misc/x11vnc/Manifest | 1 +
18 x11-misc/x11vnc/files/x11vnc.conf.d | 37 +++++++++++++++++++
19 x11-misc/x11vnc/files/x11vnc.init.d | 70 ++++++++++++++++++++++++++++++++++++
20 x11-misc/x11vnc/metadata.xml | 5 ---
21 x11-misc/x11vnc/x11vnc-0.9.14.ebuild | 62 ++++++++++++++++++++++++++++++++
22 5 files changed, 170 insertions(+), 5 deletions(-)
23
24 diff --git a/x11-misc/x11vnc/Manifest b/x11-misc/x11vnc/Manifest
25 index 0ad1bcf..85e88f5 100644
26 --- a/x11-misc/x11vnc/Manifest
27 +++ b/x11-misc/x11vnc/Manifest
28 @@ -1,2 +1,3 @@
29 DIST 82eb9752485db87c9c6d3d6bb4aa1ae7ac81174a.zip 1830730 SHA256 fc6a28df089e47b68931019ce038b6e2fcd78e93de7f6984a22262252d01c16f SHA512 0fa4f7b52442793ec1bd82c74f9d092c69262e4f1fa93584fef17bbe0e5cbde08bc5ad0924631801bb43b41d90c37077a317c61511553f98698096eab05791eb WHIRLPOOL f1a45b549fb6ff9bea2eb4e3719b5dd43a78f6f418c61691cebab313d56761147d928648e103c654309575bec7c716a6f1cd1ef7a9b484c09edee37233cb0ce7
30 DIST x11vnc-0.9.13_p20150627.tar.gz 1700142 SHA256 14fb77e9b875224b47fee659d5a883c26c2792c5e37d1e32286b03103fdaef07 SHA512 c28cfe47c1a0bb486bb3290511a8a71cf499e55617e3f488d45cb6a1e9050e4f52c5bb6eb9f2f655728f2028d2472a88d8b9178d59e79c1f07464782555abc82 WHIRLPOOL d0342ef8d948b0dda119967f9e59be6f1e4d2639859f8c2a45c37eeb644e970b322937635f151256b3c30a69d37838f380ab4732c5afd44499e9decb8412aa15
31 +DIST x11vnc-0.9.14.tar.gz 1700802 SHA256 45f87c5e4382988c73e8c7891ac2bfb45d8f9ce1196ae06651c84636684ea143 SHA512 5d18e5ff493fbc4f6f1efe952812c1acd3087e855a2a9f2c99f3b2606cfa40a20b83e2d0c736e12b453b47f7ff7746069a1b6718d842d1a8f73b00d5c4c4a93f WHIRLPOOL 3980edaa9327395e55dffdf06fb4a2eab9b94e1aaf8da65cdd1b4c5d765351eedc003b1150b7d4da065385cb7460a556509bf57c58cf1cbe443865c551f6a170
32
33 diff --git a/x11-misc/x11vnc/files/x11vnc.conf.d b/x11-misc/x11vnc/files/x11vnc.conf.d
34 new file mode 100644
35 index 0000000..7df3a13
36 --- /dev/null
37 +++ b/x11-misc/x11vnc/files/x11vnc.conf.d
38 @@ -0,0 +1,37 @@
39 +# Copyright 1999-2012 Gentoo Foundation
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +# Configuration for running x11vnc as a service. This allows VNC
43 +# connections prior to logging in to the X display manager.
44 +
45 +# Password file location of the password file for VNC Connections
46 +# Prior to first run, you must configure a password, to do so please
47 +# run `x11vnc -storepasswd /etc/x11vnc.pass`. Replace /etc/x11vnc.pass
48 +# ith the location you have specified below
49 +#X11VNC_RFBAUTH="/etc/x11vnc.pass"
50 +
51 +# Port to listen on for incoming connections
52 +#X11VNC_RFBPORT="5900"
53 +
54 +# Automatically probe for a free port to listen on for incoming connections
55 +# starting from the port number specified
56 +# Setting this will diable X11VNC_RFBPORT above
57 +# See `man x11vnc`, option `-autoport` for more information
58 +#X11VNC_AUTOPORT=""
59 +
60 +# X Display to attach to
61 +# This should match the display your DM is running on
62 +#X11VNC_DISPLAY=":0"
63 +
64 +# Location of the x11vnc logfile
65 +#X11VNC_LOG="/var/log/x11vnc"
66 +
67 +# Miscelaneous options to pass to x11vnc.
68 +# Do not set options that are configurable above.
69 +# Check `x11vnc -help` or `man x11vnc` for more options.
70 +# * Modern composting DMs/WMs will require "-noxdamage"
71 +# * If you experience crashes on logging in, try "-noxfixes"
72 +# * Other suggested options include "-noxrecord" and "-ncache ##"
73 +# Refer to the x11vnc man page for further explanations.
74 +#X11VNC_OPTS=""
75 +
76
77 diff --git a/x11-misc/x11vnc/files/x11vnc.init.d b/x11-misc/x11vnc/files/x11vnc.init.d
78 new file mode 100644
79 index 0000000..08968f0
80 --- /dev/null
81 +++ b/x11-misc/x11vnc/files/x11vnc.init.d
82 @@ -0,0 +1,70 @@
83 +#!/sbin/runscript
84 +# Copyright 1999-2011 Gentoo Foundation
85 +# Distributed under the terms of the GNU General Public License v2
86 +
87 +description="The x11vnc daemon init script"
88 +
89 +depend() {
90 + need net
91 + need xdm
92 +}
93 +
94 +checkconfig() {
95 +
96 + # Set Defaults
97 + X11VNC_RFBAUTH=${X11VNC_RFBAUTH:-/etc/x11vnc.pass}
98 + X11VNC_RFBPORT=${X11VNC_RFBPORT:-5900}
99 + X11VNC_DISPLAY=${X11VNC_DISPLAY:-:0}
100 + X11VNC_LOG=${X11VNC_LOG:-/var/log/x11vnc}
101 +
102 + X11VNC_AUTH="/var/run/x11vnc-${X11VNC_DISPLAY}"
103 +
104 + if [ -n "${X11VNC_AUTOPORT}" ]; then
105 + X11VNC_PORT=""
106 + fi
107 +
108 + if [ ! -f "${X11VNC_RFBAUTH}" -o ! -s "${X11VNC_RFBAUTH}" ]; then
109 + eerror "VNC Password not set, please set one by running: \`x11vnc -storepasswd ${X11VNC_RFBAUTH}\`"
110 + return 1
111 + fi
112 + checkpath -q -f -m 0600 -o root:root "${X11VNC_RFBAUTH}"
113 +
114 + # Attempt to find X-Auth file
115 + if ! type xauth > /dev/null 2>&1 ||
116 + ! xauth -f /root/.Xauthority extract - "${X11VNC_DISPLAY}" > "${X11VNC_AUTH}" 2>/dev/null ||
117 + [ ! -s "${X11VNC_AUTH}" ]; then
118 + # Let x11vnc guess at auth
119 + X11VNC_AUTH_OPTS="--env FD_XDM=1 -auth guess"
120 + else
121 + # We found the proper auth
122 + X11VNC_AUTH_OPTS="-auth ${X11VNC_AUTH}"
123 + fi
124 +
125 + if [ ! -f "${X11VNC_AUTH}" ]; then
126 + eerror "Specified X-Authority file '${X11VNC_AUTH}' not found!"
127 + return 1
128 + fi
129 +}
130 +
131 +start() {
132 + checkconfig || return 1
133 +
134 + ebegin "Starting ${SVCNAME}"
135 + start-stop-daemon --start \
136 + --exec /usr/bin/x11vnc -- \
137 + ${X11VNC_AUTH_OPTS} \
138 + -rfbauth ${X11VNC_RFBAUTH} \
139 + ${X11VNC_RFBPORT:+-rfbport} ${X11VNC_RFBPORT} \
140 + ${X11VNC_AUTOPORT:+-autoport} ${X11VNC_AUTOPORT} \
141 + -display ${X11VNC_DISPLAY} \
142 + -o ${X11VNC_LOG} \
143 + -bg -forever \
144 + ${X11VNC_OPTS}
145 + eend $?
146 +}
147 +
148 +stop() {
149 + ebegin "Stopping ${SVCNAME}"
150 + start-stop-daemon --stop /usr/bin/x11vnc
151 + eend $?
152 +}
153
154 diff --git a/x11-misc/x11vnc/metadata.xml b/x11-misc/x11vnc/metadata.xml
155 index ab3d805..a9e6e83 100644
156 --- a/x11-misc/x11vnc/metadata.xml
157 +++ b/x11-misc/x11vnc/metadata.xml
158 @@ -12,11 +12,6 @@
159 simple command-line server utility that allows a VNC viewer
160 to connect to an actual X display.
161 </longdescription>
162 - <use>
163 - <flag name="system-libvncserver">Build x11vnc against the system
164 - libvncserver (experimental)</flag>
165 - <flag name="tk">Support the simple tcl/tk -gui option</flag>
166 - </use>
167 <upstream>
168 <remote-id type="sourceforge">libvncserver</remote-id>
169 <remote-id type="github">LibVNC/x11vnc</remote-id>
170
171 diff --git a/x11-misc/x11vnc/x11vnc-0.9.14.ebuild b/x11-misc/x11vnc/x11vnc-0.9.14.ebuild
172 new file mode 100644
173 index 0000000..0829431
174 --- /dev/null
175 +++ b/x11-misc/x11vnc/x11vnc-0.9.14.ebuild
176 @@ -0,0 +1,62 @@
177 +# Copyright 1999-2015 Gentoo Foundation
178 +# Distributed under the terms of the GNU General Public License v2
179 +# $Id$
180 +
181 +EAPI=5
182 +
183 +inherit autotools eutils vcs-snapshot
184 +
185 +DESCRIPTION="A VNC server for real X displays"
186 +HOMEPAGE="https://libvnc.github.io/"
187 +SRC_URI="https://github.com/LibVNC/x11vnc/archive/0.9.14.tar.gz -> ${P}.tar.gz"
188 +
189 +LICENSE="GPL-2"
190 +SLOT="0"
191 +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"
192 +IUSE="avahi crypt fbcon libressl ssl xinerama"
193 +
194 +RDEPEND=">=net-libs/libvncserver-0.9.8
195 + x11-libs/libX11
196 + x11-libs/libXdamage
197 + x11-libs/libXext
198 + x11-libs/libXfixes
199 + x11-libs/libXrandr
200 + >=x11-libs/libXtst-1.1.0
201 + avahi? ( >=net-dns/avahi-0.6.4 )
202 + ssl? (
203 + !libressl? ( dev-libs/openssl:0= )
204 + libressl? ( dev-libs/libressl:= )
205 + )
206 + xinerama? ( x11-libs/libXinerama )"
207 +DEPEND="${RDEPEND}
208 + x11-libs/libXt
209 + x11-proto/inputproto
210 + x11-proto/trapproto
211 + x11-proto/recordproto
212 + x11-proto/xproto
213 + x11-proto/xextproto
214 + xinerama? ( x11-proto/xineramaproto )"
215 +
216 +DOCS=(ChangeLog README)
217 +
218 +src_prepare() {
219 + eautoreconf
220 +}
221 +
222 +src_configure() {
223 + # --without-v4l because of missing video4linux 2.x support wrt #389079
224 + econf \
225 + $(use_with avahi) \
226 + $(use_with crypt) \
227 + $(use_with fbcon fbdev) \
228 + $(use_with ssl) \
229 + $(use_with ssl crypto) \
230 + --without-v4l \
231 + $(use_with xinerama)
232 +}
233 +
234 +src_install() {
235 + default
236 + doinitd "${FILESDIR}/x11vnc.init.d"
237 + doconfd "${FILESDIR}/x11vnc.conf.d"
238 +}