From f85f8391da27aa1e6440b8512ad590505f7556ff Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Fri, 23 Feb 2007 03:27:00 +0000 Subject: [PATCH] New package. Package-Manager: portage-2.1.2-r10 --- mail-filter/spamassassin-botnet/ChangeLog | 10 ++++ mail-filter/spamassassin-botnet/Manifest | 16 ++++++ .../files/digest-spamassassin-botnet-0.7 | 3 ++ mail-filter/spamassassin-botnet/metadata.xml | 17 +++++++ .../spamassassin-botnet-0.7.ebuild | 49 +++++++++++++++++++ 5 files changed, 95 insertions(+) create mode 100644 mail-filter/spamassassin-botnet/ChangeLog create mode 100644 mail-filter/spamassassin-botnet/Manifest create mode 100644 mail-filter/spamassassin-botnet/files/digest-spamassassin-botnet-0.7 create mode 100644 mail-filter/spamassassin-botnet/metadata.xml create mode 100644 mail-filter/spamassassin-botnet/spamassassin-botnet-0.7.ebuild diff --git a/mail-filter/spamassassin-botnet/ChangeLog b/mail-filter/spamassassin-botnet/ChangeLog new file mode 100644 index 000000000000..8c72b1b73412 --- /dev/null +++ b/mail-filter/spamassassin-botnet/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for mail-filter/spamassassin-botnet +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin-botnet/ChangeLog,v 1.1 2007/02/23 03:27:00 chutzpah Exp $ + +*spamassassin-botnet-0.7 (23 Feb 2007) + + 23 Feb 2007; Patrick McLean +metadata.xml, + +spamassassin-botnet-0.7.ebuild: + Initial import. + diff --git a/mail-filter/spamassassin-botnet/Manifest b/mail-filter/spamassassin-botnet/Manifest new file mode 100644 index 000000000000..7e74b84ab896 --- /dev/null +++ b/mail-filter/spamassassin-botnet/Manifest @@ -0,0 +1,16 @@ +DIST Botnet-0.7.tar 81920 RMD160 a96f1dbd6b290e33b7b33c2236416fd570c44000 SHA1 22f5d287a5b52b677d42fa86cfd4d3e2341f460b SHA256 cb47ffac52f0fcd9a28b954cca47b6dd417845b57f957e10c1de5d0d4be5a6c1 +EBUILD spamassassin-botnet-0.7.ebuild 1224 RMD160 3cc72415c280dfdd753d1d364fffd7bf691529d5 SHA1 d95bdd22aeab97689610e61511631b9ffed75feb SHA256 6a35993f1a80b2a9bb2bdf26f143e41519193d50aa4e3d3d6ccbbcfb2a9d2d17 +MD5 9f5fcc4afe037047b4e569e3b6114d1a spamassassin-botnet-0.7.ebuild 1224 +RMD160 3cc72415c280dfdd753d1d364fffd7bf691529d5 spamassassin-botnet-0.7.ebuild 1224 +SHA256 6a35993f1a80b2a9bb2bdf26f143e41519193d50aa4e3d3d6ccbbcfb2a9d2d17 spamassassin-botnet-0.7.ebuild 1224 +MISC ChangeLog 398 RMD160 9753e780510c82356b9119069a50bad8b8e277f1 SHA1 e73a13b66ed6939615eaf7642862a59f3fa6c87c SHA256 0aa5efc89dd3786e4799cdb151ad538f20f35cb9ca14e15c62eb96e82c1a766e +MD5 94bf94a80f007e4c54101a27797b8bf6 ChangeLog 398 +RMD160 9753e780510c82356b9119069a50bad8b8e277f1 ChangeLog 398 +SHA256 0aa5efc89dd3786e4799cdb151ad538f20f35cb9ca14e15c62eb96e82c1a766e ChangeLog 398 +MISC metadata.xml 617 RMD160 9ef10c105e4be1341d4827291e048c8c140a4b38 SHA1 3d11e49aafbb85e51f5851a8113d0498976b473f SHA256 e5e7828bacd7de18a234ae093176ee22bed0310c4b42449a5d23f89d17b4139d +MD5 68ce131e211930a694b7f99ac7583f08 metadata.xml 617 +RMD160 9ef10c105e4be1341d4827291e048c8c140a4b38 metadata.xml 617 +SHA256 e5e7828bacd7de18a234ae093176ee22bed0310c4b42449a5d23f89d17b4139d metadata.xml 617 +MD5 6942c4c28df757818cca5ed214272fa1 files/digest-spamassassin-botnet-0.7 220 +RMD160 862aad39a90e383f4f106409f2a1d78b13d637bd files/digest-spamassassin-botnet-0.7 220 +SHA256 8fec4c588623a3c624efe16b88a7ca11ab6314a78c8d7e00b5184f598127ab90 files/digest-spamassassin-botnet-0.7 220 diff --git a/mail-filter/spamassassin-botnet/files/digest-spamassassin-botnet-0.7 b/mail-filter/spamassassin-botnet/files/digest-spamassassin-botnet-0.7 new file mode 100644 index 000000000000..325d4b6605ef --- /dev/null +++ b/mail-filter/spamassassin-botnet/files/digest-spamassassin-botnet-0.7 @@ -0,0 +1,3 @@ +MD5 d4271db1e6a9326821a8f760f66ad290 Botnet-0.7.tar 81920 +RMD160 a96f1dbd6b290e33b7b33c2236416fd570c44000 Botnet-0.7.tar 81920 +SHA256 cb47ffac52f0fcd9a28b954cca47b6dd417845b57f957e10c1de5d0d4be5a6c1 Botnet-0.7.tar 81920 diff --git a/mail-filter/spamassassin-botnet/metadata.xml b/mail-filter/spamassassin-botnet/metadata.xml new file mode 100644 index 000000000000..4223ba5a220c --- /dev/null +++ b/mail-filter/spamassassin-botnet/metadata.xml @@ -0,0 +1,17 @@ + + + +net-mail + + chutzpah@gentoo.org + Patrick McLean + + +A spamassassin that performs DNS validations on the first untrusted relay +looking for signs of a Botnet infected host, such as no reverse DNS, a +hostname that would indicate an ISP client or domain workstation, or other +hosts that aren't intended to be acting as a direct mail submitter outside of +their own domain. + + + diff --git a/mail-filter/spamassassin-botnet/spamassassin-botnet-0.7.ebuild b/mail-filter/spamassassin-botnet/spamassassin-botnet-0.7.ebuild new file mode 100644 index 000000000000..60bd7d686e1d --- /dev/null +++ b/mail-filter/spamassassin-botnet/spamassassin-botnet-0.7.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin-botnet/spamassassin-botnet-0.7.ebuild,v 1.1 2007/02/23 03:27:00 chutzpah Exp $ + +inherit perl-module + +MY_PN="${PN/b/B}" +MY_PN="${MY_PN/spamassassin-/}" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="SpamAssassin plugin that attempts to detect messages sent by a botnet" +HOMEPAGE="http://people.ucsc.edu/~jrudd/spamassassin/" +SRC_URI="http://people.ucsc.edu/~jrudd/spamassassin/${MY_P}.tar" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="dev-lang/perl + >=mail-filter/spamassassin-3.0.0" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +src_compile() { + # make sure it doesn't try to look for the .pm in the same dir as the .cf + sed -rie 's/^(loadplugin.+)[ ]+Botnet.pm/\1/' Botnet.cf +} + +src_install() { + perlinfo + + local plugin_dir=${VENDOR_LIB}/Mail/SpamAssassin/Plugin + + insinto ${plugin_dir} + doins ${MY_PN}.pm + + insinto /etc/mail/spamassassin/ + doins ${MY_PN}.cf + + dodoc ${MY_PN}{{.{api,credits,variants},}.txt,.pl} +} + +pkg_postinst() { + echo + elog "You need to restart spamassassin (as root) before this plugin will work:" + elog "/etc/init.d/spamd restart" + echo +} -- 2.26.2