This file is indexed.

prerm is in sendpage-server 1.0.3-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
#!/bin/sh -e

# Automatically added by dh_installinit
if [ -x "/etc/init.d/sendpage-server" ]; then
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d sendpage-server stop || exit $?
	else
		/etc/init.d/sendpage-server stop || exit $?
	fi
fi
# End automatically added section


# Clean up empty queue directories.  Since prerm doesn't get a "purge" call,
# we can do this on "remove", especially since sendpage re-creates these
# directories when it needs them.
if [ "$1" = "remove" ]; then
    find /var/spool/sendpage/* -maxdepth 0 -type d -print0 2>/dev/null | \
        xargs -r0 rmdir || true
fi