blob: 9c2f73880627a1e42bb0886cd459e27f31c41dbc [file] [log] [blame]
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EAPI=5
DESCRIPTION="CoreOS Toolbox Utility"
HOMEPAGE="https://github.com/coreos/toolbox"
EGIT_REPO_URI="https://cos.googlesource.com/third_party/toolbox.git"
EGIT_COMMIT="7b4c0d34cf56f99d5287d939e96f786e2e1421a7"
EGIT_MASTER="main"
inherit eutils git-2 systemd
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="*"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND} app-misc/jq"
src_install() {
dobin "${S}"/toolbox
systemd_dounit "${FILESDIR}"/var-lib-toolbox.mount
systemd_dounit "${FILESDIR}"/var-lib-toolbox-remount.service
systemd_enable_service local-fs.target var-lib-toolbox.mount
}