From a00c9d7a03a45f6e12eb91f6ffdfb336f19598b08037c54aa11f48ffd5f28656 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 8 Oct 2020 11:13:13 +0000 Subject: [PATCH] Accepting request 840059 from devel:kubic New Package "cni-plugin-dnsname". Useful for enabling podman containers to resolve each other by name. OBS-URL: https://build.opensuse.org/request/show/840059 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cni-plugin-dnsname?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + _service | 18 +++++++++++++ _servicedata | 4 +++ cni-plugin-dnsname.changes | 10 +++++++ cni-plugin-dnsname.spec | 53 ++++++++++++++++++++++++++++++++++++++ dnsname-1.0.0.obscpio | 3 +++ dnsname.obsinfo | 5 ++++ 8 files changed, 117 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 cni-plugin-dnsname.changes create mode 100644 cni-plugin-dnsname.spec create mode 100644 dnsname-1.0.0.obscpio create mode 100644 dnsname.obsinfo diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..87a599d --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + https://github.com/containers/dnsname.git + git + dnsname + .git + 1.0.0 + v1.0.0 + + + + *.tar + xz + + + dnsname + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..9c5ab86 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/containers/dnsname.git + fe71acc2f06cf07a27ad4f575cea92b7712115b5 \ No newline at end of file diff --git a/cni-plugin-dnsname.changes b/cni-plugin-dnsname.changes new file mode 100644 index 0000000..c657c0f --- /dev/null +++ b/cni-plugin-dnsname.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Wed Oct 7 10:44:02 UTC 2020 - Ralf Haferkamp + +- remove empty scriptlets +- Adjust build flags to create PIE binary + +------------------------------------------------------------------- +Tue Sep 29 12:50:28 UTC 2020 - Ralf Haferkamp + +- Initial release v1.0.0 diff --git a/cni-plugin-dnsname.spec b/cni-plugin-dnsname.spec new file mode 100644 index 0000000..2dc5a1d --- /dev/null +++ b/cni-plugin-dnsname.spec @@ -0,0 +1,53 @@ +# spec file for package cni-plugin-dnsname +# +# Copyright (c) 2020 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/ +# + + +Name: cni-plugin-dnsname +Version: 1.0.0 +Release: 0 +Summary: CNI plugin to provide name resolution for containers +License: Apache-2.0 +URL: https://github.com/containers/dnsname +Source: dnsname-%{version}.tar.xz +BuildRequires: golang-packaging +BuildRequires: golang(API) >= 1.13 +Requires: cni + +%description +This CNI plugin sets up the use of dnsmasq on a given CNI network so that Pods +can resolve each other by name. When configured, the pod and its IP address are +added to a network specific hosts file that dnsmasq reads in. Similarly, when a +pod is removed from the network, it will remove the entry from the hosts file. +Each CNI network will have its own dnsmasq instance. + +The dnsname plugin was specifically designed for the Podman container engine. + +%prep +%setup -q -n dnsname-%{version} + +%build +%make_build GO_BUILD="GO111MODULE=on go build -mod=vendor -buildmode=pie" binaries + +%install +PREFIX=/usr %make_install + +%files +%license LICENSE +%doc README.md README_PODMAN.md +%dir %{_libexecdir}/cni +%{_libexecdir}/cni/dnsname + +%changelog diff --git a/dnsname-1.0.0.obscpio b/dnsname-1.0.0.obscpio new file mode 100644 index 0000000..850c6e1 --- /dev/null +++ b/dnsname-1.0.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec3c07acdd4249767b9fccf64bcb4a12c43b8dc4c8dcc4ffcf1843b62f06e956 +size 13438989 diff --git a/dnsname.obsinfo b/dnsname.obsinfo new file mode 100644 index 0000000..1c40034 --- /dev/null +++ b/dnsname.obsinfo @@ -0,0 +1,5 @@ +name: dnsname +version: 1.0.0 +mtime: 1600093700 +commit: fe71acc2f06cf07a27ad4f575cea92b7712115b5 +