crun.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ################################################################################
  2. #
  3. # crun
  4. #
  5. ################################################################################
  6. CRUN_VERSION = 1.12
  7. CRUN_SITE = https://github.com/containers/crun/releases/download/$(CRUN_VERSION)
  8. CRUN_DEPENDENCIES = host-pkgconf yajl
  9. CRUN_LICENSE = GPL-2.0+ (crun binary), LGPL-2.1+ (libcrun)
  10. CRUN_LICENSE_FILES = COPYING COPYING.libcrun
  11. CRUN_CPE_ID_VALID = YES
  12. CRUN_AUTORECONF = YES
  13. CRUN_CONF_OPTS = --disable-embedded-yajl
  14. ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
  15. CRUN_DEPENDENCIES += argp-standalone
  16. endif
  17. ifeq ($(BR2_PACKAGE_LIBCAP),y)
  18. CRUN_DEPENDENCIES += libcap
  19. CRUN_CONF_OPTS += --enable-caps
  20. else
  21. CRUN_CONF_OPTS += --disable-caps
  22. endif
  23. ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
  24. CRUN_DEPENDENCIES += libgcrypt
  25. endif
  26. ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
  27. CRUN_DEPENDENCIES += libseccomp
  28. CRUN_CONF_OPTS += --enable-seccomp
  29. else
  30. CRUN_CONF_OPTS += --disable-seccomp
  31. endif
  32. ifeq ($(BR2_PACKAGE_SYSTEMD),y)
  33. CRUN_CONF_OPTS += --enable-systemd
  34. CRUN_DEPENDENCIES += systemd host-pkgconf
  35. else
  36. CRUN_CONF_OPTS += --disable-systemd
  37. endif
  38. ifeq ($(BR2_PACKAGE_RUNC),)
  39. define CRUN_CREATE_SYMLINK
  40. ln -sf crun $(TARGET_DIR)/usr/bin/runc
  41. endef
  42. CRUN_POST_INSTALL_TARGET_HOOKS += CRUN_CREATE_SYMLINK
  43. endif
  44. $(eval $(autotools-package))