blob: d0348d34abb6246cd89d844764e9765d927780a1 [file] [log] [blame]
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_SUBTREE="common-mk arc/network"
PLATFORM_SUBDIR="arc/network"
PLATFORM_GYP_FILE="arc-network.gyp"
inherit cros-workon libchrome platform user
DESCRIPTION="ARC connectivity management daemon"
HOMEPAGE="http://www.chromium.org/"
LICENSE="BSD-Google"
SLOT=0
KEYWORDS="~*"
COMMON_DEPEND="
chromeos-base/libbrillo
dev-libs/protobuf
net-libs/libndp
"
RDEPEND="${COMMON_DEPEND}"
DEPEND="
${COMMON_DEPEND}
chromeos-base/shill-client
chromeos-base/system_api
"
src_install() {
# Main binary.
dobin "${OUT}"/arc-networkd
insinto /etc/init
doins "${S}"/init/arc-network.conf
doins "${S}"/init/bridge.conf
}
pkg_preinst() {
# Service account used for privilege separation.
enewuser arc-networkd
enewgroup arc-networkd
}