Github messages for voidlinux
 help / color / mirror / Atom feed
From: nilium <nilium@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: coredns-1.7.0
Date: Wed, 15 Jul 2020 04:02:12 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23578@inbox.vuxu.org> (raw)

[-- 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
+}

             reply	other threads:[~2020-07-15  2:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-15  2:02 nilium [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23578@inbox.vuxu.org \
    --to=nilium@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).