summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2009-05-16 06:58:57 +0000
committerTorsten Veller <tove@gentoo.org>2009-05-16 06:58:57 +0000
commit002aa75105d810ae72763a716137db8d2031eead (patch)
treef7fbf3d898dfe21b48958058abc814b6857bc133 /mail-filter
parentremove old (diff)
downloadgentoo-2-002aa75105d810ae72763a716137db8d2031eead.tar.gz
gentoo-2-002aa75105d810ae72763a716137db8d2031eead.tar.bz2
gentoo-2-002aa75105d810ae72763a716137db8d2031eead.zip
Version bump
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/maildrop/ChangeLog10
-rw-r--r--mail-filter/maildrop/files/maildrop-2.1.0-db4.patch71
-rw-r--r--mail-filter/maildrop/maildrop-2.1.0.ebuild112
3 files changed, 191 insertions, 2 deletions
diff --git a/mail-filter/maildrop/ChangeLog b/mail-filter/maildrop/ChangeLog
index e86fe67b7e1f..7a1a9fefe99c 100644
--- a/mail-filter/maildrop/ChangeLog
+++ b/mail-filter/maildrop/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-filter/maildrop
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.82 2009/03/21 17:00:49 jmbsvicetto Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.83 2009/05/16 06:58:56 tove Exp $
+
+*maildrop-2.1.0 (16 May 2009)
+
+ 16 May 2009; Torsten Veller <tove@gentoo.org> +maildrop-2.1.0.ebuild,
+ +files/maildrop-2.1.0-db4.patch:
+ Version bump
21 Mar 2009; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
metadata.xml:
diff --git a/mail-filter/maildrop/files/maildrop-2.1.0-db4.patch b/mail-filter/maildrop/files/maildrop-2.1.0-db4.patch
new file mode 100644
index 000000000000..9f7fedc18da3
--- /dev/null
+++ b/mail-filter/maildrop/files/maildrop-2.1.0-db4.patch
@@ -0,0 +1,71 @@
+diff -ur maildrop-2.1.0-orig/bdbobj/configure.in maildrop-2.1.0/bdbobj/configure.in
+--- maildrop-2.1.0-orig/bdbobj/configure.in 2009-02-15 22:50:45.000000000 +0100
++++ maildrop-2.1.0/bdbobj/configure.in 2009-05-15 22:02:53.000000000 +0200
+@@ -23,15 +23,19 @@
+ dnl Checks for libraries.
+
+ saveLIBS="$LIBS"
+-AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ],
+- AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"],
+- AC_CHECK_LIB(db, db_env_create, [ LIBDB=-ldb; LIBS="-ldb $LIBS"])
+- ))
++for dbname in db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db
++ do
++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ]))))
+
++ done
+ FOUND_DB=0
+-AC_CHECK_FUNC(dbopen, FOUND_DB=1)
+-AC_CHECK_FUNC(db_open, FOUND_DB=1)
+-AC_CHECK_FUNC(db_env_create, FOUND_DB=1)
++AC_CHECK_FUNC(db_create, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4002, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4001, FOUND_DB=1)
++AC_CHECK_FUNC(db_create_4000, FOUND_DB=1)
+
+ LIBS="$saveLIBS"
+
+Only in maildrop-2.1.0/bdbobj: configure.in.orig
+diff -ur maildrop-2.1.0-orig/configure.in maildrop-2.1.0/configure.in
+--- maildrop-2.1.0-orig/configure.in 2009-05-10 15:03:10.000000000 +0200
++++ maildrop-2.1.0/configure.in 2009-05-15 22:03:39.000000000 +0200
+@@ -99,21 +99,24 @@
+ USE_GDBM=1
+ ;;
+ db)
+- AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ],
+- AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"],
+- AC_CHECK_LIB(db, db_env_create,
+- [ LIBDB=-ldb; LIBS="-ldb $LIBS"])
+- ))
+-
+- AC_CHECK_FUNC(dbopen, HAVE_BDB=1)
+- AC_CHECK_FUNC(db_open, HAVE_BDB=1)
+- AC_CHECK_FUNC(db_env_create, HAVE_BDB=1)
++ for dbname in db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db
++ do
++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ]))))
++ done
++ AC_CHECK_FUNC(db_create, HAVE_BDB=1)
++ AC_CHECK_FUNC(db_create_4002, HAVE_BDB=1)
++ AC_CHECK_FUNC(db_create_4001, HAVE_BDB=1)
++ AC_CHECK_FUNC(db_create_4000, HAVE_BDB=1)
++
+ if test "$HAVE_BDB" != "1"
+ then
+- AC_MSG_ERROR(GDBM library not found)
++ AC_MSG_ERROR(DB library not found)
+ fi
+ dblibrary=bdbobj/libbdbobj.la
+- USE_GDBM=0
++ USE_DB=1
+ ;;
+ *)
+ ;;
+Only in maildrop-2.1.0: configure.in.orig
diff --git a/mail-filter/maildrop/maildrop-2.1.0.ebuild b/mail-filter/maildrop/maildrop-2.1.0.ebuild
new file mode 100644
index 000000000000..3e77c1eba678
--- /dev/null
+++ b/mail-filter/maildrop/maildrop-2.1.0.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/maildrop-2.1.0.ebuild,v 1.1 2009/05/16 06:58:56 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
+ 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}"/${P}-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 \
+ 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}
+}
+
+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
+}