From: Sebastian Harl Date: Sun, 4 Oct 2009 14:32:29 +0000 (+0200) Subject: rrdcached.postrm: Remove /var/lib/rrdcached/ on purge. X-Git-Tag: experimental/1.4--rc2+20091004~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ab20d85a33204f3395d2ffed3284646979d27e9e;p=pkg-rrdtool.git rrdcached.postrm: Remove /var/lib/rrdcached/ on purge. --- diff --git a/debian/changelog b/debian/changelog index 942bc22..51b0360 100644 --- a/debian/changelog +++ b/debian/changelog @@ -33,12 +33,14 @@ rrdtool (1.4~rc2+20091004-1) experimental; urgency=low restart, force-reload. The script is based on the collectd init script. * debian/rrdtool.install: - Install manpages in section 3 as well. + * debian/rrdcached.postrm: + - Remove /var/lib/rrdcached/ on purge. [ Bernd Zeimetz ] * debian/rules, debian/control: - Build Lua bindings and put them into appropriate packages. - -- Sebastian Harl Sun, 04 Oct 2009 15:29:27 +0200 + -- Sebastian Harl Sun, 04 Oct 2009 16:31:41 +0200 rrdtool (1.3.8-1) unstable; urgency=low diff --git a/debian/rrdcached.postrm b/debian/rrdcached.postrm new file mode 100644 index 0000000..eafdc0a --- /dev/null +++ b/debian/rrdcached.postrm @@ -0,0 +1,42 @@ +#! /bin/bash +# postrm script for rrdcached +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + rm -rf /var/lib/rrdcached/ + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm 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 +