# Copyright 1999-2007 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.ebuild,v 1.1 2007/10/17 08:47:40 robbat2 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 exeinto /etc/cron.d/ doexe "${FILESDIR}"/update_google_safebrowsing.sh keepdir /var/lib/spamassassin/google_safebrowsing/ } pkg_postinst() { 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 cronjob /etc/cron.d/update_google_safebrowsing.sh" elog "4. Configure the cronjob to run every 25-30 minutes. " elog " Don't choose round numbers!" elog "5. Enable the plugin by uncommenting the loadplugin entry in" elog " /etc/mail/spamassassin/init_google_safebrowsing.pre" elog "6. Restart spamd" }