summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2010-05-19 17:58:21 +0400
committerRoman I Khimov <khimov@altell.ru>2010-06-10 00:05:19 +0400
commit29faf9558ede6b6750d215174005d56e5bc82181 (patch)
tree6f36227f03158c6d166a84a555115624bed85333 /recipes
parent38f014bf1f1f227603099aea49add03283301307 (diff)
spamassassin: add prepackaged rules
sa-update is preferred way to get rules with spamassassin 3.3.1, but then you have no rules at all out-of-the-box which is undesired in some situations. Pack default rules to spamassassin-rules. Signed-off-by: Roman I Khimov <khimov@altell.ru>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/spamassassin/spamassassin_3.3.1.bb13
1 files changed, 12 insertions, 1 deletions
diff --git a/recipes/spamassassin/spamassassin_3.3.1.bb b/recipes/spamassassin/spamassassin_3.3.1.bb
index 359ec47643..965b9aa6d7 100644
--- a/recipes/spamassassin/spamassassin_3.3.1.bb
+++ b/recipes/spamassassin/spamassassin_3.3.1.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "The Powerful #1 Open-Source Spam Filter"
HOMEPAGE = "http://spamassassin.apache.org/"
SECTION = "network"
LICENSE = "GPL"
-PR = "r2"
+PR = "r3"
inherit cpan
@@ -86,6 +86,7 @@ RDEPENDS_${PN} += " \
# Most of the patches are from Debian
SRC_URI = " \
${APACHE_MIRROR}/spamassassin/source/Mail-SpamAssassin-${PV}.tar.bz2;name=spamassassin-${PV} \
+ ${APACHE_MIRROR}/spamassassin/source/Mail-SpamAssassin-rules-${PV}.r923114.tgz;name=sa-rules-${PV} \
file://spamassassin.default \
file://spamassassin.init \
file://10_change_config_paths;apply=yes \
@@ -99,6 +100,8 @@ SRC_URI = " \
"
SRC_URI[spamassassin-3.3.1.md5sum] = "bb977900c3b2627db13e9f44f9b5bfc8"
SRC_URI[spamassassin-3.3.1.sha256sum] = "4c348cd951fc2c5688e9713fcbc6ba453df51d32a1ab332a63800d20ff18bdb4"
+SRC_URI[sa-rules-3.3.1.md5sum] = "3e6ae5a39b9dd2de7ec05a2b315c396b"
+SRC_URI[sa-rules-3.3.1.sha256sum] = "332ce81896ab289090dc040793a8264b5943a411f030238c6461f0ba56a8183e"
S = "${WORKDIR}/Mail-SpamAssassin-${PV}"
@@ -132,4 +135,12 @@ do_install_append() {
${D}/${bindir}/sa-compile \
${D}/${bindir}/spamassassin \
${D}/${sbindir}/spamd
+ cp ${WORKDIR}/*.cf ${D}${datadir}/spamassassin/
+ cp ${WORKDIR}/*.txt ${D}${datadir}/spamassassin/
+ cp ${WORKDIR}/languages ${D}${datadir}/spamassassin/
+ cp ${WORKDIR}/user_prefs.template ${D}${datadir}/spamassassin/
}
+
+PACKAGES =+ "${PN}-rules"
+FILES_${PN}-rules = "${datadir}/spamassassin/*.cf"
+RSUGGESTS_${PN}-rules = "${PN}" \ No newline at end of file