This file is indexed.

prerm is in clamav-unofficial-sigs 3.7.2-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
#!/bin/sh
set -e

purge=/var/lib/clamav-unofficial-sigs/purge.txt

# Prepare a list of filenames to remove on purge
# We need the upstream config so this is done in prerm remove
if [ "$1" = remove ] ; then

	if [ -s /etc/clamav-unofficial-sigs.conf ] ; then
		. /etc/clamav-unofficial-sigs.conf
	fi

	libdir=/var/lib/clamav-unofficial-sigs
	if [ "x$config_dir" = x ] ; then config_dir=$libdir/configs ; fi
	if [ "x$gpg_dir" = x ] ; then gpg_dir=$libdir/gpg-key ; fi
	if [ "x$log_file_path" = x ] ; then log_file_path=/var/log ; fi
	if [ "x$log_file_name" = x ] ; then log_file_name=clamav-unofficial-sigs.log ; fi

	echo $purge > $purge
	echo "$gpg_dir/publickey.gpg" >> $purge
	echo "$log_file_path/$log_file_name"* >> $purge
	if [ -s "$config_dir/purge.txt" ] ; then
		cat "$config_dir/purge.txt" >> $purge
	fi
fi



exit 0