Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DIST locksmith-a1cb1f901971165827d68188e9f60752c0e33c10.tar.gz 239087 BLAKE2B f37e5cfcdad269f10b5c6f6f37365719f3a86cbe70ecf1c207e0e88129671b5d122170299eed5829a0b18ff1edd3d3e3f452efca207e819d646a4538c1820706 SHA512 79fe435d3efdaca7fec442701338b9dcc50b261e65d9628a3a0b69001f6bfadf4b4bf85f52d6025d4c3b04283b870423f23318bd275030032a34f5d9a82d1389
DIST locksmith-6ea5e7c73bb83cf6c013ff191cc0646e08cb3240.tar.gz 1230613 BLAKE2B bd4cac290f0634c3528c9b3c2da953fdd54f8b6fa5fe8b5013805e91d35f585bdc67c630685f705a31fc62a465ba9413b88d8100db851bb0a621c6d170f662b8 SHA512 dd621123897b9a78dbc2f9316ede4a966a3948ff6a825cf2d474f81459e180a6acfa6e4d9a4e29c6b882b80e1574eb12a15dfbf7dd0999c11384ab5a8f4c46cf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2

# Can't use EAPI=9 - systemd.eclass does not support it yet.
EAPI=8

COREOS_GO_PACKAGE="github.com/flatcar/locksmith"
inherit systemd coreos-go
inherit systemd go-module
Comment thread
Copilot marked this conversation as resolved.

DESCRIPTION="Reboot manager for the Flatcar update engine"
HOMEPAGE="https://github.com/flatcar/locksmith"
Expand All @@ -13,7 +13,7 @@ if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://github.com/flatcar/locksmith.git"
inherit git-r3
else
EGIT_VERSION="a1cb1f901971165827d68188e9f60752c0e33c10" # flatcar-master
EGIT_VERSION="6ea5e7c73bb83cf6c013ff191cc0646e08cb3240" # 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"
Expand All @@ -22,13 +22,15 @@ fi
LICENSE="Apache-2.0"
SLOT="0"

BDEPEND=">=dev-lang/go-1.26.0"

src_compile() {
COREOS_GO_MOD=vendor go_build "${COREOS_GO_PACKAGE}/locksmithctl"
go build -o bin/locksmithctl ./locksmithctl
}

src_install() {
dobin "${GOBIN}"/locksmithctl
dosym ../../../bin/locksmithctl /usr/lib/locksmith/locksmithd
dobin bin/locksmithctl
dosym -r /usr/bin/locksmithctl /usr/lib/locksmith/locksmithd

systemd_dounit systemd/locksmithd.service
systemd_enable_service multi-user.target locksmithd.service
Expand Down