[pkg-bacula-commits] [bacula] 02/02: Include the (officially unsupported) monitoring plugin "check_bacula" in bacula-common (Closes: #675466)

Carsten Leonhardt leo at moszumanska.debian.org
Tue Jan 17 20:53:37 UTC 2017


This is an automated email from the git hooks/post-receive script.

leo pushed a commit to branch master
in repository bacula.

commit 1560abf64d33e8146378ebd5f56a78b9db65bb35
Author: Carsten Leonhardt <leo at debian.org>
Date:   Tue Jan 17 21:52:56 2017 +0100

    Include the (officially unsupported) monitoring plugin "check_bacula"
    in bacula-common (Closes: #675466)
---
 debian/bacula-common.install |  1 +
 debian/changelog             |  2 ++
 debian/rules                 | 11 +++++++++++
 3 files changed, 14 insertions(+)

diff --git a/debian/bacula-common.install b/debian/bacula-common.install
index 2aef322..c844f73 100644
--- a/debian/bacula-common.install
+++ b/debian/bacula-common.install
@@ -13,3 +13,4 @@ usr/lib/bacula/libbacfind*.so
 usr/lib/bacula/libbacsql*.so
 usr/sbin/bsmtp
 usr/sbin/btraceback		usr/lib/bacula
+examples/nagios/check_bacula/.libs/check_bacula	/usr/lib/nagios/plugins
diff --git a/debian/changelog b/debian/changelog
index f19388c..641eca0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ bacula (7.4.4+dfsg-4) unstable; urgency=medium
 
   * Change build-depends to alternatively include libssl-dev (<< 1.1.0~)
     As suggested by Adrian Bunk in Bug#828475
+  * Include the (officially unsupported) monitoring plugin "check_bacula"
+    in bacula-common (Closes: #675466)
 
  --
 
diff --git a/debian/rules b/debian/rules
index c3c006a..3b1031d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -106,6 +106,11 @@ override_dh_shlibdeps:
 	dh_shlibdeps -pbacula-bscan -pbacula-director -- -xbacula-common-mysql -xbacula-common-pgsql -xbacula-common-sqlite3
 	dh_shlibdeps -a --remaining-packages
 
+override_dh_auto_build-arch:
+	dh_auto_build -a
+# also build the monitoring plugin from the examples
+	make -C examples/nagios/check_bacula
+
 override_dh_install-arch:
 	dh_install -a
 	######### dbconfig-common stuff
@@ -125,6 +130,12 @@ ifeq ($(HAVE_SYSTEMD),1)
 	install -m 644 platforms/systemd/bacula-dir.service -D debian/bacula-director/lib/systemd/system/bacula-director.service
 endif
 
+# the monitoring plugin in the examples needs to be cleaned, otherwise
+# builds will not be reproducible
+override_dh_installexamples:
+	make -C examples/nagios/check_bacula libtool-clean distclean
+	dh_installexamples
+
 override_dh_installdocs:
 	dh_installdocs -pbacula --link-doc=bacula-server
 	dh_installdocs -Nbacula-common -Nbacula-client -Nbacula-server --remaining-packages --link-doc=bacula-common

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bacula/bacula.git



More information about the pkg-bacula-commits mailing list