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