This file is indexed.

preinst is in masqmail 0.2.30-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
#!/bin/sh
set -e

##$DEBIAN_SCRIPT_DEBUG || set -v -x 

if [ "$1" = "upgrade" ] ; then
  if dpkg --compare-versions "$2" lt "0.1.6-1" ; then

    # move config file to new location
    if [ -e /etc/masqmail.conf ]; then
	if [ ! -d /etc/masqmail ]; then
	    mkdir /etc/masqmail
	    mv -f /etc/masqmail.conf /etc/masqmail/
	fi
    fi
  fi

  if dpkg --compare-versions "$2" le "0.2.20-1" ; then
    [ -d /var/log/masqmail ] && chown -R mail:mail /var/log/masqmail/
  fi

fi