From ab20d85a33204f3395d2ffed3284646979d27e9e Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 4 Oct 2009 16:32:29 +0200 Subject: [PATCH] rrdcached.postrm: Remove /var/lib/rrdcached/ on purge. --- debian/changelog | 4 +++- debian/rrdcached.postrm | 42 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 debian/rrdcached.postrm 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 + -- 2.30.2