[debian:nagios-plugin-dns-delegation_0.2] nagios-plugin-dns-delegation_0.2
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Thu, 22 Jan 2015 15:05:59 +0100
changeset 35 9a6d53670b1e
parent 34 2c02e2a9a900
child 36 e163635eeac2
[debian:nagios-plugin-dns-delegation_0.2] # --- # this is for package version nagios-plugin-dns-delegation_0.2
debian/changelog
debian/control
debian/postinst
--- a/debian/changelog	Thu Jan 22 15:04:45 2015 +0100
+++ b/debian/changelog	Thu Jan 22 15:05:59 2015 +0100
@@ -1,3 +1,10 @@
+nagios-plugin-dns-delegation (0.2) stable; urgency=medium
+
+  * override file is now /etc/check_dns-delegation:
+  * added postinst script to create the override file
+
+ -- Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>  Thu, 22 Jan 2015 15:05:40 +0100
+
 nagios-plugin-dns-delegation (0.1) stable; urgency=medium
 
   * intial framework:
--- a/debian/control	Thu Jan 22 15:04:45 2015 +0100
+++ b/debian/control	Thu Jan 22 15:05:59 2015 +0100
@@ -2,7 +2,7 @@
 Section: admin
 Priority: optional
 Maintainer: Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
-Build-Depends: debhelper (>= 9)
+Build-Depends: debhelper (>= 9), dpkg-dev
 Standards-Version: 3.9.6
 Vcs-Browser: https://ssl.schlittermann.de/hg/ius/nagios/nagios-plugin-dns-delegation/default
 Homepage: http://schlittermann.de/
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/postinst	Thu Jan 22 15:05:59 2015 +0100
@@ -0,0 +1,45 @@
+#!/bin/sh
+# postinst script for nagios-plugin-dns-delegation
+#
+# 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>
+#        * <postinst> `abort-remove'
+#        * <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
+
+
+case "$1" in
+    configure)
+	old=/etc/bind/zones.override
+	new=/etc/check_dns-delegation/override
+	test -f $new && break
+	touch $old
+	chmod a+r $old
+	mv $old $new
+    ;;
+
+    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.
+
+#DEBHELPER#
+
+exit 0