From 0c557cdc292145c7d3cdc8c4365ea66f09b895b1 Mon Sep 17 00:00:00 2001 From: Benedikt Boehm Date: Wed, 27 Feb 2008 09:54:22 +0000 Subject: version bump; fix #205862 (Portage version: 2.1.4.4) --- mail-filter/dovecot-antispam/ChangeLog | 8 ++- .../dovecot-antispam-20071019.ebuild | 14 +++-- .../dovecot-antispam-20080227.ebuild | 72 ++++++++++++++++++++++ 3 files changed, 88 insertions(+), 6 deletions(-) create mode 100644 mail-filter/dovecot-antispam/dovecot-antispam-20080227.ebuild (limited to 'mail-filter/dovecot-antispam') diff --git a/mail-filter/dovecot-antispam/ChangeLog b/mail-filter/dovecot-antispam/ChangeLog index 9ab17b4ba26f..a60f3133af59 100644 --- a/mail-filter/dovecot-antispam/ChangeLog +++ b/mail-filter/dovecot-antispam/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for mail-filter/dovecot-antispam # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/dovecot-antispam/ChangeLog,v 1.3 2008/02/13 07:33:06 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dovecot-antispam/ChangeLog,v 1.4 2008/02/27 09:54:22 hollow Exp $ + +*dovecot-antispam-20080227 (27 Feb 2008) + + 27 Feb 2008; Benedikt Böhm + dovecot-antispam-20071019.ebuild, +dovecot-antispam-20080227.ebuild: + version bump; fix #205862 13 Feb 2008; Christian Faulhammer metadata.xml: add no-herd diff --git a/mail-filter/dovecot-antispam/dovecot-antispam-20071019.ebuild b/mail-filter/dovecot-antispam/dovecot-antispam-20071019.ebuild index a077553ff6d8..883e5cfe1243 100644 --- a/mail-filter/dovecot-antispam/dovecot-antispam-20071019.ebuild +++ b/mail-filter/dovecot-antispam/dovecot-antispam-20071019.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/dovecot-antispam/dovecot-antispam-20071019.ebuild,v 1.2 2007/10/21 16:31:07 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dovecot-antispam/dovecot-antispam-20071019.ebuild,v 1.3 2008/02/27 09:54:22 hollow Exp $ -inherit eutils autotools flag-o-matic multilib +inherit confutils eutils autotools flag-o-matic multilib DESCRIPTION="A dovecot antispam plugin supporting multiple backends" HOMEPAGE="http://johannes.sipsolutions.net/Projects/dovecot-antispam" @@ -11,7 +11,7 @@ SRC_URI="mirror://gentoo/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="dspam signature-log mailtrain crm114" +IUSE="debug dspam crm114 mailtrain signature-log" DEPEND="net-mail/dovecot dspam? ( mail-filter/dspam ) @@ -25,6 +25,10 @@ top_builddir() { return } +pkg_setup() { + confutils_require_one dspam signature-log mailtrain crm114 +} + src_unpack() { unpack ${A} cd "${S}" @@ -33,7 +37,7 @@ src_unpack() { src_compile() { source "${ROOT}"/usr/lib/dovecot/dovecot-config || \ - die "cannot find dovecot-config" + die "cannot find dovecot-config" echo DOVECOT=${dovecot_incdir} > .config echo DOVECOT_VERSION=1.0 >> .config diff --git a/mail-filter/dovecot-antispam/dovecot-antispam-20080227.ebuild b/mail-filter/dovecot-antispam/dovecot-antispam-20080227.ebuild new file mode 100644 index 000000000000..4a32aaaaf5d5 --- /dev/null +++ b/mail-filter/dovecot-antispam/dovecot-antispam-20080227.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dovecot-antispam/dovecot-antispam-20080227.ebuild,v 1.1 2008/02/27 09:54:22 hollow Exp $ + +inherit confutils eutils autotools flag-o-matic multilib + +DESCRIPTION="A dovecot antispam plugin supporting multiple backends" +HOMEPAGE="http://johannes.sipsolutions.net/Projects/dovecot-antispam" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug dspam crm114 mailtrain signature-log syslog" + +DEPEND="net-mail/dovecot + dspam? ( mail-filter/dspam ) + crm114? ( app-text/crm114 )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${PN} + +# we need this to prevent errors from dovecot-config +top_builddir() { + return +} + +pkg_setup() { + confutils_require_one dspam signature-log mailtrain crm114 + confutils_use_depend_all syslog debug +} + +src_unpack() { + unpack ${A} + cd "${S}" + sed -e 's/$(INSTALLDIR)/$(DESTDIR)$(INSTALLDIR)/' -i Makefile +} + +src_compile() { + source "${ROOT}"/usr/lib/dovecot/dovecot-config || \ + die "cannot find dovecot-config" + + echo DOVECOT=${dovecot_incdir} > .config + echo DOVECOT_VERSION=1.0 >> .config + echo INSTALLDIR=${moduledir}/imap/ >> .config + echo PLUGINNAME=antispam >> .config + + use dspam && echo BACKEND=dspam-exec >> .config + use signature-log && echo BACKEND=signature-log >> .config + use mailtrain && echo BACKEND=mailtrain >> .config + use crm114 && echo BACKEND=crm114-exec >> .config + + if use debug; then + if use syslog; then + echo DEBUG=syslog >> .config + else + echo DEBUG=stderr >> .config + fi + fi + + emake || die "make failed" +} + +src_install () { + source "${ROOT}"/usr/lib/dovecot/dovecot-config || \ + die "cannot find dovecot-config" + + dodir "${moduledir}"/imap/ + make DESTDIR="${D}" install || die "make install failed" + + newman antispam.7 dovecot-antispam.7 +} -- cgit v1.2.3-65-gdbad