1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
10 DESCRIPTION="SpamAssassin plugin to score mail based on Google blocklists"
14 KEYWORDS="~amd64 ~x86 ~ppc"
17 RDEPEND="dev-perl/Net-Google-SafeBrowsing-Blocklist
18 dev-perl/Net-Google-SafeBrowsing-UpdateRequest
19 mail-filter/spamassassin"
21 test? ( dev-perl/Test-Pod )"
26 perl-module_src_install
27 insinto /etc/mail/spamassassin
28 doins "${FILESDIR}"/init_google_safebrowsing.pre
29 doins "${FILESDIR}"/24_google_safebrowsing.cf
31 newins "${FILESDIR}"/update_google_safebrowsing.cron update_google_safebrowsing
32 dosbin "${FILESDIR}"/update_google_safebrowsing.sh
33 keepdir /var/lib/spamassassin/google_safebrowsing/
37 if [[ -f ${ROOT}/etc/cron.d/update_google_safebrowsing.sh ]]; then
38 ewarn "You MUST remove ${ROOT}/etc/cron.d/update_google_safebrowsing.sh"
40 elog "To use this package:"
41 elog "1. You MUST apply for a free apikey at:"
42 elog " https://code.google.com/apis/safebrowsing/key_signup.html"
43 elog "2. Place the key into /etc/mail/spamassassin/24_google_safebrowsing.cf"
44 elog "3. Manually run the script /usr/sbin/update_google_safebrowsing.sh"
45 elog "4. Enable the plugin by uncommenting the loadplugin entry in"
46 elog " /etc/mail/spamassassin/init_google_safebrowsing.pre"
47 elog "5. Restart spamd"