1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/bin/sh
set -e
if [ "$1" = "configure" ]; then
# Cleanup the SNAFU in 0.4+20041404-1 due to bad alternatives installation.
if dpkg --compare-versions "$2" eq "1:0.4+20040414-1" || \
dpkg --compare-versions "$2" eq "1:0.4+20040414-2"; then
if readlink -f /etc/alternatives/configure.1.gz; then : ;
else rm -f /etc/alternatives/configure.1.gz; fi
if readlink -f /usr/share/man/man1/configure.1.gz; then : ;
else rm -f /usr/share/man/man1/configure.1.gz; fi
fi
for bin in frm messages movemail readmsg; do
update-alternatives --install /usr/bin/$bin $bin \
/usr/bin/$bin.mailutils 20 \
--slave /usr/share/man/man1/$bin.1.gz $bin.1.gz \
/usr/share/man/man1/$bin.mailutils.1.gz
done
# dotlock needs a low priority, so maildrop can be the default for now.
update-alternatives --install /usr/bin/dotlock dotlock \
/usr/bin/dotlock.mailutils 4 \
--slave /usr/share/man/man1/dotlock.1.gz dotlock.1.gz \
/usr/share/man/man1/dotlock.mailutils.1.gz
fi
#DEBHELPER#
|