5b074ef1f3
cpe:2.3🅰️tini_project:tini is a valid CPE identifier for this package: https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe%3A2.3%3Aa%3Atini_project%3Atini Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
39 lines
945 B
Makefile
39 lines
945 B
Makefile
################################################################################
|
|
#
|
|
# tini
|
|
#
|
|
################################################################################
|
|
|
|
TINI_VERSION = 0.19.0
|
|
TINI_SITE = $(call github,krallin,tini,v$(TINI_VERSION))
|
|
TINI_LICENSE = MIT
|
|
TINI_LICENSE_FILES = LICENSE
|
|
TINI_CPE_ID_VENDOR = tini_project
|
|
|
|
TINI_CFLAGS = $(TARGET_CFLAGS) \
|
|
-static \
|
|
-DTINI_VERSION=\"$(TINI_VERSION)\" \
|
|
-DTINI_GIT=\"\"
|
|
|
|
ifeq ($(BR2_PACKAGE_TINI_MINIMAL),y)
|
|
TINI_CFLAGS += -DTINI_MINIMAL
|
|
endif
|
|
|
|
define TINI_CONFIGURE_CMDS
|
|
printf "#pragma once\n" > $(@D)/src/tiniConfig.h
|
|
endef
|
|
|
|
define TINI_BUILD_CMDS
|
|
mkdir -p $(@D)/bin
|
|
$(TARGET_CC) $(TINI_CFLAGS) \
|
|
-o $(@D)/bin/tini $(@D)/src/tini.c
|
|
endef
|
|
|
|
define TINI_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/bin/tini $(TARGET_DIR)/usr/bin/tini
|
|
ln -sf tini $(TARGET_DIR)/usr/bin/docker-init
|
|
endef
|
|
|
|
# Tini's CMakeLists.txt is not suitable for Buildroot.
|
|
$(eval $(generic-package))
|