summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-10-09 16:47:09 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-10-09 16:47:09 +0200
commit168cd2ca5395a79088953160846462215e092343 (patch)
tree1aaea3cf6f926787ca4d711df7bef8db6fcdcdb1
add cri-tools package
-rw-r--r--cri-tools/Makefile19
-rw-r--r--cri-tools/debian/changelog5
-rw-r--r--cri-tools/debian/compat1
-rw-r--r--cri-tools/debian/control11
-rw-r--r--cri-tools/debian/install1
-rwxr-xr-xcri-tools/debian/rules16
-rw-r--r--cri-tools/debian/source/format1
-rw-r--r--cri-tools/sha256sums.txt2
8 files changed, 56 insertions, 0 deletions
diff --git a/cri-tools/Makefile b/cri-tools/Makefile
new file mode 100644
index 0000000..0a1f9ce
--- /dev/null
+++ b/cri-tools/Makefile
@@ -0,0 +1,19 @@
+VERSION := "invalid"
+GITHUB_BASEURL := "https://github.com/kubernetes-sigs/cri-tools/releases/download"
+
+.PHONY: clean
+
+all: i386/crictl amd64/crictl
+
+%/crictl: crictl-v$(VERSION)-linux-%.tar.gz
+ mkdir -p $(shell echo $@ | sed 's#/.*##')
+ tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<"
+
+crictl-v$(VERSION)-linux-%.tar.gz:
+ wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/v$(VERSION)/$(shell echo $@ | sed s/i386/386/)" -O "$@"
+ sha256sum -c --ignore-missing sha256sums.txt
+
+clean:
+ rm -rf i386
+ rm -rf amd64
+ rm -f crictl-v$(VERSION)-linux-*.tar.gz
diff --git a/cri-tools/debian/changelog b/cri-tools/debian/changelog
new file mode 100644
index 0000000..d728ce2
--- /dev/null
+++ b/cri-tools/debian/changelog
@@ -0,0 +1,5 @@
+cri-tools (1.22.0-1) unstable; urgency=medium
+
+ * initial package release.
+
+ -- Christian Pointner <equinox@spreadspace.org> Sat, 09 Oct 2021 16:35:16 +0200
diff --git a/cri-tools/debian/compat b/cri-tools/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/cri-tools/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/cri-tools/debian/control b/cri-tools/debian/control
new file mode 100644
index 0000000..9f955b7
--- /dev/null
+++ b/cri-tools/debian/control
@@ -0,0 +1,11 @@
+Source: cri-tools
+Maintainer: Christian Pointner <equinox@spreadspace.org>
+Section: utils
+Priority: optional
+Standards-Version: 3.9.2
+Build-Depends: debhelper (>= 9), wget, ca-certificates
+
+Package: cri-tools
+Architecture: amd64 i386
+Depends: ${misc:Depends}
+Description: container runtime interface control tools (binaries only)
diff --git a/cri-tools/debian/install b/cri-tools/debian/install
new file mode 100644
index 0000000..af8e683
--- /dev/null
+++ b/cri-tools/debian/install
@@ -0,0 +1 @@
+usr/bin/crictl
diff --git a/cri-tools/debian/rules b/cri-tools/debian/rules
new file mode 100755
index 0000000..e9df8cc
--- /dev/null
+++ b/cri-tools/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+include /usr/share/dpkg/pkg-info.mk
+%:
+ dh $@
+
+override_dh_auto_configure:
+
+override_dh_auto_build:
+ make VERSION=$(DEB_VERSION_UPSTREAM) $(DEB_BUILD_ARCH)/crictl
+
+override_dh_auto_install:
+ install -d $$(pwd)/debian/tmp/usr/bin/
+ install -m 755 $$(pwd)/$(DEB_BUILD_ARCH)/crictl $$(pwd)/debian/tmp/usr/bin/crictl
+
+override_dh_auto_clean:
+ make VERSION=$(DEB_VERSION_UPSTREAM) clean
diff --git a/cri-tools/debian/source/format b/cri-tools/debian/source/format
new file mode 100644
index 0000000..d3827e7
--- /dev/null
+++ b/cri-tools/debian/source/format
@@ -0,0 +1 @@
+1.0
diff --git a/cri-tools/sha256sums.txt b/cri-tools/sha256sums.txt
new file mode 100644
index 0000000..37a76f8
--- /dev/null
+++ b/cri-tools/sha256sums.txt
@@ -0,0 +1,2 @@
+7e10b2f362cb96d4d6c1d01b39c732c1d59e090e03dcd5b69187b779f59271ac crictl-v1.22.0-linux-i386.tar.gz
+45e0556c42616af60ebe93bf4691056338b3ea0001c0201a6a8ff8b1dbc0652a crictl-v1.22.0-linux-amd64.tar.gz