build: добавлены метаданные и systemd юниты для сборки .deb пакета

This commit is contained in:
2026-08-01 04:53:08 +03:00
parent 703fc9dd57
commit 882d00c9b1
6 changed files with 51 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
traffic-checker (0.1-1) unstable; urgency=medium
* Initial release.
-- Vladimir Khvan <thisisnotablownfuse@gmail.com> Sat, 01 Aug 2026 04:00:00 +0300
+14
View File
@@ -0,0 +1,14 @@
Source: traffic-checker
Section: python
Priority: optional
Maintainer: Your Name <you@example.com>
Build-Depends: debhelper-compat (=13),
dh-python,
python3-all,
python3-setuptools
Standards-Version: 4.6.2
Package: traffic-checker
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Description: Traffic consumption monitoring CLI tool for remote servers with automated alerting
+3
View File
@@ -0,0 +1,3 @@
config.json.example /etc/traffic-checker/
.env.example /etc/traffic-checker/
state.json.example /var/lib/traffic-checker/
Vendored Executable
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/make -f
export DH_VERBOSE = 1
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_installsystemd:
dh_installsystemd --no-enable
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=Traffic Checker Monitoring Service
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
User=traffic-checker
Group=traffic-checker
ExecStart=/usr/bin/traffic-checker
EnvironmentFile=-/etc/traffic-checker/environment
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Run Traffic Checker every 5 minutes
[Timer]
OnCalendar=*:0/5
Persistent=true
[Install]
WantedBy=timers.target