summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2008-02-27 09:54:22 +0000
committerBenedikt Boehm <hollow@gentoo.org>2008-02-27 09:54:22 +0000
commit0c557cdc292145c7d3cdc8c4365ea66f09b895b1 (patch)
tree5c7b587d7260c5366ccc096c4b86d9d6d9f62d18 /mail-filter/dovecot-antispam
parentadd confutils_require_one (diff)
downloadgentoo-2-0c557cdc292145c7d3cdc8c4365ea66f09b895b1.tar.gz
gentoo-2-0c557cdc292145c7d3cdc8c4365ea66f09b895b1.tar.bz2
gentoo-2-0c557cdc292145c7d3cdc8c4365ea66f09b895b1.zip
version bump; fix #205862
(Portage version: 2.1.4.4)
Diffstat (limited to 'mail-filter/dovecot-antispam')
-rw-r--r--mail-filter/dovecot-antispam/ChangeLog8
-rw-r--r--mail-filter/dovecot-antispam/dovecot-antispam-20071019.ebuild14
-rw-r--r--mail-filter/dovecot-antispam/dovecot-antispam-20080227.ebuild72
3 files changed, 88 insertions, 6 deletions
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 <hollow@gentoo.org>
+ dovecot-antispam-20071019.ebuild, +dovecot-antispam-20080227.ebuild:
+ version bump; fix #205862
13 Feb 2008; Christian Faulhammer <opfer@gentoo.org> 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
+}