1 |
commit: c421fb9e8c2826b925b3adc0d17b6f70a23c809c |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 24 10:32:41 2019 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 24 10:53:07 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c421fb9e |
7 |
|
8 |
x11-misc/x11vnc: Fix dependencies and build issues |
9 |
|
10 |
Closes: https://bugs.gentoo.org/675596 |
11 |
Closes: https://bugs.gentoo.org/648898 |
12 |
Closes: https://bugs.gentoo.org/611088 |
13 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
14 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
15 |
|
16 |
x11-misc/x11vnc/files/x11vnc-0.9.16-crypto.patch | 23 ++++++++ |
17 |
x11-misc/x11vnc/metadata.xml | 6 ++ |
18 |
x11-misc/x11vnc/x11vnc-0.9.16-r1.ebuild | 75 ++++++++++++++++++++++++ |
19 |
3 files changed, 104 insertions(+) |
20 |
|
21 |
diff --git a/x11-misc/x11vnc/files/x11vnc-0.9.16-crypto.patch b/x11-misc/x11vnc/files/x11vnc-0.9.16-crypto.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..21872e73cb7 |
24 |
--- /dev/null |
25 |
+++ b/x11-misc/x11vnc/files/x11vnc-0.9.16-crypto.patch |
26 |
@@ -0,0 +1,23 @@ |
27 |
+From 3024af3685be9eb618352bd17ba37953d8076946 Mon Sep 17 00:00:00 2001 |
28 |
+From: Christian Beier <dontmind@×××××××××.org> |
29 |
+Date: Thu, 17 Jan 2019 14:05:53 +0100 |
30 |
+Subject: [PATCH] unixpw: don't try to use crypt() when it isn't available |
31 |
+ |
32 |
+Closes #86 |
33 |
+--- |
34 |
+ src/unixpw.c | 2 +- |
35 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
36 |
+ |
37 |
+diff --git a/src/unixpw.c b/src/unixpw.c |
38 |
+index 9a43cec..e2cb016 100644 |
39 |
+--- a/src/unixpw.c |
40 |
++++ b/src/unixpw.c |
41 |
+@@ -757,7 +757,7 @@ int unixpw_list_match(char *user) { |
42 |
+ } |
43 |
+ |
44 |
+ int crypt_verify(char *user, char *pass) { |
45 |
+-#ifndef UNIXPW_CRYPT |
46 |
++#if !defined UNIXPW_CRYPT || !defined HAVE_LIBCRYPT |
47 |
+ return 0; |
48 |
+ #else |
49 |
+ struct passwd *pwd; |
50 |
|
51 |
diff --git a/x11-misc/x11vnc/metadata.xml b/x11-misc/x11vnc/metadata.xml |
52 |
index f25d54c1912..4ad5dbb6d54 100644 |
53 |
--- a/x11-misc/x11vnc/metadata.xml |
54 |
+++ b/x11-misc/x11vnc/metadata.xml |
55 |
@@ -7,6 +7,12 @@ |
56 |
simple command-line server utility that allows a VNC viewer |
57 |
to connect to an actual X display. |
58 |
</longdescription> |
59 |
+ <use> |
60 |
+ <flag name="xdamage">Enable support for the Xdamage library</flag> |
61 |
+ <flag name="xfixes">Enable support for the Xfixes library</flag> |
62 |
+ <flag name="xrandr">Enable support for the X xrandr extension</flag> |
63 |
+ <flag name="xtrap">Enable support for the XTrap library</flag> |
64 |
+ </use> |
65 |
<upstream> |
66 |
<remote-id type="sourceforge">libvncserver</remote-id> |
67 |
<remote-id type="github">LibVNC/x11vnc</remote-id> |
68 |
|
69 |
diff --git a/x11-misc/x11vnc/x11vnc-0.9.16-r1.ebuild b/x11-misc/x11vnc/x11vnc-0.9.16-r1.ebuild |
70 |
new file mode 100644 |
71 |
index 00000000000..b34c657ccd3 |
72 |
--- /dev/null |
73 |
+++ b/x11-misc/x11vnc/x11vnc-0.9.16-r1.ebuild |
74 |
@@ -0,0 +1,75 @@ |
75 |
+# Copyright 1999-2019 Gentoo Authors |
76 |
+# Distributed under the terms of the GNU General Public License v2 |
77 |
+ |
78 |
+EAPI=6 |
79 |
+inherit autotools vcs-snapshot |
80 |
+ |
81 |
+DESCRIPTION="A VNC server for real X displays" |
82 |
+HOMEPAGE="https://libvnc.github.io/" |
83 |
+SRC_URI="https://github.com/LibVNC/x11vnc/archive/${PV}.tar.gz -> ${P}.tar.gz" |
84 |
+ |
85 |
+LICENSE="GPL-2" |
86 |
+SLOT="0" |
87 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" |
88 |
+IUSE="crypt fbcon libressl ssl +xcomposite +xdamage +xfixes xinerama +xrandr xtrap zeroconf" |
89 |
+ |
90 |
+COMMON_DEPEND=" |
91 |
+ >=net-libs/libvncserver-0.9.8[ssl?] |
92 |
+ x11-libs/libX11 |
93 |
+ x11-libs/libXcursor |
94 |
+ x11-libs/libXext |
95 |
+ >=x11-libs/libXtst-1.1.0 |
96 |
+ ssl? ( |
97 |
+ !libressl? ( dev-libs/openssl:0= ) |
98 |
+ libressl? ( dev-libs/libressl:= ) |
99 |
+ ) |
100 |
+ xcomposite? ( x11-libs/libXcomposite ) |
101 |
+ xdamage? ( x11-libs/libXdamage ) |
102 |
+ xfixes? ( x11-libs/libXfixes ) |
103 |
+ xinerama? ( x11-libs/libXinerama ) |
104 |
+ xrandr? ( x11-libs/libXrandr ) |
105 |
+ xtrap? ( x11-libs/libXTrap ) |
106 |
+ zeroconf? ( >=net-dns/avahi-0.6.4 ) |
107 |
+" |
108 |
+DEPEND="${COMMON_DEPEND} |
109 |
+ x11-base/xorg-proto |
110 |
+ x11-libs/libXt |
111 |
+" |
112 |
+# https://bugzilla.redhat.com/show_bug.cgi?id=920554 |
113 |
+RDEPEND="dev-lang/tk:0" |
114 |
+ |
115 |
+PATCHES=( |
116 |
+ # https://github.com/LibVNC/x11vnc/issues/86 |
117 |
+ "${FILESDIR}"/${P}-crypto.patch |
118 |
+) |
119 |
+ |
120 |
+src_prepare() { |
121 |
+ default |
122 |
+ eautoreconf |
123 |
+} |
124 |
+ |
125 |
+src_configure() { |
126 |
+ # --without-v4l because of missing video4linux 2.x support wrt #389079 |
127 |
+ econf \ |
128 |
+ --without-v4l \ |
129 |
+ --without-xkeyboard \ |
130 |
+ --without-fbpm \ |
131 |
+ --without-dpms \ |
132 |
+ $(use_with crypt) \ |
133 |
+ $(use_with fbcon fbdev) \ |
134 |
+ $(use_with ssl) \ |
135 |
+ $(use_with ssl crypto) \ |
136 |
+ $(use_with xcomposite) \ |
137 |
+ $(use_with xdamage) \ |
138 |
+ $(use_with xfixes) \ |
139 |
+ $(use_with xinerama) \ |
140 |
+ $(use_with xrandr) \ |
141 |
+ $(use_with xtrap) \ |
142 |
+ $(use_with zeroconf avahi) |
143 |
+} |
144 |
+ |
145 |
+src_install() { |
146 |
+ default |
147 |
+ newinitd "${FILESDIR}/x11vnc.init.d" x11vnc |
148 |
+ newconfd "${FILESDIR}/x11vnc.conf.d" x11vnc |
149 |
+} |