blob: e6e0a0ba09ce35649b529c2008ddc1971f2a3448 [file] [log] [blame] [edit]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EAPI=5
inherit systemd
DESCRIPTION="Initialization for various cloud network services"
HOMEPAGE=""
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND="net-misc/curl"
S=${WORKDIR}
src_install() {
exeinto /usr/share/google/
newexe "${FILESDIR}/get_cloud_api_domains" get_cloud_api_domains
newexe "${FILESDIR}/gcr_wait_online.sh" gcr_wait_online.sh
systemd_dounit "${FILESDIR}"/gcr-wait-online.service
systemd_dounit "${FILESDIR}"/gcr-online.target
systemd_dounit "${FILESDIR}"/get-cloud-api-domains.service
systemd_enable_service gcr-online.target gcr-wait-online.service
systemd_enable_service gcr-online.target get-cloud-api-domains.service
}