Author: acid Date: 2006-03-15 15:25:35 +0000 (Wed, 15 Mar 2006) New Revision: 114 Added: trunk/xen-3.0/debian/xen-utils-3.0.postrm Removed: trunk/xen-3.0/debian/xen-utils-3.0.prerm Modified: trunk/xen-3.0/debian/xen-utils-3.0.postinst Log: - move postinst to postrm (my mistake) - add handling of /var/run/xenstored and /var/lib/xenstored Modified: trunk/xen-3.0/debian/xen-utils-3.0.postinst ==================================================================--- trunk/xen-3.0/debian/xen-utils-3.0.postinst 2006-03-15 15:18:08 UTC (rev 113) +++ trunk/xen-3.0/debian/xen-utils-3.0.postinst 2006-03-15 15:25:35 UTC (rev 114) @@ -7,6 +7,10 @@ # Set up udev rules symlink L="/etc/udev/rules.d/xen-backend.rules" [ -e "$L" ] || [ -L "$L" ] || ln -s ../xen-backend.rules "$L" + + XENSTORED_DIR="/var/lib/xenstored" + [ ! -d "${XENSTORED_DIR}" ] && install -d -m 0700 "${XENSTORED_DIR}" + ;; # abort-upgrade|abort-remove|abort-deconfigure) # Nothing to do because we didn''t take any action in the prerm Copied: trunk/xen-3.0/debian/xen-utils-3.0.postrm (from rev 113, trunk/xen-3.0/debian/xen-utils-3.0.prerm) ==================================================================--- trunk/xen-3.0/debian/xen-utils-3.0.prerm 2006-03-15 15:18:08 UTC (rev 113) +++ trunk/xen-3.0/debian/xen-utils-3.0.postrm 2006-03-15 15:25:35 UTC (rev 114) @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +case "$1" in +purge) + # Remove udev rules symlink + L="/etc/udev/rules.d/z60_alsa-utils.rules" + [ -L "$L" ] && rm -f "$L" + + XENSTORED_DIR="/var/lib/xenstored" + [ -d "${XENSTORED_DIR}" ] && rm -r "${XENSTORED_DIR}" + + XENSTORED_RUNDIR="/var/run/xenstored" + [ -d "${XENSTORED_RUNDIR}" ] && rm -fr "${XENSTORED_RUNDIR}" + ;; + +esac + +#DEBHELPER# Deleted: trunk/xen-3.0/debian/xen-utils-3.0.prerm ==================================================================--- trunk/xen-3.0/debian/xen-utils-3.0.prerm 2006-03-15 15:18:08 UTC (rev 113) +++ trunk/xen-3.0/debian/xen-utils-3.0.prerm 2006-03-15 15:25:35 UTC (rev 114) @@ -1,14 +0,0 @@ -#!/bin/sh - -set -e - -case "$1" in -purge) - # Remove udev rules symlink - L="/etc/udev/rules.d/z60_alsa-utils.rules" - [ -L "$L" ] && rm -f "$L" - ;; - -esac - -#DEBHELPER#