diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /mail-filter/spamassassin-botnet |
reinit the tree, so we can have metadata
Diffstat (limited to 'mail-filter/spamassassin-botnet')
-rw-r--r-- | mail-filter/spamassassin-botnet/Manifest | 5 | ||||
-rw-r--r-- | mail-filter/spamassassin-botnet/metadata.xml | 19 | ||||
-rw-r--r-- | mail-filter/spamassassin-botnet/spamassassin-botnet-0.8-r1.ebuild | 49 |
3 files changed, 73 insertions, 0 deletions
diff --git a/mail-filter/spamassassin-botnet/Manifest b/mail-filter/spamassassin-botnet/Manifest new file mode 100644 index 000000000000..acb99cb830cb --- /dev/null +++ b/mail-filter/spamassassin-botnet/Manifest @@ -0,0 +1,5 @@ +DIST Botnet-0.8.tar 81920 SHA256 f07cef396302e07cdbbdd2289d4433cde661973eeae5095d94dbff361b414c0b SHA512 4108efab3062a7e35cb008875d438cd079aa46ab829b5b172463f70537efa6dee41a0226df3a63392f31ae0e2042c851e9585a408b65bab94cb7400a4d9034bb WHIRLPOOL 04ffbeeb71d69b36f222eeebfa40cb08edfc02c9b08e99f47556f1077f82bebed4f5df0baab9de8cffb0368d5d9e4d0ef3f30e5b9a10cc5a2ef39a37e52bdd75 +EBUILD spamassassin-botnet-0.8-r1.ebuild 1088 SHA256 757496a41c974dc983cf9bdd718c82e74e7771080b7172a811d8cb8c4dec9bc2 SHA512 4e5b3bad8d884c0a145458bd4a22d1b84cfb7c0409cdc367853a9ff3f8665fd31d74017641f9edb16e33bbcc7d0d7cf64efce173f596adeffd1e7abccb2b664b WHIRLPOOL 2dbb341b4a6010fac55d85ada1bde3502ce3cd5912e8db0f363cf8c6a59390d133509f58d8e4bef31e53bef60fb276d7bae79f6afec85ab64c75a47a0a8e2957 +MISC ChangeLog 3067 SHA256 9f6343e6cd883f6acb96ed372ac977d235ccf41c3ea5eeace0a6bc9fca78fab1 SHA512 e53c840d620df6763c7e3d610f73d3bd7223264fafe820a795692917e17f7e00c16b503616bea0eae1db1c44b2d314ee08646f610738198c0c05f380e836c506 WHIRLPOOL 4f0627866539def61d0a30354064fdbb64a095d48bb8aaf053cefb7f30bfbbf9f7de613510cccc14decb61d8688d98e3e5dab7e91a701327b1c0bc6e99539f47 +MISC ChangeLog-2015 1088 SHA256 1093c5625900488d8d373563ac858228bbd6e943d3020df0bc6d279796e08f9b SHA512 e9549a101e2ceff436f3247cbe383cfbc239b4b0c6a44aace9d43d66e51198054fc5861ea719729e6be81ea2a0c41e17a29f94921d55e4d9f869cd982956a98b WHIRLPOOL 58f0fdd110518d26024aa973d061cf7b9a486433ccd03bdcaa6a9bd4eca9bd0265e49c63f134d5d8494f91fafa0ee789782b829b23a8e570f0f42ee7fe607f55 +MISC metadata.xml 709 SHA256 355200686bc7e4babc3dfce7c2eda52e937c9737690bbfc252edc60428d89e1b SHA512 b6c00adcd0af32b62ff22b13a6b1f1538e3f138cd98a69ee19be909f77950e98fc8645a4c6962817db254f8bad957ff6c66006f0820550b1b2e398908ce16910 WHIRLPOOL 1cea211a827fd20cfb813d720f207f68d93b70f69c658f803735cafc7e6fa49b2016a5f326cbe4e885c7f321123021bf5463d871d8edc2cac1703107113d2733 diff --git a/mail-filter/spamassassin-botnet/metadata.xml b/mail-filter/spamassassin-botnet/metadata.xml new file mode 100644 index 000000000000..ae65a5894f82 --- /dev/null +++ b/mail-filter/spamassassin-botnet/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> +</maintainer> +<maintainer type="project"> + <email>net-mail@gentoo.org</email> + <name>Net-Mail</name> +</maintainer> +<longdescription lang="en"> +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. +</longdescription> +</pkgmetadata> diff --git a/mail-filter/spamassassin-botnet/spamassassin-botnet-0.8-r1.ebuild b/mail-filter/spamassassin-botnet/spamassassin-botnet-0.8-r1.ebuild new file mode 100644 index 000000000000..f4486210f919 --- /dev/null +++ b/mail-filter/spamassassin-botnet/spamassassin-botnet-0.8-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +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="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="http://people.ucsc.edu/~jrudd/spamassassin/${MY_P}.tar" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=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() { + perl_set_version + + 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 +} |