summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando J. Pereda <ferdy@gentoo.org>2005-02-16 09:13:58 +0000
committerFernando J. Pereda <ferdy@gentoo.org>2005-02-16 09:13:58 +0000
commitc352ddd82e4002f163b8910e1a1048aa7e0c0d2a (patch)
tree23d7c64d753cf46f9ceebb3fb7af46d2c9519703 /mail-filter
parentStable on hppa. (diff)
downloadhistorical-c352ddd82e4002f163b8910e1a1048aa7e0c0d2a.tar.gz
historical-c352ddd82e4002f163b8910e1a1048aa7e0c0d2a.tar.bz2
historical-c352ddd82e4002f163b8910e1a1048aa7e0c0d2a.zip
Install maildrop as a root setuid program as it is safe (from maildrop(1)). wrt #81391. Thanks swtaylor
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/maildrop/ChangeLog8
-rw-r--r--mail-filter/maildrop/Manifest10
-rw-r--r--mail-filter/maildrop/files/digest-maildrop-1.8.0-r21
-rw-r--r--mail-filter/maildrop/maildrop-1.8.0-r2.ebuild115
4 files changed, 129 insertions, 5 deletions
diff --git a/mail-filter/maildrop/ChangeLog b/mail-filter/maildrop/ChangeLog
index c56c8210044b..ab443be4ab8f 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.21 2005/02/13 13:19:18 ferdy Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.22 2005/02/16 09:13:58 ferdy Exp $
+
+*maildrop-1.8.0-r2 (16 Feb 2005)
+
+ 16 Feb 2005; Fernando J. Pereda <ferdy@gentoo.org>
+ +maildrop-1.8.0-r2.ebuild:
+ Make maildrop setuid root as it is safe from maildrop man page. wrt #81391
*maildrop-1.8.0-r1 (13 Feb 2005)
diff --git a/mail-filter/maildrop/Manifest b/mail-filter/maildrop/Manifest
index 7c473c62aa09..c7b71973c28a 100644
--- a/mail-filter/maildrop/Manifest
+++ b/mail-filter/maildrop/Manifest
@@ -10,8 +10,9 @@ MD5 e02bab1f875ba079e6e5d2ad5d267851 maildrop-1.8.0.ebuild 3322
MD5 288de83476470795423e4631cb9c6abf maildrop-1.5.3.ebuild 2508
MD5 e42d4d7c6fe30f0bef7229527f2da340 maildrop-1.7.0-r2.ebuild 3296
MD5 d7d4dcd6aaeea931bfcdfb353611c171 maildrop-1.5.3-r1.ebuild 2432
-MD5 18bdca8f68f1e764420e31c19cbe30a4 ChangeLog 8644
+MD5 85dd3182b93a09b4e547d28daeb2c860 ChangeLog 8838
MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161
+MD5 8a32128755e871bc9134651be6f208a1 maildrop-1.8.0-r2.ebuild 3177
MD5 88b7f06e9f2d03007db22e431920e29c maildrop-1.7.0.20040907-r1.ebuild 3246
MD5 be89a292c7c2bd4365fd160f4db22fb9 files/digest-maildrop-1.7.0.20040907 77
MD5 a0e238f4cd5c4a52dfb06754051b6dfe files/digest-maildrop-1.5.2 67
@@ -24,6 +25,7 @@ MD5 afbd9f7ee066fa84ac9efd57bce9f461 files/digest-maildrop-1.5.3-r1 67
MD5 5db4117db5eca1f36f1778625e85d190 files/digest-maildrop-1.7.0-r2 68
MD5 72eeead0d2cb72de0ee2571af5c63bd5 files/maildrop-1.7.0-db4-configure.in.patch 1290
MD5 eb7acda28529a85c74150a140f143d75 files/digest-maildrop-1.8.0-r1 68
+MD5 eb7acda28529a85c74150a140f143d75 files/digest-maildrop-1.8.0-r2 68
MD5 c9c1f6d4020a5fd19162f20c537eb5cf files/maildroprc 58
MD5 54e776919d1cd1729e5c6c1f27c40444 files/maildrop-1.7.0-0x0B-fix.patch 525
MD5 532cc225eb7ae73b01639168857445be files/maildrop-1.7.0-db4-bdbobj_configure.in.patch 1211
@@ -31,7 +33,7 @@ MD5 2f8014fea76e32d9bb682d00ee5ce7c7 files/maildrop-1.8.0-db4.patch 2501
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
-iD8DBQFCD1PmViELBEf1JB0RAoFvAKCFUhIDIlxyb6x/82xrvw5i5AcxAACcDj7o
-Eo9TpGzf5pSq2rWEqj6yM0Y=
-=7DkY
+iD8DBQFCEw7hViELBEf1JB0RAhaNAJ95Vvn/SjY568T2rVWmTX/8PbWKEACfbYNv
+5bweUrbXrNWV9hCE/pCP3e4=
+=tYsv
-----END PGP SIGNATURE-----
diff --git a/mail-filter/maildrop/files/digest-maildrop-1.8.0-r2 b/mail-filter/maildrop/files/digest-maildrop-1.8.0-r2
new file mode 100644
index 000000000000..70344e5442cc
--- /dev/null
+++ b/mail-filter/maildrop/files/digest-maildrop-1.8.0-r2
@@ -0,0 +1 @@
+MD5 caf59c78d6689b4cfba98d979af63407 maildrop-1.8.0.tar.bz2 2013203
diff --git a/mail-filter/maildrop/maildrop-1.8.0-r2.ebuild b/mail-filter/maildrop/maildrop-1.8.0-r2.ebuild
new file mode 100644
index 000000000000..9c413cce1b28
--- /dev/null
+++ b/mail-filter/maildrop/maildrop-1.8.0-r2.ebuild
@@ -0,0 +1,115 @@
+# 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-1.8.0-r2.ebuild,v 1.1 2005/02/16 09:13:58 ferdy Exp $
+
+inherit eutils gnuconfig
+
+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/courier/${P%%_pre}.tar.bz2"
+HOMEPAGE="http://www.courier-mta.org/maildrop/"
+S="${WORKDIR}/${P%%_pre}"
+
+SLOT="0"
+LICENSE="GPL-2"
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64
+KEYWORDS="~x86 ~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc"
+IUSE="mysql ldap gdbm berkdb uclibc debug postgres"
+
+PROVIDE="virtual/mda"
+
+DEPEND="dev-lang/perl
+ gdbm? ( >=sys-libs/gdbm-1.8.0 )
+ !gdbm? ( berkdb? ( >=sys-libs/db-3* ) )
+ mysql? ( net-libs/courier-authlib )
+ postgres? ( net-libs/courier-authlib )
+ ldap? ( net-libs/courier-authlib )"
+
+RDEPEND="${DEPEND}
+ dev-lang/perl
+ virtual/mta"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ use uclibc && sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub
+ if use gdbm ; then
+ use berkdb && einfo "Both gdbm and berkdb selected. Using gdbm."
+ else
+ if use berkdb ; then
+ epatch ${FILESDIR}/maildrop-1.8.0-db4.patch \
+ || die "patch failed."
+ export WANT_AUTOCONF="2.5"
+ gnuconfig_update
+ libtoolize --copy --force
+ ebegin "Recreating configure."
+ autoconf || die "recreate configure failed."
+ eend $?
+ cd ${S}/bdbobj
+ libtoolize --copy --force
+ ebegin "Recreating configure in bdbobj."
+ autoconf || die "recreate configure failed."
+ eend $?
+ else
+ einfo "Building without database support"
+ fi
+ fi
+}
+
+src_compile() {
+ local myconf
+
+ if use gdbm ; then
+ myconf="${myconf} --with-db=gdbm"
+ else
+ [ use berkdb ] && myconf="${myconf} --with-db=db" || \
+ myconf="${myconf} --without-db"
+ fi
+
+ myconf="${myconf} $(use_enable debug DEBUG)"
+
+ econf \
+ --with-devel \
+ --disable-tempdir \
+ --enable-syslog=1 \
+ --enable-use-flock=1 \
+ --enable-maildirquota \
+ --enable-use-dotlock=1 \
+ --enable-restrict-trusted=1 \
+ --enable-trusted-users='apache dspam root mail daemon postmaster qmaild mmdf vmail' \
+ --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
+
+ insinto /etc/maildrop
+ if 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
+}