From d8141de3b821e5e696edc2ff980b1394e2793dfe Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 4 Jun 2024 21:38:13 +0200 Subject: add coredns package --- coredns/Makefile | 20 ++++++++++++++++++++ coredns/debian/changelog | 5 +++++ coredns/debian/compat | 1 + coredns/debian/control | 11 +++++++++++ coredns/debian/install | 1 + coredns/debian/rules | 16 ++++++++++++++++ coredns/debian/source/format | 1 + coredns/sha256sums.txt | 2 ++ 8 files changed, 57 insertions(+) create mode 100644 coredns/Makefile create mode 100644 coredns/debian/changelog create mode 100644 coredns/debian/compat create mode 100644 coredns/debian/control create mode 100644 coredns/debian/install create mode 100755 coredns/debian/rules create mode 100644 coredns/debian/source/format create mode 100644 coredns/sha256sums.txt (limited to 'coredns') diff --git a/coredns/Makefile b/coredns/Makefile new file mode 100644 index 0000000..79ea982 --- /dev/null +++ b/coredns/Makefile @@ -0,0 +1,20 @@ +VERSION := "invalid" +GITHUB_RELEASES_BASEURL := "https://github.com/coredns/coredns/releases/download" + + +.PHONY: clean + +all: amd64/coredns arm64/coredns + +%/coredns: coredns_$(VERSION)_linux_%.tgz + mkdir -p $(shell echo $@ | sed 's#/.*##') + tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" + +coredns_$(VERSION)_linux_%.tgz: + wget -nc --progress=dot:mega "$(GITHUB_RELEASES_BASEURL)/v$(VERSION)/$@" -O "$@" + sha256sum -c --ignore-missing sha256sums.txt + +clean: + rm -rf amd64 + rm -rf arm64 + rm -f coredns_$(VERSION)_linux_*.tgz diff --git a/coredns/debian/changelog b/coredns/debian/changelog new file mode 100644 index 0000000..c280c84 --- /dev/null +++ b/coredns/debian/changelog @@ -0,0 +1,5 @@ +coredns (1.11.3-1) unstable; urgency=medium + + * Initial release. + + -- Christian Pointner Tue, 04 Jun 2024 21:36:07 +0200 diff --git a/coredns/debian/compat b/coredns/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/coredns/debian/compat @@ -0,0 +1 @@ +9 diff --git a/coredns/debian/control b/coredns/debian/control new file mode 100644 index 0000000..5058bd1 --- /dev/null +++ b/coredns/debian/control @@ -0,0 +1,11 @@ +Source: coredns +Maintainer: Christian Pointner +Section: utils +Priority: optional +Standards-Version: 3.9.2 +Build-Depends: debhelper (>= 9), wget, ca-certificates + +Package: coredns +Architecture: amd64 arm64 +Depends: ${misc:Depends} +Description: coredns app (binaries only) diff --git a/coredns/debian/install b/coredns/debian/install new file mode 100644 index 0000000..92643be --- /dev/null +++ b/coredns/debian/install @@ -0,0 +1 @@ +usr/bin/coredns diff --git a/coredns/debian/rules b/coredns/debian/rules new file mode 100755 index 0000000..857a0c6 --- /dev/null +++ b/coredns/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)/coredns + +override_dh_auto_install: + install -d $$(pwd)/debian/tmp/usr/bin/ + install -m 755 $$(pwd)/$(DEB_BUILD_ARCH)/coredns $$(pwd)/debian/tmp/usr/bin/coredns + +override_dh_auto_clean: + make VERSION=$(DEB_VERSION_UPSTREAM) clean diff --git a/coredns/debian/source/format b/coredns/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/coredns/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/coredns/sha256sums.txt b/coredns/sha256sums.txt new file mode 100644 index 0000000..bca0b63 --- /dev/null +++ b/coredns/sha256sums.txt @@ -0,0 +1,2 @@ +83ba64b112b32ec158dad71ac04923d4041d30f276b48bc7344a74e2c6fc542c coredns_1.11.3_linux_amd64.tgz +d38f8e842b1abbd641bb4f2edb8a99730c923091b47a5bb9de8ab72800719c86 coredns_1.11.3_linux_arm64.tgz -- cgit v1.2.3