1 include $(TOPDIR
)/rules.mk
6 PKG_LICENSE
:=Apache-2.0
7 PKG_LICENSE_FILES
:=LICENSE
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
:=54abd2fb7762943ff57832dfba19de12db09f0a0f8e69b31f1a2bb2baca395e7
13 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>, Paul Spooren
<mail@aparcar.org
>
15 PKG_BUILD_DEPENDS
:=golang
/host
19 GO_PKG
:=github.com
/containernetworking
/plugins
/
20 GO_PKG_BUILD_PKG
:=github.com
/containernetworking
/plugins
/plugins
/main
/... \
21 github.com
/containernetworking
/plugins
/plugins
/meta
/... \
22 github.com
/containernetworking
/plugins
/plugins
/ipam
/...
24 include $(INCLUDE_DIR
)/package.mk
25 include ..
/..
/lang
/golang
/golang-package.mk
27 PKG_UNPACK
:=$(HOST_TAR
) -C
"$(PKG_BUILD_DIR)" --strip-components
=1 -xzf
"$(DL_DIR)/$(PKG_SOURCE)"
29 define Package
/cni-plugins
33 URL
:=https
://github.com
/containernetworking
/cni-plugins
34 DEPENDS
:=$(GO_ARCH_DEPENDS
) +ip-full
37 define Package
/cni-plugins
/description
38 Some CNI network plugins
, maintained by the containernetworking team. For
39 more information
, see the individual READMEs.
42 define Package
/cni-plugins
/install
43 $(call GoPackage
/Package
/Install
/Bin
,$(PKG_INSTALL_DIR
))
44 $(INSTALL_DIR
) $(1)/usr
/lib
/cni
45 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/lib
/cni
48 $(eval
$(call GoBinPackage
,cni-plugins
))
49 $(eval
$(call BuildPackage
,cni-plugins
))