This commit is contained in:
root
2025-11-07 11:31:06 +00:00
commit 2859f93882
407 changed files with 99769 additions and 0 deletions

16
debian/smokeping/DEBIAN/conffiles vendored Normal file
View File

@@ -0,0 +1,16 @@
/etc/apache2/conf-available/smokeping.conf
/etc/default/smokeping
/etc/init.d/smokeping
/etc/smokeping/basepage.html
/etc/smokeping/config
/etc/smokeping/config.d/Alerts
/etc/smokeping/config.d/Database
/etc/smokeping/config.d/General
/etc/smokeping/config.d/Presentation
/etc/smokeping/config.d/Probes
/etc/smokeping/config.d/Slaves
/etc/smokeping/config.d/Targets
/etc/smokeping/config.d/pathnames
/etc/smokeping/smokemail
/etc/smokeping/smokeping_secrets
/etc/smokeping/tmail

20
debian/smokeping/DEBIAN/control vendored Normal file
View File

@@ -0,0 +1,20 @@
Package: smokeping
Version: 2.9.0+linuxiarz.pl-1
Architecture: all
Maintainer: Gabriel Filion <gabster@lelutin.ca>
Installed-Size: 1328
Pre-Depends: init-system-helpers (>= 1.54~)
Depends: perl:any, libwww-perl, libsnmp-session-perl, librrds-perl (>= 1.2), liburi-perl, fping, libcgi-fast-perl, adduser, libdigest-hmac-perl, ucf, libconfig-grammar-perl, libjs-cropper, libjs-scriptaculous, libjs-prototype, default-mta | mail-transport-agent
Recommends: apache2 | httpd-cgi, libsocket6-perl, dnsutils, echoping, apache2 (>= 2.4.6-4~) | apache2 | httpd
Suggests: curl, libauthen-radius-perl, libnet-ldap-perl, libnet-dns-perl, openssh-client, libio-socket-ssl-perl, libnet-telnet-perl, libnet-openssh-perl, libio-pty-perl, libpath-tiny-perl, libinfluxdb-lineprotocol-perl, libobject-result-perl
Section: net
Priority: optional
Homepage: https://smokeping.org/
Description: latency logging and graphing system
SmokePing consists of a daemon process which organizes the
latency measurements and a CGI which presents the graphs.
.
With SmokePing you can measure latency and packet loss in your network.
SmokePing uses RRDtool to maintain a longterm datastore and to draw pretty
graphs giving up to the minute information on the state of each
network connection.

171
debian/smokeping/DEBIAN/md5sums vendored Normal file
View File

