summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2020-12-02 09:24:35 -0500
committerReinhard Tartler <siretart@tauware.de>2020-12-02 09:24:58 -0500
commit518ff6a5bd096776ab7014456ba3cda697e0addc (patch)
tree5f8f60213854cbfbe84c400ba81525c63bcd80ba
parent29cc1453eab24cbbfcdd21b9b86a36ff3183a840 (diff)
fix packagingdebian/1.1.1+ds1-1
-rw-r--r--debian/changelog5
-rw-r--r--debian/control41
-rw-r--r--debian/copyright37
-rw-r--r--debian/gbp.conf3
-rw-r--r--debian/patches/series0
-rwxr-xr-xdebian/rules13
-rw-r--r--debian/source/format1
-rw-r--r--debian/upstream/metadata5
-rw-r--r--debian/watch5
9 files changed, 110 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c1936c1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+golang-github-containers-dnsname (1.1.1+ds1-1) experimental; urgency=medium
+
+ * Initial release (Closes: #976237)
+
+ -- Reinhard Tartler <siretart@tauware.de> Wed, 02 Dec 2020 09:14:56 -0500
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..32439c5
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,41 @@
+Source: golang-github-containers-dnsname
+Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
+Uploaders: Reinhard Tartler <siretart@tauware.de>
+Section: golang
+Testsuite: autopkgtest-pkg-go
+Priority: optional
+Build-Depends: debhelper-compat (= 13),
+ dh-golang,
+ golang-any,
+ golang-github-appc-cni-dev,
+ golang-github-containernetworking-plugins-dev,
+ golang-github-coreos-go-iptables-dev,
+ golang-github-onsi-ginkgo-dev,
+ golang-github-pkg-errors-dev,
+ golang-github-vishvananda-netlink-dev,
+ golang-golang-x-sys-dev,
+ golang-gomega-dev,
+ golang-logrus-dev
+Standards-Version: 4.5.1
+Vcs-Browser: https://salsa.debian.org/go-team/packages/dnsname
+Vcs-Git: https://salsa.debian.org/go-team/packages/dnsname.git
+Homepage: https://github.com/containers/dnsname
+Rules-Requires-Root: no
+XS-Go-Import-Path: github.com/containers/dnsname
+
+Package: golang-github-containernetworking-plugin
+Architecture: any
+Depends: ${misc:Depends},
+ ${shlibs:Depends}
+Built-Using: ${misc:Built-Using}
+Enhances: podman
+Description: name resolution for containers
+ dnsname pluginOverview This 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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fe4b332
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,37 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: dnsname
+Upstream-Contact: TODO
+Source: https://github.com/containers/dnsname
+Files-Excluded:
+ vendor
+
+Files: *
+Copyright: 2019, Container authors
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2020, Reinhard Tartler <siretart@tauware.de>
+License: Apache-2.0
+Comment: Debian packaging is licensed under the same terms as upstream
+
+Files: plugins/meta/dnsname/dnsname_suite_test.go
+ plugins/meta/dnsname/main.go
+Copyright: 2019, dnsname authors
+ 2017, CNI authors
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..3d450c2
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+debian-branch = debian/sid
+dist = DEP14
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/patches/series
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1b52287
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --builddirectory=_build --buildsystem=golang --with=golang
+
+override_dh_auto_install:
+ dh_auto_install -- --no-source
+ # move plugin to correct destination
+ mv -v debian/golang-github-containernetworking-plugin/usr/bin \
+ debian/golang-github-containernetworking-plugin/usr/lib
+
+override_dh_auto_test:
+ # tests require root
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..a07b400
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,5 @@
+---
+Bug-Database: https://github.com/containers/dnsname/issues
+Bug-Submit: https://github.com/containers/dnsname/issues/new
+Repository: https://github.com/containers/dnsname.git
+Repository-Browse: https://github.com/containers/dnsname
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..aef2968
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=4
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%dnsname-$1.tar.gz%,\
+ uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/,\
+ dversionmangle=s/\+ds\d*$//,repacksuffix=+ds1" \
+ https://github.com/containers/dnsname/tags .*/v?(\d\S*)\.tar\.gz debian