summaryrefslogtreecommitdiff
path: root/extra/spamassassin/spamassassin.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-09-04 00:04:04 +0000
committerroot <root@rshg054.dnsready.net>2012-09-04 00:04:04 +0000
commit8b7b4f2e5a808cb0c1226c23469fa57751eba190 (patch)
treed3b039c682e3991febbfa886b15b31cf09d048b8 /extra/spamassassin/spamassassin.install
parent81de702a6fc79e430129a7d2b708d90f43ae5ba1 (diff)
Tue Sep 4 00:04:04 UTC 2012
Diffstat (limited to 'extra/spamassassin/spamassassin.install')
-rw-r--r--extra/spamassassin/spamassassin.install16
1 files changed, 1 insertions, 15 deletions
diff --git a/extra/spamassassin/spamassassin.install b/extra/spamassassin/spamassassin.install
index 5109956c9..e43453e97 100644
--- a/extra/spamassassin/spamassassin.install
+++ b/extra/spamassassin/spamassassin.install
@@ -1,25 +1,11 @@
-# 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
+ if type re2c &>/dev/null && type sa-compile &>/dev/null && [[ -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
-}