From f430165d61f949c957a93f5740c8a4b983ead9a0 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Mon, 22 Dec 2025 16:11:29 +0000 Subject: [PATCH] app-admin/sdnotify-proxy: Migrate versioned ebuild away from git eclass Signed-off-by: James Le Cuirot --- .../app-admin/sdnotify-proxy/Manifest | 1 + .../app-admin/sdnotify-proxy/metadata.xml | 3 +++ .../sdnotify-proxy/sdnotify-proxy-9999.ebuild | 26 +++++++++---------- 3 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/Manifest diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/Manifest b/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/Manifest new file mode 100644 index 0000000000..6a4bdedb49 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/Manifest @@ -0,0 +1 @@ +DIST sdnotify-proxy-0f8ef1aa86c59fc6d54eadaffb248feaccd1018b.tar.gz 7698 BLAKE2B 5abaac2c9fca1736bd093534714e1a17d4c49f4ae2f7bf1a0dcbbc07d493d9253714383d20b15f76dd2507babc4baea27201d262dec0df5aff280f60d050c8c2 SHA512 55940b2f528cbff05932164d5f246482ebd4aca24d913a4bcc9bc076ea4c4a8014b51440c593040f3b79cb138e18b8c4a2856929750dc690f36b4b79b4c5fc9c diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/metadata.xml b/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/metadata.xml index 097975e3ad..e06fb5b0e0 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/metadata.xml +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/metadata.xml @@ -1,4 +1,7 @@ + + flatcar/sdnotify-proxy + diff --git a/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/sdnotify-proxy-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/sdnotify-proxy-9999.ebuild index a97b6a0e1a..62f974af01 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/sdnotify-proxy-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-admin/sdnotify-proxy/sdnotify-proxy-9999.ebuild @@ -1,29 +1,29 @@ # 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/sdnotify-proxy.git" +EAPI=8 + COREOS_GO_PACKAGE="github.com/flatcar/sdnotify-proxy" COREOS_GO_GO111MODULE="off" -inherit coreos-go git-r3 +inherit coreos-go -if [[ "${PV}" == 9999 ]]; then - KEYWORDS="~amd64 ~arm64" +DESCRIPTION="Hack to allow Docker containers to use sd_notify" +HOMEPAGE="https://github.com/flatcar/sdnotify-proxy" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://github.com/flatcar/sdnotify-proxy.git" + inherit git-r3 else - EGIT_COMMIT="0f8ef1aa86c59fc6d54eadaffb248feaccd1018b" # main + EGIT_VERSION="0f8ef1aa86c59fc6d54eadaffb248feaccd1018b" # main + SRC_URI="https://github.com/flatcar/sdnotify-proxy/archive/${EGIT_VERSION}.tar.gz -> ${PN}-${EGIT_VERSION}.tar.gz" + S="${WORKDIR}/${PN}-${EGIT_VERSION}" KEYWORDS="amd64 arm64" fi -DESCRIPTION="sdnotify-proxy" -HOMEPAGE="https://github.com/flatcar/sdnotify-proxy" -SRC_URI="" - LICENSE="Apache-2.0" SLOT="0" -IUSE="" src_install() { - # Put sdnotify-proxy into its well-know location. exeinto /usr/libexec - doexe ${GOBIN}/sdnotify-proxy + doexe "${GOBIN}"/sdnotify-proxy }