Package: exim
Version: 3.36-17
Severity: normal
Tags: patch

Hi,

in order to finish the /usr/doc transition, exim needs to stop creating
symlinks in /usr/doc in its postinst.
Please apply the attached patch.

Cheers,
Julien Cristau

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.13
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
diff -Nur exim-3.36.orig/debian/postinst exim-3.36/debian/postinst
--- exim-3.36.orig/debian/postinst      2005-10-05 19:39:09.000000000 +0200
+++ exim-3.36/debian/postinst   2005-10-05 19:39:57.000000000 +0200
@@ -23,11 +23,6 @@
 
        install -d -omail -gmail /var/run/exim
 
-       # Create /usr/doc symlink
-       if [ -d /usr/doc -a ! -e /usr/doc/exim ]; then
-           ln -sf ../share/doc/exim /usr/doc/exim
-       fi
-
        # If we're upgrading from woody version, or this is a new installation,
        # display message suggesting upgrade to exim4
        if [ ! $2 ] || dpkg --compare-versions $2 lt 3.36-1; then
@@ -134,7 +129,7 @@
 is now disabled! When you want to re-enable it, you should do 
 "eximconfig -i".
 
-Please read /usr/doc/exim/README.UPDATING.gz for more information.
+Please read /usr/share/doc/exim/README.UPDATING.gz for more information.
 
 EOM
            press_return
diff -Nur exim-3.36.orig/debian/postinst-eximon exim-3.36/debian/postinst-eximon
--- exim-3.36.orig/debian/postinst-eximon       2005-10-05 19:39:09.000000000 
+0200
+++ exim-3.36/debian/postinst-eximon    1970-01-01 01:00:00.000000000 +0100
@@ -1,14 +0,0 @@
-#!/bin/sh -e
-
-case "$1" in
-    configure)
-
-       # Create /usr/doc symlink
-       if [ -d /usr/doc -a ! -e /usr/doc/eximon ]; then
-           ln -sf ../share/doc/eximon /usr/doc/eximon
-       fi
-       ;;
-       
-    abort-upgrade|abort-remove|abort-deconfigure)
-       ;;
-esac
diff -Nur exim-3.36.orig/debian/prerm exim-3.36/debian/prerm
--- exim-3.36.orig/debian/prerm 2005-10-05 19:39:09.000000000 +0200
+++ exim-3.36/debian/prerm      2005-10-05 19:43:48.000000000 +0200
@@ -12,11 +12,6 @@
                 if [ -x /usr/sbin/update-inetd ]; then
                    update-inetd --comment-chars \#disabled\# --disable smtp
                fi
-
-               # Remove /usr/doc symlink
-               if [ -L /usr/doc/exim ]; then
-                   rm -f /usr/doc/exim
-               fi
                ;;
 
         failed-upgrade)
diff -Nur exim-3.36.orig/debian/prerm-eximon exim-3.36/debian/prerm-eximon
--- exim-3.36.orig/debian/prerm-eximon  2005-10-05 19:39:09.000000000 +0200
+++ exim-3.36/debian/prerm-eximon       1970-01-01 01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-#!/bin/sh -e
-
-case "$1" in
-       remove|upgrade|remove-in-favour|deconfigure-in-favour)
-
-               # Remove /usr/doc symlink
-               if [ -L /usr/doc/eximon ]; then
-                   rm -f /usr/doc/eximon
-               fi
-               ;;
-
-        failed-upgrade)
-               ;;
-esac
-

Reply via email to