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: Wed, 22 Jun 2022 14:30:13
Message-Id: 1655908198.8959dcb179202320432306ace748dc828a6f8f2f.vapier@gentoo
1 commit: 8959dcb179202320432306ace748dc828a6f8f2f
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 22 14:23:56 2022 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 22 14:29:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8959dcb1
7
8 net-misc/chrome-remote-desktop: version bump to 103.0.5060.46 #845345
9
10 Closes: https://bugs.gentoo.org/845345
11 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
12
13 net-misc/chrome-remote-desktop/Manifest | 1 +
14 .../chrome-remote-desktop-103.0.5060.46.ebuild | 144 +++++++++++++++++++++
15 2 files changed, 145 insertions(+)
16
17 diff --git a/net-misc/chrome-remote-desktop/Manifest b/net-misc/chrome-remote-desktop/Manifest
18 index d7024ac1184f..1231114de2f9 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_103.0.5060.46_amd64.deb 18955612 BLAKE2B 048bd46e19f61a15f9c114608677c1ba41aa256be471d8f6925c98e806fc362ae2833dcf843b271ec6409f2cd2be6182be7d82c2f3170f866c3f6aecc29323b7 SHA512 a78aa8cb50c1aaa5db2393a5cc1de09b98d5edae16a257f3f654e488f0383844c9eeeb6a2fc8d645e32f07a0dc3b05ec45143a4cc792576743b4a2db2cb6bd0f
23 DIST chrome-remote-desktop_99.0.4844.11_amd64.deb 16817980 BLAKE2B 4784fb597722ee8abe3d073c7c2a0c1d1e9796e5c6df9935a2b5d2c4d6ee3629738c0bbfd6528a45b85b95ee192b5760b5137b7d89bd543d5c43d56fd9a030bb SHA512 71c621d1484f80b07b04637b1472baa1072b726109f9786ceabb1393bc1ebd3fe90c546d695871924a3a243840c87e35de78ff07598fbe6f3fe9fcb22b335b65
24
25 diff --git a/net-misc/chrome-remote-desktop/chrome-remote-desktop-103.0.5060.46.ebuild b/net-misc/chrome-remote-desktop/chrome-remote-desktop-103.0.5060.46.ebuild
26 new file mode 100644
27 index 000000000000..489accba4990
28 --- /dev/null
29 +++ b/net-misc/chrome-remote-desktop/chrome-remote-desktop-103.0.5060.46.ebuild
30 @@ -0,0 +1,144 @@
31 +# Copyright 1999-2022 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="7"
47 +
48 +PYTHON_COMPAT=( python3_{8,9,10} )
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 python-single-r1 optfeature plocale
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
56 + https://chrome.google.com/remotedesktop"
57 +BASE_URI="https://dl.google.com/linux/chrome-remote-desktop/deb/pool/main/c/${PN}/${PN}_${PV}"
58 +SRC_URI="amd64? ( ${BASE_URI}_amd64.deb )"
59 +
60 +LICENSE="google-chrome"
61 +SLOT="0"
62 +KEYWORDS="-* ~amd64"
63 +IUSE=""
64 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
65 +RESTRICT="bindist mirror"
66 +
67 +# Packages we execute, but don't link.
68 +RDEPEND="app-admin/sudo
69 + ${PYTHON_DEPS}"
70 +# All the libs this package links against.
71 +RDEPEND+="
72 + >=dev-libs/expat-2
73 + dev-libs/glib:2
74 + dev-libs/nspr
75 + dev-libs/nss
76 + $(python_gen_cond_dep 'dev-python/psutil[${PYTHON_USEDEP}]')
77 + gnome-base/gconf:2
78 + media-libs/fontconfig
79 + media-libs/freetype:2
80 + sys-apps/dbus
81 + sys-devel/gcc
82 + sys-libs/glibc
83 + sys-libs/pam
84 + x11-apps/xdpyinfo
85 + x11-apps/setxkbmap
86 + x11-libs/cairo
87 + x11-libs/gtk+:3
88 + x11-libs/libX11
89 + x11-libs/libxcb
90 + x11-libs/libXdamage
91 + x11-libs/libXext
92 + x11-libs/libXfixes
93 + x11-libs/libxkbcommon
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 + x11-base/xorg-server[xvfb]"
104 +DEPEND="$(unpacker_src_uri_depends)"
105 +
106 +S=${WORKDIR}
107 +
108 +QA_PREBUILT="/opt/google/chrome-remote-desktop/*"
109 +
110 +PATCHES=(
111 + "${FILESDIR}"/${PN}-91.0.4472.10-always-sudo.patch #541708
112 +)
113 +
114 +src_prepare() {
115 + default
116 +
117 + gunzip usr/share/doc/${PN}/*.gz || die
118 +
119 + cd opt/google/chrome-remote-desktop
120 + python_fix_shebang chrome-remote-desktop
121 +
122 + cd remoting_locales
123 + # These isn't always included.
124 + rm -f fake-bidi* || die
125 + PLOCALES=${PLOCALES//_/-} plocale_find_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 + plocale_for_each_disabled_locale 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 + optfeature "Dynamic resolution changes" "x11-apps/xrandr"
154 +
155 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
156 + elog "Two ways to launch the server:"
157 + elog "(1) access an existing desktop"
158 + elog " (a) install the Chrome plugin on the server & client:"
159 + elog " ${PLUGIN_URL}"
160 + elog " (b) on the server, run the Chrome plugin & enable remote access"
161 + elog " (c) on the client, connect to the server"
162 + elog "(2) headless system"
163 + elog " (a) install the Chrome plugin on the client:"
164 + elog " ${PLUGIN_URL}"
165 + elog " (b) run ${EPREFIX}/opt/google/chrome-remote-desktop/start-host --help to get the auth URL"
166 + elog " (c) when it redirects you to a blank page, look at the URL for a code=XXX field"
167 + elog " (d) run start-host again, and past the code when asked for an authorization code"
168 + elog " (e) on the client, connect to the server"
169 + elog
170 + elog "Configuration settings you might want to be aware of:"
171 + elog " ~/.${PN}-session - shell script to start your session"
172 + elog " /etc/init.d/${PN} - script to auto-restart server"
173 + fi
174 +}