diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-10-17 08:47:41 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-10-17 08:47:41 +0000 |
commit | 236832f403b4f754669487a6a8ce73d90003173a (patch) | |
tree | 8ae145851cab7e672bc5059f50401ad1b7343e60 /dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing-1.03.ebuild | |
parent | another slotmove for gtksourceview, should be fine this time (diff) | |
download | gentoo-2-236832f403b4f754669487a6a8ce73d90003173a.tar.gz gentoo-2-236832f403b4f754669487a6a8ce73d90003173a.tar.bz2 gentoo-2-236832f403b4f754669487a6a8ce73d90003173a.zip |
Initial commit. Ebuild by Robin H. Johnnson <robbat2@gentoo.org>.
(Portage version: 2.1.3.14)
Diffstat (limited to 'dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing-1.03.ebuild')
-rw-r--r-- | dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing-1.03.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing-1.03.ebuild b/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing-1.03.ebuild new file mode 100644 index 000000000000..1788a5787d70 --- /dev/null +++ b/dev-perl/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing/Mail-SpamAssassin-Plugin-GoogleSafeBrowsing-1.03.ebuild @@ -0,0 +1,44 @@ +# 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" +} |