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: Fri, 05 Jan 2018 16:15:15
Message-Id: 1515168885.9ccc108ae89ad9704f9d878af7aacfbb8713f6fd.vapier@gentoo
1 commit: 9ccc108ae89ad9704f9d878af7aacfbb8713f6fd
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 5 16:08:14 2018 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 5 16:14:45 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ccc108a
7
8 net-misc/chrome-remote-desktop: version bump to 63.0.3239.17
9
10 net-misc/chrome-remote-desktop/Manifest | 1 +
11 .../chrome-remote-desktop-63.0.3239.17.ebuild | 122 +++++++++++++++++++++
12 2 files changed, 123 insertions(+)
13
14 diff --git a/net-misc/chrome-remote-desktop/Manifest b/net-misc/chrome-remote-desktop/Manifest
15 index 41b671b6822..4be0b9d9c9a 100644
16 --- a/net-misc/chrome-remote-desktop/Manifest
17 +++ b/net-misc/chrome-remote-desktop/Manifest
18 @@ -2,3 +2,4 @@ DIST chrome-remote-desktop_49.0.2623.40_amd64.deb 20315570 BLAKE2B 03725450590fa
19 DIST chrome-remote-desktop_49.0.2623.40_i386.deb 20941574 BLAKE2B 7f86e734fdc9c95f8820912aa075d4be805896f4f045ba39fb1fedc9ba6e3b576d71ce67692f683009ff005c2c248ed067ef4980906ae9e158c107aa96b58470 SHA512 00cf6641ee993fb8c295ca99cb57cde42eb3dd6cc34ae4684f858279615695d5b1a257081e8988293f94e887986492e112bc0276f572cd592d9879dec88eace8
20 DIST chrome-remote-desktop_55.0.2883.50_amd64.deb 21636452 BLAKE2B 34ec5d7d5f01610161613921b685166be1f8c78eb8fdece45ea66fb83e05784adb33750fc9612cf77fd6a7b9c0bea8568c784d5b0ecd518e3f60ae2154295407 SHA512 3e140407d6e34caed18f3280d2136ea924ba7c9fc0159cde4981927be9c0bd090c58581ed01b3a99b8a796211500ff1588a847d5d3273ec814d9fb10285a97f8
21 DIST chrome-remote-desktop_57.0.2987.37_amd64.deb 15677362 BLAKE2B aa92ef2a6c89043ff7e1a39c186edc57dabd9b5a629391aa0603f51b527131a94cea501a9929a5cacd951b8204959ed93203b81bdadf677af5d937774d110f69 SHA512 df470d9f69545dd2793b5d97674bb8724f5ad3dfad05b4d5572b01a21443d79e6776fb72ca14044d7ee00660b7d040023c9716e2568551e2862bdfd3cff99d88
22 +DIST chrome-remote-desktop_63.0.3239.17_amd64.deb 19026074 BLAKE2B 9a62d317768d6c0ab3cf3c6e7c5dea074133cc7c5d2b04ffdc1e0f9877f5f606c044ebab7b230914eba2ade51d2805fb1267f7b1731fa36235495a8192eb3c48 SHA512 2843deb7817217c8b8e41931b1e9ef0fdfb40c6a4ceb1bc69499aed16cc729d7ed64f88200c9bb2366a768f294a164da2360ed2b9654d1626696bcf0403e347a
23
24 diff --git a/net-misc/chrome-remote-desktop/chrome-remote-desktop-63.0.3239.17.ebuild b/net-misc/chrome-remote-desktop/chrome-remote-desktop-63.0.3239.17.ebuild
25 new file mode 100644
26 index 00000000000..16151ff33c6
27 --- /dev/null
28 +++ b/net-misc/chrome-remote-desktop/chrome-remote-desktop-63.0.3239.17.ebuild
29 @@ -0,0 +1,122 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +# Base URL: https://dl.google.com/linux/chrome-remote-desktop/deb/
34 +# Fetch the Release file:
35 +# https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/Release
36 +# Which gives you the Packages file:
37 +# https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-i386/Packages
38 +# https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-amd64/Packages
39 +# And finally gives you the file name:
40 +# pool/main/c/chrome-remote-desktop/chrome-remote-desktop_29.0.1547.32_amd64.deb
41 +#
42 +# Use curl to find the answer:
43 +# curl -q https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-amd64/Packages | grep ^Filename
44 +
45 +EAPI="5"
46 +
47 +PYTHON_COMPAT=( python2_7 )
48 +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"
49 +
50 +inherit unpacker eutils python-single-r1 l10n
51 +
52 +DESCRIPTION="access remote computers via Chrome!"
53 +PLUGIN_URL="https://chrome.google.com/remotedesktop"
54 +HOMEPAGE="https://support.google.com/chrome/answer/1649523 ${PLUGIN_URL}"
55 +BASE_URI="https://dl.google.com/linux/chrome-remote-desktop/deb/pool/main/c/${PN}/${PN}_${PV}"
56 +SRC_URI="amd64? ( ${BASE_URI}_amd64.deb )"
57 +
58 +LICENSE="google-chrome"
59 +SLOT="0"
60 +KEYWORDS="-* ~amd64"
61 +IUSE=""
62 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
63 +
64 +# All the libs this package links against.
65 +RDEPEND="app-admin/sudo
66 + ${PYTHON_DEPS}
67 + >=dev-libs/expat-2
68 + dev-libs/glib:2
69 + dev-libs/nspr
70 + dev-libs/nss
71 + dev-python/psutil
72 + gnome-base/gconf:2
73 + media-libs/fontconfig
74 + media-libs/freetype:2
75 + sys-devel/gcc
76 + sys-libs/glibc
77 + sys-libs/pam
78 + x11-libs/cairo
79 + x11-libs/gtk+:2
80 + x11-libs/libX11
81 + x11-libs/libXdamage
82 + x11-libs/libXext
83 + x11-libs/libXfixes
84 + x11-libs/libXi
85 + x11-libs/libXrandr
86 + x11-libs/libXtst
87 + x11-libs/pango"
88 +# Settings we just need at runtime.
89 +# TODO: Look at switching to xf86-video-dummy & xf86-input-void instead of xvfb.
90 +RDEPEND+="
91 + x11-base/xorg-server[xvfb]"
92 +DEPEND=""
93 +
94 +S=${WORKDIR}
95 +
96 +QA_PREBUILT="/opt/google/chrome-remote-desktop/*"
97 +
98 +src_prepare() {
99 + epatch "${FILESDIR}"/${PN}-44.0.2403.44-always-sudo.patch #541708
100 + cd opt/google/chrome-remote-desktop
101 + python_fix_shebang chrome-remote-desktop
102 +
103 + cd remoting_locales
104 + rm fake-bidi* || die
105 + PLOCALES=${PLOCALES//_/-} l10n_find_plocales_changes "${PWD}" '' '.pak'
106 +}
107 +
108 +src_install() {
109 + pushd opt/google/chrome-remote-desktop/remoting_locales >/dev/null || die
110 + rm_pak() { local l=${1//_/-}; rm "${l}.pak" "${l}.pak.info"; }
111 + l10n_for_each_disabled_locale_do rm_pak
112 + popd >/dev/null
113 +
114 + insinto /etc
115 + doins -r etc/opt
116 +
117 + insinto /opt
118 + doins -r opt/google
119 + chmod a+rx "${ED}"/opt/google/${PN}/* || die
120 + fperms +s /opt/google/${PN}/user-session
121 +
122 + dodir /etc/pam.d
123 + dosym system-remote-login /etc/pam.d/${PN}
124 +
125 + dodoc usr/share/doc/${PN}/changelog*
126 +
127 + newinitd "${FILESDIR}"/${PN}.rc ${PN}
128 + newconfd "${FILESDIR}"/${PN}.conf.d ${PN}
129 +}
130 +
131 +pkg_postinst() {
132 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
133 + elog "Two ways to launch the server:"
134 + elog "(1) access an existing desktop"
135 + elog " (a) install the Chrome plugin on the server & client:"
136 + elog " ${PLUGIN_URL}"
137 + elog " (b) on the server, run the Chrome plugin & enable remote access"
138 + elog " (c) on the client, connect to the server"
139 + elog "(2) headless system"
140 + elog " (a) install the Chrome plugin on the client:"
141 + elog " ${PLUGIN_URL}"
142 + elog " (b) run ${EPREFIX}opt/google/chrome-remote-desktop/start-host --help to get the auth URL"
143 + elog " (c) when it redirects you to a blank page, look at the URL for a code=XXX field"
144 + elog " (d) run start-host again, and past the code when asked for an authorization code"
145 + elog " (e) on the client, connect to the server"
146 + elog
147 + elog "Configuration settings you might want to be aware of:"
148 + elog " ~/.${PN}-session - shell script to start your session"
149 + elog " /etc/init.d/${PN} - script to auto-restart server"
150 + fi
151 +}