# HG changeset patch # User Heiko Schlittermann (JUMPER) # Date 1421935559 -3600 # Node ID 9a6d53670b1e689f8e8c821a6c5d1fedb423b7a0 # Parent 2c02e2a9a900a39bbc4aab1272b2dde9f4112c2b [debian:nagios-plugin-dns-delegation_0.2] # --- # this is for package version nagios-plugin-dns-delegation_0.2 diff -r 2c02e2a9a900 -r 9a6d53670b1e debian/changelog --- 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) Thu, 22 Jan 2015 15:05:40 +0100 + nagios-plugin-dns-delegation (0.1) stable; urgency=medium * intial framework: diff -r 2c02e2a9a900 -r 9a6d53670b1e debian/control --- 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) -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/ diff -r 2c02e2a9a900 -r 9a6d53670b1e debian/postinst --- /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: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# 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