@@ -0,0 +1,171 @@
1134871f6bbdb7d37b13eb019bb9e380 usr/lib/BER.pm
6efd1989ec82c270e2a65466472f9038 usr/lib/SNMP_Session.pm
c6ea0ad89e3104d3f443f5a15463e46c usr/lib/SNMP_util.pm
ba82c5349a68b5dd4bc67d054e207c09 usr/lib/cgi-bin/smokeping.cgi
33a46ca6af4d1b48ed8abdeccc32b1d1 usr/lib/systemd/system/smokeping.service
c83cd7df37e8093e5fe03191540ee58d usr/sbin/smokeinfo
e70d4d37db446134c798b0e698d367b3 usr/sbin/smokeping
f4bbe4fcd858c3ada743a04239df658f usr/sbin/tSmoke
655a4ab4ff4e423d97918f149998253a usr/share/doc/smokeping/README.Debian
e1cbcec71e50595b705ff09f50d99bf2 usr/share/doc/smokeping/README.md
6b898ee5ee17e1ab773b1508da85c423 usr/share/doc/smokeping/TODO.Debian
7e3793102739694e106f07d303eba7eb usr/share/doc/smokeping/changelog.Debian.gz
fdb39f1efd5996a10a8a6c94ec679160 usr/share/doc/smokeping/changelog.gz
e65a7f6581c141086e888c9c87871b08 usr/share/doc/smokeping/copyright
a794267c6c448b40f0caeb33e6577287 usr/share/doc/smokeping/examples/config.echoping
b14664ebe2f9bf358f0de46cd8e2c7ca usr/share/doc/smokeping/examples/config.fping-instances
02acc4fbd7dd1106eae421e6fead04be usr/share/doc/smokeping/examples/config.multiple-probes
912cff778776afcf920f188b1fc80e88 usr/share/doc/smokeping/examples/config.simple
ab40e404a087e30556385c112ec44bce usr/share/doc/smokeping/examples/config.targetvars-with-Curl
794a4f3d1d7de13da52fe039c9d5a6cb usr/share/doc/smokeping/examples/config.template
78bb389ff3b5f86fd9f5c799ba3efabb usr/share/doc/smokeping/examples/lighttpd_45-smokeping.conf
20a41dc90ae70beba75139b8200ae253 usr/share/doc/smokeping/examples/smokeping_secrets.dist
8177fd878d08dd1d07905b4714475906 usr/share/doc/smokeping/examples/systemd/slave_mode.conf
b732161ea94edd01a3da533a76020d55 usr/share/man/man1/smokeinfo.1.gz
b1320c9ecf943938b07ad7f1be6a2ab5 usr/share/man/man1/smokeping.1.gz
8bbe4143c901543ebc15ee0cfc16f7bc usr/share/man/man1/smokeping_cgi.1.gz
efdf999b8bc342f6d94b804dfd7c178c usr/share/man/man1/tSmoke.1.gz
e1ae1fe9761f92229b3e6e37b244cd5d usr/share/man/man3/Smokeping_matchers_Avgratio.3.gz
c20afb8a74c7abab4a04209eaebea131 usr/share/man/man3/Smokeping_matchers_CheckLatency.3.gz
2eab1a1c61c0371412ed830839d7bf26 usr/share/man/man3/Smokeping_matchers_CheckLoss.3.gz
78af44735461bcbbd5742b93fc44c599 usr/share/man/man3/Smokeping_matchers_ConsecutiveLoss.3.gz
335186c50604e763760374c2fffec076 usr/share/man/man3/Smokeping_matchers_ExpLoss.3.gz
29bb8b5d67e235ace9d571d2507ae48d usr/share/man/man3/Smokeping_matchers_Median.3.gz
22f64ed24f88d82eb9ac74f621ccd62f usr/share/man/man3/Smokeping_matchers_Medratio.3.gz
a878c675f065a0d59065d3330d6b44bf usr/share/man/man3/Smokeping_matchers_base.3.gz
94b0f0b15e3c783d73e53d24442d34f9 usr/share/man/man3/Smokeping_probes_AnotherCurl.3.gz
f72546c54ff4f494521a08ac1e58b3bf usr/share/man/man3/Smokeping_probes_AnotherDNS.3.gz
4bc247df21865f827d7d0cc6d11f4ad5 usr/share/man/man3/Smokeping_probes_AnotherSSH.3.gz
134b6e05cd4183c66e735c0c241f3779 usr/share/man/man3/Smokeping_probes_CiscoRTTMonDNS.3.gz
e16f3b9bf474e4a82f55a3f72fb64cc8 usr/share/man/man3/Smokeping_probes_CiscoRTTMonEchoICMP.3.gz
5c8196ff3562300ad87313b623651619 usr/share/man/man3/Smokeping_probes_CiscoRTTMonTcpConnect.3.gz
450a8e8b052ecfc298028fd2dd0b2d29 usr/share/man/man3/Smokeping_probes_Curl.3.gz
6a442716aac4f4371315c37b4ab90203 usr/share/man/man3/Smokeping_probes_DNS.3.gz
18b3ee2d23f47dc73b80943e7bc61a77 usr/share/man/man3/Smokeping_probes_DismanPing.3.gz
f1f327eaab20a86d43d8527b395081a7 usr/share/man/man3/Smokeping_probes_EchoPing.3.gz
ea31ba780d8a52f2258177b1482ac641 usr/share/man/man3/Smokeping_probes_EchoPingChargen.3.gz
c0c7d7eb45a1bacb1cc5068e127cef3b usr/share/man/man3/Smokeping_probes_EchoPingDNS.3.gz
a40024dcb6cfd2fe78084a093c4d2543 usr/share/man/man3/Smokeping_probes_EchoPingDiscard.3.gz
296de901f0c841fe77e10fbe6254fa41 usr/share/man/man3/Smokeping_probes_EchoPingHttp.3.gz
253cb481295f201a7077c4c5d896c680 usr/share/man/man3/Smokeping_probes_EchoPingHttps.3.gz
563705b5aae65bc54c2431ba3fcd7d9e usr/share/man/man3/Smokeping_probes_EchoPingIcp.3.gz
f5b5c2618b95108ab2824fc561e4f239 usr/share/man/man3/Smokeping_probes_EchoPingLDAP.3.gz
7ec00b37e648edea72f03dda68ca1ffe usr/share/man/man3/Smokeping_probes_EchoPingPlugin.3.gz
86965cfc960f056d7f3c0ce9223942d9 usr/share/man/man3/Smokeping_probes_EchoPingSmtp.3.gz
eee072c1ba7274c859301d54ccb7dfa2 usr/share/man/man3/Smokeping_probes_EchoPingWhois.3.gz
750589c391a6c7c933d3840b60656d04 usr/share/man/man3/Smokeping_probes_FPing.3.gz
859306573a30db9efe2f01a5316058f3 usr/share/man/man3/Smokeping_probes_FPing6.3.gz
f79652e64406ed65e5d8f966d19da0da usr/share/man/man3/Smokeping_probes_FPingContinuous.3.gz
8f66f4d6b05663d1f29ee7711a2bd918 usr/share/man/man3/Smokeping_probes_FTPtransfer.3.gz
dd360d89050640e4100f71aef4f1861d usr/share/man/man3/Smokeping_probes_IOSPing.3.gz
bb1a6cca91f71b0c8f2cf1f281821e6f usr/share/man/man3/Smokeping_probes_IRTT.3.gz
f09af3b3292174bcb45d24840873b27e usr/share/man/man3/Smokeping_probes_LDAP.3.gz
24ff7f732951e74db35e19ae2b5c3e62 usr/share/man/man3/Smokeping_probes_NFSping.3.gz
71864ed1e82a866a4e45dd2a198e1f3c usr/share/man/man3/Smokeping_probes_OpenSSHEOSPing.3.gz
8843eb0d1f725bd82f33007b35f6c682 usr/share/man/man3/Smokeping_probes_OpenSSHJunOSPing.3.gz
f10a50bac310d03f3766fb9370575230 usr/share/man/man3/Smokeping_probes_Qstat.3.gz
1f986b466deb32a51262e4e02a7df92a usr/share/man/man3/Smokeping_probes_Radius.3.gz
043fcd3405590475920624364ba3025e usr/share/man/man3/Smokeping_probes_RemoteFPing.3.gz
6b1469547f1c9a6c2b1b953f2bbe881c usr/share/man/man3/Smokeping_probes_SSH.3.gz
75581fbb7c56fa75fa6da8d02d4f208a usr/share/man/man3/Smokeping_probes_SendEmail.3.gz
77696e77315902963c8d4f1ccf7990ff usr/share/man/man3/Smokeping_probes_SipSak.3.gz
87ce69554a609f1839ec05321151dffb usr/share/man/man3/Smokeping_probes_TCPPing.3.gz
e45ea0a3826a922b7090b2998afe0213 usr/share/man/man3/Smokeping_probes_TacacsPlus.3.gz
43e857ef3f996477dd222e96af4c1b80 usr/share/man/man3/Smokeping_probes_TelnetIOSPing.3.gz
053c938b283f3df5ee253b3ffd414521 usr/share/man/man3/Smokeping_probes_TelnetJunOSPing.3.gz
144338d31b0df8d4f3e642fc1c5db4a5 usr/share/man/man3/Smokeping_probes_TraceroutePing.3.gz
4b6ce979eed0a3bd35a91a6ba9c1b76e usr/share/man/man3/Smokeping_probes_WebProxyFilter.3.gz
3396c46a56b346a05fe65b273f5f1066 usr/share/man/man3/Smokeping_probes_base.3.gz
ca51e850b52e3200950ffeba06e901c1 usr/share/man/man3/Smokeping_probes_basefork.3.gz
b48367e10549357af6274082a5226c97 usr/share/man/man3/Smokeping_probes_basevars.3.gz
01f0ba3dcc868e6ade3a0d27050bb61a usr/share/man/man3/Smokeping_probes_passwordchecker.3.gz
1cbb916f490e06f8aae5006b2dad86db usr/share/man/man3/Smokeping_probes_skel.3.gz
7664d866e9d771d9efba9659028f381d usr/share/man/man3/Smokeping_sorters_Loss.3.gz
3cff55cc3934368184e342017685c548 usr/share/man/man3/Smokeping_sorters_Max.3.gz
2db7bddcd8cde91aaa83af81375569cb usr/share/man/man3/Smokeping_sorters_Median.3.gz
b431a0e6ae67562cf5dcdb372958a772 usr/share/man/man3/Smokeping_sorters_StdDev.3.gz
5d76eac0e1ee6573df5bee69e71a9cd2 usr/share/man/man3/Smokeping_sorters_base.3.gz
30fa00fcaace86d1490066c689c783f7 usr/share/man/man5/smokeping_config.5.gz
e2778d36b5c4600aa8f255af6bf8f277 usr/share/man/man5/smokeping_examples.5.gz
9739845883c9ac5a67cf73c77307f265 usr/share/man/man7/smokeping_extend.7.gz
61703f285f638deef693a1b113e6e874 usr/share/man/man7/smokeping_install.7.gz
9a8ada37ef7ae1d4c00cef595e3679aa usr/share/man/man7/smokeping_master_slave.7.gz
b44cd09375aab8d6e3a2607962da2c45 usr/share/man/man7/smokeping_upgrade.7.gz
dad3c12c69c46fc40cb03eae55f70bc5 usr/share/perl5/Smokeping.pm
74dc0a7e83f7e5033dcaa59f452fc11b usr/share/perl5/Smokeping/Colorspace.pm
affa12d68e79a45a82635683686673d5 usr/share/perl5/Smokeping/Config.pm
7fb5e259df686acb83daacd7708a72a9 usr/share/perl5/Smokeping/Examples.pm
9615f1119ac79d65c51997f5403b558f usr/share/perl5/Smokeping/Graphs.pm
40d9a0d2effcd59d89bbcd893fe3f27a usr/share/perl5/Smokeping/Info.pm
aa38784e396ff79b7701411c3a5690fa usr/share/perl5/Smokeping/Master.pm
000bb41739ce475ac0db7aebeaec4cb6 usr/share/perl5/Smokeping/RRDhelpers.pm
4840b6be3abeea9cd8f4773da3649632 usr/share/perl5/Smokeping/RRDtools.pm
5d1510802e13a09fa6d5cdb61a2ed973 usr/share/perl5/Smokeping/Slave.pm
6ca9a74149bbeda25588d81a885aafac usr/share/perl5/Smokeping/ciscoRttMonMIB.pm
0589f39cc33fb0a443bd947e00442c92 usr/share/perl5/Smokeping/matchers/Avgratio.pm
c9f37222afc9fab4ee9ad81c84349bfe usr/share/perl5/Smokeping/matchers/CheckLatency.pm
ebf79b04b999b0eea95bcdc6a918c30d usr/share/perl5/Smokeping/matchers/CheckLoss.pm
0c680558c553638e7418cc44cbb76868 usr/share/perl5/Smokeping/matchers/ConsecutiveLoss.pm
0e9d1d8a7a4d338152c50ff221e2f152 usr/share/perl5/Smokeping/matchers/ExpLoss.pm
d70b48f27e5c9a1eb8e8f51c7a6f183a usr/share/perl5/Smokeping/matchers/Median.pm
71282e21e01fb6572a1859492dda2ea8 usr/share/perl5/Smokeping/matchers/Medratio.pm
8c67107c66f13565419f0641ee720f47 usr/share/perl5/Smokeping/matchers/base.pm
8d2752f301f4f73e006724deb1f77f33 usr/share/perl5/Smokeping/pingMIB.pm
a1d417dd6664100d9c7cdd671e2487a2 usr/share/perl5/Smokeping/probes/AnotherCurl.pm
38b0f60e322c4edb0495238b3864dcaa usr/share/perl5/Smokeping/probes/AnotherDNS.pm
22d4d89cb89d09ca1252915251bf53fa usr/share/perl5/Smokeping/probes/AnotherSSH.pm
9c046a63424618ac3fc6abeace84f561 usr/share/perl5/Smokeping/probes/CiscoRTTMonDNS.pm
8fe659bc4b1db1e4b7a370a4bb95eddb usr/share/perl5/Smokeping/probes/CiscoRTTMonEchoICMP.pm
f58ebe194cb6d2313c59b86c02d654f2 usr/share/perl5/Smokeping/probes/CiscoRTTMonTcpConnect.pm
386baa69338b1dddc2ab202c6e454e43 usr/share/perl5/Smokeping/probes/Curl.pm
788c288e521072d6bec0ee33b1f49384 usr/share/perl5/Smokeping/probes/DNS.pm
d4d56290d9a5f248f43103054e73b2f9 usr/share/perl5/Smokeping/probes/DismanPing.pm
b1502dd807100f8aafd97e85d12a2110 usr/share/perl5/Smokeping/probes/EchoPing.pm
c39943e17c351729f59a1e6af79e8b96 usr/share/perl5/Smokeping/probes/EchoPingChargen.pm
001b86134c2788eb6716f8155931b4ef usr/share/perl5/Smokeping/probes/EchoPingDNS.pm
ad971c0c2f08b53c4fe5da5baf434b2a usr/share/perl5/Smokeping/probes/EchoPingDiscard.pm
31e949250005ff133a85262260d9e77b usr/share/perl5/Smokeping/probes/EchoPingHttp.pm
7bf83c131ec66df9ecb71903b2171be3 usr/share/perl5/Smokeping/probes/EchoPingHttps.pm
7745c7902518a6ac7bebbed22ddfd82f usr/share/perl5/Smokeping/probes/EchoPingIcp.pm
f3c010af1de08141c91e3aedf53181da usr/share/perl5/Smokeping/probes/EchoPingLDAP.pm
e8ee4043da2e34980783301350fb6ee8 usr/share/perl5/Smokeping/probes/EchoPingPlugin.pm
5cae2fd9ad9ff93c9a2969cf60903f46 usr/share/perl5/Smokeping/probes/EchoPingSmtp.pm
4f389d382ac14503322c617e37e7636c usr/share/perl5/Smokeping/probes/EchoPingWhois.pm
2c9a0cac05ddd312a5656dd3eeed4462 usr/share/perl5/Smokeping/probes/FPing.pm
8f77dbf0c925913ce83e184a4e6187d4 usr/share/perl5/Smokeping/probes/FPing6.pm
c16790651d98eb85ecc2692d001a23dd usr/share/perl5/Smokeping/probes/FPingContinuous.pm
1521777598df8965907927eb92c3e408 usr/share/perl5/Smokeping/probes/FTPtransfer.pm
583202540b57e6883d7a120477559e69 usr/share/perl5/Smokeping/probes/IOSPing.pm
6c3e91d404bae0191320c425e3c9cada usr/share/perl5/Smokeping/probes/IRTT.pm
2243990ce8eed9db07845671a7a46f37 usr/share/perl5/Smokeping/probes/LDAP.pm
947f5dd1457ebcb7f5901ec475428e77 usr/share/perl5/Smokeping/probes/NFSping.pm
d1bb3426744b26fcec326b1652f175c0 usr/share/perl5/Smokeping/probes/OpenSSHEOSPing.pm
3965ee85c715e289737f2278236590b1 usr/share/perl5/Smokeping/probes/OpenSSHJunOSPing.pm
5534b5594c794a8e35d81c42f9f104fb usr/share/perl5/Smokeping/probes/Qstat.pm
0abb73c4155c1b1aac6bdc84da4e35d1 usr/share/perl5/Smokeping/probes/Radius.pm
2f9f3f0fdae60d0b812ed8494bb495a4 usr/share/perl5/Smokeping/probes/RemoteFPing.pm
3ee5f11dd635f54d04137db332ba8186 usr/share/perl5/Smokeping/probes/SSH.pm
382cd82f0b8c779ba3fc0e78180b7456 usr/share/perl5/Smokeping/probes/SendEmail.pm
303869aad39ec0eaa977dc665b4be679 usr/share/perl5/Smokeping/probes/SipSak.pm
1e4fccbd6802b2a2e40d6960c3b06c8d usr/share/perl5/Smokeping/probes/TCPPing.pm
40718aab8cdbc7cb4760386476e8c1cd usr/share/perl5/Smokeping/probes/TacacsPlus.pm
59c2a5701010c38c00f95e2a3eb6dd40 usr/share/perl5/Smokeping/probes/TelnetIOSPing.pm
4818fed56c1d7afd5b887f164a682630 usr/share/perl5/Smokeping/probes/TelnetJunOSPing.pm
9f581fbab087d0a576260f0d79273310 usr/share/perl5/Smokeping/probes/TraceroutePing.pm
b079e26ad4e054dc5fde13c9c473fea0 usr/share/perl5/Smokeping/probes/WebProxyFilter.pm
fa25895772c5d14031e36ef1164bd138 usr/share/perl5/Smokeping/probes/base.pm
2300f76af8d86de1a640c03a70375497 usr/share/perl5/Smokeping/probes/basefork.pm
5ebc965d50d4601f51239caeddf0e352 usr/share/perl5/Smokeping/probes/basevars.pm
1bfbd2c8d1b646fda4cd915b72dec62d usr/share/perl5/Smokeping/probes/passwordchecker.pm
f3148ac862ddf308ffdfa6b98b1e4454 usr/share/perl5/Smokeping/probes/skel.pm
ab05eee799a3f7dd3ad55552ebcf9005 usr/share/perl5/Smokeping/sorters/Loss.pm
b0ee00e7ded5d2244074da936081a5f8 usr/share/perl5/Smokeping/sorters/Max.pm
8df66ecffb3d99a83853a95fcb93ca9e usr/share/perl5/Smokeping/sorters/Median.pm
b7b48ab6ee96cade6e4aee63a6229963 usr/share/perl5/Smokeping/sorters/StdDev.pm
e4590791ff48d9d3c2e8af7d4cc89537 usr/share/perl5/Smokeping/sorters/base.pm
23dedc7a0521f63f8f55ed2840efedad usr/share/smokeping/smokeping.cgi
5a3a81cf4d5c006de7b39e149e8aac30 usr/share/smokeping/www/css/smokeping-print.css
6d82c4e7262a8b71c47e3221b72174b5 usr/share/smokeping/www/css/smokeping-screen.css
fb004124bf1ed724b26e6e188db7604e usr/share/smokeping/www/js/prototype.js
b3194289aa4d19188e036ec01d4d2c12 usr/share/smokeping/www/js/smokeping.js
477e7d2bee062d9fa4b1e773d7c98d1e usr/share/smokeping/www/smokeping.fcgi.dist

