summaryrefslogtreecommitdiff
path: root/testing/spamassassin/spamassassin.install
blob: 5109956c99c3eadab4c312d801eb3f686880b895 (plain)
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
# arg 1:  the new package version
post_install() {
  echo "You must run 'sa-update' to install spam rules before use."
  /bin/true
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  # Compile rules, if rules have previously been compiled, and it's possible
  if [ -x /usr/bin/re2c -a -x /usr/bin/perlbin/vendor/sa-compile -a -d /var/lib/spamassassin/compiled ]; then
    echo "Detected compiled rules, running sa-compile..."
    sa-compile > /dev/null 2>&1
fi
}

# arg 1:  the old package version
pre_remove() {
  /bin/true
}

# arg 1:  the old package version
post_remove() {
  /bin/true
}