From ce7a980a63c37596659fa250c66e020cfba9db8d Mon Sep 17 00:00:00 2001 From: RBrownSUSE <> Date: Dec 16 2021 20:34:06 +0000 Subject: Update coredns-for-k8s1.23 to version 1.8.6 / rev 1 via SR 940748 https://build.opensuse.org/request/show/940748 by user RBrownSUSE + dimstar_suse --- diff --git a/.files b/.files new file mode 100644 index 0000000..40f4034 Binary files /dev/null and b/.files differ diff --git a/.meta b/.meta new file mode 100644 index 0000000..434ab5a --- /dev/null +++ b/.meta @@ -0,0 +1,5 @@ + + coredns binaries for a specific kubernetes version + + + diff --git a/.rev b/.rev new file mode 100644 index 0000000..8baf3be --- /dev/null +++ b/.rev @@ -0,0 +1,10 @@ + + + c1c7bec2e8405ffae4c40332bee651e8 + 1.8.6 + + dimstar_suse + + 940748 + + diff --git a/.servicemark b/.servicemark new file mode 100644 index 0000000..c377e28 --- /dev/null +++ b/.servicemark @@ -0,0 +1 @@ +24bc22e2ce6ec22485272f042f5b4ff4 diff --git a/Corefile b/Corefile new file mode 100644 index 0000000..f3e69e3 --- /dev/null +++ b/Corefile @@ -0,0 +1,35 @@ +# +# Example configuration file for coredns. +# + +# All zones +. { + # Bind on a specific IP + bind 127.0.0.1 + + # Forward queries for all zones to a resolver using TLS + # forward . tls://1.1.1.1:853 tls://1.0.0.1:853 + + # Forward queries for all zones to a resolver using plain ol' DNS + #forward . dns://8.8.8.8:53 + + # Forward queries for all zones to /etc/resolv.conf + forward . /etc/resolv.conf + + # Errors related to query processing are printed to STDOUT + errors + + # Log all DNS queries + #log + + # Extra debug information + # debug + + # Resolve hostsnames specified in /etc/hosts + hosts { + fallthrough + } +} + +# Import Zone configurations from other files +# import AdditonalZones.conf diff --git a/_service b/_service new file mode 100644 index 0000000..585dfb2 --- /dev/null +++ b/_service @@ -0,0 +1,20 @@ + + + https://github.com/coredns/coredns + git + .git + v1.8.6 + @PARENT_TAG@ + v(.*) + enable + + + + + *.tar + gz + + + coredns-1.8.6.tar.gz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..a2b9896 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/coredns/coredns + 13a9191efb0574cc92ed5ffd55a1f144b840d668 \ No newline at end of file diff --git a/coredns-1.8.6.tar.gz b/coredns-1.8.6.tar.gz new file mode 120000 index 0000000..e0003c1 --- /dev/null +++ b/coredns-1.8.6.tar.gz @@ -0,0 +1 @@ +/ipfs/bafybeidklcxqvubeionpl3mgfgxop3sps2srqenk3f5wtz2j3dnlgkpap4 \ No newline at end of file diff --git a/coredns-for-k8s1.23.changes b/coredns-for-k8s1.23.changes new file mode 100644 index 0000000..0222be9 --- /dev/null +++ b/coredns-for-k8s1.23.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Dec 15 12:58:30 UTC 2021 - Richard Brown + +- Initial Package diff --git a/coredns-for-k8s1.23.spec b/coredns-for-k8s1.23.spec new file mode 100644 index 0000000..cebad42 --- /dev/null +++ b/coredns-for-k8s1.23.spec @@ -0,0 +1,130 @@ +# +# spec file for package coredns-for-k8s1.23 +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define project github.com/coredns/coredns +Name: coredns-for-k8s1.23 +Version: 1.8.6 +Release: 0 +Summary: DNS server written in Go +License: Apache-2.0 +Group: Productivity/Networking/DNS/Servers +URL: https://coredns.io +Provides: dns_daemon +Source0: coredns-%{version}.tar.gz +Source1: vendor.tar.gz +Source10: Corefile +Source11: coredns.service +BuildRequires: fdupes +BuildRequires: golang(API) >= 1.16 +Conflicts: coredns +Provides: coredns-for-k8s = %{version} +Conflicts: coredns-for-k8s + +%description +CoreDNS is a DNS server in Go. It has a plugin architecture for +extending it. + +CoreDNS can listen for DNS request coming in over UDP/TCP (RFC 1035), +TLS (RFC 7858) and gRPC (not a standard). + +%package extras +Summary: Extra components for the coredns package +Group: Productivity/Networking/DNS/Servers +Requires: coredns-for-k8s1.23 = %{version} +Supplements: coredns-for-k8s1.23 +BuildArch: noarch +BuildRequires: pkgconfig(systemd) +Conflicts: coredns-extras +Provides: coredns-extras-for-k8s = %{version} +Conflicts: coredns-extras-for-k8s + +%description extras +Extra components for the coredns package, to make coredns usable in a +non-containerized environment (man pages, configuration, unit file). + +%prep +%setup -q -a1 -n coredns-%{version} + +%build + +# We can't use symlinks here because go-list gets confused by symlinks, so we +# have to copy the source to $HOME/go and then use that as the GOPATH. +export GOPATH=$HOME/go +export PATH=$PATH:$GOPATH/bin +rm -rf $HOME/go/src +mkdir -pv $HOME/go/src/%{project} +find . -mindepth 1 -maxdepth 1 -exec cp -r {} $HOME/go/src/%{project} \; + +cd $HOME/go/src/%{project} +go build -mod=vendor -v -buildmode=pie -o coredns + +%check +# Too many tests fail due to the restricted permissions in the build enviroment. +# Updates must be tested manually. + +%install +cd $HOME/go/src/%{project} + +# Binaries +install -D -m 0755 coredns %{buildroot}%{_sbindir}/coredns +ln -s service %{buildroot}%{_sbindir}/rccoredns +# Configuration +install -D -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/coredns/Corefile +# systemd service +install -D -m 0644 %{SOURCE11} %{buildroot}%{_unitdir}/coredns.service +# Manpages +install -d %{buildroot}/%{_mandir}/man1 +install -m 0644 man/coredns*.1 %{buildroot}/%{_mandir}/man1 +install -d %{buildroot}/%{_mandir}/man5 +install -m 0644 man/corefile*.5 %{buildroot}/%{_mandir}/man5 +install -d %{buildroot}/%{_mandir}/man7 +install -m 0644 man/coredns-*.7 %{buildroot}/%{_mandir}/man7 + +%fdupes %{buildroot}/%{_prefix} + +%pre extras +%service_add_pre coredns.service + +%post extras +%service_add_post coredns.service +%{fillup_only -n coredns} + +%preun extras +%service_del_preun coredns.service + +%postun extras +%service_del_postun coredns.service + +%files +# Binaries +%{_sbindir}/coredns +# License +%license LICENSE + +%files extras +%{_sbindir}/rccoredns +# Manpages +%{_mandir}/man1/coredns* +%{_mandir}/man5/corefile* +%{_mandir}/man7/coredns-* +# Configs +%dir %{_sysconfdir}/coredns +%config(noreplace) %{_sysconfdir}/coredns/Corefile +%{_unitdir}/coredns.service + +%changelog diff --git a/coredns.service b/coredns.service new file mode 100644 index 0000000..2b054fb --- /dev/null +++ b/coredns.service @@ -0,0 +1,12 @@ +[Unit] +Description=Fast and flexible DNS server +After=network-online.target +Wants=network-online.target +Documentation=man:coredns(1) + +[Service] +Type=simple +ExecStart=/usr/sbin/coredns -conf /etc/coredns/Corefile -pidfile /var/run/coredns.pid + +[Install] +WantedBy=multi-user.target diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 120000 index 0000000..fed377a --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1 @@ +/ipfs/bafybeidjnaht4bjyr2htsja6oqrqoa3smai4mxtlpqge3qjczgknahhgxu \ No newline at end of file