125
debian/smokeping/DEBIAN/postinst vendored Executable file
View File

@@ -0,0 +1,125 @@
#! /bin/sh
# postinst script for smokeping
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
#
# quoting from the policy:
# Any necessary prompting should almost always be confined to the
# post-installation script, and should be protected with a conditional
# so that unnecessary prompting doesn't happen if a package's
# installation fails and the `postinst' is called with `abort-upgrade',
# `abort-remove' or `abort-deconfigure'.
setup_permissions() {
# Smokeping.cgi is run as user www-data, so we need it to be able
# to write in /var/cache/smokeping/images and in /var/lib/smokeping/__cgi
chown smokeping:smokeping /var/lib/smokeping
chown www-data /var/cache/smokeping/images
chown smokeping:www-data /var/lib/smokeping/__cgi
chmod 2775 /var/lib/smokeping/__cgi
chown smokeping:www-data /etc/smokeping/smokeping_secrets
chmod 640 /etc/smokeping/smokeping_secrets
}
# OK, let's go
case "$1" in
configure|reconfigure)
getent passwd smokeping > /dev/null || \
adduser --system --group --home /var/lib/smokeping --no-create-home --gecos "SmokePing daemon" smokeping
setup_permissions
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke enmod cgi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# Automatically added by dh_apache2/UNDECLARED
if true; then
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
for conf in smokeping ; do
apache2_invoke enconf $conf || exit 1
done
fi
fi
# End automatically added section
# Automatically added by dh_installdeb/13.24.2
dpkg-maintscript-helper mv_conffile /etc/smokeping/apache2.conf /etc/apache2/conf-available/smokeping.conf -- "$@"
# End automatically added section
# Automatically added by dh_installinit/13.24.2
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -z "$DPKG_ROOT" ] && [ -x "/etc/init.d/smokeping" ]; then
update-rc.d smokeping defaults >/dev/null
if [ -n "$2" ]; then
_dh_action=restart
else
_dh_action=start
fi
invoke-rc.d --skip-systemd-native smokeping $_dh_action || exit 1
fi
fi
# End automatically added section
# Automatically added by dh_installsystemd/13.24.2
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
# The following line should be removed in trixie or trixie+1
deb-systemd-helper unmask 'smokeping.service' >/dev/null || true
# was-enabled defaults to true, so new installations run enable.
if deb-systemd-helper --quiet was-enabled 'smokeping.service'; then
# Enables the unit on first installation, creates new
# symlinks on upgrades if the unit file has changed.
deb-systemd-helper enable 'smokeping.service' >/dev/null || true
else
# Update the statefile to add new symlinks (if any), which need to be
# cleaned up on purge. Also remove old symlinks.
deb-systemd-helper update-state 'smokeping.service' >/dev/null || true
fi
fi
# End automatically added section
# Automatically added by dh_installsystemd/13.24.2
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
if [ -n "$2" ]; then
_dh_action=restart
else
_dh_action=start
fi
deb-systemd-invoke $_dh_action 'smokeping.service' >/dev/null || true
fi
fi
# End automatically added section
exit 0

