db-move: moved adwaita-icon-theme from [testing] to [extra] (any)
[arch-packages.git] / spamassassin / repos / extra-x86_64 / spamassassin.install
blob65f14a06567b80fff8c35b733c7d9ba884a61632
1 post_install() {
2         echo "You must run 'sa-update' to install spam rules before use."
5 post_upgrade() {
6         if  [ "$(vercmp $2 3.4)" -lt 0 ]; then
7                 echo '/var/lib/spamassassin is now owned by the spamd user. spamassassin.service'
8                 echo 'will also run under that user. You may need to adjust your setup.'
9         fi
11         # Compile rules, if rules have previously been compiled, and it's possible
12         if type re2c &>/dev/null && type sa-compile &>/dev/null && [[ -d /var/lib/spamassassin/compiled ]]; then
13                 echo "Detected compiled rules, running sa-compile..."
14                 sa-compile > /dev/null 2>&1
15         fi
17         true