--- /dev/null
+# ChangeLog for net-misc/chrome-remote-desktop
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/chrome-remote-desktop/ChangeLog,v 1.1 2015/01/06 20:15:37 vapier Exp $
+
+*chrome-remote-desktop-40.0.2214.44 (06 Jan 2015)
+
+ 06 Jan 2015; Mike Frysinger <vapier@gentoo.org>
+ +chrome-remote-desktop-40.0.2214.44.ebuild,
+ +files/chrome-remote-desktop.conf.d, +files/chrome-remote-desktop.rc,
+ +metadata.xml:
+ Initial ebuild.
--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX chrome-remote-desktop.conf.d 374 SHA256 9eddab8def60886b47885a94c25b6bf4c9932d4f245d5a54976aef1177044176 SHA512 ac6bcb41acef3c4cad31e22fa08034a953882c326f76e0102984ffa3650f99b39a410ec70008a0d67262feadbe4e4f4fa8068f41893673a20f6c96becbc32894 WHIRLPOOL cfbb9b54f6c22c15b1241213ede871de1a36ddbc95a2e07b9a4bc5f84c4e75845ae9951834382c84cb0d39b661a61aca5af11af5d99a4c1168d6ec9e6cd778e0
+AUX chrome-remote-desktop.rc 1696 SHA256 c58ae3677d12e7069608dffb8caf3c6f74ccb00305b4f1aa2969bd86f9c1bae7 SHA512 ad454d1755fb51202bb10ba428f5e31773829c166f57131f39b741c50985b4720e1269d7376558df7fd89a9fd7f284d580411d30eb63cfcae8507403f29d015a WHIRLPOOL 4c35e73d6349435b591ee8a028ffd6d11fe446eeda64e0f71898012efb882ab00af26bb6a40dffd5bc81329c2e3bec33eb0188ebc0c36b160a1e942fc828cd93
+DIST chrome-remote-desktop_40.0.2214.44_amd64.deb 14745924 SHA256 ad808f914e7929d98ec030a13749139f51fc58a8372cd95eb893cf98f4c7d0d8 SHA512 eeeda7c30e38d8af4e02e7462db0abcf21a3d04410eba82b880f2752b43dcdc970ae835d9fba4f5c7484537394d935e33503eb6e9338475d708a88f9a22058f9 WHIRLPOOL 85d88bc3f417e16a8144eb3c6210c7800c7007d1c92464665c60ac9cd49fb126e887f703000d4e761770ac26029f9a685e49687ff6f2b96a0bb1ffd5d2aa42b1
+DIST chrome-remote-desktop_40.0.2214.44_i386.deb 15490864 SHA256 97e9acefa7330f23f264ba56cc8ad8e9ac3bcdbb26c1a3219bf6203c8845b55e SHA512 56f82a2f051bec8bd365307d91f61c15bbf8dbfc21b0ad26a3be994ccfea028eef7fd83e0ce1bcea25a53a109f33a9a9ab962cb1ffc71075d068d48b4dede43f WHIRLPOOL 56848354bcb8789912548174bc8d1b9a9b2145a9167ca695eb19af84f39226e9729d00db7a00e3e5241a6b181b349e4098d411686e77e5c7e1d73a7eab0497a3
+EBUILD chrome-remote-desktop-40.0.2214.44.ebuild 3566 SHA256 5be255a38afd76c843f51dc80fc7749a65bb5f8e00541c1a4cccf03bae7b5902 SHA512 f4f51ff983da12438c902170728b9b3d615737534de27f30f2398a897d9aa7d80d85860abeb6ced5b76d64b362b453c9035eaac9f8398892d90bd0e13efe25e6 WHIRLPOOL f46dcd68c0faaff266d2f577985199a77fc2a095b1a3cfadd316498f364c2836a8f8ec59d276f0811b3565e77de2b81b186d1e76e8879f974606ad56f115b2c6
+MISC ChangeLog 487 SHA256 64f991faa3f54af37afc90721a71fa8fcdf41e1452311c8881e9f45301c4062f SHA512 a3cf7d725207ea705d821f9aa401f762b311af1e8fbcac3c5908563c48286c1861056ca11ed5bc924ab0e81b4edae8d3d0b766b87e54fbd9e57f0eeaaf07ee29 WHIRLPOOL 4725a3eb3a3c4a088c10975d34355920a16c2b6fcb15cef721d3fba436a781934f8dfacc79c3b6654169371d115ee7daaebf66d7c77408c5836cc76a9dd7f148
+MISC metadata.xml 200 SHA256 eb63f2affd0b8e3f5149df2f2f964910eb2127b650919a9e7892fae011e2b22b SHA512 da94c752d3f451652f15c0c459caa079e1d11f37278f86da057ed915ba167688ea62ec62c3c6406200fa951f8f495e9dd782d0e12f9e315187ba4de305f13a1d WHIRLPOOL 80bd517227281caf99e291cd59cd6e5deec972d693473727c7dcd6195450ea9dca63a151e52111c7c2456831f19113008ec60a5c1a66cc3b24f8b17c74e2c373
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQIcBAEBCAAGBQJUrEJuAAoJEPGu1DbS6WIA3aUP/RL+GtnD+daW8coWHHN2rOgY
+9/mikbygWIBSJRt6B7y7vVFBUcQ/UaJjBpDhq56HfdDhyIax+ekDAKDLTsRi++K2
+iHgGZ+pWJJw0MXHpY4udAegJBQ4k/b4MIKJrLiV6D9gs86k32eBaFOpIPQ+sYkLK
+oHcWUmVkJF8zhXM25o5KEu7Q4EAgK3+/gSiWH9zhZ02aq5dqLNiN/NE3DZW2ekoW
+MAYGAVUxZOKTIX2BZUmEilVygWk6Iby3DjtcZKwHcAodciiMjAd2gNR1/1wlotnK
+FUmimDSBNeUBmgsBOLODnQKo/82TQgPRrNbGreIRlBBVA/GG5rDV31xIazcPDx6c
+5mD2LdFQvX7U2fXqY63wQrkr8BkeeRhn+L0Ob2aj1v+ytTCjl3prunBRLYYI5f57
+dSwtnMFk7iQ+cVNEDGtquoRnK0CAgzs4C7hX7famInVOls8f+oXKCVlX6II393BO
+AmJwpvAFaAO/Elvx1c56hFyJbMyp5P6uSulZRXoubDdHwQ2y/43h+S2BM6B6TIT9
+qbEc28iujBh/f3MZpKMEgd0jr9fs6yxfbLCoBaaUkmmOx5/zW0SQkc66YbgP6IOH
+Z1VFozvGqOX1R3TrdnKS3Rg9YlipO9wcYOSryx5cZIEsMt53Y0o++slw0utaka/Z
+TZRYU9gqWSpgZecc+SLC
+=hGUo
+-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/chrome-remote-desktop/chrome-remote-desktop-40.0.2214.44.ebuild,v 1.1 2015/01/06 20:15:37 vapier Exp $
+
+# Base URL: https://dl.google.com/linux/chrome-remote-desktop/deb/
+# Fetch the Release file:
+# https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/Release
+# Which gives you the Packages file:
+# https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-i386/Packages
+# https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-amd64/Packages
+# And finally gives you the file name:
+# pool/main/c/chrome-remote-desktop/chrome-remote-desktop_29.0.1547.32_amd64.deb
+#
+# Use curl to find the answer:
+# curl -q https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-i386/Packages | grep ^Filename
+
+EAPI="4"
+
+inherit unpacker
+
+DESCRIPTION="access remote computers via Chrome!"
+PLUGIN_URL="https://chrome.google.com/remotedesktop"
+HOMEPAGE="https://support.google.com/chrome/answer/1649523 ${PLUGIN_URL}"
+BASE_URI="https://dl.google.com/linux/chrome-remote-desktop/deb/pool/main/c/${PN}/${PN}_${PV}"
+SRC_URI="amd64? ( ${BASE_URI}_amd64.deb )
+ x86? ( ${BASE_URI}_i386.deb )"
+
+LICENSE="google-chrome"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+# All the libs this package links against.
+RDEPEND="app-admin/sudo
+ dev-lang/python
+ >=dev-libs/expat-2
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ dev-python/psutil
+ gnome-base/gconf:2
+ media-libs/fontconfig
+ media-libs/freetype:2
+ sys-devel/gcc
+ sys-libs/glibc
+ sys-libs/pam
+ x11-libs/cairo
+ x11-libs/gtk+:2
+ x11-libs/libX11
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ x11-libs/pango"
+# Settings we just need at runtime.
+RDEPEND+="
+ x11-base/xorg-server[xvfb]"
+DEPEND=""
+
+S=${WORKDIR}
+
+QA_PREBUILT="/opt/google/chrome-remote-desktop/*"
+
+src_install() {
+ insinto /etc
+ doins -r etc/opt
+
+ insinto /opt
+ doins -r opt/google
+ chmod a+rx "${ED}"/opt/google/${PN}/* || die
+
+ dodir /etc/pam.d
+ dosym system-remote-login /etc/pam.d/${PN}
+
+ dodoc usr/share/doc/${PN}/changelog*
+
+ newinitd "${FILESDIR}"/${PN}.rc ${PN}
+ newconfd "${FILESDIR}"/${PN}.conf.d ${PN}
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then
+ elog "Two ways to launch the server:"
+ elog "(1) access an existing desktop"
+ elog " (a) install the Chrome plugin on the server & client:"
+ elog " ${PLUGIN_URL}"
+ elog " (b) on the server, run the Chrome plugin & enable remote access"
+ elog " (c) on the client, connect to the server"
+ elog "(2) headless system"
+ elog " (a) install the Chrome plugin on the client:"
+ elog " ${PLUGIN_URL}"
+ 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"
+ elog " (c) run the command mentioned on the server"
+ elog " (d) on the client, connect to the server"
+ elog
+ elog "Configuration settings you might want to be aware of:"
+ elog " ~/.${PN}-session - shell script to start your session"
+ elog " /etc/init.d/${PN} - script to auto-restart server"
+ fi
+}
--- /dev/null
+# /etc/conf.d/chrome-remote-desktop: config file for /etc/init.d/chrome-remote-desktop
+
+# List of users to start Chrome Remote Desktop for.
+CHROME_REMOTING_USERS=''
+
+# Default resolutions to make available to the session.
+#CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES='1600x1200,3840x1600'
+
+# Directory to use for storing log files.
+#CHROME_REMOTE_DESKTOP_LOG_DIR='/var/log'
--- /dev/null
+#!/sbin/runscript
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/chrome-remote-desktop/files/chrome-remote-desktop.rc,v 1.1 2015/01/06 20:15:37 vapier Exp $
+
+extra_started_commands="checkconfig reload"
+
+CRD=/opt/google/chrome-remote-desktop/chrome-remote-desktop
+
+depend() {
+ need net
+ use logger
+}
+
+checkconfig() {
+ local ret=0
+ if [ -z "${CHROME_REMOTING_USERS}" ] ; then
+ eerror "You must set CHROME_REMOTING_USERS in /etc/conf.d/${SVCNAME} first"
+ ret=1
+ else
+ local user
+ for user in ${CHROME_REMOTING_USERS} ; do
+ if ! id "${user}" >/dev/null ; then
+ eerror "Invalid user found in CHROME_REMOTING_USERS: ${user}"
+ ret=1
+ fi
+ done
+ fi
+ return ${ret}
+}
+
+for_users() {
+ local user ret msg log
+ msg=$1; shift
+
+ set -- -- "$@"
+ [ "${CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES+set}" = "set" ] \
+ && set -- -e CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES="${CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES}" "$@"
+ : ${CHROME_REMOTE_DESKTOP_LOG_DIR:=/var/log}
+
+ for user in ${CHROME_REMOTING_USERS} ; do
+ ebegin "${msg} ${SVCNAME} for ${user}"
+
+ log="${CHROME_REMOTE_DESKTOP_LOG_DIR}/${SVCNAME}.${user}.log"
+ checkpath -f -m 0600 -o "${user}" "${log}"
+
+ # We need to background the app as it won't fork until the network
+ # (including DNS) is available.
+ start-stop-daemon \
+ -b \
+ -u "${user}" \
+ -x "${CRD}" \
+ -e "CHROME_REMOTE_DESKTOP_LOG_FILE=${log}" \
+ "$@"
+ eend $?
+ : $(( ret += $? ))
+ done
+
+ return ${ret}
+}
+
+start() {
+ checkconfig || return
+ for_users Starting --start
+}
+
+stop() {
+ for_users Stopping --stop
+}
+
+reload() {
+ for_users Reloading --reload
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>vapier@gentoo.org</email>
+</maintainer>
+</pkgmetadata>