This file is indexed.

prerm is in spampd 2.42-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
#!/bin/bash -e

handle_init_errs ()
{
	RET=$?
	if [ "$RET" = "6" ]; then
		return 0
	else
		exit $RET
	fi
	set -e
}

# Automatically added by dh_installinit/11ubuntu1
if [ -x "/etc/init.d/spampd" ] && [ "$1" = remove ]; then
	invoke-rc.d spampd stop || handle_init_errs
fi
# End automatically added section
# Automatically added by dh_installsystemd/11ubuntu1
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
	deb-systemd-invoke stop 'spampd.service' >/dev/null
fi
# End automatically added section


case "$1" in
	purge)
		deluser spampd > /dev/null 2>&1 || true
		delgroup spampd > /dev/null 2>&1 || true
		;;
	*)
		;;
esac