From 78e14573ac53ab1970de544303efd0e61bfcc6eb Mon Sep 17 00:00:00 2001 From: Paper Date: Wed, 8 Jul 2020 11:16:15 +0200 Subject: [PATCH] New package: catatonit-0.1.5 --- .../patches/fix-undeclared-identifier.patch | 12 +++++++++++ srcpkgs/catatonit/template | 21 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 srcpkgs/catatonit/patches/fix-undeclared-identifier.patch create mode 100644 srcpkgs/catatonit/template diff --git a/srcpkgs/catatonit/patches/fix-undeclared-identifier.patch b/srcpkgs/catatonit/patches/fix-undeclared-identifier.patch new file mode 100644 index 00000000000..641e91db6c8 --- /dev/null +++ b/srcpkgs/catatonit/patches/fix-undeclared-identifier.patch @@ -0,0 +1,12 @@ +taken from alpine +--- catatonit.c ++++ catatonit.c +@@ -34,6 +34,8 @@ + + #include "config.h" + ++extern char **__environ; ++ + static enum loglevel_t { + LOG_FATAL = 0, + LOG_ERROR = 1, diff --git a/srcpkgs/catatonit/template b/srcpkgs/catatonit/template new file mode 100644 index 00000000000..ce32000819e --- /dev/null +++ b/srcpkgs/catatonit/template @@ -0,0 +1,21 @@ +# Template file for 'catatonit' +pkgname=catatonit +version=0.1.5 +revision=1 +build_style=gnu-configure +hostmakedepends="libtool automake" +short_desc="Container init that is so simple it's effectively brain-dead" +maintainer="Paper " +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 +} + +post_install() { + mkdir -p "${DESTDIR}/usr/libexec/podman" + ln -sf ../../bin/catatonit "${DESTDIR}/usr/libexec/podman/catatonit" +}