diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2008-08-29 12:20:33 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2008-08-29 12:20:33 +0000 |
commit | d19295c7152d7b86f2bec781b5fcc25734cd97a7 (patch) | |
tree | 704b13fa7b4207fce983e16f3d434922a6c05770 /mail-filter/dovecot-antispam | |
parent | Add ~sparc keyword --- Bug #235969 --- Everything fine with USE='web doc (diff) | |
download | gentoo-2-d19295c7152d7b86f2bec781b5fcc25734cd97a7.tar.gz gentoo-2-d19295c7152d7b86f2bec781b5fcc25734cd97a7.tar.bz2 gentoo-2-d19295c7152d7b86f2bec781b5fcc25734cd97a7.zip |
version bump wrt #235587
(Portage version: 2.1.4.4)
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-20080829.ebuild | 73 |
2 files changed, 80 insertions, 1 deletions
diff --git a/mail-filter/dovecot-antispam/ChangeLog b/mail-filter/dovecot-antispam/ChangeLog index dde63d7e51ad..3246966440a6 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.8 2008/08/23 05:48:33 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/dovecot-antispam/ChangeLog,v 1.9 2008/08/29 12:20:33 hollow Exp $ + +*dovecot-antispam-20080829 (29 Aug 2008) + + 29 Aug 2008; Benedikt Böhm <hollow@gentoo.org> + +dovecot-antispam-20080829.ebuild: + version bump wrt #235587 23 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml: add GLEP 56 USE flag desc from use.local.desc diff --git a/mail-filter/dovecot-antispam/dovecot-antispam-20080829.ebuild b/mail-filter/dovecot-antispam/dovecot-antispam-20080829.ebuild new file mode 100644 index 000000000000..70507d8d12d0 --- /dev/null +++ b/mail-filter/dovecot-antispam/dovecot-antispam-20080829.ebuild @@ -0,0 +1,73 @@ +# 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-20080829.ebuild,v 1.1 2008/08/29 12:20:33 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 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 +} |