libnetwork: Added networking for docker-ce
authorGerard Ryan <G.M0N3Y.2503@gmail.com>
Sat, 13 Jul 2019 09:24:33 +0000 (19:24 +1000)
committerYousong Zhou <yszhou4tech@gmail.com>
Sat, 20 Jul 2019 11:43:35 +0000 (19:43 +0800)
Signed-off-by: Gerard Ryan <G.M0N3Y.2503@gmail.com>
utils/libnetwork/Makefile [new file with mode: 0644]

diff --git a/utils/libnetwork/Makefile b/utils/libnetwork/Makefile
new file mode 100644 (file)
index 0000000..ccd3b76
--- /dev/null
@@ -0,0 +1,50 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libnetwork
+PKG_VERSION:=0.8.0-dev.2
+PKG_RELEASE:=1
+PKG_LICENSE:=Apache-2.0
+PKG_LICENSE_FILES:=LICENSE
+
+GO_PKG:=github.com/docker/libnetwork
+GO_PKG_BUILD_PKG:= \
+  $(GO_PKG)/cmd/proxy \
+  $(GO_PKG)/cmd/dnet
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://$(GO_PKG)
+PKG_SOURCE_VERSION:=e7933d41e7b206756115aa9df5e0599fc5169742
+PKG_MIRROR_HASH:=48638648bfd2b249f8e9cc32b5ec295a64e61fcb7cf635ca1a88809662167374
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
+
+PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
+
+PKG_BUILD_DEPENDS:=golang/host
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include ../../lang/golang/golang-package.mk
+
+define Package/libnetwork
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=networking for containers
+  URL:=https://github.com/docker/libnetwork
+  DEPENDS:=$(GO_ARCH_DEPENDS)
+endef
+
+define Package/libnetwork/description
+Libnetwork provides a native Go implementation for connecting containers.
+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.
+endef
+
+define Package/libnetwork/install
+       $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
+
+       $(INSTALL_DIR) $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dnet $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/proxy $(1)/usr/bin/docker-proxy
+endef
+
+$(eval $(call GoBinPackage,libnetwork))
+$(eval $(call BuildPackage,libnetwork))