diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2008-04-24 11:46:40 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2008-04-24 11:46:40 +0000 |
commit | cb6c2688ca5d755c05fc41d262f4f102f66a0153 (patch) | |
tree | 4dd1a51b765164ff04af61eaa3a55871b27417a1 /mail-filter/dovecot-antispam | |
parent | Remove digests (diff) | |
download | gentoo-2-cb6c2688ca5d755c05fc41d262f4f102f66a0153.tar.gz gentoo-2-cb6c2688ca5d755c05fc41d262f4f102f66a0153.tar.bz2 gentoo-2-cb6c2688ca5d755c05fc41d262f4f102f66a0153.zip |
version bump
(Portage version: 2.1.5_rc6)
Diffstat (limited to 'mail-filter/dovecot-antispam')
-rw-r--r-- | mail-filter/dovecot-antispam/ChangeLog | 8 | ||||
-rw-r--r-- | mail-filter/dovecot-antispam/dovecot-antispam-20080424.ebuild | 74 |
2 files changed, 81 insertions, 1 deletions
diff --git a/mail-filter/dovecot-antispam/ChangeLog b/mail-filter/dovecot-antispam/ChangeLog index 95ba77067d08..e0764e7575aa 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.5 2008/02/27 10:03:06 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dovecot-antispam/ChangeLog,v 1.6 2008/04/24 11:46:40 hollow Exp $ + +*dovecot-antispam-20080424 (24 Apr 2008) + + 24 Apr 2008; Benedikt Böhm <hollow@gentoo.org> + +dovecot-antispam-20080424.ebuild: + version bump 27 Feb 2008; Benedikt Böhm <hollow@gentoo.org> metadata.xml: fix metadata, no-herd is redundant diff --git a/mail-filter/dovecot-antispam/dovecot-antispam-20080424.ebuild b/mail-filter/dovecot-antispam/dovecot-antispam-20080424.ebuild new file mode 100644 index 000000000000..634f3139ed7a --- /dev/null +++ b/mail-filter/dovecot-antispam/dovecot-antispam-20080424.ebuild @@ -0,0 +1,74 @@ +# 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-20080424.ebuild,v 1.1 2008/04/24 11:46:40 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 + echo USER=root >> .config + echo GROUP=root >> .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 +} |