Dodan divert za squirrelmail/functions/strings.php zbog problema s PHP/SquirrelMail.
[squirrelmail-cn.git] / debian / postrm
index c5f4fc5..f867340 100644 (file)
@@ -2,9 +2,22 @@
 
 set -e
 
-if [ "$1" = purge -a -e /usr/share/debconf/confmodule ]; then
-        . /usr/share/debconf/confmodule
-        db_purge
-fi
+case "$1" in
+  purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    dpkg-divert --package squirrelmail-cn --remove --rename \
+      --divert /usr/share/squirrelmail/functions/strings.php.squirrelmail \
+        /usr/share/squirrelmail/functions/strings.php
+    ;;
+
+  *)
+    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