aboutsummaryrefslogtreecommitdiff
path: root/utils/tini
diff options
context:
space:
mode:
authorGerard Ryan <G.M0N3Y.2503@gmail.com>2019-07-04 21:53:10 +1000
committerYousong Zhou <yszhou4tech@gmail.com>2019-07-20 19:43:35 +0800
commit466132831fbece257532098ef00b85775688c556 (patch)
tree071d3d02d1aeb52c942b179734ee9bd821ec50a5 /utils/tini
parent5caa181b1782799ff86b242f49bed66c996d749c (diff)
tini: Added tini init utility
Signed-off-by: Gerard Ryan <G.M0N3Y.2503@gmail.com>
Diffstat (limited to 'utils/tini')
-rw-r--r--utils/tini/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/utils/tini/Makefile b/utils/tini/Makefile
new file mode 100644
index 000000000..28abe8211
--- /dev/null
+++ b/utils/tini/Makefile
@@ -0,0 +1,43 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=tini
+PKG_VERSION:=0.18.0
+PKG_RELEASE:=1
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/krallin/tini/tar.gz/v${PKG_VERSION}?
+PKG_HASH:=1097675352d6317b547e73f9dc7c6839fd0bb0d96dafc2e5c95506bb324049a2
+PKG_SOURCE_VERSION:=fec3683b971d9c3ef73f284f176672c44b448662
+
+PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
+
+CMAKE_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/tini
+ SECTION:=utils
+ CATEGORY:=Utilities
+ TITLE:=simplest init utility
+ URL:=https://github.com/krallin/tini
+ DEPENDS:=
+endef
+
+define Package/tini/description
+A tiny but valid init process for containers.
+endef
+
+# static version seemes to be effected by https://www.openwall.com/lists/musl/2018/07/18/8 so we use the workaround
+TARGET_CFLAGS += -Wl,--build-id
+
+define Package/tini/install
+ $(INSTALL_DIR) $(1)/usr/bin
+
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tini-static $(1)/usr/bin/docker-init
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tini $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,tini))