Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/chrome-remote-desktop/
Date: Sat, 14 Sep 2019 07:11:49
Message-Id: 1568445055.0a624f99940760e3feab56bd429c252a7801768d.vapier@gentoo
1 commit: 0a624f99940760e3feab56bd429c252a7801768d
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 14 07:08:53 2019 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 14 07:10:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a624f99
7
8 net-misc/chrome-remote-desktop: version bump to 77.0.3865.32
9
10 Closes: https://bugs.gentoo.org/675352
11 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
12
13 net-misc/chrome-remote-desktop/Manifest | 1 +
14 .../chrome-remote-desktop-77.0.3865.32.ebuild | 136 +++++++++++++++++++++
15 2 files changed, 137 insertions(+)
16
17 diff --git a/net-misc/chrome-remote-desktop/Manifest b/net-misc/chrome-remote-desktop/Manifest
18 index c84053c0bfd..ace541f20a6 100644
19 --- a/net-misc/chrome-remote-desktop/Manifest
20 +++ b/net-misc/chrome-remote-desktop/Manifest
21 @@ -1 +1,2 @@
22 DIST chrome-remote-desktop_63.0.3239.17_amd64.deb 19026074 BLAKE2B 9a62d317768d6c0ab3cf3c6e7c5dea074133cc7c5d2b04ffdc1e0f9877f5f606c044ebab7b230914eba2ade51d2805fb1267f7b1731fa36235495a8192eb3c48 SHA512 2843deb7817217c8b8e41931b1e9ef0fdfb40c6a4ceb1bc69499aed16cc729d7ed64f88200c9bb2366a768f294a164da2360ed2b9654d1626696bcf0403e347a
23 +DIST chrome-remote-desktop_77.0.3865.32_amd64.deb 35724698 BLAKE2B 25828e144d88072fde7a7e50cd278df1a90b94e0281038239d67e2369eaf93e82897cbda4624cffe34f045b185437a892671541eeb685b80a912733380e3afb8 SHA512 1181592536b9313ca136ce280c8349e3d7325b2bfa116714adc4fcb4d4b4f8659cb53cba134d2476b696fa73f55eefbc0a255f6cc76fb1a93eecfff42eb1d425
24
25 diff --git a/net-misc/chrome-remote-desktop/chrome-remote-desktop-77.0.3865.32.ebuild b/net-misc/chrome-remote-desktop/chrome-remote-desktop-77.0.3865.32.ebuild
26 new file mode 100644
27 index 00000000000..8703e9d55eb
28 --- /dev/null
29 +++ b/net-misc/chrome-remote-desktop/chrome-remote-desktop-77.0.3865.32.ebuild
30 @@ -0,0 +1,136 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +# Base URL: https://dl.google.com/linux/chrome-remote-desktop/deb/
35 +# Fetch the Release file:
36 +# https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/Release
37 +# Which gives you the Packages file:
38 +# https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-i386/Packages
39 +# https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-amd64/Packages
40 +# And finally gives you the file name:
41 +# pool/main/c/chrome-remote-desktop/chrome-remote-desktop_29.0.1547.32_amd64.deb
42 +#
43 +# Use curl to find the answer:
44 +# curl -q https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-amd64/Packages | grep ^Filename
45 +
46 +EAPI="6"
47 +
48 +PYTHON_COMPAT=( python2_7 )
49 +PLOCALES="am ar bg bn ca cs da de el en_GB en es_419 es et fa fil fi fr gu he hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv sw ta te th tr uk vi zh_CN zh_TW"
50 +
51 +inherit unpacker eutils python-single-r1 l10n
52 +
53 +DESCRIPTION="access remote computers via Chrome!"
54 +PLUGIN_URL="https://chrome.google.com/remotedesktop"
55 +HOMEPAGE="https://support.google.com/chrome/answer/1649523 ${PLUGIN_URL}"
56 +BASE_URI="https://dl.google.com/linux/chrome-remote-desktop/deb/pool/main/c/${PN}/${PN}_${PV}"
57 +SRC_URI="amd64? ( ${BASE_URI}_amd64.deb )"
58 +
59 +LICENSE="google-chrome"
60 +SLOT="0"
61 +KEYWORDS="-* ~amd64"
62 +IUSE="xrandr"
63 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
64 +
65 +# All the libs this package links against.
66 +RDEPEND="app-admin/sudo
67 + ${PYTHON_DEPS}
68 + >=dev-libs/expat-2
69 + dev-libs/glib:2
70 + dev-libs/nspr
71 + dev-libs/nss
72 + dev-python/psutil
73 + gnome-base/gconf:2
74 + media-libs/fontconfig
75 + media-libs/freetype:2
76 + sys-devel/gcc
77 + sys-libs/glibc
78 + sys-libs/pam
79 + x11-apps/xdpyinfo
80 + x11-apps/setxkbmap
81 + x11-libs/cairo
82 + x11-libs/gtk+:2
83 + x11-libs/libX11
84 + x11-libs/libXdamage
85 + x11-libs/libXext
86 + x11-libs/libXfixes
87 + x11-libs/libXi
88 + x11-libs/libXrandr
89 + x11-libs/libXtst
90 + x11-libs/pango"
91 +# Settings we just need at runtime.
92 +# TODO: Look at switching to xf86-video-dummy & xf86-input-void instead of xvfb.
93 +# - The env var (CHROME_REMOTE_DESKTOP_USE_XORG) seems to be stripped before being checked.
94 +# - The Xorg invocation uses absolute paths with -logfile & -config which are rejected.
95 +# - The config takes over the active display in addition to starting up a virtual one.
96 +RDEPEND+="
97 + xrandr? ( x11-apps/xrandr )
98 + x11-base/xorg-server[xvfb]"
99 +DEPEND=""
100 +
101 +S=${WORKDIR}
102 +
103 +QA_PREBUILT="/opt/google/chrome-remote-desktop/*"
104 +
105 +PATCHES=(
106 + "${FILESDIR}"/${PN}-44.0.2403.44-always-sudo.patch #541708
107 +)
108 +
109 +src_prepare() {
110 + default
111 +
112 + gunzip usr/share/doc/${PN}/*.gz || die
113 +
114 + cd opt/google/chrome-remote-desktop
115 + python_fix_shebang chrome-remote-desktop
116 +
117 + cd remoting_locales
118 + rm fake-bidi* || die
119 + PLOCALES=${PLOCALES//_/-} l10n_find_plocales_changes "${PWD}" '' '.pak'
120 +}
121 +
122 +src_install() {
123 + pushd opt/google/chrome-remote-desktop/remoting_locales >/dev/null || die
124 + rm_pak() { local l=${1//_/-}; rm "${l}.pak" "${l}.pak.info"; }
125 + l10n_for_each_disabled_locale_do rm_pak
126 + popd >/dev/null
127 +
128 + insinto /etc
129 + doins -r etc/opt
130 + dosym ../opt/chrome/native-messaging-hosts /etc/chromium/native-messaging-hosts #581754
131 +
132 + insinto /opt
133 + doins -r opt/google
134 + chmod a+rx "${ED}"/opt/google/${PN}/* || die
135 + fperms +s /opt/google/${PN}/user-session
136 +
137 + dodir /etc/pam.d
138 + dosym system-remote-login /etc/pam.d/${PN}
139 +
140 + dodoc usr/share/doc/${PN}/changelog*
141 +
142 + newinitd "${FILESDIR}"/${PN}.rc ${PN}
143 + newconfd "${FILESDIR}"/${PN}.conf.d ${PN}
144 +}
145 +
146 +pkg_postinst() {
147 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
148 + elog "Two ways to launch the server:"
149 + elog "(1) access an existing desktop"
150 + elog " (a) install the Chrome plugin on the server & client:"
151 + elog " ${PLUGIN_URL}"
152 + elog " (b) on the server, run the Chrome plugin & enable remote access"
153 + elog " (c) on the client, connect to the server"
154 + elog "(2) headless system"
155 + elog " (a) install the Chrome plugin on the client:"
156 + elog " ${PLUGIN_URL}"
157 + elog " (b) run ${EPREFIX}opt/google/chrome-remote-desktop/start-host --help to get the auth URL"
158 + elog " (c) when it redirects you to a blank page, look at the URL for a code=XXX field"
159 + elog " (d) run start-host again, and past the code when asked for an authorization code"
160 + elog " (e) on the client, connect to the server"
161 + elog
162 + elog "Configuration settings you might want to be aware of:"
163 + elog " ~/.${PN}-session - shell script to start your session"
164 + elog " /etc/init.d/${PN} - script to auto-restart server"
165 + fi
166 +}