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.

63 lines
1.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=runc
  3. PKG_VERSION:=1.1.1
  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:=11a34535c108b36fd59de58e7bef3a130444c9ea41e4b8bb8f8d4654c8ad654c
  10. PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
  11. PKG_BUILD_DEPENDS:=golang/host
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_INSTALL:=1
  14. PKG_USE_MIPS16:=0
  15. GO_PKG:=github.com/opencontainers/runc
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../lang/golang/golang-package.mk
  18. define Package/runc
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=runc container runtime
  22. URL:=https://www.opencontainers.org/
  23. DEPENDS:=$(GO_ARCH_DEPENDS) +KERNEL_SECCOMP_FILTER:libseccomp
  24. endef
  25. define Package/runc/description
  26. runc is a CLI tool for spawning and running containers according to the OCI specification.
  27. endef
  28. GO_PKG_INSTALL_ALL:=1
  29. MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
  30. MAKE_VARS += $(GO_PKG_VARS)
  31. MAKE_FLAGS += COMMIT=$(PKG_SOURCE_VERSION)
  32. ifeq ($(ARCH),mips)
  33. MAKE_FLAGS += EXTRA_FLAGS='-buildmode=default'
  34. endif
  35. BUILDTAGS:=
  36. ifeq ($(CONFIG_KERNEL_SECCOMP_FILTER),y)
  37. BUILDTAGS += seccomp
  38. endif
  39. ifeq ($(CONFIG_SELINUX),y)
  40. BUILDTAGS += selinux
  41. endif
  42. MAKE_FLAGS += BUILDTAGS='$(BUILDTAGS)'
  43. # Reset golang-package.mk overrides so we can use the Makefile
  44. Build/Compile=$(call Build/Compile/Default)
  45. define Package/runc/install
  46. $(INSTALL_DIR) $(1)/usr/sbin/
  47. $(INSTALL_BIN) $(GO_PKG_BUILD_DIR)/src/$(GO_PKG)/runc $(1)/usr/sbin/
  48. endef
  49. $(eval $(call BuildPackage,runc))