summaryrefslogtreecommitdiffstats
path: root/debian/lenny/core/kdebase/debian/kdm-trinity.postrm
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-11-15 18:10:52 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-11-15 18:10:52 +0100
commit830f9676b4568fdf5704bd94c856d97d4c35813d (patch)
treeb7eb9bd9ca4fdb4c97da7b013583c87ab8f6e671 /debian/lenny/core/kdebase/debian/kdm-trinity.postrm
parent0bfe4e2db5faf194cbafe6c3fcb8f331dd32f8c5 (diff)
downloadtde-packaging-830f9676b4568fdf5704bd94c856d97d4c35813d.tar.gz
tde-packaging-830f9676b4568fdf5704bd94c856d97d4c35813d.zip
DEB: adjusted to new 'core' folder for main packages.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'debian/lenny/core/kdebase/debian/kdm-trinity.postrm')
-rw-r--r--debian/lenny/core/kdebase/debian/kdm-trinity.postrm38
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/lenny/core/kdebase/debian/kdm-trinity.postrm b/debian/lenny/core/kdebase/debian/kdm-trinity.postrm
new file mode 100644
index 000000000..b5719fadd
--- /dev/null
+++ b/debian/lenny/core/kdebase/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