summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-02-18 08:41:06 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-02-18 08:41:06 +0000
commit6e5d635491d0d3b4214c16020fe2fe6694b7bc72 (patch)
tree98cce2f481616db62acfb15aa3a47366e9497b5f /mail-filter
parentAdd WORKSPACE slice to PATH (diff)
downloadgentoo-2-6e5d635491d0d3b4214c16020fe2fe6694b7bc72.tar.gz
gentoo-2-6e5d635491d0d3b4214c16020fe2fe6694b7bc72.tar.bz2
gentoo-2-6e5d635491d0d3b4214c16020fe2fe6694b7bc72.zip
Moving to EAPI=2 Changing default config options
(Portage version: 2.1.7.16/cvs/Linux x86_64)
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/spamdyke/ChangeLog10
-rw-r--r--mail-filter/spamdyke/spamdyke-4.0.10-r1.ebuild73
2 files changed, 81 insertions, 2 deletions
diff --git a/mail-filter/spamdyke/ChangeLog b/mail-filter/spamdyke/ChangeLog
index cbbeb5032b49..287dbeccafd6 100644
--- a/mail-filter/spamdyke/ChangeLog
+++ b/mail-filter/spamdyke/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-filter/spamdyke
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v 1.16 2009/05/27 12:41:58 tupone Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v 1.17 2010/02/18 08:41:05 tupone Exp $
+
+*spamdyke-4.0.10-r1 (18 Feb 2010)
+
+ 18 Feb 2010; Alfredo Tupone <tupone@gentoo.org>
+ +spamdyke-4.0.10-r1.ebuild:
+ Moving to EAPI=2 Changing default config options
27 May 2009; Alfredo Tupone <tupone@gentoo.org> -spamdyke-3.1.8.ebuild,
-spamdyke-4.0.9.ebuild:
diff --git a/mail-filter/spamdyke/spamdyke-4.0.10-r1.ebuild b/mail-filter/spamdyke/spamdyke-4.0.10-r1.ebuild
new file mode 100644
index 000000000000..d1ae4daef996
--- /dev/null
+++ b/mail-filter/spamdyke/spamdyke-4.0.10-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/spamdyke-4.0.10-r1.ebuild,v 1.1 2010/02/18 08:41:06 tupone Exp $
+
+EAPI="2"
+
+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 ~x86"
+IUSE="+tls"
+
+DEPEND="tls? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P}/${PN}
+
+src_prepare() {
+ 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-level=always-create-dir" >> ${PN}.conf
+ echo "graylist-dir=/var/tmp/${PN}/graylist" >> ${PN}.conf
+ echo "reject-empty-rdns" >> ${PN}.conf
+ echo "reject-unresolvable-rdns" >> ${PN}.conf
+ echo "dns-blacklist-entry=zen.spamhaus.org" >> ${PN}.conf
+ echo "local-domains-file=/var/qmail/control/rcpthosts" >> ${PN}.conf
+ sed -i \
+ -e "/STRIP_CMD/d" \
+ Makefile.in || die "sed on Makefile.in failed"
+}
+
+src_configure() {
+ econf --with-debug \
+ $(use_enable tls) || die "econf failed"
+ cd ../utils
+ econf || die "econf failed in utils"
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" || die "emake failed"
+ cd ../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"
+ dodir /var/tmp/${PN}/graylist
+ fowners -R qmaild /var/tmp/${PN}/graylist
+ 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"
+}