blob: 5d326355d59b0718979d2f82892c5bb02a4a0988 [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_COMMIT="5dbceea5e91932e855404807d551d73894580735"
CROS_WORKON_TREE=("0295472676671915bab943e84d561ed834ea7622" "7fafcfc79cd0eb3ea5edd2506e4a0c4a2668d48c")
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
}