mirror of
https://github.com/flatcar/scripts.git
synced 2026-02-08 17:21:39 +01:00
app-admin/locksmith: Migrate versioned ebuild away from git eclass
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
parent
dd0079be98
commit
1c2cf9329d
1
sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/Manifest
vendored
Normal file
1
sdk_container/src/third_party/coreos-overlay/app-admin/locksmith/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST locksmith-a1cb1f901971165827d68188e9f60752c0e33c10.tar.gz 239087 BLAKE2B f37e5cfcdad269f10b5c6f6f37365719f3a86cbe70ecf1c207e0e88129671b5d122170299eed5829a0b18ff1edd3d3e3f452efca207e819d646a4538c1820706 SHA512 79fe435d3efdaca7fec442701338b9dcc50b261e65d9628a3a0b69001f6bfadf4b4bf85f52d6025d4c3b04283b870423f23318bd275030032a34f5d9a82d1389
|
||||
@ -1,35 +1,35 @@
|
||||
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EGIT_REPO_URI="https://github.com/flatcar/locksmith.git"
|
||||
COREOS_GO_PACKAGE="github.com/flatcar/locksmith"
|
||||
inherit git-r3 systemd coreos-go
|
||||
EAPI=8
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
COREOS_GO_PACKAGE="github.com/flatcar/locksmith"
|
||||
inherit systemd coreos-go
|
||||
|
||||
DESCRIPTION="Reboot manager for the Flatcar update engine"
|
||||
HOMEPAGE="https://github.com/flatcar/locksmith"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://github.com/flatcar/locksmith.git"
|
||||
inherit git-r3
|
||||
else
|
||||
EGIT_COMMIT="ee644fc60a32af5fbc4e83c64fcc7ca0eadb9e3f" # flatcar-master
|
||||
EGIT_VERSION="a1cb1f901971165827d68188e9f60752c0e33c10" # flatcar-master
|
||||
SRC_URI="https://github.com/flatcar/locksmith/archive/${EGIT_VERSION}.tar.gz -> ${PN}-${EGIT_VERSION}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${EGIT_VERSION}"
|
||||
KEYWORDS="amd64 arm64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="locksmith"
|
||||
HOMEPAGE="https://github.com/flatcar/locksmith"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
COREOS_GO_MOD=vendor go_build "${COREOS_GO_PACKAGE}/locksmithctl"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${GOBIN}/locksmithctl
|
||||
dodir /usr/lib/locksmith
|
||||
dobin "${GOBIN}"/locksmithctl
|
||||
dosym ../../../bin/locksmithctl /usr/lib/locksmith/locksmithd
|
||||
|
||||
systemd_dounit "${S}"/systemd/locksmithd.service
|
||||
systemd_dounit systemd/locksmithd.service
|
||||
systemd_enable_service multi-user.target locksmithd.service
|
||||
}
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<upstream>
|
||||
<remote-id type="github">flatcar/locksmith</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user