diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2012-01-17 20:46:44 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2012-01-17 20:46:44 +0000 |
commit | 751318702c1df4b72e0c781ebce56c3104a4923b (patch) | |
tree | a1aae2abfe4b6e617b719dba99149715b59d1859 /mail-filter/spamdyke | |
parent | Version bump wrt bug #398745. (diff) | |
download | gentoo-2-751318702c1df4b72e0c781ebce56c3104a4923b.tar.gz gentoo-2-751318702c1df4b72e0c781ebce56c3104a4923b.tar.bz2 gentoo-2-751318702c1df4b72e0c781ebce56c3104a4923b.zip |
Version bump to 4.3.0. Bug #399157
(Portage version: 2.1.10.44/cvs/Linux i686)
Diffstat (limited to 'mail-filter/spamdyke')
-rw-r--r-- | mail-filter/spamdyke/ChangeLog | 8 | ||||
-rw-r--r-- | mail-filter/spamdyke/files/spamdyke-4.3.0-gcc46.patch | 10 | ||||
-rw-r--r-- | mail-filter/spamdyke/spamdyke-4.3.0.ebuild | 77 |
3 files changed, 94 insertions, 1 deletions
diff --git a/mail-filter/spamdyke/ChangeLog b/mail-filter/spamdyke/ChangeLog index dafd9a2bf6a0..37e42abba63c 100644 --- a/mail-filter/spamdyke/ChangeLog +++ b/mail-filter/spamdyke/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for mail-filter/spamdyke # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v 1.22 2012/01/17 11:33:35 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v 1.23 2012/01/17 20:46:44 tupone Exp $ + +*spamdyke-4.3.0 (17 Jan 2012) + + 17 Jan 2012; Tupone Alfredo <tupone@gentoo.org> +spamdyke-4.3.0.ebuild, + +files/spamdyke-4.3.0-gcc46.patch: + Version bump to 4.3.0. Bug #399157 by Agostino Sarubbo 17 Jan 2012; Agostino Sarubbo <ago@gentoo.org> spamdyke-4.2.1.ebuild: Stable for X86, wrt security bug #397941 diff --git a/mail-filter/spamdyke/files/spamdyke-4.3.0-gcc46.patch b/mail-filter/spamdyke/files/spamdyke-4.3.0-gcc46.patch new file mode 100644 index 000000000000..f9428bee6bf0 --- /dev/null +++ b/mail-filter/spamdyke/files/spamdyke-4.3.0-gcc46.patch @@ -0,0 +1,10 @@ +--- configure.ac.old 2011-04-07 09:37:58.000000000 +0200 ++++ configure.ac 2011-04-07 09:38:12.000000000 +0200 +@@ -22,7 +22,6 @@ + AC_CONFIG_HEADER([config.h]) + + AC_LANG_WERROR +-CFLAGS=-Wall + + # Checks for programs. + AC_PROG_CC([[gcc]]) diff --git a/mail-filter/spamdyke/spamdyke-4.3.0.ebuild b/mail-filter/spamdyke/spamdyke-4.3.0.ebuild new file mode 100644 index 000000000000..baa06426c261 --- /dev/null +++ b/mail-filter/spamdyke/spamdyke-4.3.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/spamdyke-4.3.0.ebuild,v 1.1 2012/01/17 20:46:44 tupone Exp $ + +EAPI="2" +inherit eutils autotools + +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} + virtual/qmail" + +S=${WORKDIR}/${P}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc46.patch + 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" + eautoreconf +} + +src_configure() { + econf \ + $(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/spamdyke.conf accordingly" +} |