cni-plugins: use local tarballs
[feed/packages.git] / utils / cni-plugins / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=cni-plugins
4 PKG_VERSION:=1.1.1
5 PKG_RELEASE:=2
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
9 PKG_SOURCE_URL:=https://github.com/containernetworking/plugins
10 PKG_MIRROR_HASH:=4372700fa1fb159235586432800f228d92246d13571f5a29aa9bc58291eac6d9
11
12 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>, Paul Spooren <mail@aparcar.org>
13 PKG_LICENSE:=Apache-2.0
14 PKG_LICENSE_FILES:=LICENSE
15
16 PKG_BUILD_DEPENDS:=golang/host
17 PKG_BUILD_PARALLEL:=1
18 PKG_BUILD_FLAGS:=no-mips16
19
20 GO_PKG:=github.com/containernetworking/plugins/
21 GO_PKG_BUILD_PKG:=github.com/containernetworking/plugins/plugins/main/... \
22 github.com/containernetworking/plugins/plugins/meta/... \
23 github.com/containernetworking/plugins/plugins/ipam/...
24
25 include $(INCLUDE_DIR)/package.mk
26 include ../../lang/golang/golang-package.mk
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 +kmod-veth
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))