diff options
author | Fernando J. Pereda <ferdy@gentoo.org> | 2007-04-23 20:46:08 +0000 |
---|---|---|
committer | Fernando J. Pereda <ferdy@gentoo.org> | 2007-04-23 20:46:08 +0000 |
commit | b770ebb7fa72d784d5c598fe66db6f23811e2ba0 (patch) | |
tree | cbcad85d7601fd43010a18f6156d8778a3cdf221 /mail-filter | |
parent | Keyworded ~x86-fbsd (diff) | |
download | gentoo-2-b770ebb7fa72d784d5c598fe66db6f23811e2ba0.tar.gz gentoo-2-b770ebb7fa72d784d5c598fe66db6f23811e2ba0.tar.bz2 gentoo-2-b770ebb7fa72d784d5c598fe66db6f23811e2ba0.zip |
New upstream version.
(Portage version: 2.1.2.2)
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/maildrop/ChangeLog | 7 | ||||
-rw-r--r-- | mail-filter/maildrop/files/digest-maildrop-2.0.4 | 3 | ||||
-rw-r--r-- | mail-filter/maildrop/maildrop-2.0.4.ebuild | 122 |
3 files changed, 131 insertions, 1 deletions
diff --git a/mail-filter/maildrop/ChangeLog b/mail-filter/maildrop/ChangeLog index 5628fef4198c..f7ab0fc64beb 100644 --- a/mail-filter/maildrop/ChangeLog +++ b/mail-filter/maildrop/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for mail-filter/maildrop # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.72 2007/03/18 04:28:25 genone Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.73 2007/04/23 20:46:08 ferdy Exp $ + +*maildrop-2.0.4 (23 Apr 2007) + + 23 Apr 2007; Fernando J. Pereda <ferdy@gentoo.org> +maildrop-2.0.4.ebuild: + New upstream version. 18 Mar 2007; Marius Mauch <genone@gentoo.org> maildrop-2.0.2-r1.ebuild, maildrop-2.0.3.ebuild: diff --git a/mail-filter/maildrop/files/digest-maildrop-2.0.4 b/mail-filter/maildrop/files/digest-maildrop-2.0.4 new file mode 100644 index 000000000000..7d35e4793713 --- /dev/null +++ b/mail-filter/maildrop/files/digest-maildrop-2.0.4 @@ -0,0 +1,3 @@ +MD5 6a760efe429716ab0be67a1ddc554ed7 maildrop-2.0.4.tar.bz2 2286125 +RMD160 9c0a349879cc0791ad01e5bae04b680de3a7a606 maildrop-2.0.4.tar.bz2 2286125 +SHA256 573032d6525ac7454377eb400372c363446bb3d9abd9249da9cf6676aef85671 maildrop-2.0.4.tar.bz2 2286125 diff --git a/mail-filter/maildrop/maildrop-2.0.4.ebuild b/mail-filter/maildrop/maildrop-2.0.4.ebuild new file mode 100644 index 000000000000..2c5256dcbfd2 --- /dev/null +++ b/mail-filter/maildrop/maildrop-2.0.4.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/maildrop-2.0.4.ebuild,v 1.1 2007/04/23 20:46:08 ferdy Exp $ + +WANT_AUTOMAKE="latest" +WANT_AUTOCONF="latest" + +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-2" +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 + 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_unpack() { + unpack ${A} + cd "${S}" + + # Do not use lazy bindings on /usr/bin/maildrop + sed -i -e "s~^maildrop_LDFLAGS =~& $(bindnow-flags)~g" maildrop/Makefile.in + + # 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}-1.8.0-db4-r1.patch + fi + + if ! use fam ; then + epatch "${FILESDIR}"/${PN}-1.8.1-disable-fam.patch + fi + + # Only recreate configure if needed + if ! use fam || { ! use gdbm && use berkdb ; } ; then + eautoreconf + fi +} + +src_compile() { + local myconf + local mytrustedusers="apache dspam root mail \ + 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-maildirquota \ + --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} || die + + emake || die "compile problem" +} + +src_install() { + make DESTDIR="${D}" install || die + + fperms 4755 /usr/bin/maildrop + + dodoc AUTHORS ChangeLog INSTALL NEWS README \ + README.postfix UPGRADE maildroptips.txt + + dodir /usr/share/doc/${PF} + mv "${D}"/usr/share/maildrop/html "${D}"/usr/share/doc/${PF}/ + + dohtml {INSTALL,README,UPGRADE}.html + + insinto /etc + doins "${FILESDIR}"/maildroprc +} |