diff options
author | Oskari Rauta <oskari.rauta@gmail.com> | 2022-03-07 09:42:31 +0200 |
---|---|---|
committer | Josef Schlehofer <pepe.schlehofer@gmail.com> | 2022-03-11 13:07:20 +0100 |
commit | 845083213f69aec6d19a87e76fc8e6f64e36f9a2 (patch) | |
tree | 18687546479712d6e1ad053aed4ed0678c5a8fdd /utils/catatonit | |
parent | 052ca5689042a24146e0a5080c47153e6b02856b (diff) |
catatonit: add new package
podman uses catatonit now for container init, so new package for
catatonit is required.
Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
Diffstat (limited to 'utils/catatonit')
-rw-r--r-- | utils/catatonit/Makefile | 43 | ||||
-rwxr-xr-x | utils/catatonit/test.sh | 7 |
2 files changed, 50 insertions, 0 deletions
diff --git a/utils/catatonit/Makefile b/utils/catatonit/Makefile new file mode 100644 index 000000000..ea20575f6 --- /dev/null +++ b/utils/catatonit/Makefile @@ -0,0 +1,43 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=catatonit +PKG_VERSION:=0.1.7 +PKG_RELEASE:=$(AUTORELEASE) + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/openSUSE/catatonit.git +PKG_SOURCE_DATE:=2022-03-07 +PKG_SOURCE_VERSION:=d8d72fea155c144ed3bf298a35a1aba5625a5656 +PKG_MIRROR_HASH:=5dfec105de2b1e674db55e12007aa66cf67769d38e3f294fbca54fc3e9b78674 + +PKG_BUILD_PARALLEL:=1 +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com> +PKG_LICENSE:=GPL-3.0-or-later +PKG_LICENSE_FILES:=COPYING + +include $(INCLUDE_DIR)/package.mk + +define Package/catatonit + SECTION:=utils + CATEGORY:=Utilities + TITLE:=A container init that is so simple it's effectively brain-dead. + URL:=https://github.com/openSUSE/catatonit + DEPENDS:= +endef + +define Package/catatonit/description + This is a rewrite of initrs in C, because we found that it is not + possible to statically compile Rust binaries without using musl. + That was, in turn, a reimplementation of other container inits like + tini and dumb-init. +endef + +define Package/catatonit/install + $(INSTALL_DIR) $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/catatonit $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,catatonit)) diff --git a/utils/catatonit/test.sh b/utils/catatonit/test.sh new file mode 100755 index 000000000..146522b4a --- /dev/null +++ b/utils/catatonit/test.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +case "$1" in + "catatonit") + test $(/usr/bin/catatonit -V | grep '^tini version' | wc -l) -gt 0 + ;; +esac |