diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2010-02-18 08:41:06 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2010-02-18 08:41:06 +0000 |
commit | aec1f6c6c04cf066c7bec4b78d985f693b8fed98 (patch) | |
tree | fe8886c266f1235d8569515722e91b262f6457d3 /mail-filter | |
parent | Add WORKSPACE slice to PATH (diff) | |
download | historical-aec1f6c6c04cf066c7bec4b78d985f693b8fed98.tar.gz historical-aec1f6c6c04cf066c7bec4b78d985f693b8fed98.tar.bz2 historical-aec1f6c6c04cf066c7bec4b78d985f693b8fed98.zip |
Moving to EAPI=2 Changing default config options
Package-Manager: portage-2.1.7.16/cvs/Linux x86_64
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/spamdyke/ChangeLog | 10 | ||||
-rw-r--r-- | mail-filter/spamdyke/Manifest | 3 | ||||
-rw-r--r-- | mail-filter/spamdyke/spamdyke-4.0.10-r1.ebuild | 73 |
3 files changed, 83 insertions, 3 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/Manifest b/mail-filter/spamdyke/Manifest index f2397cfe097f..5b69f5747733 100644 --- a/mail-filter/spamdyke/Manifest +++ b/mail-filter/spamdyke/Manifest @@ -1,4 +1,5 @@ DIST spamdyke-4.0.10.tgz 454117 RMD160 2f31c939c949038265039c10704dfed3cea68802 SHA1 69a94678a78ab845030177fa2916438b0ee98d9e SHA256 daacc661c149f41fe12229da805f849c0dae2595f7b051c5091589502f8341f3 +EBUILD spamdyke-4.0.10-r1.ebuild 2178 RMD160 6a9e324c43de72675e216609ba90a82374dbf629 SHA1 430ee0201cec5be910fa3add9e820f9151db6c42 SHA256 3fc74d61795056de7d16160f7a79bc7ee039d7aabf5179f119605f42c7401211 EBUILD spamdyke-4.0.10.ebuild 2234 RMD160 5bcc520cbce7c68bf9579588ba32491c47d96bac SHA1 909c0253d6ae977bf89b17c91f88c9da97ce3b1f SHA256 5818d31706c4822ac3b4620ba3f0bbd737bfbd7fcc41ed33d49272083dfd9e98 -MISC ChangeLog 2307 RMD160 b8ea97da2638c79abb7ed464e8761d3b44200f5c SHA1 646e1e53b73f29276a86815385f82e1f0b51d09c SHA256 f65b1a9da55c1cef8b9b4d5f23c78097246ea2ccd6a5807ff9dc67037b3c87e3 +MISC ChangeLog 2474 RMD160 e3c6b340ed9b215f92555e29259c0d8b9dfccf79 SHA1 273ee8bd0d04d501ce3c5666eff79246cdac8f99 SHA256 e3b6cd4dc785ad16d5200c1ac180fda23e329ee4014a09f2281590c6c3919954 MISC metadata.xml 779 RMD160 9b025454580ef303ffa5acd0dcc5baaa1d323a6b SHA1 b5e1fa8bb45cb34876e3b6207d37efc0156a03a9 SHA256 99a5ee30cac08fd1556678c111df83f027e54c71a5dc0884887787d21a5fe17c 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" +} |