You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=tini
  3. PKG_VERSION:=0.18.0
  4. PKG_RELEASE:=1
  5. PKG_LICENSE:=MIT
  6. PKG_LICENSE_FILES:=LICENSE
  7. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  8. PKG_SOURCE_URL:=https://codeload.github.com/krallin/tini/tar.gz/v${PKG_VERSION}?
  9. PKG_HASH:=1097675352d6317b547e73f9dc7c6839fd0bb0d96dafc2e5c95506bb324049a2
  10. PKG_SOURCE_VERSION:=fec3683b971d9c3ef73f284f176672c44b448662
  11. PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
  12. CMAKE_INSTALL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/cmake.mk
  15. define Package/tini
  16. SECTION:=utils
  17. CATEGORY:=Utilities
  18. TITLE:=simplest init utility
  19. URL:=https://github.com/krallin/tini
  20. DEPENDS:=
  21. endef
  22. define Package/tini/description
  23. A tiny but valid init process for containers.
  24. endef
  25. # static version seemes to be effected by https://www.openwall.com/lists/musl/2018/07/18/8 so we use the workaround
  26. TARGET_CFLAGS += -Wl,--build-id
  27. define Package/tini/install
  28. $(INSTALL_DIR) $(1)/usr/bin
  29. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tini-static $(1)/usr/bin/docker-init
  30. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tini $(1)/usr/bin/
  31. endef
  32. $(eval $(call BuildPackage,tini))