blob: eb5ab349b74bdf2d485982d5e2982e13fa90538d (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing-1.03-r1.ebuild,v 1.2 2010/04/23 11:47:31 tove Exp $
MODULE_AUTHOR="DANBORN"
inherit perl-module
DESCRIPTION="SpamAssassin plugin to score mail based on Google blocklists."
IUSE="test"
SLOT="0"
LICENSE="Apache-2.0"
KEYWORDS="~amd64 ~x86 ~ppc"
RDEPEND="dev-perl/Net-Google-SafeBrowsing-Blocklist
dev-perl/Net-Google-SafeBrowsing-UpdateRequest
mail-filter/spamassassin"
DEPEND="${RDEPEND}
test? ( dev-perl/Test-Pod )"
SRC_TEST="do"
src_install() {
perl-module_src_install
insinto /etc/mail/spamassassin
doins "${FILESDIR}"/init_google_safebrowsing.pre
doins "${FILESDIR}"/24_google_safebrowsing.cf
insinto /etc/cron.d/
newins "${FILESDIR}"/update_google_safebrowsing.cron update_google_safebrowsing
dosbin "${FILESDIR}"/update_google_safebrowsing.sh
keepdir /var/lib/spamassassin/google_safebrowsing/
}
pkg_postinst() {
if [[ -f ${ROOT}/etc/cron.d/update_google_safebrowsing.sh ]]; then
ewarn "You MUST remove ${ROOT}/etc/cron.d/update_google_safebrowsing.sh"
fi
elog "To use this package:"
elog "1. You MUST apply for a free apikey at:"
elog " http://code.google.com/apis/safebrowsing/key_signup.html"
elog "2. Place the key into /etc/mail/spamassassin/24_google_safebrowsing.cf"
elog "3. Manually run the script /usr/sbin/update_google_safebrowsing.sh"
elog "4. Enable the plugin by uncommenting the loadplugin entry in"
elog " /etc/mail/spamassassin/init_google_safebrowsing.pre"
elog "5. Restart spamd"
}
|