[Pkg-nagios-changes] [SCM] Debian packaging for Nagios3 branch, master, updated. 3.2.0-5-20-g0e974e2

Alexander Wirt formorer at debian.org
Mon Apr 12 19:11:09 UTC 2010


The following commit has been merged in the master branch:
commit c516c815065bb37d5013c6242022bed5c394b93c
Author: Alexander Wirt <formorer at debian.org>
Date:   Mon Apr 12 20:36:44 2010 +0200

    Add alternatives for mini_epn

diff --git a/debian/control b/debian/control
index 8389c54..77cc39b 100644
--- a/debian/control
+++ b/debian/control
@@ -171,6 +171,7 @@ Section: debug
 Priority: extra
 Architecture: any
 Depends: nagios3-core (= ${binary:Version}), ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Conflicts: icinga-dbg (=< 1.0.1-2) 
 Description: debugging symbols and debug stuff for nagios3
  Nagios is a monitoring and management system for hosts, services and
  networks.
diff --git a/debian/nagios3-dbg.install b/debian/nagios3-dbg.install
deleted file mode 100644
index d92aaae..0000000
--- a/debian/nagios3-dbg.install
+++ /dev/null
@@ -1 +0,0 @@
-contrib/mini_epn /usr/bin
diff --git a/debian/nagios3-dbg.manpages b/debian/nagios3-dbg.manpages
index 91c0998..b08523c 100644
--- a/debian/nagios3-dbg.manpages
+++ b/debian/nagios3-dbg.manpages
@@ -1 +1 @@
-debian/mini_epn.8
+debian/mini_epn_nagios3.8
diff --git a/debian/nagios3-dbg.postinst b/debian/nagios3-dbg.postinst
new file mode 100644
index 0000000..1467b20
--- /dev/null
+++ b/debian/nagios3-dbg.postinst
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+
+update-alternatives --quiet --install /usr/bin/mini_epn mini_epn /usr/bin/mini_epn_nagios3 10 \
+        --slave /usr/share/man/man8/mini_epn.8.gz mini_epn.8.gz /usr/share/man/man8/mini_epn_nagios3.8.gz
+
diff --git a/debian/nagios3-dbg.prerm b/debian/nagios3-dbg.prerm
new file mode 100644
index 0000000..ec6967b
--- /dev/null
+++ b/debian/nagios3-dbg.prerm
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+
+if [ "$1" != "upgrade" ]; then
+  update-alternatives --remove mini_epn /usr/bin/mini_epn_nagios3
+fi
+
diff --git a/debian/rules b/debian/rules
index 6506ea2..f3845e3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -149,6 +149,8 @@ binary-arch: install-stamp
 	chmod 600 ${b}/nagios3-common/etc/nagios3/resource.cfg
 	# fix permissions of p1
 	chmod 755 ${b}/nagios3-core/usr/lib/nagios3/p1.pl
+	mkdir -p ${b}/icinga-dbg/usr/bin/
+	mv contrib/mini_epn ${b}/icinga-dbg/usr/bin/mini_epn_nagios3
 	dh_strip             -a  --dbg-package=nagios3-dbg
 	dh_compress          -a -X.php
 	dh_fixperms          -a -X/var/cache/nagios3

-- 
Debian packaging for Nagios3



More information about the Pkg-nagios-changes mailing list