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.

46 lines
1.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=cni-route-override
  3. PKG_VERSION:=0.1
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL:=https://github.com/redhat-nfvpe/$(PKG_NAME).git
  7. PKG_SOURCE_DATE:=2021-11-29
  8. PKG_SOURCE_VERSION:=6263d6876c6aa52d6b660e4b54da6b0b58b04022
  9. PKG_MIRROR_HASH:=c74763b44b2b97927a75aecc8d2e2681784888e20be1a456c34a270fd642d1f0
  10. PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
  11. PKG_LICENSE:=Apache-2.0
  12. PKG_LICENSE_FILES:=LICENSE
  13. PKG_BUILD_DEPENDS:=golang/host
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_USE_MIPS16:=0
  16. GO_PKG:=github.com/redhat-nfvpe/$(PKG_NAME)/
  17. GO_PKG_BUILD_PKG:=github.com/redhat-nfvpe/$(PKG_NAME)/cmd/route-override
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../../lang/golang/golang-package.mk
  20. define Package/cni-route-override
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=Meta CNI plugin for overriding IP route
  24. URL:=https://github.com/redhat-nfvpe/cni-route-override/
  25. DEPENDS:=$(GO_ARCH_DEPENDS)
  26. endef
  27. define Package/cni-route-override/description
  28. route-override IPAM works as meta CNI plugin to override IP route given by previous CNI plugins.
  29. endef
  30. define Package/cni-route-override/install
  31. $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
  32. $(INSTALL_DIR) $(1)/usr/lib/cni
  33. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/lib/cni
  34. endef
  35. $(eval $(call GoBinPackage,cni-route-override))
  36. $(eval $(call BuildPackage,cni-route-override))