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.

74 lines
1.9 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=runc
  3. PKG_VERSION:=1.0.0-rc10
  4. PKG_RELEASE:=2
  5. PKG_LICENSE:=Apache-2.0
  6. PKG_LICENSE_FILES:=LICENSE
  7. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  8. PKG_SOURCE_URL:=https://codeload.github.com/opencontainers/runc/tar.gz/v${PKG_VERSION}?
  9. PKG_HASH:=6b44985023347fb9c5a2cc6f761df8c41cc2c84a7a68a6e6acf834dff6653a9a
  10. PKG_SOURCE_VERSION:=dc9208a3303feef5b3839f4323d9beb36df0a9dd
  11. PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
  12. PKG_BUILD_DEPENDS:=golang/host
  13. PKG_BUILD_PARALLEL:=1
  14. PKG_INSTALL:=1
  15. PKG_USE_MIPS16:=0
  16. GO_PKG:=github.com/opencontainers/runc
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../../lang/golang/golang-package.mk
  19. define Package/runc/config
  20. config RUNC_SECCOMP
  21. depends on PACKAGE_runc
  22. bool "Enable support for seccomp in runc"
  23. default DOCKER_SECCOMP
  24. select KERNEL_SECCOMP
  25. select PACKAGE_libseccomp
  26. help
  27. Build runc with support for seccomp filters.
  28. Select libseccomp which also pulls-in the needed kernel features.
  29. endef
  30. define Package/runc
  31. SECTION:=utils
  32. CATEGORY:=Utilities
  33. TITLE:=runc container runtime
  34. URL:=https://www.opencontainers.org/
  35. DEPENDS:=$(GO_ARCH_DEPENDS) @(aarch64||arm||x86_64) +RUNC_SECCOMP:libseccomp
  36. MENU:=1
  37. endef
  38. define Package/runc/description
  39. runc is a CLI tool for spawning and running containers according to the OCI specification.
  40. endef
  41. GO_PKG_INSTALL_ALL:=1
  42. MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
  43. MAKE_VARS += $(GO_PKG_VARS)
  44. MAKE_FLAGS += COMMIT=$(PKG_SOURCE_VERSION)
  45. ifeq ($(ARCH),mips)
  46. MAKE_FLAGS += EXTRA_FLAGS='-buildmode=default'
  47. endif
  48. ifeq ($(CONFIG_RUNC_SECCOMP),y)
  49. MAKE_FLAGS += BUILDTAGS='seccomp'
  50. else
  51. MAKE_FLAGS += BUILDTAGS=''
  52. endif
  53. # Reset golang-package.mk overrides so we can use the Makefile
  54. Build/Compile=$(call Build/Compile/Default)
  55. define Package/runc/install
  56. $(INSTALL_DIR) $(1)/usr/sbin/
  57. $(INSTALL_BIN) $(GO_PKG_BUILD_DIR)/src/$(GO_PKG)/runc $(1)/usr/sbin/
  58. endef
  59. $(eval $(call BuildPackage,runc))