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.

64 lines
1.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=runc
  3. PKG_VERSION:=1.0.0-rc93
  4. PKG_RELEASE:=1
  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:=e42456078d2f76c925cdd656e4f423b918525d8188521de05e893b6bb473a6f8
  10. PKG_SOURCE_VERSION:=12644e614e25b05da6fd08a38ffa0cfe1903fdec
  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
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=runc container runtime
  23. URL:=https://www.opencontainers.org/
  24. DEPENDS:=$(GO_ARCH_DEPENDS) +KERNEL_SECCOMP_FILTER:libseccomp
  25. endef
  26. define Package/runc/description
  27. runc is a CLI tool for spawning and running containers according to the OCI specification.
  28. endef
  29. GO_PKG_INSTALL_ALL:=1
  30. MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
  31. MAKE_VARS += $(GO_PKG_VARS)
  32. MAKE_FLAGS += COMMIT=$(PKG_SOURCE_VERSION)
  33. ifeq ($(ARCH),mips)
  34. MAKE_FLAGS += EXTRA_FLAGS='-buildmode=default'
  35. endif
  36. BUILDTAGS:=
  37. ifeq ($(CONFIG_KERNEL_SECCOMP_FILTER),y)
  38. BUILDTAGS += seccomp
  39. endif
  40. ifeq ($(CONFIG_SELINUX),y)
  41. BUILDTAGS += selinux
  42. endif
  43. MAKE_FLAGS += BUILDTAGS='$(BUILDTAGS)'
  44. # Reset golang-package.mk overrides so we can use the Makefile
  45. Build/Compile=$(call Build/Compile/Default)
  46. define Package/runc/install
  47. $(INSTALL_DIR) $(1)/usr/sbin/
  48. $(INSTALL_BIN) $(GO_PKG_BUILD_DIR)/src/$(GO_PKG)/runc $(1)/usr/sbin/
  49. endef
  50. $(eval $(call BuildPackage,runc))