summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick/tdebase/debian/kdm-trinity.postrm
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturke@gmail.com>2011-11-13 19:27:09 -0500
committerCalvin Morrison <mutantturke@gmail.com>2011-11-13 19:27:09 -0500
commitb04ad86203e19f0e89e971fefc3f40b380cbe7b2 (patch)
tree639782b440de136501ae6ee50d8d54450765346f /ubuntu/maverick/tdebase/debian/kdm-trinity.postrm
parent7123ebd91f9851d8a0479d043508ec5885e24f91 (diff)
parent70daaabb4fd5f3b559f5ef489377c9fe93a47f0d (diff)
downloadtde-packaging-b04ad86203e19f0e89e971fefc3f40b380cbe7b2.tar.gz
tde-packaging-b04ad86203e19f0e89e971fefc3f40b380cbe7b2.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'ubuntu/maverick/tdebase/debian/kdm-trinity.postrm')
-rw-r--r--ubuntu/maverick/tdebase/debian/kdm-trinity.postrm38
1 files changed, 38 insertions, 0 deletions
diff --git a/ubuntu/maverick/tdebase/debian/kdm-trinity.postrm b/ubuntu/maverick/tdebase/debian/kdm-trinity.postrm
new file mode 100644
index 000000000..b5719fadd
--- /dev/null
+++ b/ubuntu/maverick/tdebase/debian/kdm-trinity.postrm
@@ -0,0 +1,38 @@
+#! /bin/sh -e
+
+case "$1" in
+ purge)
+ rm -rf /var/log/kdm-trinity.log*
+ ;;
+
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+if [ "$1" = "abort-install" -o "$1" = "abort-upgrade" ]; then
+ # roll back displacement of default display manager file
+ if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" ]; then
+ # FIXME - redo this part uses shell-lib.sh from xfree86
+ #observe "rolling back change of default X display manager"
+ mv "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" "$DEFAULT_DISPLAY_MANAGER_FILE"
+ fi
+fi
+
+if [ "$1" = "purge" ]; then
+ for DIR in /var/lib/kdm-trinity; do
+ if [ -d "$DIR" ]; then
+ rm -rf "$DIR"
+ fi
+ done
+ rm -f /var/log/kdm-trinity.log*
+fi
+
+#DEBHELPER#
+
+exit 0