summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-04-20 11:15:31 +0200
committerChristian Pointner <equinox@spreadspace.org>2023-04-20 11:15:31 +0200
commit87ede2621a5ff2904c95f9ecbea2c4c009824c78 (patch)
treef9a984e1df89f37c8d2cd29d637e825be3387204
parentcri-dockerd: version bump to 0.3.1 (diff)
add k9s
-rw-r--r--.gitignore1
-rw-r--r--k9s/Makefile19
-rw-r--r--k9s/debian/changelog5
-rw-r--r--k9s/debian/compat1
-rw-r--r--k9s/debian/control11
-rw-r--r--k9s/debian/install1
-rwxr-xr-xk9s/debian/rules16
-rw-r--r--k9s/debian/source/format1
-rw-r--r--k9s/sha256sums.txt2
9 files changed, 57 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index aa2660e..2839d2c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
/*/amd64/
/*/i386/
+/*/arm64/
/*/debian/.debhelper/
/*/debian/files
/*/debian/*.debhelper.log
diff --git a/k9s/Makefile b/k9s/Makefile
new file mode 100644
index 0000000..3fcbbd2
--- /dev/null
+++ b/k9s/Makefile
@@ -0,0 +1,19 @@
+VERSION := "invalid"
+GITHUB_BASEURL := "https://github.com/derailed/k9s/releases/download"
+
+.PHONY: clean
+
+all: amd64/k9s arm64/k9s
+
+%/k9s: k9s_Linux_%-$(VERSION).tar.gz
+ mkdir -p $(shell echo $@ | sed 's#/.*##')
+ tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<"
+
+k9s_Linux_%-$(VERSION).tar.gz:
+ wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/v$(VERSION)/$(shell echo $@ | sed s/-$(VERSION)//)" -O "$@"
+ sha256sum -c --ignore-missing sha256sums.txt
+
+clean:
+ rm -rf amd64
+ rm -rf arm64
+ rm -f k9s_Linux_*.tar.gz
diff --git a/k9s/debian/changelog b/k9s/debian/changelog
new file mode 100644
index 0000000..90df2bd
--- /dev/null
+++ b/k9s/debian/changelog
@@ -0,0 +1,5 @@
+k9s (0.27.3-1) unstable; urgency=medium
+
+ * initial package release.
+
+ -- Christian Pointner <equinox@spreadspace.org> Tue, 20 Apr 2023 10:55:30 +0100
diff --git a/k9s/debian/compat b/k9s/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/k9s/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/k9s/debian/control b/k9s/debian/control
new file mode 100644
index 0000000..f668fe7
--- /dev/null
+++ b/k9s/debian/control
@@ -0,0 +1,11 @@
+Source: k9s
+Maintainer: Christian Pointner <equinox@spreadspace.org>
+Section: utils
+Priority: optional
+Standards-Version: 3.9.2
+Build-Depends: debhelper (>= 9), wget, ca-certificates
+
+Package: k9s
+Architecture: amd64 arm64
+Depends: ${misc:Depends}
+Description: Kubernetes CLI To Manage Your Clusters In Style (binaries only)
diff --git a/k9s/debian/install b/k9s/debian/install
new file mode 100644
index 0000000..ed0a40f
--- /dev/null
+++ b/k9s/debian/install
@@ -0,0 +1 @@
+usr/bin/k9s
diff --git a/k9s/debian/rules b/k9s/debian/rules
new file mode 100755
index 0000000..713fd85
--- /dev/null
+++ b/k9s/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)/k9s
+
+override_dh_auto_install:
+ install -d $$(pwd)/debian/tmp/usr/bin/
+ install -m 755 $$(pwd)/$(DEB_BUILD_ARCH)/k9s $$(pwd)/debian/tmp/usr/bin/k9s
+
+override_dh_auto_clean:
+ make VERSION=$(DEB_VERSION_UPSTREAM) clean
diff --git a/k9s/debian/source/format b/k9s/debian/source/format
new file mode 100644
index 0000000..d3827e7
--- /dev/null
+++ b/k9s/debian/source/format
@@ -0,0 +1 @@
+1.0
diff --git a/k9s/sha256sums.txt b/k9s/sha256sums.txt
new file mode 100644
index 0000000..0e47e53
--- /dev/null
+++ b/k9s/sha256sums.txt
@@ -0,0 +1,2 @@
+b0eb5fb0decedbee5b6bd415f72af8ce6135ffb8128f9709bc7adcd5cbfa690b k9s_Linux_amd64-0.27.3.tar.gz
+c2b2e8ccd05cea311600ed47d2a72df835a93fd5b9b470c42f7b248398f45592 k9s_Linux_arm64-0.27.3.tar.gz