Debian packaging and pyproject.toml

This commit is contained in:
2024-07-07 16:24:35 +02:00
parent 7aad78755f
commit 8f74b2a0fa
19 changed files with 161 additions and 0 deletions

8
debian/README.Debian vendored Normal file
View File

@ -0,0 +1,8 @@
routerstats for Debian
Please edit this to provide information specific to
this routerstats Debian package.
(Automatically generated by debmake Version 4.4.0)
-- Daniel <> Sun, 07 Jul 2024 12:44:39 +0000

6
debian/changelog vendored Normal file
View File

@ -0,0 +1,6 @@
routerstats (1.0-1) UNRELEASED; urgency=low
* Initial release. Closes: #nnnn
<nnnn is the bug number of your ITP>
-- Daniel <> Sun, 07 Jul 2024 12:44:39 +0000

22
debian/control vendored Normal file
View File

@ -0,0 +1,22 @@
Source: routerstats
Section: misc
Priority: optional
Maintainer: Daniel Lysfjord <lysfjord.daniel@smokepit.net>
Build-Depends: debhelper-compat (= 13)
Standards-Version: 4.5.1
Homepage: https://git.smokepit.net/daniell/routerstats/
Rules-Requires-Root: no
Package: routerstats-httpd
Architecture: all
Depends: python3, python3-rrdtool
Description: routerstats httpd service
Package: routerstats-client
Architecture: all
Depends: python3, python3-rrdtool
Description: routerstats client
Package: routerstats-collector
Architecture: all
Depends: python3, python3-setproctitle

22
debian/copyright vendored Normal file
View File

@ -0,0 +1,22 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: routerstats
Upstream-Contact: <preferred name and address to reach the upstream project>
Source: <url://example.com>
#
# Please double check copyright with the licensecheck(1) command.
Files: .pylintrc
README.md
routerstats.config
routerstats_client.py
routerstats_client.rc
routerstats_collector.py
routerstats_collector.service
routerstats_httpd.py
routerstats_httpd.rc
Copyright: __NO_COPYRIGHT_NOR_LICENSE__
License: __NO_COPYRIGHT_NOR_LICENSE__
#----------------------------------------------------------------------------
# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following
# license/copyright files.

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
# You must remove unused comment lines for the released package.

2
debian/routerstats-client.install vendored Normal file
View File

@ -0,0 +1,2 @@
/etc/routerstats/routerstats.config
/usr/bin/routerstats_client.py

2
debian/routerstats-collector.install vendored Normal file
View File

@ -0,0 +1,2 @@
/etc/routerstats/routerstats.config
/usr/bin/routerstats_collector.py

2
debian/routerstats-httpd.install vendored Normal file
View File

@ -0,0 +1,2 @@
/etc/routerstats/routerstats.config
/usr/bin/routerstats_httpd.py

2
debian/routerstats.substvars vendored Normal file
View File

@ -0,0 +1,2 @@
misc:Depends=
misc:Pre-Depends=

9
debian/rules vendored Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
#export DH_VERBOSE = 1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@

6
debian/source/control vendored Normal file
View File

@ -0,0 +1,6 @@
#
# DEP-8: autopkgtest - automatic as-installed package testing
# Please check * https://dep-team.pages.debian.net/deps/dep8/
# * /usr/share/doc/autopkgtest
#Tests: testcode.sh
#Restrictions: allow-stderr, breaks-testbed, needs-internet, needs-root

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

4
debian/source/local-options vendored Normal file
View File

@ -0,0 +1,4 @@
#
# ### gbp-buildpackage(1) user may like this. ###
#abort-on-upstream-changes
#unapply-patches

4
debian/source/options vendored Normal file
View File

@ -0,0 +1,4 @@
#
# ### dgit-maint-merge(7) workflow user need this ###
# single-debian-patch
# auto-commit

22
debian/source/patch-header vendored Normal file
View File

@ -0,0 +1,22 @@
The automatically generated patch puts this free form text on top of it.
If you are using gbp-buildpackage(1), you probably don't need this file.
If you are using dgit-maint-merge(7), please consider text as follows.
The Debian packaging of foo is maintained in git, using the merging workflow
described in dgit-maint-merge(7). There isn't a patch queue that can be
represented as a quilt series.
A detailed breakdown of the changes is available from their canonical
representation - git commits in the packaging repository. For example, to see
the changes made by the Debian maintainer in the first upload of upstream
version 1.2.3, you could use:
% git clone https://git.dgit.debian.org/foo
% cd foo
% git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'
(If you have dgit, use `dgit clone foo`, rather than plain `git clone`.)
A single combined diff, containing all the changes, follows.

6
debian/tests/control vendored Normal file
View File

@ -0,0 +1,6 @@
#
# DEP-8: autopkgtest - automatic as-installed package testing
# Please check * https://dep-team.pages.debian.net/deps/dep8/
# * /usr/share/doc/autopkgtest
#Tests: testcode.sh
#Restrictions: allow-stderr, breaks-testbed, needs-internet, needs-root

16
debian/upstream/metadata vendored Normal file
View File

@ -0,0 +1,16 @@
#
# DEP-12: Per-package machine-readable metadata about Upstream
# Please check * https://dep-team.pages.debian.net/deps/dep12/
# * https://wiki.debian.org/UpstreamMetadata
Reference:
Author: <please use full names and separate multiple author by the keyword "and">
Title:
Journal:
Year:
Volume:
Number:
Pages:
DOI:
PMID:
URL:
eprint:

2
debian/watch vendored Normal file
View File

@ -0,0 +1,2 @@
# You must remove unused comment lines for the released package.
version=3

24
pyproject.toml Normal file
View File

@ -0,0 +1,24 @@
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "routerstats"
readme = "README.rst"
dynamic = ["version"]
dependencies = [
"setproctitle"
]
classifiers = [
"Private :: do not upload"
]
[project.scripts]
routerstats-client = "routerstats_client.main:run"
routerstats-collector = "routerstats_collector.main:run"
routerstats-httpd = "routerstats_httpd.main:run"
[tool.setuptools]
packages = ["routerstats"]