blob: 9894b9b25602cefaecd633d219d0482c4f5aef5e [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_COMMIT="0c814ece11a50512bd229dc0ddcec46c698519d0"
CROS_WORKON_TREE=("cf397e9600a0b2d153f579c58419577cfca75ab7" "4ac2033b6d4876a06f56e8571ef008373961bbd1" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb")
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
dev-db/sqlite:=
"
DEPEND="
dev-db/sqlite:=
"
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"
dobin "${OUT}/apk-cache-ctl"
dosbin apk-cache-cleaner-jailed
}
platform_pkg_test() {
platform_test "run" "${OUT}/apk-cache-cleaner_testrunner"
platform_test "run" "${OUT}/apk-cache-ctl_testrunner"
}