summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-06-04 21:38:13 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-06-04 21:38:17 +0200
commitd8141de3b821e5e696edc2ff980b1394e2793dfe (patch)
tree84522bdeaa430dc2168abe2753fa5e0ed49814a9
add coredns packageHEADmaster
-rw-r--r--.gitignore15
-rw-r--r--coredns/Makefile20
-rw-r--r--coredns/debian/changelog5
-rw-r--r--coredns/debian/compat1
-rw-r--r--coredns/debian/control11
-rw-r--r--coredns/debian/install1
-rwxr-xr-xcoredns/debian/rules16
-rw-r--r--coredns/debian/source/format1
-rw-r--r--coredns/sha256sums.txt2
9 files changed, 72 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ee3e84e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+/*/amd64/
+/*/arm64/
+/*/i386/
+/*/debian/.debhelper/
+/*/debian/files
+/*/debian/*.debhelper.log
+/*/debian/*.substvars
+/*/debian/tmp/
+/*.build
+/*.buildinfo
+/*.changes
+/*.deb
+/*.ddeb
+/*.dsc
+/*.tar.gz
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 <equinox@spreadspace.org> 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 <equinox@spreadspace.org>
+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