| # Copyright 2018 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="5" |
| |
| CROS_WORKON_COMMIT="207b9c95e801b90f6616962cb928bec371aed39f" |
| CROS_WORKON_TREE=("17f4a6efa079886fb3e23fd256264f932d59721d" "f35ea8c6e26973b6efdec41e7091dfdf71a56c80") |
| 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/removable-media" |
| |
| inherit cros-workon |
| |
| DESCRIPTION="Container to run Android's removable-media daemon." |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/arc/removable-media" |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="*" |
| |
| RDEPEND="chromeos-base/mount-passthrough |
| !<chromeos-base/chromeos-cheets-scripts-0.0.2-r470 |
| " |
| |
| CONTAINER_DIR="/opt/google/containers/arc-removable-media" |
| |
| src_install() { |
| insinto /etc/init |
| doins arc/removable-media/arc-removable-media.conf |
| |
| # Keep the parent directory of mountpoints inaccessible from non-root |
| # users because mountpoints themselves are often world-readable but we |
| # do not want to expose them. |
| # container-root is where the root filesystem of the container in which |
| # arc-obb-mounter daemon runs is mounted. |
| diropts --mode=0700 --owner=root --group=root |
| keepdir "${CONTAINER_DIR}/mountpoints/" |
| keepdir "${CONTAINER_DIR}/mountpoints/container-root" |
| } |