On Wed, Jun 04, 2008 at 02:21:20PM +0200, Stefan Hornburg wrote: > Can you supply the corresponding code for preinst/postrm ?
Yes, in preinst on 'install' or 'upgrade' (from a version that did not yet add the diversion): add_diversion() { dpkg-divert --package courier-mta --add --rename \ --divert /usr/bin/addcr.ucspi-tcp /usr/bin/addcr dpkg-divert --package courier-mta --add --rename \ --divert /usr/share/man/man1/addcr.ucspi-tcp.1.gz /usr/share/man/man1/addcr.1.g } in postrm on 'remove': remove_diversion() { dpkg-divert --package courier-mta --remove --rename \ --divert /usr/bin/addcr.ucspi-tcp /usr/bin/addcr dpkg-divert --package courier-mta --remove --rename \ --divert /usr/share/man/man1/addcr.ucspi-tcp.1.gz /usr/share/man/man1/addcr.1.g } HTH, Gerrit. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]