.pytype
dist/
.tox/
-.vscode/
\ No newline at end of file
+.vscode/
+/pkg
--- /dev/null
+# knot-resolver-manager upstream packaging sources
+
+Top level distro/ dir contains upstream packaging sources for native packages.
+
+Files in this directory follow [apkg] conventions and apkg can be used to
+create BIRD packages for various distros directly from upstream sources as
+well as from upstream archives once available.
+
+[apkg]: https://apkg.rtfd.io
+
+
+## Create package from current repo commit
+
+Create native packages using isolated builder (pbuilder, mock, ...):
+
+ apkg build
+
+If you're using VM, container or other disposable system, it's recommended to
+build packages directly using -h/--host-build and -i/--install-dep:
+
+ apkg build -Hi
+
+To create source package:
+
+ apkg srcpkg
+
--- /dev/null
+[project]
+name = "knot-resolver-manager"
+# needed for make-archive
+make_archive_script = "scripts/make-dev-archive.sh"
--- /dev/null
+knot-resolver-manager ({{ version }}-cznic.{{ release }}) unstable; urgency=medium
+
+ * new upstream version {{ version }}
+
+ -- Jakub Ružička <jakub.ruzicka@nic.cz> Tue, 20 Apr 2020 16:20:00 +0100
--- /dev/null
+Source: knot-resolver-manager
+Section: python
+Priority: optional
+Maintainer: Jakub Ružička <jakub.ruzicka@nic.cz>
+Build-Depends:
+ debhelper,
+ dh-python,
+ python3,
+Homepage: https://gitlab.nic.cz/knot/knot-resolver-manager
+
+Package: python3-knot-resolver-manager
+Architecture: all
+Depends:
+ python3-aiohttp,
+ python3-click,
+ python3-gi,
+ python3-pydbus,
+ python3-yaml,
+ ${misc:Depends},
+ ${python3:Depends},
+Recommends:
+ knot-resolver
+Provides: knot-resolver-manager
+Description: Knot Resolver Manager
--- /dev/null
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: knot-resolver-manager
+Source: https://gitlab.nic.cz/knot/knot-resolver-manager
+
+Files: *
+Copyright: (c) 2021, CZ.NIC
+License: GPL-3+
+
+License: GPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the full text of the GNU General Public License
+ version 3 can be found in the file `/usr/share/common-licenses/GPL-3'.
--- /dev/null
+#!/usr/bin/make -f
+
+%:
+ dh $@ --buildsystem=pybuild
+
+override_dh_auto_build:
+ echo "no build required"
--- /dev/null
+3.0 (quilt)
--- /dev/null
+#!/bin/bash
+# create dev archive from current repo HEAD
+set -o errexit -o nounset
+
+cd "$(dirname ${0})/.."
+
+if ! command -v poetry &> /dev/null
+then
+ echo "poetry is required to create archive: pip install poetry"
+ exit 1
+fi
+
+set -o xtrace
+
+# create archive using poetry and get its name
+ARNAME=$(poetry build -f sdist | sed -n 's/\s\+- Built \(knot-resolver-manager-.*\.tar\.gz\)/\1/p')
+ARPATH="dist/$ARNAME"
+
+# print path to generated archive for apkg
+echo "$ARPATH"