diff options
author | Torsten Veller <tove@gentoo.org> | 2010-02-06 09:11:26 +0000 |
---|---|---|
committer | Torsten Veller <tove@gentoo.org> | 2010-02-06 09:11:26 +0000 |
commit | 220b290bc9633a4f7f11fabe0acbb5a733c6356c (patch) | |
tree | 44449aeafe685201a7ab8e3282bee5c592d318f7 /mail-filter | |
parent | Version bump. Cleanup (diff) | |
download | gentoo-2-220b290bc9633a4f7f11fabe0acbb5a733c6356c.tar.gz gentoo-2-220b290bc9633a4f7f11fabe0acbb5a733c6356c.tar.bz2 gentoo-2-220b290bc9633a4f7f11fabe0acbb5a733c6356c.zip |
Version bump
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/maildrop/ChangeLog | 9 | ||||
-rw-r--r-- | mail-filter/maildrop/maildrop-2.4.0.ebuild | 112 |
2 files changed, 119 insertions, 2 deletions
diff --git a/mail-filter/maildrop/ChangeLog b/mail-filter/maildrop/ChangeLog index 588fa531eb76..61a36ece4922 100644 --- a/mail-filter/maildrop/ChangeLog +++ b/mail-filter/maildrop/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for mail-filter/maildrop -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.92 2009/11/18 18:24:27 armin76 Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.93 2010/02/06 09:11:26 tove Exp $ + +*maildrop-2.4.0 (06 Feb 2010) + + 06 Feb 2010; Torsten Veller <tove@gentoo.org> +maildrop-2.4.0.ebuild: + Version bump 18 Nov 2009; Raúl Porcel <armin76@gentoo.org> maildrop-2.2.0.ebuild: arm/ia64/s390/sh/sparc stable wrt #290547 diff --git a/mail-filter/maildrop/maildrop-2.4.0.ebuild b/mail-filter/maildrop/maildrop-2.4.0.ebuild new file mode 100644 index 000000000000..b99c3ae3026e --- /dev/null +++ b/mail-filter/maildrop/maildrop-2.4.0.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/maildrop-2.4.0.ebuild,v 1.1 2010/02/06 09:11:26 tove Exp $ + +EAPI=2 + +inherit eutils flag-o-matic autotools + +DESCRIPTION="Mail delivery agent/filter" +[[ -z ${PV/?.?/} ]] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +[[ -z ${PV/?.?.?/} ]] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +[[ -z ${SRC_URI} ]] && SRC_URI="http://www.courier-mta.org/beta/${PN}/${P%%_pre}.tar.bz2" +HOMEPAGE="http://www.courier-mta.org/maildrop/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86" +IUSE="berkdb debug fam gdbm ldap mysql postgres authlib" + +DEPEND="!mail-mta/courier + net-mail/mailbase + dev-libs/libpcre + net-dns/libidn + gdbm? ( >=sys-libs/gdbm-1.8.0 ) + mysql? ( net-libs/courier-authlib ) + postgres? ( net-libs/courier-authlib ) + ldap? ( net-libs/courier-authlib ) + authlib? ( net-libs/courier-authlib ) + fam? ( virtual/fam ) + !gdbm? ( + berkdb? ( + >=sys-libs/db-3 + ) + )" +RDEPEND="${DEPEND} + dev-lang/perl" +PROVIDE="virtual/mda" + +S=${WORKDIR}/${P%%_pre} + +src_prepare() { +# epatch "${FILESDIR}"/${PN}-2.0.4-makedat.patch + + # Prefer gdbm over berkdb + if use gdbm ; then + use berkdb && elog "Both gdbm and berkdb selected. Using gdbm." + elif use berkdb ; then + epatch "${FILESDIR}"/${PN}-2.2.0-db4.patch + fi + + if ! use fam ; then + epatch "${FILESDIR}"/${PN}-1.8.1-disable-fam.patch + fi + + eautoreconf +} + +src_configure() { + local myconf + local mytrustedusers="apache dspam root mail fetchmail \ + daemon postmaster qmaild mmdf vmail alias" + + # These flags make maildrop cry + replace-flags -Os -O2 + filter-flags -fomit-frame-pointer + + if use gdbm ; then + myconf="${myconf} --with-db=gdbm" + elif use berkdb ; then + myconf="${myconf} --with-db=db" + else + myconf="${myconf} --without-db" + fi + + if ! use mysql && ! use postgres && ! use ldap && ! use authlib ; then + myconf="${myconf} --disable-authlib" + fi + + econf \ + $(use_enable fam) \ + --disable-dependency-tracker \ + --with-devel \ + --disable-tempdir \ + --enable-syslog=1 \ + --enable-use-flock=1 \ + --enable-use-dotlock=1 \ + --enable-restrict-trusted=1 \ + --enable-trusted-users="${mytrustedusers}" \ + --enable-maildrop-uid=root \ + --enable-maildrop-gid=mail \ + --with-default-maildrop=./.maildir/ \ + --enable-sendmail=/usr/sbin/sendmail \ + --cache-file="${S}"/configuring.cache \ + ${myconf} +} + +src_install() { + make DESTDIR="${D}" install || die + + fperms 4755 /usr/bin/maildrop + + dodoc AUTHORS ChangeLog INSTALL NEWS README \ + README.postfix UPGRADE maildroptips.txt || die + + dodir /usr/share/doc/${PF} + mv "${D}"/usr/share/maildrop/html "${D}"/usr/share/doc/${PF}/ + + dohtml {INSTALL,README,UPGRADE}.html || die + + insinto /etc + doins "${FILESDIR}"/maildroprc || die +} |