diff options
author | root <root@rshg047.dnsready.net> | 2011-06-01 22:46:45 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-06-01 22:46:45 +0000 |
commit | e7b9c9697e6a50c3b9e78941fa95ba11c716d238 (patch) | |
tree | 4df601d78b5a2009ebeea5f01afe1f6e2beb8ca4 /testing/spamassassin/spamassassin.install | |
parent | 311d0420d77867bdb1066d38743e68e596a17ce5 (diff) |
Wed Jun 1 22:46:45 UTC 2011
Diffstat (limited to 'testing/spamassassin/spamassassin.install')
-rw-r--r-- | testing/spamassassin/spamassassin.install | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/spamassassin/spamassassin.install b/testing/spamassassin/spamassassin.install new file mode 100644 index 000000000..5109956c9 --- /dev/null +++ b/testing/spamassassin/spamassassin.install @@ -0,0 +1,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 +} |