This file is indexed.

postrm is in mailping 0.0.4ubuntu5+really0.0.4-3ubuntu1.

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

remove_plugins() {
    RELOAD=0
    echo -n "Removing plugins.."
    for plugin in success latency; do
	LINK="/etc/munin/plugins/mailping-$plugin"
	if [ -L "$LINK" ]; then
	    TARGET="$(readlink "$LINK")"
	    if [ "$TARGET" = "/usr/share/mailping/munin-plugins/mailping-$plugin" ]; then
		RELOAD=1
		echo -n " '$plugin'"
		rm "$LINK"
	    fi
	fi
    done
    echo "."
    if [ "$RELOAD" = "1" ]; then
	invoke-rc.d munin-node force-reload
    fi
}

if [ "$1" = "remove" ]; then
    remove_plugins
elif [ "$1" = "purge" ]; then
    rm -rf /var/lib/mailping
fi