From 87ede2621a5ff2904c95f9ecbea2c4c009824c78 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 20 Apr 2023 11:15:31 +0200 Subject: add k9s --- k9s/Makefile | 19 +++++++++++++++++++ k9s/debian/changelog | 5 +++++ k9s/debian/compat | 1 + k9s/debian/control | 11 +++++++++++ k9s/debian/install | 1 + k9s/debian/rules | 16 ++++++++++++++++ k9s/debian/source/format | 1 + k9s/sha256sums.txt | 2 ++ 8 files changed, 56 insertions(+) create mode 100644 k9s/Makefile create mode 100644 k9s/debian/changelog create mode 100644 k9s/debian/compat create mode 100644 k9s/debian/control create mode 100644 k9s/debian/install create mode 100755 k9s/debian/rules create mode 100644 k9s/debian/source/format create mode 100644 k9s/sha256sums.txt (limited to 'k9s') 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 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 +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 -- cgit v1.2.3