File: mailutils.postinst

package info (click to toggle)
mailutils 1%3A0.6.1-4sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 15,568 kB
  • ctags: 11,612
  • sloc: ansic: 111,948; sh: 8,899; yacc: 4,338; makefile: 2,235; exp: 2,190; lex: 1,379; lisp: 688; awk: 202; pascal: 151; sed: 23
file content (29 lines) | stat: -rw-r--r-- 1,057 bytes parent folder | download | duplicates (3)
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#