Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: coredns-1.7.0
@ 2020-07-15  2:02 nilium
  2020-07-15  2:54 ` [PR REVIEW] " bougyman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: nilium @ 2020-07-15  2:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

There is a new pull request by nilium against master on the void-packages repository

https://github.com/nilium/ecks-bops-packages coredns
https://github.com/void-linux/void-packages/pull/23578

New package: coredns-1.7.0


A patch file from https://github.com/void-linux/void-packages/pull/23578.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-coredns-23578.patch --]
[-- Type: text/x-diff, Size: 2290 bytes --]

From 207911270dfc288c3acfee517b67a62ccafac429 Mon Sep 17 00:00:00 2001
From: Noel Cower <ncower@nil.dev>
Date: Tue, 14 Jul 2020 17:27:36 -0700
Subject: [PATCH] New package: coredns-1.7.0

---
 srcpkgs/coredns/files/Corefile    |  4 ++++
 srcpkgs/coredns/files/coredns/run |  9 +++++++++
 srcpkgs/coredns/template          | 29 +++++++++++++++++++++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 srcpkgs/coredns/files/Corefile
 create mode 100755 srcpkgs/coredns/files/coredns/run
 create mode 100644 srcpkgs/coredns/template

diff --git a/srcpkgs/coredns/files/Corefile b/srcpkgs/coredns/files/Corefile
new file mode 100644
index 00000000000..951e60b9a71
--- /dev/null
+++ b/srcpkgs/coredns/files/Corefile
@@ -0,0 +1,4 @@
+. {
+  errors
+  forward . /etc/resolv.conf
+}
diff --git a/srcpkgs/coredns/files/coredns/run b/srcpkgs/coredns/files/coredns/run
new file mode 100755
index 00000000000..de3d83c17ec
--- /dev/null
+++ b/srcpkgs/coredns/files/coredns/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ -r ./conf ] && . ./conf
+
+COREFILE="${COREFILE:-/etc/coredns/Corefile}"
+DNS_PORT="${DNS_PORT:-53}"
+
+exec 2>&1
+exec coredns -conf "${COREFILE:-/etc/coredns/Corefile}" -dns.port "${DNS_PORT:-53}"
diff --git a/srcpkgs/coredns/template b/srcpkgs/coredns/template
new file mode 100644
index 00000000000..cd5b095235a
--- /dev/null
+++ b/srcpkgs/coredns/template
@@ -0,0 +1,29 @@
+# Template file for 'coredns'
+pkgname=coredns
+version=1.7.0
+revision=1
+build_style=go
+go_import_path=github.com/coredns/coredns
+hostmakedepends="git make mmark"
+short_desc="CoreDNS is a DNS server that chains plugins"
+maintainer="Noel Cower <ncower@nil.dev>"
+license="Apache-2.0"
+homepage="https://coredns.io"
+distfiles="https://github.com/coredns/coredns/archive/v${version}.tar.gz"
+checksum=7e436e9d0c0b84af863685e05d701b84247bb0f12b6dbf05ea87e165c1398b2b
+make_dirs="/etc/coredns 0750 root root"
+
+_git_commit=f59c03d09c3a3a12f571ad1087b979325f3dae30
+go_ldflags+=" -s -w -X github.com/coredns/coredns/coremain.GitCommit=${_git_commit}"
+
+post_build() {
+	make -f Makefile.doc MMARK="$(command -v mmark) -man" man/coredns.1 man/corefile.5 plugins
+}
+
+post_install() {
+	for man in man/*.*; do
+		vman "${man}"
+	done
+	vsv coredns
+	vinstall "${FILESDIR}/Corefile" 640 etc/coredns
+}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR REVIEW] New package: coredns-1.7.0
  2020-07-15  2:02 [PR PATCH] New package: coredns-1.7.0 nilium
@ 2020-07-15  2:54 ` bougyman
  2020-07-15  3:03 ` [PR PATCH] [Updated] " nilium
  2020-07-15  3:34 ` [PR PATCH] [Merged]: " the-maldridge
  2 siblings, 0 replies; 4+ messages in thread
From: bougyman @ 2020-07-15  2:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

New review comment by bougyman on void-packages repository

https://github.com/void-linux/void-packages/pull/23578#discussion_r454759798

