diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a12b17e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +monitoring-plugins-systemd (2.3.0+ds-1) UNRELEASED; urgency=medium + + * Initial release. (Closes: #982667, #895278) + + -- Louis-Philippe Véronneau Sat, 13 Feb 2021 00:09:54 -0500 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..84041f1 --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: monitoring-plugins-systemd +Section: net +Priority: optional +Maintainer: Debian Python Team +Uploaders: Louis-Philippe Véronneau +Build-Depends: debhelper-compat (= 13), + dh-python, + dh-exec, + python3-all, + python3-setuptools, + python3-nagiosplugin, + python3-pytest, + systemd +Standards-Version: 4.5.1 +Vcs-Git: https://salsa.debian.org/python-team/packages/monitoring-plugins-systemd.git +Vcs-Browser: https://salsa.debian.org/python-team/packages/monitoring-plugins-systemd +Homepage: https://github.com/Josef-Friedrich/check_systemd +Rules-Requires-Root: no + +Package: monitoring-plugins-systemd +Architecture: all +Depends: ${python3:Depends}, + ${misc:Depends}, + python3, + python3-nagiosplugin, + systemd +Description: systemd plugin for nagios compatible monitoring systems + This systemd check for nagios compatible monitoring systems will report a + degraded systemd to your monitoring solution. It can also be used to monitor + individual systemd services and timers units. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..fc9cc0e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,37 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: check_systemd +Upstream-Contact: Josef Friedrich +Source: https://github.com/Josef-Friedrich/check_systemd +Comment: + The upstream source tarball is repacked to drop embedded copies of systemd + code. +Files-Excluded: + systemd_source_code + +Files: * +Copyright: 2014-2018, Andrea Briganti + 2019-2021, Josef Friedrich + 2013, Simon Peeters +License: LGPL-2.1+ + +Files: debian/* +Copyright: 2021, Louis-Philippe Véronneau +License: GPL-3+ + +License: LGPL-2.1+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1, or (at your option) + any later version. + . + On Debian systems, the complete text of the GNU Lesser General Public + License version 2.1 can be found in ‘/usr/share/common-licenses/LGPL-2.1’. + +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; version 3, or (at your option) any + later version. + . + On Debian systems, the complete text of version 3 of the GNU General + Public License can be found in '/usr/share/common-licenses/GPL-3'. diff --git a/debian/monitoring-plugins-systemd.install b/debian/monitoring-plugins-systemd.install new file mode 100755 index 0000000..b51e53a --- /dev/null +++ b/debian/monitoring-plugins-systemd.install @@ -0,0 +1,2 @@ +#!/usr/bin/dh-exec +check_systemd.py => usr/lib/nagios/plugins/check_systemd diff --git a/debian/monitoring-plugins-systemd.lintian-overrides b/debian/monitoring-plugins-systemd.lintian-overrides new file mode 100644 index 0000000..ba11051 --- /dev/null +++ b/debian/monitoring-plugins-systemd.lintian-overrides @@ -0,0 +1,2 @@ +# Monitoring plugins are typically installed in /usr/lib/nagios/plugins +monitoring-plugins-systemd: executable-in-usr-lib diff --git a/debian/patches/0001_Fix_Shebang.patch b/debian/patches/0001_Fix_Shebang.patch new file mode 100644 index 0000000..ec298ee --- /dev/null +++ b/debian/patches/0001_Fix_Shebang.patch @@ -0,0 +1,11 @@ +Fix the shebang, since pybuild isn't installing files for us. +Index: monitoring-plugins-systemd/check_systemd.py +=================================================================== +--- monitoring-plugins-systemd.orig/check_systemd.py ++++ monitoring-plugins-systemd/check_systemd.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python3 ++#!/usr/bin/python3 + + """ + ``check_system`` is a Nagios / Icinga monitoring plugin to check systemd. diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..3477748 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001_Fix_Shebang.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..9888271 --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +export PYBUILD_BEFORE_TEST=cp {dir}/check_systemd.py {dir}/README-template.md {build_dir} +export PYBUILD_TEST_ARGS=--ignore test/test_subprocess.py +export PYBUILD_DISABLE=install + +%: + dh $@ --with python3 --buildsystem=pybuild 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/watch b/debian/watch new file mode 100644 index 0000000..26c4def --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts="mode=git, uversionmangle=s/v//, repacksuffix=+ds, dversionmangle=s/\+ds//,repack" \ +https://github.com/Josef-Friedrich/check_systemd.git \ +refs/tags/([v\d\.]+)