unmerge 129697
reassign 129697 exim
severity 129697 normal
tags 129697 - moreinfo
thanks

There *is* a bug in exim (and probably in exim-tls ... I didn't
check).

Purging exim deletes exim-tls conffiles because the postrm
rm -fs them.  The postrm SHOULD NOT do this.  Management of
conffiles should be left to dpkg.

What happens:
   Install exim        ... exim installs its conffiles
   Install exim-tls    ... exim conffiles now belong to exim-tls
   Purge exim          ... exim's postrm deletes exim-tls's conffiles

There *may* also be a bug in dpkg, but let's follow that at #109691.

[Sorry for the line wrapping here:]
[EMAIL PROTECTED]:/var/lib/dpkg/info$ cat exim.postrm
#!/bin/sh -e

case "$1" in
        remove)
                # Unregister suid
                if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then
                        suidunregister -s exim /usr/sbin/exim
                fi
                ;;

        purge)
                # On a purge we also...
                # Remove spool and config file
                rm -rf /var/log/exim /var/run/exim /var/spool/exim 
/etc/exim.conf

                # Remove links from rc?.d.
                update-rc.d -f exim remove >/dev/null

                # Remove from inetd.conf
                update-inetd --remove exim
                ;;

        upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
                ;;
esac

--
Thomas Hood



Reply via email to