summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2004-06-03 07:17:31 +0000
committerSeemant Kulleen <seemant@gentoo.org>2004-06-03 07:17:31 +0000
commit53d069ae32fc686a9c5cf3ad1e4e67336966e783 (patch)
treec83a7524d090ffe77b5ce8bee1e525711a5a7599 /mail-filter/maildrop
parentMoving to mail-filter/maildrop (diff)
downloadgentoo-2-53d069ae32fc686a9c5cf3ad1e4e67336966e783.tar.gz
gentoo-2-53d069ae32fc686a9c5cf3ad1e4e67336966e783.tar.bz2
gentoo-2-53d069ae32fc686a9c5cf3ad1e4e67336966e783.zip
Moved from net-mail/maildrop to mail-filter/maildrop.
Diffstat (limited to 'mail-filter/maildrop')
-rw-r--r--mail-filter/maildrop/ChangeLog136
-rw-r--r--mail-filter/maildrop/Manifest11
-rw-r--r--mail-filter/maildrop/files/digest-maildrop-1.4.0-r11
-rw-r--r--mail-filter/maildrop/files/digest-maildrop-1.5.21
-rw-r--r--mail-filter/maildrop/files/digest-maildrop-1.5.31
-rw-r--r--mail-filter/maildrop/files/digest-maildrop-1.5.3-r11
-rw-r--r--mail-filter/maildrop/files/maildroprc3
-rw-r--r--mail-filter/maildrop/maildrop-1.4.0-r1.ebuild63
-rw-r--r--mail-filter/maildrop/maildrop-1.5.2.ebuild95
-rw-r--r--mail-filter/maildrop/maildrop-1.5.3-r1.ebuild91
-rw-r--r--mail-filter/maildrop/maildrop-1.5.3.ebuild94
-rw-r--r--mail-filter/maildrop/metadata.xml5
12 files changed, 502 insertions, 0 deletions
diff --git a/mail-filter/maildrop/ChangeLog b/mail-filter/maildrop/ChangeLog
new file mode 100644
index 000000000000..59c429cb74c3
--- /dev/null
+++ b/mail-filter/maildrop/ChangeLog
@@ -0,0 +1,136 @@
+# ChangeLog for net-mail/maildrop
+# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.1 2004/06/03 07:17:31 seemant Exp $
+
+*maildrop-1.5.3 (03 Jun 2004)
+
+ 03 Jun 2004; Seemant Kulleen <seemant@gentoo.org> +metadata.xml,
+ +files/maildroprc, +maildrop-1.4.0-r1.ebuild, +maildrop-1.5.2.ebuild,
+ +maildrop-1.5.3-r1.ebuild, +maildrop-1.5.3.ebuild:
+ Moved from net-mail/maildrop to mail-filter/maildrop.
+
+ 15 May 2004; Danny van Dyk <kugelfang@gentoo.org> maildrop-1.5.3-r1.ebuild:
+ Marked ~amd64.
+
+ 22 Mar 2004; Seemant Kulleen <seemant@gentoo.org> maildrop-1.5.3-r1.ebuild:
+ move 1.5.3-r1 to stable, as it compiles for people. f3ew in #gentoo reported
+ 1.5.3 not working with gdbm and -gdbm, but -r1 worked on a remote server for
+ him.
+
+ 13 Mar 2004; David Holm <dholm@gentoo.org> maildrop-1.5.3-r1.ebuild:
+ Added to ~ppc.
+
+ 27 Feb 2004; Sven Blumenstein <bazik@gentoo.org> maildrop-1.5.3-r1.ebuild:
+ Stable on sparc.
+
+ 20 Oct 2003; Aron Griffis <agriffis@gentoo.org> maildrop-1.5.3-r1.ebuild:
+ Stable on alpha
+
+ 16 Oct 2003; Martin Holzer <mholzer@gentoo.org> maildrop-1.5.2.ebuild:
+ fixing #15763.
+
+*maildrop-1.5.3-r1 (01 Aug 2003)
+
+ 01 Aug 2003; Paul de Vrieze <pauldv@gentoo.org> maildrop-1.5.3-r1.ebuild:
+ Remove optional dependency on berkdb as it will not work with berkdb4 and
+ patching is nontrivial
+
+*maildrop-1.5.3 (09 Jul 2003)
+ 09 Jul 2003; Jared Hudson <jhhudso@gentoo.org> : Version bump.
+
+*maildrop-1.5.2 (14 Feb 2003)
+
+ 11 Jun 2003; Robin Johnson <robbat2@gentoo.org> maildrop-1.5.2.ebuild:
+ While maildroprc goes into /etc, the mysql+ldap configs need to go
+ /etc/maildrop. Fixes bug #20257.
+
+ 23 Mar 2003; Seemant Kulleen <seemant@gentoo.org> maildrop-1.5.2.ebuild :
+
+ maildroprc in /etc instead of /etc/maildrop, closing bug #17785 by Duke
+ <duke@spacebox.net>
+
+ 14 Feb 2003; Nick Hadaway <raker@gentoo.org> maildrop-1.5.2.ebuild,
+ files/digest-maildrop-1.5.2 :
+ Version bump. Stable builds of gcc include the CXX environment
+ variable, so removed the fix.
+
+*maildrop-1.5.1 (01 Jan 2002)
+
+ 02 Jan 2002; Nick Hadaway <raker@gentoo.org> maildrop-1.5.1.ebuild :
+ Added CXX='g++' so builds on gcc2 systems don't fail.
+
+ 01 Jan 2002; Nick Hadaway <raker@gentoo.org> maildrop-1.5.1.ebuild,
+ files/digest-maildrop-1.5.1 :
+ Version bump.
+
+ 21 Dec 2002; Nick Hadaway <raker@gentoo.org> maildrop-*.ebuild :
+ Updated all maildrop ebuilds to filter -fomit-frame-pointer and
+ -funroll-loops.
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+*maildrop-1.5.0-r1 (8 Nov 2002)
+
+ 12 Dec 2002; Nick Hadaway <raker@gentoo.org> maildrop-1.5.0-r1.ebuild :
+ Added berkdb use variable code. Also fixed some $myconf stuff.
+ Changed ebuild to use the filter-flags function to remove the
+ -funroll-loops flags.
+
+ 11 Nov 2002; Kyle Manna <nitro@gentoo.org> maildrop-1.5.0-r1.ebuild :
+ Updated trusted users and added a sed for MySQL socket.
+
+ 8 Nov 2002; Kyle Manna <nitro@gentoo.org> maildrop-1.5.0-r1.ebuild :
+ Added support for experimental mysql support. Also added facilites
+ for LDAP, but haven't had a chance to test LDAP support yet.
+
+*maildrop-1.5.0 (27 Oct 2002)
+
+ 27 Oct 2002; Donny Davies <woodchip@gentoo.org> : Chase latest release.
+ Downloads .bz2 instead of .gz.
+
+*maildrop-1.4.0-r1 (5 Sep 2002)
+
+ 12 Sep 2002; Nick Hadaway <raker@gentoo.org> maildrop-1.4.0-r1.ebuild :
+ Changed etc-dir to /etc instead of /etc/maildrop to fix compatibility
+ with MTAs. Thanks to Kang on bug #7834
+
+ 5 Sep 2002; Jared H. Hudson <jhhudso@gentoo.org> maildrop-1.4.0-r1.ebuild :
+ Added dependency checking for virtual/mta and made maildrop provide
+ virtual/mda. Thanks to Eric Renfro <psi-jack@myrealbox.com> for suggesting
+ these improvements in bug #6806.
+
+*maildrop-1.4.0 (24 Jun 2002)
+
+ 19 Aug 2002; Nick Hadaway <raker@gentoo.org> maildrop-1.4.0.ebuild :
+ Updated dependancies to include net-mai/mailbase as maildrop requires
+ /var/spool/mail/ in order to complete configure.
+
+ 24 Jun 2002; Donny Davies <woodchip@gentoo.org> :
+ Chase latest release; make it use the sourceforge mirror://.
+
+*maildrop-1.3.9-r1 (23 Jun 2002)
+
+ 23 Jun 2002; Ben Lutgens <lamer@gentoo.org> :
+ I'm explicitly stripping out -funroll-loops cause it's causing maildrop
+ to not compile.
+
+*maildrop-1.3.8-r1 (2 May 2002)
+
+ 2 May 2002; Donny Davies <woodchip@gentoo.org> :
+ Zap -fomit-frame-pointer and -ffast-math from CFLAGS if present.
+
+*maildrop-1.3.8 (1 May 2002)
+
+ 1 May 2002; Donny Davies <woodchip@gentoo.org> maildrop-1.3.8.ebuild,
+ files/maildroprc : Updated to latest release, added a system default
+ maildroprc file, added the documentation, added the development files,
+ cleaned up the /usr/share/maildrop dir, added SLOT and LICENSE.
+
+*maildrop-1.3.6 (1 Feb 2002)
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/mail-filter/maildrop/Manifest b/mail-filter/maildrop/Manifest
new file mode 100644
index 000000000000..b86ebeae8cc6
--- /dev/null
+++ b/mail-filter/maildrop/Manifest
@@ -0,0 +1,11 @@
+MD5 5dc2f922b24fc2578b5df12d43f809be ChangeLog 5001
+MD5 adff31731f3ce0e575ef71f8d99b69b0 maildrop-1.4.0-r1.ebuild 1652
+MD5 711b4440d058d4d26e7589906f299f01 maildrop-1.5.2.ebuild 2584
+MD5 e27c5e7b9717729bdf44644c7f391a02 maildrop-1.5.3-r1.ebuild 2503
+MD5 1dd5ebb6726aa99a92b8b3ba48eecb63 maildrop-1.5.3.ebuild 2561
+MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161
+MD5 953fc332e6ec019b91dba0b85d9745e9 files/digest-maildrop-1.4.0-r1 66
+MD5 a0e238f4cd5c4a52dfb06754051b6dfe files/digest-maildrop-1.5.2 67
+MD5 afbd9f7ee066fa84ac9efd57bce9f461 files/digest-maildrop-1.5.3 67
+MD5 afbd9f7ee066fa84ac9efd57bce9f461 files/digest-maildrop-1.5.3-r1 67
+MD5 c9c1f6d4020a5fd19162f20c537eb5cf files/maildroprc 58
diff --git a/mail-filter/maildrop/files/digest-maildrop-1.4.0-r1 b/mail-filter/maildrop/files/digest-maildrop-1.4.0-r1
new file mode 100644
index 000000000000..d3c39d7fd81d
--- /dev/null
+++ b/mail-filter/maildrop/files/digest-maildrop-1.4.0-r1
@@ -0,0 +1 @@
+MD5 7a2ad503be8d0bb6bbeb4a0422f4eb45 maildrop-1.4.0.tar.gz 638305
diff --git a/mail-filter/maildrop/files/digest-maildrop-1.5.2 b/mail-filter/maildrop/files/digest-maildrop-1.5.2
new file mode 100644
index 000000000000..df842bd0ef94
--- /dev/null
+++ b/mail-filter/maildrop/files/digest-maildrop-1.5.2
@@ -0,0 +1 @@
+MD5 45ce438482780861ec43ce3af55b99cd maildrop-1.5.2.tar.bz2 618115
diff --git a/mail-filter/maildrop/files/digest-maildrop-1.5.3 b/mail-filter/maildrop/files/digest-maildrop-1.5.3
new file mode 100644
index 000000000000..019de69a27d9
--- /dev/null
+++ b/mail-filter/maildrop/files/digest-maildrop-1.5.3
@@ -0,0 +1 @@
+MD5 6c7d95b2af87ae471b4447d368e97bd4 maildrop-1.5.3.tar.bz2 632313
diff --git a/mail-filter/maildrop/files/digest-maildrop-1.5.3-r1 b/mail-filter/maildrop/files/digest-maildrop-1.5.3-r1
new file mode 100644
index 000000000000..019de69a27d9
--- /dev/null
+++ b/mail-filter/maildrop/files/digest-maildrop-1.5.3-r1
@@ -0,0 +1 @@
+MD5 6c7d95b2af87ae471b4447d368e97bd4 maildrop-1.5.3.tar.bz2 632313
diff --git a/mail-filter/maildrop/files/maildroprc b/mail-filter/maildrop/files/maildroprc
new file mode 100644
index 000000000000..0b72d5526687
--- /dev/null
+++ b/mail-filter/maildrop/files/maildroprc
@@ -0,0 +1,3 @@
+# Global maildrop filter file
+
+#DEFAULT="$HOME/.maildir/"
diff --git a/mail-filter/maildrop/maildrop-1.4.0-r1.ebuild b/mail-filter/maildrop/maildrop-1.4.0-r1.ebuild
new file mode 100644
index 000000000000..f1bd5fbdd8aa
--- /dev/null
+++ b/mail-filter/maildrop/maildrop-1.4.0-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/maildrop-1.4.0-r1.ebuild,v 1.1 2004/06/03 07:17:31 seemant Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="Mail delivery agent/filter"
+SRC_URI="mirror://sourceforge/courier/${P}.tar.gz"
+HOMEPAGE="http://www.flounder.net/~mrsam/maildrop/index.html"
+
+DEPEND=">=sys-libs/gdbm-1.8.0
+ dev-lang/perl
+ virtual/mta"
+PROVIDE="virtual/mda"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 sparc"
+
+inherit flag-o-matic
+filter-flags -funroll-loops
+filter-flags -fomit-frame-pointer
+
+src_compile() {
+ ./configure \
+ --prefix=/usr \
+ --with-devel \
+ --enable-userdb \
+ --disable-tempdir \
+ --enable-syslog=1 \
+ --enable-use-flock=1 \
+ --enable-maildirquota \
+ --enable-use-dotlock=1 \
+ --mandir=/usr/share/man \
+ --with-etcdir=/etc \
+ --with-default-maildrop=./.maildir/ \
+ --enable-sendmail=/usr/sbin/sendmail \
+ --host=${CHOST} || die "bad ./configure"
+
+ emake || die "compile problem"
+}
+
+src_install() {
+ local i
+ make DESTDIR=${D} install || die
+
+ dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ README.postfix UPGRADE
+ mv ${D}/usr/share/maildrop/html ${D}/usr/share/doc/${PF}
+ dohtml {INSTALL,README,UPGRADE}.html
+
+ # this just cleans up /usr/share/maildrop a little bit..
+ for i in makedat makeuserdb pw2userdb userdb userdbpw vchkpw2userdb
+ do
+ rm -f ${D}/usr/bin/$i
+ mv -f ${D}/usr/share/maildrop/scripts/$i \
+ ${D}/usr/share/maildrop
+ dosym /usr/share/maildrop/$i /usr/bin/$i
+ done
+ rm -rf ${D}/usr/share/maildrop/scripts
+
+ insinto /etc/maildrop
+ doins ${FILESDIR}/maildroprc
+}
diff --git a/mail-filter/maildrop/maildrop-1.5.2.ebuild b/mail-filter/maildrop/maildrop-1.5.2.ebuild
new file mode 100644
index 000000000000..ce252e16a6ca
--- /dev/null
+++ b/mail-filter/maildrop/maildrop-1.5.2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/maildrop-1.5.2.ebuild,v 1.1 2004/06/03 07:17:31 seemant Exp $
+
+IUSE="mysql ldap gdbm berkdb"
+
+inherit flag-o-matic
+filter-flags -funroll-loops
+filter-flags -fomit-frame-pointer
+
+S=${WORKDIR}/${P}
+DESCRIPTION="Mail delivery agent/filter"
+HOMEPAGE="http://www.flounder.net/~mrsam/maildrop/index.html"
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 ~sparc"
+
+DEPEND="dev-lang/perl
+ virtual/mta
+ berkdb? ( >=sys-libs/db-3.2 )
+ gdbm? ( >=sys-libs/gdbm-1.8.0 )
+ mysql? ( >=dev-db/mysql-3.23.51 )
+ ldap? ( >=net-nds/openldap-2.0.23 )"
+
+PROVIDE="virtual/mda"
+
+src_compile() {
+ local myconf
+ use mysql \
+ && myconf="${myconf} --enable-maildropmysql \
+ --with-mysqlconfig=/etc/maildrop/maildropmysql.cf" \
+ || myconf="${myconf} --disable-maildropmysql"
+
+ use ldap \
+ && myconf="${myconf} --enable-maildropldap \
+ --with-ldapconfig=/etc/maildrop/maildropldap.cf" \
+ || myconf="${myconf} --disable-maildropldap"
+
+ use berkdb \
+ && myconf="${myconf} --with-db=db"
+ use gdbm \
+ && myconf="${myconf} --with-db=gdbm"
+
+ econf \
+ --with-devel \
+ --enable-userdb \
+ --disable-tempdir \
+ --enable-syslog=1 \
+ --enable-use-flock=1 \
+ --enable-maildirquota \
+ --enable-use-dotlock=1 \
+ --enable-restrict-trusted=1 \
+ --enable-trusted-users='root mail daemon postmaster qmaild mmdf vmail' \
+ --with-default-maildrop=./.maildir/ \
+ --enable-sendmail=/usr/sbin/sendmail \
+ ${myconf} || die
+
+ use ldap \
+ && emake LIBLDAP='-lldap -llber -lresolv' \
+ || emake
+}
+
+src_install() {
+ local i
+ make DESTDIR=${D} install || die
+
+ dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ README.postfix UPGRADE maildroptips.txt
+ mv ${D}/usr/share/maildrop/html ${D}/usr/share/doc/${PF}
+ dohtml {INSTALL,README,UPGRADE}.html
+
+ # this just cleans up /usr/share/maildrop a little bit..
+ for i in makedat makeuserdb pw2userdb userdb userdbpw vchkpw2userdb
+ do
+ rm -f ${D}/usr/bin/$i
+ mv -f ${D}/usr/share/maildrop/scripts/$i \
+ ${D}/usr/share/maildrop
+ dosym /usr/share/maildrop/$i /usr/bin/$i
+ done
+ rm -rf ${D}/usr/share/maildrop/scripts
+
+ insinto /etc
+ doins ${FILESDIR}/maildroprc
+
+ insinto /etc/maildrop
+ if [ -n "`use mysql`" ]
+ then
+ sed -e "s:/var/lib/mysql/mysql.sock:/var/run/mysqld/mysqld.sock:" \
+ ${S}/maildropmysql.config > ${S}/maildropmysql.cf
+ newins ${S}/maildropmysql.cf maildropmysql.cf
+ fi
+ use ldap && newins ${S}/maildropldap.config maildropldap.cf
+}
diff --git a/mail-filter/maildrop/maildrop-1.5.3-r1.ebuild b/mail-filter/maildrop/maildrop-1.5.3-r1.ebuild
new file mode 100644
index 000000000000..26b8f3d4c89c
--- /dev/null
+++ b/mail-filter/maildrop/maildrop-1.5.3-r1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/maildrop-1.5.3-r1.ebuild,v 1.1 2004/06/03 07:17:31 seemant Exp $
+
+IUSE="mysql ldap gdbm"
+
+inherit flag-o-matic
+filter-flags -funroll-loops
+filter-flags -fomit-frame-pointer
+
+S=${WORKDIR}/${P}
+DESCRIPTION="Mail delivery agent/filter"
+HOMEPAGE="http://www.flounder.net/~mrsam/maildrop/index.html"
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 sparc alpha ~ppc ~amd64"
+
+DEPEND="dev-lang/perl
+ virtual/mta
+ gdbm? ( >=sys-libs/gdbm-1.8.0 )
+ mysql? ( >=dev-db/mysql-3.23.51 )
+ ldap? ( >=net-nds/openldap-2.0.23 )"
+RDEPEND="$DEPEND"
+PROVIDE="virtual/mda"
+
+src_compile() {
+ local myconf
+ use mysql \
+ && myconf="${myconf} --enable-maildropmysql \
+ --with-mysqlconfig=/etc/maildrop/maildropmysql.cf" \
+ || myconf="${myconf} --disable-maildropmysql"
+
+ use ldap \
+ && myconf="${myconf} --enable-maildropldap \
+ --with-ldapconfig=/etc/maildrop/maildropldap.cf" \
+ || myconf="${myconf} --disable-maildropldap"
+
+ if use gdbm; then
+ myconf="${myconf} --with-db=gdbm"
+ fi
+
+ econf \
+ --with-devel \
+ --enable-userdb \
+ --disable-tempdir \
+ --enable-syslog=1 \
+ --enable-use-flock=1 \
+ --enable-maildirquota \
+ --enable-use-dotlock=1 \
+ --enable-restrict-trusted=1 \
+ --enable-trusted-users='root mail daemon postmaster qmaild mmdf vmail' \
+ --with-default-maildrop=./.maildir/ \
+ --enable-sendmail=/usr/sbin/sendmail \
+ ${myconf} || die
+
+ emake || die "compile problem"
+}
+
+src_install() {
+ local i
+ make DESTDIR=${D} install || die
+
+ dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ README.postfix UPGRADE maildroptips.txt
+ mv ${D}/usr/share/maildrop/html ${D}/usr/share/doc/${PF}
+ dohtml {INSTALL,README,UPGRADE}.html
+
+ # this just cleans up /usr/share/maildrop a little bit..
+ for i in makedat makeuserdb pw2userdb userdb userdbpw vchkpw2userdb
+ do
+ rm -f ${D}/usr/bin/$i
+ mv -f ${D}/usr/share/maildrop/scripts/$i \
+ ${D}/usr/share/maildrop
+ dosym /usr/share/maildrop/$i /usr/bin/$i
+ done
+ rm -rf ${D}/usr/share/maildrop/scripts
+
+ insinto /etc
+ doins ${FILESDIR}/maildroprc
+
+ insinto /etc/maildrop
+ if [ -n "`use mysql`" ]
+ then
+ sed -e "s:/var/lib/mysql/mysql.sock:/var/run/mysqld/mysqld.sock:" \
+ ${S}/maildropmysql.config > ${S}/maildropmysql.cf
+ newins ${S}/maildropmysql.cf maildropmysql.cf
+ fi
+ use ldap && newins ${S}/maildropldap.config maildropldap.cf
+}
diff --git a/mail-filter/maildrop/maildrop-1.5.3.ebuild b/mail-filter/maildrop/maildrop-1.5.3.ebuild
new file mode 100644
index 000000000000..d3fabf7424c7
--- /dev/null
+++ b/mail-filter/maildrop/maildrop-1.5.3.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/maildrop-1.5.3.ebuild,v 1.1 2004/06/03 07:17:31 seemant Exp $
+
+IUSE="mysql ldap gdbm berkdb"
+
+inherit flag-o-matic
+filter-flags -funroll-loops
+filter-flags -fomit-frame-pointer
+
+S=${WORKDIR}/${P}
+DESCRIPTION="Mail delivery agent/filter"
+HOMEPAGE="http://www.flounder.net/~mrsam/maildrop/index.html"
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 ~sparc"
+
+DEPEND="dev-lang/perl
+ virtual/mta
+ berkdb? ( >=sys-libs/db-3.2 )
+ gdbm? ( >=sys-libs/gdbm-1.8.0 )
+ mysql? ( >=dev-db/mysql-3.23.51 )
+ ldap? ( >=net-nds/openldap-2.0.23 )"
+
+PROVIDE="virtual/mda"
+
+src_compile() {
+ local myconf
+ use mysql \
+ && myconf="${myconf} --enable-maildropmysql \
+ --with-mysqlconfig=/etc/maildrop/maildropmysql.cf" \
+ || myconf="${myconf} --disable-maildropmysql"
+
+ use ldap \
+ && myconf="${myconf} --enable-maildropldap \
+ --with-ldapconfig=/etc/maildrop/maildropldap.cf" \
+ || myconf="${myconf} --disable-maildropldap"
+
+ if use berkdb; then
+ myconf="${myconf} --with-db=db"
+ elif use gdbm; then
+ myconf="${myconf} --with-db=gdbm"
+ fi
+
+ econf \
+ --with-devel \
+ --enable-userdb \
+ --disable-tempdir \
+ --enable-syslog=1 \
+ --enable-use-flock=1 \
+ --enable-maildirquota \
+ --enable-use-dotlock=1 \
+ --enable-restrict-trusted=1 \
+ --enable-trusted-users='root mail daemon postmaster qmaild mmdf vmail' \
+ --with-default-maildrop=./.maildir/ \
+ --enable-sendmail=/usr/sbin/sendmail \
+ ${myconf} || die
+
+ emake || die "compile problem"
+}
+
+src_install() {
+ local i
+ make DESTDIR=${D} install || die
+
+ dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ README.postfix UPGRADE maildroptips.txt
+ mv ${D}/usr/share/maildrop/html ${D}/usr/share/doc/${PF}
+ dohtml {INSTALL,README,UPGRADE}.html
+
+ # this just cleans up /usr/share/maildrop a little bit..
+ for i in makedat makeuserdb pw2userdb userdb userdbpw vchkpw2userdb
+ do
+ rm -f ${D}/usr/bin/$i
+ mv -f ${D}/usr/share/maildrop/scripts/$i \
+ ${D}/usr/share/maildrop
+ dosym /usr/share/maildrop/$i /usr/bin/$i
+ done
+ rm -rf ${D}/usr/share/maildrop/scripts
+
+ insinto /etc
+ doins ${FILESDIR}/maildroprc
+
+ insinto /etc/maildrop
+ if [ -n "`use mysql`" ]
+ then
+ sed -e "s:/var/lib/mysql/mysql.sock:/var/run/mysqld/mysqld.sock:" \
+ ${S}/maildropmysql.config > ${S}/maildropmysql.cf
+ newins ${S}/maildropmysql.cf maildropmysql.cf
+ fi
+ use ldap && newins ${S}/maildropldap.config maildropldap.cf
+}
diff --git a/mail-filter/maildrop/metadata.xml b/mail-filter/maildrop/metadata.xml
new file mode 100644
index 000000000000..51f94e3fbe0e
--- /dev/null
+++ b/mail-filter/maildrop/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-mail</herd>
+</pkgmetadata>