Merge pull request #571 from philips/locksmith

add locksmith
This commit is contained in:
Brandon Philips 2014-05-01 16:45:17 -07:00
commit caeedfc05d
6 changed files with 45 additions and 9 deletions

View File

@ -0,0 +1 @@
locksmith-9999.ebuild

View File

@ -0,0 +1,39 @@
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_PROJECT="coreos/locksmith"
CROS_WORKON_LOCALNAME="locksmith"
CROS_WORKON_REPO="git://github.com"
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64"
else
CROS_WORKON_COMMIT="46fa8a4362f1fcab6459a2103291558811a3a619"
KEYWORDS="amd64"
fi
inherit cros-workon systemd
DESCRIPTION="locksmith"
HOMEPAGE="https://github.com/coreos/locksmith"
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
DEPEND=">=dev-lang/go-1.2"
src_compile() {
./build || die
}
src_install() {
dobin ${S}/bin/locksmithctl
dodir /usr/lib/locksmith
dosym ../../../bin/locksmithctl /usr/lib/locksmith/locksmithd
systemd_dounit "${S}"/systemd/locksmithd.service
systemd_enable_service multi-user.target locksmithd.service
}

View File

@ -99,6 +99,7 @@ RDEPEND="${RDEPEND}
sys-apps/findutils sys-apps/findutils
sys-apps/which sys-apps/which
app-admin/fleet app-admin/fleet
app-admin/locksmith
app-admin/sudo app-admin/sudo
app-admin/toolbox app-admin/toolbox
app-arch/gzip app-arch/gzip

View File

@ -8,7 +8,7 @@ CROS_WORKON_REPO="git://github.com"
if [[ "${PV}" == 9999 ]]; then if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64 ~arm ~x86" KEYWORDS="~amd64 ~arm ~x86"
else else
CROS_WORKON_COMMIT="a6f122f3893a957301231a5250c59f04e94d35c9" CROS_WORKON_COMMIT="1513ebd611c79ba06500c31275e0bee3b01644a6"
KEYWORDS="amd64 arm x86" KEYWORDS="amd64 arm x86"
fi fi
@ -81,7 +81,6 @@ src_test() {
src_install() { src_install() {
dosbin update_engine dosbin update_engine
dosbin systemd/update_engine_reboot_manager
dosbin systemd/update_engine_stub dosbin systemd/update_engine_stub
dobin update_engine_client dobin update_engine_client
@ -96,22 +95,18 @@ src_install() {
use delta_generator && dobin delta_generator use delta_generator && dobin delta_generator
systemd_dounit systemd/update-engine.service systemd_dounit systemd/update-engine.service
systemd_dounit systemd/update-engine-reboot-manager.service
systemd_dounit systemd/update-engine-stub.service systemd_dounit systemd/update-engine-stub.service
systemd_dounit systemd/update-engine-stub.timer systemd_dounit systemd/update-engine-stub.timer
systemd_enable_service multi-user.target update-engine.service systemd_enable_service multi-user.target update-engine.service
systemd_enable_service multi-user.target update-engine-stub.timer systemd_enable_service multi-user.target update-engine-stub.timer
insinto /usr/share/dbus-1/services insinto /usr/share/dbus-1/services
doins org.chromium.UpdateEngine.service doins com.coreos.update1.service
insinto /usr/share/dbus-1/system.d insinto /usr/share/dbus-1/system.d
doins UpdateEngine.conf doins com.coreos.update1.conf
# Install rule to remove old UpdateEngine.conf from /etc # Install rule to remove old UpdateEngine.conf from /etc
systemd_dotmpfilesd "${FILESDIR}"/update-engine.conf systemd_dotmpfilesd "${FILESDIR}"/update-engine.conf
insinto /usr/include/chromeos/update_engine
doins update_engine.dbusserver.h
doins update_engine.dbusclient.h
} }