aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2024-04-19 16:17:56 -0700
committerRosen Penev <rosenp@gmail.com>2024-04-23 18:59:37 -0700
commited50df97f70aba037018bfa54b3c678437c1d305 (patch)
treea96c7f5be11109577c480ae50b51674885bf09ff /utils
parent47d91a4c0907c76d4df53d8a860c2b68dba3ae39 (diff)
cni-plugins: use local tarballs
Avoids having to override PKG_UNPACK. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/cni-plugins/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/utils/cni-plugins/Makefile b/utils/cni-plugins/Makefile
index 3615de5f4..b7e6d315f 100644
--- a/utils/cni-plugins/Makefile
+++ b/utils/cni-plugins/Makefile
@@ -2,15 +2,16 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=cni-plugins
PKG_VERSION:=1.1.1
-PKG_RELEASE:=1
-PKG_LICENSE:=Apache-2.0
-PKG_LICENSE_FILES:=LICENSE
+PKG_RELEASE:=2
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://github.com/containernetworking/plugins/archive/v$(PKG_VERSION)
-PKG_HASH:=c86c44877c47f69cd23611e22029ab26b613f620195b76b3ec20f589367a7962
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_VERSION:=v$(PKG_VERSION)
+PKG_SOURCE_URL:=https://github.com/containernetworking/plugins
+PKG_MIRROR_HASH:=4372700fa1fb159235586432800f228d92246d13571f5a29aa9bc58291eac6d9
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>, Paul Spooren <mail@aparcar.org>
+PKG_LICENSE:=Apache-2.0
+PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
@@ -24,8 +25,6 @@ GO_PKG_BUILD_PKG:=github.com/containernetworking/plugins/plugins/main/... \
include $(INCLUDE_DIR)/package.mk
include ../../lang/golang/golang-package.mk
-PKG_UNPACK:=$(HOST_TAR) -C "$(PKG_BUILD_DIR)" --strip-components=1 -xzf "$(DL_DIR)/$(PKG_SOURCE)"
-
define Package/cni-plugins
SECTION:=utils
CATEGORY:=Utilities