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

include $(TOPDIR)/rules.mk
PKG_NAME:=libnetwork
PKG_RELEASE:=$(AUTORELEASE)
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:=0dde5c895075df6e3630e76f750a447cf63f4789
PKG_SOURCE_DATE:=2022-07-16
PKG_MIRROR_HASH:=ff5c7f30777c5fec50a59b79ff0e056fd09e3e55f3475816a21376bf72812d42
PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
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
GO_PKG_BUILD_VARS += GO111MODULE=auto
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))