This file is indexed.

preinst is in phpgacl 3.3.7-7.3.

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
#!/bin/sh -e

#
# preinst file for phpgacl package
#
# This file manages the obsolete config file OLDCONF.
# This change was made in version 3.3.5-1
#
# If the MD5sum matches, the user has not modified it, remove it
#
OLDCONF=/etc/phpgacl/phpgacl.conf.php
OLDMD5=e83ef5868cf7e1ece7430a82d7e99cd5
VERSION=3.3.5-1

case "$1" in
    install|upgrade)
        if [ "x$2" != "x" ] ; then
            if dpkg --compare-versions $2 lt $VERSION ; then
                if md5sum $OLDCONF 2> /dev/null | grep -q $OLDMD5 ; then
                    echo "Deleting obsolete config file ($OLDCONF).."
                    rm -f $OLDCONF
                fi
            fi
        fi
    ;;
    abort-upgrade)
    ;;
    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac