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.

49 lines
1.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libnetwork
  3. PKG_RELEASE:=3
  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:=3eb39382bfa6a3c42f83674ab080ae13b0e34e5d
  13. PKG_SOURCE_DATE:=2019-10-22
  14. PKG_MIRROR_HASH:=0c2e3c83559b9ac27d2ef953911400957c8634847038c9da83a1fd8769a37a8d
  15. PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
  16. PKG_BUILD_DEPENDS:=golang/host
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../../lang/golang/golang-package.mk
  20. define Package/libnetwork
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=networking for containers
  24. URL:=https://github.com/docker/libnetwork
  25. DEPENDS:=$(GO_ARCH_DEPENDS) @(aarch64||arm||x86_64)
  26. endef
  27. define Package/libnetwork/description
  28. Libnetwork provides a native Go implementation for connecting containers.
  29. 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.
  30. endef
  31. define Package/libnetwork/install
  32. $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
  33. $(INSTALL_DIR) $(1)/usr/bin/
  34. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dnet $(1)/usr/bin/
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/proxy $(1)/usr/bin/docker-proxy
  36. endef
  37. $(eval $(call GoBinPackage,libnetwork))
  38. $(eval $(call BuildPackage,libnetwork))