97
debian/smokeping/DEBIAN/postrm vendored Executable file
View File

@@ -0,0 +1,97 @@
#! /bin/sh
# postrm script for smoke
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# * <new-postrm> `abort-install' <old-version>
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
purge)
rm -rf /var/run/smokeping
rm -rf /var/cache/smokeping
rm -rf /var/lib/smokeping
for f in basepage.html smokemail tmail config
do
file=/etc/smokeping/$f
if command -v ucf >/dev/null 2>&1; then
ucf --purge $file || true
fi
if command -v ucfr >/dev/null 2>&1; then
ucfr --purge smokeping $file || true
fi
rm -f $file $file.ucf-old $file.ucf-new $file.ucf-dist
done
for f in Alerts Database General pathnames Presentation Probes Slaves Targets
do
file=/etc/smokeping/config.d/$f
if command -v ucf >/dev/null 2>&1; then
ucf --purge $file || true
fi
if command -v ucfr >/dev/null 2>&1; then
ucfr --purge smokeping $file || true
fi
rm -f $file $file.ucf-old $file.ucf-new $file.ucf-dist
done
[ ! -d /etc/smokeping/config.d ] || rmdir --ignore-fail-on-non-empty --parents /etc/smokeping/config.d
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# Automatically added by dh_installinit/13.24.2
if [ "$1" = "remove" ] && [ -x "/etc/init.d/smokeping" ] ; then
chmod -x "/etc/init.d/smokeping" >/dev/null || true
fi
if [ -z "$DPKG_ROOT" ] && [ "$1" = "purge" ] ; then
update-rc.d smokeping remove >/dev/null
fi
# End automatically added section
# Automatically added by dh_installdeb/13.24.2
dpkg-maintscript-helper mv_conffile /etc/smokeping/apache2.conf /etc/apache2/conf-available/smokeping.conf -- "$@"
# End automatically added section
# Automatically added by dh_installsystemd/13.24.2
if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_installsystemd/13.24.2
if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge 'smokeping.service' >/dev/null || true
fi
fi
# End automatically added section
# Automatically added by dh_apache2/UNDECLARED
if [ "$1" = "purge" ] ; then
if true; then
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
for conf in smokeping ; do
apache2_invoke disconf $conf || exit 1
done
fi
fi
fi
# End automatically added section
exit 0

