This file is indexed.

postinst is in heimdal-clients 1.7~git20150920+dfsg-4ubuntu1.

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
#!/bin/sh -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
fi

for i in ftp 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