/[gentoo-x86]/net-misc/chrome-remote-desktop/chrome-remote-desktop-40.0.2214.44.ebuild
Gentoo

Contents of /net-misc/chrome-remote-desktop/chrome-remote-desktop-40.0.2214.44.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jan 6 20:15:37 2015 UTC (4 years, 11 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Initial ebuild.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 # Base URL: https://dl.google.com/linux/chrome-remote-desktop/deb/
6 # Fetch the Release file:
7 # https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/Release
8 # Which gives you the Packages file:
9 # https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-i386/Packages
10 # https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-amd64/Packages
11 # And finally gives you the file name:
12 # pool/main/c/chrome-remote-desktop/chrome-remote-desktop_29.0.1547.32_amd64.deb
13 #
14 # Use curl to find the answer:
15 # curl -q https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-i386/Packages | grep ^Filename
16
17 EAPI="4"
18
19 inherit unpacker
20
21 DESCRIPTION="access remote computers via Chrome!"
22 PLUGIN_URL="https://chrome.google.com/remotedesktop"
23 HOMEPAGE="https://support.google.com/chrome/answer/1649523 ${PLUGIN_URL}"
24 BASE_URI="https://dl.google.com/linux/chrome-remote-desktop/deb/pool/main/c/${PN}/${PN}_${PV}"
25 SRC_URI="amd64? ( ${BASE_URI}_amd64.deb )
26 x86? ( ${BASE_URI}_i386.deb )"
27
28 LICENSE="google-chrome"
29 SLOT="0"
30 KEYWORDS="-* ~amd64 ~x86"
31 IUSE=""
32
33 # All the libs this package links against.
34 RDEPEND="app-admin/sudo
35 dev-lang/python
36 >=dev-libs/expat-2
37 dev-libs/glib:2
38 dev-libs/nspr
39 dev-libs/nss
40 dev-python/psutil
41 gnome-base/gconf:2
42 media-libs/fontconfig
43 media-libs/freetype:2
44 sys-devel/gcc
45 sys-libs/glibc
46 sys-libs/pam
47 x11-libs/cairo
48 x11-libs/gtk+:2
49 x11-libs/libX11
50 x11-libs/libXdamage
51 x11-libs/libXext
52 x11-libs/libXfixes
53 x11-libs/libXi
54 x11-libs/libXrandr
55 x11-libs/libXtst
56 x11-libs/pango"
57 # Settings we just need at runtime.
58 RDEPEND+="
59 x11-base/xorg-server[xvfb]"
60 DEPEND=""
61
62 S=${WORKDIR}
63
64 QA_PREBUILT="/opt/google/chrome-remote-desktop/*"
65
66 src_install() {
67 insinto /etc
68 doins -r etc/opt
69
70 insinto /opt
71 doins -r opt/google
72 chmod a+rx "${ED}"/opt/google/${PN}/* || die
73
74 dodir /etc/pam.d
75 dosym system-remote-login /etc/pam.d/${PN}
76
77 dodoc usr/share/doc/${PN}/changelog*
78
79 newinitd "${FILESDIR}"/${PN}.rc ${PN}
80 newconfd "${FILESDIR}"/${PN}.conf.d ${PN}
81 }
82
83 pkg_postinst() {
84 if [[ -z ${REPLACING_VERSIONS} ]] ; then
85 elog "Two ways to launch the server:"
86 elog "(1) access an existing desktop"
87 elog " (a) install the Chrome plugin on the server & client:"
88 elog " ${PLUGIN_URL}"
89 elog " (b) on the server, run the Chrome plugin & enable remote access"
90 elog " (c) on the client, connect to the server"
91 elog "(2) headless system"
92 elog " (a) install the Chrome plugin on the client:"
93 elog " ${PLUGIN_URL}"
94 elog " (b) visit https://accounts.google.com/o/oauth2/auth?response_type=code&scope=https://www.googleapis.com/auth/chromoting+https://www.googleapis.com/auth/googletalk+https://www.googleapis.com/auth/userinfo.email&access_type=offline&redirect_uri=https://chromoting-auth.googleplex.com/auth&approval_prompt=force&client_id=440925447803-avn2sj1kc099s0r7v62je5s339mu0am1.apps.googleusercontent.com&hl=en&from_login=1&as=-760f476eeaec11b8&pli=1&authuser=0"
95 elog " (c) run the command mentioned on the server"
96 elog " (d) on the client, connect to the server"
97 elog
98 elog "Configuration settings you might want to be aware of:"
99 elog " ~/.${PN}-session - shell script to start your session"
100 elog " /etc/init.d/${PN} - script to auto-restart server"
101 fi
102 }

  ViewVC Help
Powered by ViewVC 1.1.20