app-containers/catatonit: Sync with Gentoo

It's from Gentoo commit 4b4ba23921db9ceaf475d879df63e7b6523362ef.
This commit is contained in:
Krzesimir Nowak 2024-07-04 12:16:09 +02:00 committed by Mathieu Tortuyaux
parent 1f6bf4634b
commit 07528063cf
No known key found for this signature in database
GPG Key ID: AC5CCFB52545D9B8

View File

@ -0,0 +1,31 @@
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="A container init that is so simple it's effectively brain-dead"
HOMEPAGE="https://github.com/openSUSE/catatonit"
if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/openSUSE/catatonit.git"
else
SRC_URI="https://github.com/openSUSE/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
fi
LICENSE="GPL-2+"
SLOT="0"
src_prepare() {
default
eautoreconf
}
src_install() {
default
dodir /usr/libexec/podman
dosym -r /usr/bin/"${PN}" /usr/libexec/podman/"${PN}"
}