This file is indexed.

postinst is in rt4-clients 4.2.12-5.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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

OLDCONF=/etc/rt.conf
NEWCONF=/etc/request-tracker4/rt.conf

if [ -f "$OLDCONF" ] && [ ! -f "$NEWCONF" ]; then
    echo "Found $OLDCONF; moving it to $NEWCONF"
    mv "$OLDCONF" "$NEWCONF"
fi

alts() {
    update-alternatives --install /usr/bin/rt rt /usr/bin/rt-4 260 \
      --slave /usr/share/man/man1/rt.1.gz rt.1.gz \
              /usr/share/man/man1/rt-4.1.gz
    update-alternatives --install \
      /usr/bin/rt-mailgate rt-mailgate /usr/bin/rt-mailgate-4 260 \
      --slave /usr/share/man/man1/rt-mailgate.1.gz rt-mailgate.1.gz \
              /usr/share/man/man1/rt-mailgate-4.1.gz
}

case "$1" in
    configure)
        alts
        ;;
    abort-upgrade)
        alts
	;;
esac