This file is indexed.

postrm is in heimdal-kdc 1.6~git20120311.dfsg.1-2.

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
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh -e

remove_servers() {
	update-inetd --remove 'kerberos-adm[ \t].*[ \t]/usr/lib/heimdal-servers/kadmind'
	update-inetd --remove 'krb_prop[ \t].*[ \t]/usr/sbin/hpropd'
}

case "$1" in
abort-install | remove | abort-upgrade | upgrade | failed-upgrade | disappear)
	;;
purge)
	# If netbase is not installed, then we don't need to do the remove.
	if command -v update-inetd >/dev/null 2>&1; then
		remove_servers
	fi
	;;
*)
	echo "$0: incorrect arguments: $*" >&2
	exit 1
	;;
esac

if [ "$1" = "purge" ]
then
	rm -f /var/log/heimdal-kdc.log*
	rm -rf /var/lib/heimdal-kdc
	rm -f /etc/heimdal-kdc/.configured
	rm -f /etc/heimdal-kdc/kdc.conf
	rm -f /etc/heimdal-kdc/kadmind.acl
fi

if [ "$1" = "purge" -a -e /usr/share/debconf/confmodule ]; then
    . /usr/share/debconf/confmodule
    db_purge
fi

# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
	update-rc.d heimdal-kdc remove >/dev/null
fi
# End automatically added section
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section