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.

52 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libnetwork
  3. PKG_RELEASE:=1
  4. PKG_LICENSE:=Apache-2.0
  5. PKG_LICENSE_FILES:=LICENSE
  6. GO_PKG:=github.com/docker/libnetwork
  7. GO_PKG_BUILD_PKG:= \
  8. $(GO_PKG)/cmd/proxy \
  9. $(GO_PKG)/cmd/dnet
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://$(GO_PKG)
  12. PKG_SOURCE_VERSION:=b3507428be5b458cb0e2b4086b13531fb0706e46
  13. PKG_SOURCE_DATE:=2021-01-26
  14. PKG_MIRROR_HASH:=421d1b7cd95d0d0ec2801ebb0b360416cd2382e1ef9e70f4ca5cb63fb6a4ee8c
  15. PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
  16. PKG_BUILD_DEPENDS:=golang/host
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_USE_MIPS16:=0
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../../lang/golang/golang-package.mk
  21. define Package/libnetwork
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=networking for containers
  25. URL:=https://github.com/docker/libnetwork
  26. DEPENDS:=$(GO_ARCH_DEPENDS)
  27. endef
  28. define Package/libnetwork/description
  29. Libnetwork provides a native Go implementation for connecting containers.
  30. The goal of libnetwork is to deliver a robust Container Network Model that provides a consistent programming interface and the required network abstractions for applications.
  31. endef
  32. GO_PKG_BUILD_VARS += GO111MODULE=auto
  33. define Package/libnetwork/install
  34. $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
  35. $(INSTALL_DIR) $(1)/usr/bin/
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dnet $(1)/usr/bin/
  37. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/proxy $(1)/usr/bin/docker-proxy
  38. endef
  39. $(eval $(call GoBinPackage,libnetwork))
  40. $(eval $(call BuildPackage,libnetwork))