Merge pull request #13853 from TDT-AG/pr/20201104-mwan3
[feed/packages.git] / utils / cni-plugins / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=cni-plugins
4 PKG_VERSION:=0.8.7
5 PKG_RELEASE:=1
6 PKG_LICENSE:=Apache-2.0
7 PKG_LICENSE_FILES:=LICENSE
8
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10 PKG_SOURCE_URL:=https://github.com/containernetworking/plugins/archive/v$(PKG_VERSION)
11 PKG_HASH:=de9fa170b4b6d38f6ff5287b313ddaf3c31f70bccb10e971ad59adadae22dd74
12
13 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>, Paul Spooren <mail@aparcar.org>
14
15 PKG_BUILD_DEPENDS:=golang/host
16 PKG_BUILD_PARALLEL:=1
17
18 GO_PKG:=github.com/containernetworking/plugins/
19 GO_PKG_BUILD_PKG:=github.com/containernetworking/plugins/plugins/main/... \
20 github.com/containernetworking/plugins/plugins/meta/... \
21 github.com/containernetworking/plugins/plugins/ipam/...
22
23 include $(INCLUDE_DIR)/package.mk
24 include ../../lang/golang/golang-package.mk
25
26 PKG_UNPACK:=$(HOST_TAR) -C "$(PKG_BUILD_DIR)" --strip-components=1 -xzf "$(DL_DIR)/$(PKG_SOURCE)"
27
28 define Package/cni-plugins
29 SECTION:=utils
30 CATEGORY:=Utilities
31 TITLE:=cni-plugins
32 URL:=https://github.com/containernetworking/cni-plugins
33 DEPENDS:=$(GO_ARCH_DEPENDS) +ip-full
34 endef
35
36 define Package/cni-plugins/description
37 Some CNI network plugins, maintained by the containernetworking team. For
38 more information, see the individual READMEs.
39 endef
40
41 define Package/cni-plugins/install
42 $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
43 $(INSTALL_DIR) $(1)/usr/lib/cni
44 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/lib/cni
45 endef
46
47 $(eval $(call GoBinPackage,cni-plugins))
48 $(eval $(call BuildPackage,cni-plugins))