aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2016-02-17 11:52:10 +0000
committerChristopher Baines <mail@cbaines.net>2016-02-17 11:52:10 +0000
commitd2bf12566103b5a4a25f82a43d45ca57f22e1bc2 (patch)
tree03aaf26fee479d29a4f416f2825de0a0efe97925 /debian/rules
parent2d64dfff1ac8b1042e3d134669ff352ba686b8f3 (diff)
parent6b70a01a267ffcba0847cf967a6acc7261919fe7 (diff)
downloadprometheus-pgbouncer-exporter-d2bf12566103b5a4a25f82a43d45ca57f22e1bc2.tar
prometheus-pgbouncer-exporter-d2bf12566103b5a4a25f82a43d45ca57f22e1bc2.tar.gz
Merge branch 'master' into debian
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules10
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index b06eef5..12e4640 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,3 +10,13 @@ override_dh_systemd_enable:
override_dh_systemd_start:
dh_systemd_start --restart-after-upgrade prometheus-pgbouncer-exporter.service
+
+override_dh_auto_install:
+ dh_auto_install
+ # build the man page
+ help2man -n "Export metrics from pgbouncer to Prometheus" --no-info \
+ --version-option="-m prometheus_pgbouncer_exporter --version" \
+ --help-option="-m prometheus_pgbouncer_exporter --help" \
+ --output=prometheus-pgbouncer-exporter.1 python3
+ # Remove the .TP on the 7th line to improve readability
+ sed -i '7 d' prometheus-pgbouncer-exporter.1