New package: catatonit-0.1.5

This commit is contained in:
Justin Bronder 2021-05-26 11:04:45 -04:00 committed by Michal Vasilek
parent fd8b99210e
commit c54cad6f67
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,29 @@
From 75014b1c3099245b7d0f44f24d7f6dc4888a45fd Mon Sep 17 00:00:00 2001
From: Andrey Golovizin <ag@sologoc.com>
Date: Mon, 1 Mar 2021 18:41:42 +0100
Subject: [PATCH] Use environ instead of __environ
The `__environ` variable is internal and undocumented. It also breaks
compilation with musl.
Signed-off-by: Andrey Golovizin <ag@sologoc.com>
---
catatonit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/catatonit.c b/catatonit.c
index a05451e..fd746bb 100644
--- a/catatonit.c
+++ b/catatonit.c
@@ -216,7 +216,7 @@ static int spawn_pid1(char *file, char **argv, sigset_t *sigmask)
if (sigprocmask(SIG_SETMASK, sigmask, NULL) < 0)
bail("failed to reset sigmask: %m");
- execvpe(file, argv, __environ);
+ execvpe(file, argv, environ);
bail("failed to exec pid1: %m");
}
--
2.31.1

View file

@ -0,0 +1,26 @@
# Template file for 'catatonit'
pkgname=catatonit
version=0.1.5
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Container init that is so simple it's effectively brain-dead"
maintainer="Justin Bronder <jsbronder@cold-front.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/openSUSE/catatonit"
distfiles="https://github.com/openSUSE/catatonit/releases/download/v${version}/catatonit.tar.xz"
checksum=4c45e2230235751731da3daabe130abce70b3ef37d0b1936cbc90a46b475cf08
pre_configure() {
autoreconf -fi
}
do_install() {
vmkdir usr/libexec/catatonit
vinstall catatonit 0755 usr/libexec/catatonit
# Following suit with Fedora/Ubuntu, podman-run will default to looking
# for catatonit here when passed the "--init" argument
vmkdir usr/libexec/podman
ln -sf ../catatonit/catatonit "${DESTDIR}/usr/libexec/podman"
}