diff options
Diffstat (limited to 'grype')
-rw-r--r-- | grype/Makefile | 19 | ||||
-rw-r--r-- | grype/debian/changelog | 5 | ||||
-rw-r--r-- | grype/debian/compat | 1 | ||||
-rw-r--r-- | grype/debian/control | 11 | ||||
-rw-r--r-- | grype/debian/install | 1 | ||||
-rwxr-xr-x | grype/debian/rules | 16 | ||||
-rw-r--r-- | grype/debian/source/format | 1 | ||||
-rw-r--r-- | grype/sha256sums.txt | 2 |
8 files changed, 56 insertions, 0 deletions
diff --git a/grype/Makefile b/grype/Makefile new file mode 100644 index 0000000..3988540 --- /dev/null +++ b/grype/Makefile @@ -0,0 +1,19 @@ +VERSION := "invalid" +GITHUB_BASEURL := "https://github.com/anchore/grype/releases/download" + +.PHONY: clean + +all: amd64/grype arm64/grype + +%/grype: grype_$(VERSION)_linux_%.tar.gz + mkdir -p $(shell echo $@ | sed 's#/.*##') + tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" + +grype_$(VERSION)_linux_%.tar.gz: + wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/v$(VERSION)/$@" -O "$@" + sha256sum -c --ignore-missing sha256sums.txt + +clean: + rm -rf amd64 + rm -rf arm64 + rm -f grype_*_linux_*.tar.gz diff --git a/grype/debian/changelog b/grype/debian/changelog new file mode 100644 index 0000000..d8b75cd --- /dev/null +++ b/grype/debian/changelog @@ -0,0 +1,5 @@ +grype (0.74.7-1) unstable; urgency=medium + + * initial package release. + + -- Christian Pointner <equinox@spreadspace.org> Thu, 28 Mar 2024 19:11:59 +0100 diff --git a/grype/debian/compat b/grype/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/grype/debian/compat @@ -0,0 +1 @@ +9 diff --git a/grype/debian/control b/grype/debian/control new file mode 100644 index 0000000..d1de562 --- /dev/null +++ b/grype/debian/control @@ -0,0 +1,11 @@ +Source: grype +Maintainer: Christian Pointner <equinox@spreadspace.org> +Section: utils +Priority: optional +Standards-Version: 3.9.2 +Build-Depends: debhelper (>= 9), wget, ca-certificates + +Package: grype +Architecture: amd64 arm64 +Depends: ${misc:Depends} +Description: A vulnerability scanner for container images and filesystems (binaries only) diff --git a/grype/debian/install b/grype/debian/install new file mode 100644 index 0000000..56b2e6f --- /dev/null +++ b/grype/debian/install @@ -0,0 +1 @@ +usr/bin/grype diff --git a/grype/debian/rules b/grype/debian/rules new file mode 100755 index 0000000..4434037 --- /dev/null +++ b/grype/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)/grype + +override_dh_auto_install: + install -d $$(pwd)/debian/tmp/usr/bin/ + install -m 755 $$(pwd)/$(DEB_BUILD_ARCH)/grype $$(pwd)/debian/tmp/usr/bin/grype + +override_dh_auto_clean: + make VERSION=$(DEB_VERSION_UPSTREAM) clean diff --git a/grype/debian/source/format b/grype/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/grype/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/grype/sha256sums.txt b/grype/sha256sums.txt new file mode 100644 index 0000000..c2c1b32 --- /dev/null +++ b/grype/sha256sums.txt @@ -0,0 +1,2 @@ +1edf04a83765821b2f7b5777c492afab448f0483ebc588069668d3e1d7e8e6b1 grype_0.74.7_linux_amd64.tar.gz +34ff41e69a3cca6dc677cf9a4b30a50f79758c1450570df926262e96fafa1278 grype_0.74.7_linux_arm64.tar.gz |