summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando J. Pereda <ferdy@gentoo.org>2005-11-26 12:03:27 +0000
committerFernando J. Pereda <ferdy@gentoo.org>2005-11-26 12:03:27 +0000
commit8cf9fd37afe6a0c5ead8877578eadbda90c9e318 (patch)
tree85821c69018e32a8962ece04deab94c05ea13f66 /mail-filter/maildrop
parentstable on amd64 (diff)
downloadgentoo-2-8cf9fd37afe6a0c5ead8877578eadbda90c9e318.tar.gz
gentoo-2-8cf9fd37afe6a0c5ead8877578eadbda90c9e318.tar.bz2
gentoo-2-8cf9fd37afe6a0c5ead8877578eadbda90c9e318.zip
filter -fomit-frame-pointer wrt bug #113263
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'mail-filter/maildrop')
-rw-r--r--mail-filter/maildrop/ChangeLog8
-rw-r--r--mail-filter/maildrop/files/digest-maildrop-2.0.1-r11
-rw-r--r--mail-filter/maildrop/maildrop-2.0.1-r1.ebuild134
3 files changed, 142 insertions, 1 deletions
diff --git a/mail-filter/maildrop/ChangeLog b/mail-filter/maildrop/ChangeLog
index 7a63b6297986..08367bde6dba 100644
--- a/mail-filter/maildrop/ChangeLog
+++ b/mail-filter/maildrop/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-filter/maildrop
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.52 2005/11/24 19:11:54 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.53 2005/11/26 12:03:27 ferdy Exp $
+
+*maildrop-2.0.1-r1 (26 Nov 2005)
+
+ 26 Nov 2005; Fernando J. Pereda <ferdy@gentoo.org>
+ +maildrop-2.0.1-r1.ebuild:
+ filter -fomit-frame-pointer wrt bug #113263
24 Nov 2005; Gustavo Zacarias <gustavoz@gentoo.org> maildrop-2.0.1.ebuild:
Stable on sparc wrt #112687
diff --git a/mail-filter/maildrop/files/digest-maildrop-2.0.1-r1 b/mail-filter/maildrop/files/digest-maildrop-2.0.1-r1
new file mode 100644
index 000000000000..313939bd2863
--- /dev/null
+++ b/mail-filter/maildrop/files/digest-maildrop-2.0.1-r1
@@ -0,0 +1 @@
+MD5 6ea97cb4e6757579873218adf212dbf0 maildrop-2.0.1.tar.bz2 2105424
diff --git a/mail-filter/maildrop/maildrop-2.0.1-r1.ebuild b/mail-filter/maildrop/maildrop-2.0.1-r1.ebuild
new file mode 100644
index 000000000000..0e2af38477fc
--- /dev/null
+++ b/mail-filter/maildrop/maildrop-2.0.1-r1.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/maildrop-2.0.1-r1.ebuild,v 1.1 2005/11/26 12:03:27 ferdy Exp $
+
+inherit eutils gnuconfig flag-o-matic
+
+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/"
+S="${WORKDIR}/${P%%_pre}"
+
+SLOT="0"
+LICENSE="GPL-2"
+
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="berkdb debug fam gdbm ldap mysql postgres"
+
+PROVIDE="virtual/mda"
+
+DEPEND="!mail-mta/courier
+ 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 )
+ fam? ( virtual/fam )
+ !fam? ( ~sys-devel/autoconf-2.59 )
+ !gdbm? (
+ berkdb? (
+ >=sys-libs/db-3
+ ~sys-devel/autoconf-2.59
+ )
+ )
+ >=sys-devel/automake-1.9.3"
+
+RDEPEND="${DEPEND}
+ dev-lang/perl"
+
+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
+
+ # Be nice with uclibc also
+ use elibc_uclibc && sed -i -e 's~linux-gnu\*~& | linux-uclibc~' config.sub
+
+ # Prefer gdbm over berkdb
+ if use gdbm ; then
+ use berkdb && einfo "Both gdbm and berkdb selected. Using gdbm."
+ elif use berkdb ; then
+ epatch ${FILESDIR}/${PN}-1.8.0-db4.patch
+ cd ${S}/bdbobj
+ libtoolize --copy --force
+ WANT_AUTOCONF=2.59 autoconf || die "recreate configure failed (bdbobj)"
+ fi
+
+ if ! use fam ; then
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-1.8.1-disable-fam.patch
+ cd ${S}/maildir
+ WANT_AUTOCONF=2.59 autoconf || die "recreate configure failed (maildir)"
+ fi
+
+ # Only recreate configure if needed
+ if ! use fam || { ! use gdbm && use berkdb ; } ; then
+ cd ${S}
+ gnuconfig_update
+ libtoolize --copy --force
+ WANT_AUTOCONF=2.59 autoconf || die "recreate configure failed (topdir)"
+ 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 ; 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 COPYING 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
+}