2023-05-22 22:23:45 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# conmon
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-09-07 12:45:45 +02:00
|
|
|
CONMON_VERSION = 2.1.8
|
2023-05-22 22:23:45 +02:00
|
|
|
CONMON_SITE = $(call github,containers,conmon,v$(CONMON_VERSION))
|
|
|
|
CONMON_LICENSE = Apache-2.0
|
|
|
|
CONMON_LICENSE_FILES = LICENSE
|
|
|
|
|
|
|
|
CONMON_DEPENDENCIES = host-pkgconf libglib2
|
|
|
|
|
2023-11-01 16:43:49 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP)$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0):$(BR2_STATIC_LIBS),yy:)
|
2023-05-22 22:23:45 +02:00
|
|
|
CONMON_DISABLE_SECCOMP = 0
|
|
|
|
CONMON_DEPENDENCIES += libseccomp
|
|
|
|
else
|
|
|
|
CONMON_DISABLE_SECCOMP = 1
|
|
|
|
endif
|
|
|
|
|
|
|
|
define CONMON_CONFIGURE_CMDS
|
|
|
|
printf '#!/bin/bash\necho "$(CONMON_DISABLE_SECCOMP)"\n' > \
|
|
|
|
$(@D)/hack/seccomp-notify.sh
|
|
|
|
chmod +x $(@D)/hack/seccomp-notify.sh
|
|
|
|
endef
|
|
|
|
|
|
|
|
define CONMON_BUILD_CMDS
|
2024-03-03 11:06:26 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -std=c99" \
|
2023-05-22 22:23:45 +02:00
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D) bin/conmon
|
|
|
|
endef
|
|
|
|
|
|
|
|
define CONMON_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 755 $(@D)/bin/conmon $(TARGET_DIR)/usr/bin/conmon
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|