57
debian/smokeping/DEBIAN/preinst vendored Executable file
View File

@@ -0,0 +1,57 @@
#!/bin/sh
# preinst script for smokeping
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
install|upgrade)
IFS=":"
ucfq -w /etc/smokeping/basepage.html \
/etc/smokeping/smokemail \
/etc/smokeping/config.d/Alerts \
/etc/smokeping/config.d/Presentation \
/etc/smokeping/config.d/pathnames \
/etc/smokeping/config.d/Targets \
/etc/smokeping/config.d/General \
/etc/smokeping/config.d/Slaves \
| while read file package exists changed; do
if [ "$package" = "smokeping" -a "$changed" = "No" ]; then
rm -f "$file"
fi
done
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# Automatically added by dh_installdeb/13.24.2
dpkg-maintscript-helper mv_conffile /etc/smokeping/apache2.conf /etc/apache2/conf-available/smokeping.conf -- "$@"
# End automatically added section
# Automatically added by dh_installinit/13.24.2
if [ "$1" = "install" ] && [ -n "$2" ] && [ -e "/etc/init.d/smokeping" ] ; then
chmod +x "/etc/init.d/smokeping" >/dev/null || true
fi
# End automatically added section
exit 0

28
debian/smokeping/DEBIAN/prerm vendored Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/sh
set -e
# Automatically added by dh_installsystemd/13.24.2
if [ -z "$DPKG_ROOT" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then
deb-systemd-invoke stop 'smokeping.service' >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_installinit/13.24.2
if [ -z "$DPKG_ROOT" ] && [ "$1" = remove ] && [ -x "/etc/init.d/smokeping" ] ; then
invoke-rc.d --skip-systemd-native smokeping stop || exit 1
fi
# End automatically added section
# Automatically added by dh_installdeb/13.24.2
dpkg-maintscript-helper mv_conffile /etc/smokeping/apache2.conf /etc/apache2/conf-available/smokeping.conf -- "$@"
# End automatically added section
# Automatically added by dh_apache2/UNDECLARED
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
if true; then
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
for conf in smokeping ; do
apache2_invoke disconf $conf || exit 1
done
fi
fi
fi
# End automatically added section