r1274 - tags/varnish-1.0.3/debian
bahner at projects.linpro.no
bahner at projects.linpro.no
Tue Feb 27 20:42:10 CET 2007
Author: bahner
Date: 2007-02-27 20:42:10 +0100 (Tue, 27 Feb 2007)
New Revision: 1274
Added:
tags/varnish-1.0.3/debian/postrm
Modified:
tags/varnish-1.0.3/debian/changelog
Log:
Added post-remove script for debian.
Modified: tags/varnish-1.0.3/debian/changelog
===================================================================
--- tags/varnish-1.0.3/debian/changelog 2007-02-27 19:32:19 UTC (rev 1273)
+++ tags/varnish-1.0.3/debian/changelog 2007-02-27 19:42:10 UTC (rev 1274)
@@ -1,3 +1,9 @@
+varnish (1.0.3-2) unstable; urgency=low
+
+ * Added postrm to partially solve 400384
+
+ -- Lars Bahner <bahner at debian.org> Tue, 27 Feb 2007 20:41:10 +0100
+
varnish (1.0.3-1) unstable; urgency=low
* new upstream release
Added: tags/varnish-1.0.3/debian/postrm
===================================================================
--- tags/varnish-1.0.3/debian/postrm 2007-02-27 19:32:19 UTC (rev 1273)
+++ tags/varnish-1.0.3/debian/postrm 2007-02-27 19:42:10 UTC (rev 1274)
@@ -0,0 +1,44 @@
+#! /bin/sh -e
+
+set -e
+
+case "$1" in
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ if test -e /var/log/varnish && ! [ "$1" = upgrade ]; then
+
+ rm -rf /var/log/varnish 2>&1 > /dev/null || exit 78
+
+ fi
+
+ if test -e /var/lib/varnish; then
+
+ rm -rf /var/lib/varnish 2>&1 > /dev/null || exit 78
+ fi
+
+ ;;
+
+ purge)
+
+ if test -e /var/log/varnish; then
+
+ rm -rf /var/log/varnish 2>&1 > /dev/null || exit 78
+
+ fi
+
+ if test -e /var/lib/varnish; then
+
+ rm -rf /var/lib/varnish 2>&1 > /dev/null || exit 78
+ fi
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 64
+
+esac
+
+#DEBHELPER#
+
+exit 0
More information about the varnish-commit
mailing list