Comment:
is this leading whitespace necessary?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Updated] New package: coredns-1.7.0
  2020-07-15  2:02 [PR PATCH] New package: coredns-1.7.0 nilium
  2020-07-15  2:54 ` [PR REVIEW] " bougyman
@ 2020-07-15  3:03 ` nilium
  2020-07-15  3:34 ` [PR PATCH] [Merged]: " the-maldridge
  2 siblings, 0 replies; 4+ messages in thread
From: nilium @ 2020-07-15  3:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]

There is an updated pull request by nilium against master on the void-packages repository

https://github.com/nilium/ecks-bops-packages coredns
https://github.com/void-linux/void-packages/pull/23578

New package: coredns-1.7.0


A patch file from https://github.com/void-linux/void-packages/pull/23578.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-coredns-23578.patch --]
[-- Type: text/x-diff, Size: 2670 bytes --]

From 839289f93ba0095113cb87e3509c85fb4d5f7300 Mon Sep 17 00:00:00 2001
From: Noel Cower <ncower@nil.dev>
Date: Tue, 14 Jul 2020 17:27:36 -0700
Subject: [PATCH] New package: coredns-1.7.0

---
 srcpkgs/coredns/files/Corefile        |  4 ++++
 srcpkgs/coredns/files/coredns/log/run |  3 +++
 srcpkgs/coredns/files/coredns/run     |  9 +++++++++
 srcpkgs/coredns/template              | 29 +++++++++++++++++++++++++++
 4 files changed, 45 insertions(+)
 create mode 100644 srcpkgs/coredns/files/Corefile
 create mode 100755 srcpkgs/coredns/files/coredns/log/run
 create mode 100755 srcpkgs/coredns/files/coredns/run
 create mode 100644 srcpkgs/coredns/template

diff --git a/srcpkgs/coredns/files/Corefile b/srcpkgs/coredns/files/Corefile
new file mode 100644
index 00000000000..951e60b9a71
--- /dev/null
+++ b/srcpkgs/coredns/files/Corefile
@@ -0,0 +1,4 @@
+. {
+  errors
+  forward . /etc/resolv.conf
+}
diff --git a/srcpkgs/coredns/files/coredns/log/run b/srcpkgs/coredns/files/coredns/log/run
new file mode 100755
index 00000000000..f0680f7cfe3
--- /dev/null
+++ b/srcpkgs/coredns/files/coredns/log/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec vlogger -t coredns
diff --git a/srcpkgs/coredns/files/coredns/run b/srcpkgs/coredns/files/coredns/run
new file mode 100755
index 00000000000..de3d83c17ec
--- /dev/null
+++ b/srcpkgs/coredns/files/coredns/run
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ -r ./conf ] && . ./conf
+
+COREFILE="${COREFILE:-/etc/coredns/Corefile}"
+DNS_PORT="${DNS_PORT:-53}"
+
+exec 2>&1
+exec coredns -conf "${COREFILE:-/etc/coredns/Corefile}" -dns.port "${DNS_PORT:-53}"
diff --git a/srcpkgs/coredns/template b/srcpkgs/coredns/template
new file mode 100644
index 00000000000..cd5b095235a
--- /dev/null
+++ b/srcpkgs/coredns/template
@@ -0,0 +1,29 @@
+# Template file for 'coredns'
+pkgname=coredns
+version=1.7.0
+revision=1
+build_style=go
+go_import_path=github.com/coredns/coredns
+hostmakedepends="git make mmark"
+short_desc="CoreDNS is a DNS server that chains plugins"
+maintainer="Noel Cower <ncower@nil.dev>"
+license="Apache-2.0"
+homepage="https://coredns.io"
+distfiles="https://github.com/coredns/coredns/archive/v${version}.tar.gz"
+checksum=7e436e9d0c0b84af863685e05d701b84247bb0f12b6dbf05ea87e165c1398b2b
+make_dirs="/etc/coredns 0750 root root"
+
+_git_commit=f59c03d09c3a3a12f571ad1087b979325f3dae30
+go_ldflags+=" -s -w -X github.com/coredns/coredns/coremain.GitCommit=${_git_commit}"
+
+post_build() {
+	make -f Makefile.doc MMARK="$(command -v mmark) -man" man/coredns.1 man/corefile.5 plugins
+}
+
+post_install() {
+	for man in man/*.*; do
+		vman "${man}"
+	done
+	vsv coredns
+	vinstall "${FILESDIR}/Corefile" 640 etc/coredns
+}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Merged]: New package: coredns-1.7.0
  2020-07-15  2:02 [PR PATCH] New package: coredns-1.7.0 nilium
  2020-07-15  2:54 ` [PR REVIEW] " bougyman
  2020-07-15  3:03 ` [PR PATCH] [Updated] " nilium
@ 2020-07-15  3:34 ` the-maldridge
  2 siblings, 0 replies; 4+ messages in thread
From: the-maldridge @ 2020-07-15  3:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 160 bytes --]

There's a merged pull request on the void-packages repository

New package: coredns-1.7.0
https://github.com/void-linux/void-packages/pull/23578

Description:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-15  3:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-15  2:02 [PR PATCH] New package: coredns-1.7.0 nilium
2020-07-15  2:54 ` [PR REVIEW] " bougyman
2020-07-15  3:03 ` [PR PATCH] [Updated] " nilium
2020-07-15  3:34 ` [PR PATCH] [Merged]: " the-maldridge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).