diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2008-01-08 23:06:37 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2008-01-08 23:06:37 +0000 |
commit | b5b99e55140510f725394d697b995554eb15524e (patch) | |
tree | 0fb0f21d4e657a24e58fa9643eef0ce4ac28b696 /mail-filter/spamdyke | |
parent | Adding tls to spamdyke (diff) | |
download | gentoo-2-b5b99e55140510f725394d697b995554eb15524e.tar.gz gentoo-2-b5b99e55140510f725394d697b995554eb15524e.tar.bz2 gentoo-2-b5b99e55140510f725394d697b995554eb15524e.zip |
New package. Bug #204845
(Portage version: 2.1.3.19)
Diffstat (limited to 'mail-filter/spamdyke')
-rw-r--r-- | mail-filter/spamdyke/ChangeLog | 10 | ||||
-rw-r--r-- | mail-filter/spamdyke/Manifest | 16 | ||||
-rw-r--r-- | mail-filter/spamdyke/files/digest-spamdyke-3.1.3 | 3 | ||||
-rw-r--r-- | mail-filter/spamdyke/metadata.xml | 19 | ||||
-rw-r--r-- | mail-filter/spamdyke/spamdyke-3.1.3.ebuild | 68 |
5 files changed, 116 insertions, 0 deletions
diff --git a/mail-filter/spamdyke/ChangeLog b/mail-filter/spamdyke/ChangeLog new file mode 100644 index 000000000000..aaf381f6af42 --- /dev/null +++ b/mail-filter/spamdyke/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for mail-filter/spamdyke +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v 1.1 2008/01/08 23:06:36 tupone Exp $ + +*spamdyke-3.1.3 (08 Jan 2008) + + 08 Jan 2008; Tupone Alfredo <tupone@gentoo.org> +metadata.xml, + +spamdyke-3.1.3.ebuild: + New package. Bug #204845 by me. + diff --git a/mail-filter/spamdyke/Manifest b/mail-filter/spamdyke/Manifest new file mode 100644 index 000000000000..77a3472a6257 --- /dev/null +++ b/mail-filter/spamdyke/Manifest @@ -0,0 +1,16 @@ +DIST spamdyke-3.1.3.tgz 745192 RMD160 ca13a852051ca89d21d6a34aaed14416ab3b5935 SHA1 afa1377ce44697d4c884c3a52158b7e8ec971fdd SHA256 b3c0c21f86cbf6415d3b06ceaf9c6d7d56e3cf728199e9555fe189aa14a448a0 +EBUILD spamdyke-3.1.3.ebuild 1977 RMD160 ce624be36ad975d6794c0b4e76cb2c316844dfb8 SHA1 ed14d1429337fd5d5dcec8e6ec2e7131759d612e SHA256 364bc73157d7f48c618422ccb42de9b362adbe495da4529d361c47d6d5c70956 +MD5 830c73872922ecf81398662bf6227644 spamdyke-3.1.3.ebuild 1977 +RMD160 ce624be36ad975d6794c0b4e76cb2c316844dfb8 spamdyke-3.1.3.ebuild 1977 +SHA256 364bc73157d7f48c618422ccb42de9b362adbe495da4529d361c47d6d5c70956 spamdyke-3.1.3.ebuild 1977 +MISC ChangeLog 278 RMD160 2fca7c15afd8e40c360e981450f521d1a96bc6ef SHA1 291519cc8566eee6113b3539c021a9102514b1f9 SHA256 b95819d2780daaee82407540219a98859c30f7b4e69e38f4bd5cefe6effd6a18 +MD5 4af7c5976582eb8a9d0ee7ff7e29424b ChangeLog 278 +RMD160 2fca7c15afd8e40c360e981450f521d1a96bc6ef ChangeLog 278 +SHA256 b95819d2780daaee82407540219a98859c30f7b4e69e38f4bd5cefe6effd6a18 ChangeLog 278 +MISC metadata.xml 707 RMD160 9d94c426746073aa110977b08a459bcfda5e70a5 SHA1 7800fbb956db81cf06ee50c0b0aae268a776942c SHA256 d0966a507becd544b333523fc72448af206b719c9c3307011ca0c22df0855dd8 +MD5 e4bb20e05e7cb593e745fb6ab0c865f7 metadata.xml 707 +RMD160 9d94c426746073aa110977b08a459bcfda5e70a5 metadata.xml 707 +SHA256 d0966a507becd544b333523fc72448af206b719c9c3307011ca0c22df0855dd8 metadata.xml 707 +MD5 e7e7a93998e4fe57a6d331d70564b240 files/digest-spamdyke-3.1.3 235 +RMD160 6ca9fd16f3829bc8dd0fa31b7f847fadb9bb18a2 files/digest-spamdyke-3.1.3 235 +SHA256 e2c5e4c4c794fcbd03b6dc89c7ed0489b5fab4a01653f741fda1f3c516222655 files/digest-spamdyke-3.1.3 235 diff --git a/mail-filter/spamdyke/files/digest-spamdyke-3.1.3 b/mail-filter/spamdyke/files/digest-spamdyke-3.1.3 new file mode 100644 index 000000000000..5c15452e95d4 --- /dev/null +++ b/mail-filter/spamdyke/files/digest-spamdyke-3.1.3 @@ -0,0 +1,3 @@ +MD5 88fa8e47fbd7980db0c1c9b85763779a spamdyke-3.1.3.tgz 745192 +RMD160 ca13a852051ca89d21d6a34aaed14416ab3b5935 spamdyke-3.1.3.tgz 745192 +SHA256 b3c0c21f86cbf6415d3b06ceaf9c6d7d56e3cf728199e9555fe189aa14a448a0 spamdyke-3.1.3.tgz 745192 diff --git a/mail-filter/spamdyke/metadata.xml b/mail-filter/spamdyke/metadata.xml new file mode 100644 index 000000000000..e1305ae53918 --- /dev/null +++ b/mail-filter/spamdyke/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>qmail</herd> +<maintainer> +<email>tupone@gentoo.org</email> +<name>Tupone Alfredo</name> +</maintainer> +<longdescription lang="en"> +spamdyke is a filter for monitoring and intercepting SMTP connections between a +remote host and a qmail server. Spam is blocked while the remote server +(spammer) is still connected; no additional processing or storage is needed. + +In addition to all of its anti-spam filters, spamdyke also includes a number of +features to enhance qmail. + +Best of all, using spamdyke does not require patching or recompiling qmail! +</longdescription> +</pkgmetadata> diff --git a/mail-filter/spamdyke/spamdyke-3.1.3.ebuild b/mail-filter/spamdyke/spamdyke-3.1.3.ebuild new file mode 100644 index 000000000000..e30e06df7c48 --- /dev/null +++ b/mail-filter/spamdyke/spamdyke-3.1.3.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/spamdyke-3.1.3.ebuild,v 1.1 2008/01/08 23:06:36 tupone Exp $ + +EAPI="1" + +DESCRIPTION="A drop-in connection-time spam filter for qmail" +HOMEPAGE="http://www.spamdyke.org/" +SRC_URI="http://www.spamdyke.org/releases/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+tls" + +DEPEND="tls? ( dev-libs/openssl )" + +S=${WORKDIR}/${P}/${PN} + +src_unpack() { + unpack ${A} + cd "${S}" + echo "# Configuration option for ${PN}" > ${PN}.conf + if use tls; then + echo "tls-certificate-file=/var/qmail/control/clientcert.pem" \ + >> ${PN}.conf + fi + echo "graylist-dir=/var/tmp/${PN}/graylist" >> ${PN}.conf + echo "never-graylist-rdns-dir=/etc/${PN}/never-graylist" >> ${PN}.conf + echo "reject-empty-rdns" >> ${PN}.conf + echo "reject-unresolvable-rdns" >> ${PN}.conf +} + +src_compile() { + econf --with-debug \ + $(use_enable tls) || die "econf failed" + emake CFLAGS="${CFLAGS}" || die "emake failed" + cd ../utils + econf || die "econf failed in utils" + emake CFLAGS="${CFLAGS}" || die "emake in utils died" +} + +src_install() { + dobin ${PN} || die "Installing ${PN} binary failed" + insinto /etc/${PN} + doins ${PN}.conf || die "Installing ${PN} configuration file failed" + keepdir /var/tmp/${PN}/graylist/$(../utils/domain2path -d localhost) + fowners -R qmaild /var/tmp/${PN} + insinto /etc/${PN}/never-graylist/$(../utils/domain2path -d localhost) + touch localhost + doins localhost + cd ../utils + dobin domain2path || die "Installing domain2path binary failed" + cd ../documentation + dodoc {Changelog,INSTALL,UPGRADING}.txt + dohtml FAQ.html \ + README.html \ + README_ip_file_format.html \ + README_rdns_directory_format.html \ + README_rdns_file_format.html +} + +pkg_postinst() { + elog "In /var/qmail/control/conf-smtpd insert the line:" + elog "QMAIL_SMTP_PRE=\"${QMAIL_SMTP_PRE} spamdyke -f /etc/${PN}/${PN}.conf\"" + elog "Run spamdyke with the '-h' flag to see the available options and" + elog "update /etc/spamdyke.conf accordingly" +} |