This file is indexed.

postinst is in heimdal-clients 7.5.0+dfsg-1.

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
30
31
32
33
34
#!/bin/sh

set -e

if [ "$1" = "configure" ]
then
    if dpkg --compare-versions "$2" lt-nl "1.6~rc2+dfsg-9~"
    then
	for i in telnet rsh rcp
	do
	    update-alternatives --remove $i /usr/bin/k$i
	done
    fi

    if dpkg --compare-versions "$2" lt-nl "1.7~git20161120"
    then
	for i in ftp
	do
	    update-alternatives --remove $i /usr/bin/k$i
	done
    fi
fi

for i in pagsh
do
    update-alternatives --install /usr/bin/$i $i /usr/bin/k$i 23 \
    --slave /usr/share/man/man1/$i.1.gz $i.1.gz /usr/share/man/man1/k$i.1.gz
done

for i in kinit klist kswitch ksu kpasswd kdestroy kadmin ktutil
do
    update-alternatives --install /usr/bin/$i $i /usr/bin/${i}.heimdal 23 \
    --slave /usr/share/man/man1/${i}.1.gz ${i}.1.gz /usr/share/man/man1/${i}.heimdal.1.gz
done