[savepoint] draft
authorfoerste
Thu, 17 Dec 2015 11:30:53 +0000
changeset 9 d047bf140716
parent 8 127a8c6d6e72
child 10 e32abf30726e
[savepoint]
debian/changelog
debian/control
debian/postinst
debian/prerm
debian/rules
--- a/debian/changelog	Wed Dec 19 22:36:00 2007 +0000
+++ b/debian/changelog	Thu Dec 17 11:30:53 2015 +0000
@@ -1,3 +1,10 @@
+nagios-plugins-exim (1.3) stable; urgency=low
+
+  * new package name
+  * more sensible if the nagios{,3} user does not exist
+
+ -- Heiko Schlittermann <heiko@schlittermann.de>  Thu,  3 Jan 2008 13:52:28 +0100
+
 nagios-plugin-exim (1.2) stable; urgency=low
 
   * renamed to check_exiwhat 
--- a/debian/control	Wed Dec 19 22:36:00 2007 +0000
+++ b/debian/control	Thu Dec 17 11:30:53 2015 +0000
@@ -1,13 +1,15 @@
-Source: nagios-plugin-exim
+Source: nagios-plugins-exim
 Section: unknown
 Priority: extra
 Maintainer: Heiko Schlittermann <heiko@schlittermann.de>
 Build-Depends: debhelper (>= 5)
 Standards-Version: 3.7.2
 
-Package: nagios-plugin-exim
+Package: nagios-plugins-exim
 Architecture: all
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: nagios plugin to check exims workload / throughput
- This is a nagios plugin to calculate the amount of mail
- going through the exim mailserver.
+Replaces: nagios-plugin-exim
+Conflicts: nagios-plugin-exim (<< 1.3)
+Description: nagios plugins to check exims workload / throughput
+ This are nagios plugins to calculate the amount of mail
+ going through the exim mailserver, and to check the activity.
--- a/debian/postinst	Wed Dec 19 22:36:00 2007 +0000
+++ b/debian/postinst	Thu Dec 17 11:30:53 2015 +0000
@@ -21,7 +21,11 @@
 case "$1" in
     configure)
     user=$(getent passwd nagios3 nagios | head -n 1 | cut -f1 -d:)
-    /usr/lib/nagios/plugins/ius/check_exim --init $user
+    if test -z "$user"; then
+	: # trigger for later
+    else
+	/usr/lib/nagios/plugins/ius/check_exim --init $user
+    fi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
--- a/debian/prerm	Wed Dec 19 22:36:00 2007 +0000
+++ b/debian/prerm	Thu Dec 17 11:30:53 2015 +0000
@@ -19,7 +19,7 @@
 
 case "$1" in
     remove)
-	/usr/lib/nagios/plugins/ius/check_exim --cleanup
+	/usr/lib/nagios/plugins/ius/check_exim --cleanup || true
     ;;
 
     upgrade|deconfigure)
--- a/debian/rules	Wed Dec 19 22:36:00 2007 +0000
+++ b/debian/rules	Thu Dec 17 11:30:53 2015 +0000
@@ -35,7 +35,7 @@
 
 	# Add here commands to compile the package.
 	$(MAKE)
-	#docbook-to-man debian/nagios-plugin-exim.sgml > nagios-plugin-exim.1
+	#docbook-to-man debian/nagios-plugins-exim.sgml > nagios-plugins-exim.1
 
 	touch $@
 
@@ -55,8 +55,8 @@
 	dh_clean -k 
 	dh_installdirs
 
-	# Add here commands to install the package into debian/nagios-plugin-exim.
-	$(MAKE) DESTDIR=$(CURDIR)/debian/nagios-plugin-exim install
+	# Add here commands to install the package into debian/nagios-plugins-exim.
+	$(MAKE) DESTDIR=$(CURDIR)/debian/nagios-plugins-exim install
 
 
 # Build architecture-independent files here.