blob: 8256fb360fcd907d8423f30f2b4c48230a9826eb [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=6
CROS_WORKON_COMMIT="84bad8114e18bd7e75e57919eecc3f581a045ef6"
CROS_WORKON_TREE=("a9c9dfedee8947f546a02e996ac05ea263acfaa1" "0a7d0f2b1046b49ee4c954b2eb26658a190f70af" "3910570f9e104c20bf39b9fa15f28c30ae8c208b" "dc1506ef7c8cfd2c5ffd1809dac05596ec18773c")
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_INCREMENTAL_BUILD=1
# TODO(dverkamp): shill should be removed once https://crbug.com/809389 is fixed.
CROS_WORKON_SUBTREE="common-mk portier shill .gn"
PLATFORM_SUBDIR="portier"
inherit cros-workon platform user
DESCRIPTION="ND Proxy Service for Chrome OS"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/portier"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND="
chromeos-base/libbrillo
"
DEPEND="
${RDEPEND}
>=chromeos-base/system_api-0.0.1-r3259
chromeos-base/shill
"
platform_pkg_test() {
local tests=(
portier_test
)
local test_bin
for test_bin in "${tests[@]}"; do
platform_test "run" "${OUT}/${test_bin}"
done
}
src_install() {
dobin "${OUT}"/portier_cli
dobin "${OUT}"/portierd
}