This file is indexed.

postinst is in sa-compile 3.4.1-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
#!/bin/sh

set -e

sa_compile() {
    OWNER=$(stat -c '%U' /var/lib/spamassassin)
    # Compile, if rules have previously been compiled, and it's possible
    if [ -x /usr/bin/re2c -a -x /usr/bin/sa-compile ]; then
        echo "Running sa-compile (may take a long time)"
        su - $OWNER -c "sa-compile --quiet"
    fi
}

if [ "$1" = "configure" ]; then
    sa_compile
fi

if [ "$1" = "triggered" ] && [ "$2" = "perl-major-upgrade" ]; then
    sa_compile
fi



# Local variables:
# mode: shell-script
# tab-width: 4
# indent-tabs-mode: nil
# end: