Code

rrdcached.postrm: Remove /var/lib/rrdcached/ on purge.
authorSebastian Harl <sh@tokkee.org>
Sun, 4 Oct 2009 14:32:29 +0000 (16:32 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 4 Oct 2009 14:32:29 +0000 (16:32 +0200)
debian/changelog
debian/rrdcached.postrm [new file with mode: 0644]

index 942bc220305484d1f8cf7b203f80b57b5302a0b4..51b03604319f989466af993aabfc69330b4140d0 100644 (file)
@@ -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 <tokkee@debian.org>  Sun, 04 Oct 2009 15:29:27 +0200
+ -- Sebastian Harl <tokkee@debian.org>  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 (file)
index 0000000..eafdc0a
--- /dev/null
@@ -0,0 +1,42 @@
+#! /bin/bash
+# postrm script for rrdcached
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# 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
+