This file is indexed.

prerm is in dwww 1.13.4.

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
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
#
# Debian prerm script for dwww.
# "@(#)dwww:$Id: dwww.prerm,v 1.5 2007-01-01 10:42:36 robert Exp $"
#

set -e

# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/dwww/apache.conf /etc/apache2/conf-available/dwww.conf 1.12.0\~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/iceweasel/searchplugins/common/dwww.xml 1.13.2\~ -- "$@"
# End automatically added section
# Automatically added by dh_apache2
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
	if true; then
		if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
			. /usr/share/apache2/apache2-maintscript-helper

			for conf in dwww  ; do
				apache2_invoke disconf $conf  || exit $?
			done
		fi
	fi
fi
# End automatically added section


if [ "X$1" = "Xremove" ] ; then
	rm -rf /var/lib/dwww
	rm -rf /var/cache/dwww
	rm -rf /var/www/dwww

	for apache in "apache" "apache-perl" "apache-ssl" "apache2"; do
		cfile="/etc/$apache/conf.d/dwww"
		dwwwf="/etc/dwww/apache.conf"
		if [ -L "$cfile" ] && [ x`readlink -f "$cfile"` = x"$dwwwf" ]; then
			rm -f "$cfile"
		elif [ -e "$cfile" ]; then
			echo "$cfile exists, but isn't symlinked to $dwwwf. Not removing"
		fi
	done		


	if [ -r /etc/dwww/dwww.conf ]; then
		set +e
		. /etc/dwww/dwww.conf

		if [ -n "$DWWW_CGIDIR" ] && [ -x "$DWWW_CGIDIR/dwww" ] ; then
			rm -f "$DWWW_CGIDIR/dwww"
		fi

		if [ -n "$DWWW_DOCROOTDIR" ] && [ -d "$DWWW_DOCROOTDIR/dwww" ]; then
			rm -rf "$DWWW_DOCROOTDIR/dwww"
		fi
	fi
fi

exit 0