mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
commit
caeedfc05d
1
sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-0.1.0.ebuild
vendored
Symbolic link
1
sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-0.1.0.ebuild
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
locksmith-9999.ebuild
|
39
sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-9999.ebuild
vendored
Normal file
39
sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/locksmith-9999.ebuild
vendored
Normal 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
|
||||||
|
}
|
@ -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
|
||||||
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user