mpc: update to 0.35
[feed/packages.git] / utils / tini / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=tini
4 PKG_VERSION:=0.19.0
5 PKG_RELEASE:=2
6
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:=0fd35a7030052acd9f58948d1d900fe1e432ee37103c5561554408bdac6bbf0d
10 PKG_SOURCE_VERSION:=de40ad007797e0dcd8b7126f27bb87401d224240
11 TINI_COMMIT:=de40ad0
12
13 PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
14 PKG_LICENSE:=MIT
15 PKG_LICENSE_FILES:=LICENSE
16 PKG_CPE_ID:=cpe:/a:tini_project:tini
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/cmake.mk
20
21 define Package/tini
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=simplest init utility
25 URL:=https://github.com/krallin/tini
26 DEPENDS:=
27 endef
28
29 define Package/tini/description
30 A tiny but valid init process for containers.
31 endef
32
33 CMAKE_OPTIONS += -DTINI_VERSION_GIT='$(TINI_COMMIT)'
34 TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lc -lgcc_eh)
35
36 define Package/tini/install
37 $(INSTALL_DIR) $(1)/usr/bin
38
39 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tini-static $(1)/usr/bin/docker-init
40 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tini $(1)/usr/bin/
41 endef
42
43 $(eval $(call BuildPackage,tini))