blob: 0980fed20a65b75b1862dcfce71d173033f9ab6b [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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/apk-cache .gn"
PLATFORM_NATIVE_TEST="yes"
PLATFORM_SUBDIR="arc/apk-cache"
inherit cros-workon platform
DESCRIPTION="Maintains APK cache in ARC."
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/arc/apk-cache"
LICENSE="BSD-Google"
KEYWORDS="~*"
IUSE="+seccomp"
RDEPEND="
chromeos-base/minijail
"
src_install() {
insinto /etc/init
doins init/apk-cache-cleaner.conf
# Install seccomp policy file.
insinto /usr/share/policy
use seccomp && newins \
"seccomp/apk-cache-cleaner-seccomp-${ARCH}.policy" \
apk-cache-cleaner-seccomp.policy
dosbin "${OUT}/apk-cache-cleaner"
dosbin apk-cache-cleaner-jailed
}
platform_pkg_test() {
platform_test "run" "${OUT}/apk-cache-cleaner_testrunner"
}