summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2011-05-06 20:29:01 +0000
committerEray Aslan <eras@gentoo.org>2011-05-06 20:29:01 +0000
commit8d588fe990ee7495cdce7f004dbde012aa0d074a (patch)
tree0d834468f4065a527ff3a46b1c2a06c2ee082669 /mail-filter
parentVersion bump. (diff)
downloadgentoo-2-8d588fe990ee7495cdce7f004dbde012aa0d074a.tar.gz
gentoo-2-8d588fe990ee7495cdce7f004dbde012aa0d074a.tar.bz2
gentoo-2-8d588fe990ee7495cdce7f004dbde012aa0d074a.zip
version bump
(Portage version: 2.1.9.47/cvs/Linux x86_64)
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/maildrop/ChangeLog7
-rw-r--r--mail-filter/maildrop/maildrop-2.5.3.ebuild115
2 files changed, 121 insertions, 1 deletions
diff --git a/mail-filter/maildrop/ChangeLog b/mail-filter/maildrop/ChangeLog
index 0c777872b82c..bef8f53e1292 100644
--- a/mail-filter/maildrop/ChangeLog
+++ b/mail-filter/maildrop/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for mail-filter/maildrop
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.104 2011/03/16 10:37:53 eras Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.105 2011/05/06 20:29:01 eras Exp $
+
+*maildrop-2.5.3 (06 May 2011)
+
+ 06 May 2011; Eray Aslan <eras@gentoo.org> +maildrop-2.5.3.ebuild:
+ version bump
16 Mar 2011; Eray Aslan <eras@gentoo.org> maildrop-2.4.2.ebuild,
maildrop-2.5.1.ebuild:
diff --git a/mail-filter/maildrop/maildrop-2.5.3.ebuild b/mail-filter/maildrop/maildrop-2.5.3.ebuild
new file mode 100644
index 000000000000..8d5a9dc84d5b
--- /dev/null
+++ b/mail-filter/maildrop/maildrop-2.5.3.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/maildrop-2.5.3.ebuild,v 1.1 2011/05/06 20:29:01 eras 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"
+DEPEND="${DEPEND}
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${P%%_pre}
+
+src_prepare() {
+ # 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.5.1-db.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() {
+ emake DESTDIR="${D}" install || die
+
+ fperms 4755 /usr/bin/maildrop
+
+ dodoc AUTHORS ChangeLog INSTALL NEWS README \
+ README.postfix UPGRADE maildroptips.txt || die
+ docinto unicode
+ dodoc unicode/README || die
+ docinto maildir
+ dodoc maildir/AUTHORS maildir/INSTALL maildir/README*.txt || die
+
+ dodir "/usr/share/doc/${PF}"
+ mv "${D}/usr/share/maildrop/html" "${D}/usr/share/doc/${PF}/"
+
+ dohtml *.html maildir/*.html || die
+
+ insinto /etc
+ doins "${FILESDIR}"/maildroprc || die
+}