diff options
author | Fernando J. Pereda <ferdy@gentoo.org> | 2007-01-04 19:37:52 +0000 |
---|---|---|
committer | Fernando J. Pereda <ferdy@gentoo.org> | 2007-01-04 19:37:52 +0000 |
commit | 3dedf9d2186cc9855e53583144258fc9f8935030 (patch) | |
tree | b48a063b45307f194fcc342b559bed28656aad0c /mail-filter | |
parent | Remove ebuilds incorrectly handling autotools as per bug #160010 (diff) | |
download | gentoo-2-3dedf9d2186cc9855e53583144258fc9f8935030.tar.gz gentoo-2-3dedf9d2186cc9855e53583144258fc9f8935030.tar.bz2 gentoo-2-3dedf9d2186cc9855e53583144258fc9f8935030.zip |
Remove ebuilds incorrectly handling autotools as per bug #160010
(Portage version: 2.1.1-r2)
(Signed Manifest commit)
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/maildrop/Manifest | 35 | ||||
-rw-r--r-- | mail-filter/maildrop/files/digest-maildrop-2.0.1 | 3 | ||||
-rw-r--r-- | mail-filter/maildrop/files/digest-maildrop-2.0.1-r1 | 3 | ||||
-rw-r--r-- | mail-filter/maildrop/files/maildrop-1.8.0-db4.patch | 63 | ||||
-rw-r--r-- | mail-filter/maildrop/maildrop-2.0.1-r1.ebuild | 134 | ||||
-rw-r--r-- | mail-filter/maildrop/maildrop-2.0.1.ebuild | 132 |
6 files changed, 8 insertions, 362 deletions
diff --git a/mail-filter/maildrop/Manifest b/mail-filter/maildrop/Manifest index 848466aa7ff1..3669a3bf40e0 100644 --- a/mail-filter/maildrop/Manifest +++ b/mail-filter/maildrop/Manifest @@ -5,10 +5,6 @@ AUX maildrop-1.8.0-db4-r1.patch 2529 RMD160 bf6e31be2227b53f5e7cbc5838b819f81dcd MD5 903a0ac519b0a5a2f988e001072a5736 files/maildrop-1.8.0-db4-r1.patch 2529 RMD160 bf6e31be2227b53f5e7cbc5838b819f81dcd62d9 files/maildrop-1.8.0-db4-r1.patch 2529 SHA256 1e5eef7afba0c496e8e6ee627bb8ccf182ffd39ea4c8f8fc8f9723fce97c51ae files/maildrop-1.8.0-db4-r1.patch 2529 -AUX maildrop-1.8.0-db4.patch 2501 RMD160 75957b5fd95f6d434be35750de3a51881eff03fa SHA1 7d88e430cb777d904b9bb6e5c68be40d12ea8fe7 SHA256 4a18da4c712246c019b68a5d3f947b8ab1659dc07d155f877d1d99549ceb3b27 -MD5 2f8014fea76e32d9bb682d00ee5ce7c7 files/maildrop-1.8.0-db4.patch 2501 -RMD160 75957b5fd95f6d434be35750de3a51881eff03fa files/maildrop-1.8.0-db4.patch 2501 -SHA256 4a18da4c712246c019b68a5d3f947b8ab1659dc07d155f877d1d99549ceb3b27 files/maildrop-1.8.0-db4.patch 2501 AUX maildrop-1.8.1-disable-fam.patch 2511 RMD160 3fc7bf21d425c6e676475458c99a5ed2d4e93469 SHA1 7b6148b485bbc0379fa849a8af2706b93ea22432 SHA256 e4621bbe990d7a90d703e7a8b8cf07bb59655a22a96e62c275352d28c79684a3 MD5 e7efb3052fe6605244b78179990197f0 files/maildrop-1.8.1-disable-fam.patch 2511 RMD160 3fc7bf21d425c6e676475458c99a5ed2d4e93469 files/maildrop-1.8.1-disable-fam.patch 2511 @@ -17,17 +13,8 @@ AUX maildroprc 58 RMD160 1d53d6c05cb809bb9d637ae347d9dee1362f1b09 SHA1 a2fd60599 MD5 c9c1f6d4020a5fd19162f20c537eb5cf files/maildroprc 58 RMD160 1d53d6c05cb809bb9d637ae347d9dee1362f1b09 files/maildroprc 58 SHA256 2feec7b63d9b3fae442ddab96810929ce4080871c31a1f23401cd3b61d00add1 files/maildroprc 58 -DIST maildrop-2.0.1.tar.bz2 2105424 RMD160 c8f5e3b450bdf1d458a81dd54a9c9486d361ebd8 SHA1 f9b69d7071c25def5af60893687c00ddb252d75e SHA256 2de43cb4536e71ca54ce8dce663d6d264b80fdadb2cd6b1007579efd727b31fb DIST maildrop-2.0.2.tar.bz2 2139549 RMD160 7b2bd7fc0b3d9e7f8cefd9236e7e387d9d5ae1ce SHA1 a7f3ac17cd1e14256b047e36810d3e8ec6cb872e SHA256 6f10d3b503a8bf878b8d270543a15acca645667504803c586a2a0cc0642413cd DIST maildrop-2.0.3.tar.bz2 2149708 RMD160 35375a63a41fd790f65c65eb7e63ce138bc55cdd SHA1 873976836de7dd3cff8ce96b1b17593752edff55 SHA256 3a752582ed296ea15afe7f2e8a7a5f82333245b4dc2fd78ce7f659e775665bbc -EBUILD maildrop-2.0.1-r1.ebuild 3514 RMD160 ebd8fc1139ac5d7cc83c915ab31b53af878cd240 SHA1 cfc1222dbd9e38df140755e35d7ec073c5e3ebc3 SHA256 0183c8b08a92ac484fa5d5efce8e50c4ab4cc783ecdbbf4d4539ebd8ee774b83 -MD5 20e3bd80436c4fee121b51bba66afef8 maildrop-2.0.1-r1.ebuild 3514 -RMD160 ebd8fc1139ac5d7cc83c915ab31b53af878cd240 maildrop-2.0.1-r1.ebuild 3514 -SHA256 0183c8b08a92ac484fa5d5efce8e50c4ab4cc783ecdbbf4d4539ebd8ee774b83 maildrop-2.0.1-r1.ebuild 3514 -EBUILD maildrop-2.0.1.ebuild 3436 RMD160 b6bb60a21f311cfc17df85c805ba31e70bc7faf6 SHA1 8cf8b6eae5ed8be89a04155e546c972fd147f53c SHA256 497600d4bcb5e9608623ace1953f4855f5a5216db971855966dec83bb949ff3b -MD5 8dfcef290e8b761561758a851f89fc59 maildrop-2.0.1.ebuild 3436 -RMD160 b6bb60a21f311cfc17df85c805ba31e70bc7faf6 maildrop-2.0.1.ebuild 3436 -SHA256 497600d4bcb5e9608623ace1953f4855f5a5216db971855966dec83bb949ff3b maildrop-2.0.1.ebuild 3436 EBUILD maildrop-2.0.2-r1.ebuild 3130 RMD160 d339afc98d7950fc682d04203fdf608e910ce25d SHA1 a755b177c91dea1505bc96077fcc70056ea885e6 SHA256 f377b339238b2ef9c4624329b0b51aa26933f2724db317d3d19785628b1104b1 MD5 9cf7d878b450e56a85cad99a9d8d6bad maildrop-2.0.2-r1.ebuild 3130 RMD160 d339afc98d7950fc682d04203fdf608e910ce25d maildrop-2.0.2-r1.ebuild 3130 @@ -36,20 +23,14 @@ EBUILD maildrop-2.0.3.ebuild 3135 RMD160 c9359eb4fae789fa1a317ea98225ff1e8ab662d MD5 7eca6181cc25e6ec5aa235c1b43d0f26 maildrop-2.0.3.ebuild 3135 RMD160 c9359eb4fae789fa1a317ea98225ff1e8ab662df maildrop-2.0.3.ebuild 3135 SHA256 6f927ca5e0931e2daaf77d308bd8b5c427ae3e06a8656334de3d6f2b7a1db6e7 maildrop-2.0.3.ebuild 3135 -MISC ChangeLog 16508 RMD160 e1239a71bb18bb3b1f618c294ad3fa10d94235d2 SHA1 ccc972f2904442928c86476afac21a8fe2e5b291 SHA256 a3615843d423d685373cf9a8a77c5566364ea5a45298a96bd4c22187b1c0b3c6 -MD5 ecabe6fcf30e64a76df969f0da4bc8d7 ChangeLog 16508 -RMD160 e1239a71bb18bb3b1f618c294ad3fa10d94235d2 ChangeLog 16508 -SHA256 a3615843d423d685373cf9a8a77c5566364ea5a45298a96bd4c22187b1c0b3c6 ChangeLog 16508 +MISC ChangeLog 16716 RMD160 68a3703b26738b30a812d91a71427142e28d99eb SHA1 9ddd4272733579ff3c0b146438ab7d9daec1f9a7 SHA256 21e585a815655278a7fd32127e65456ec0691ee3bba025ffebfb1cfa0b8b47c1 +MD5 b04c6744094380b214127f24fa77f632 ChangeLog 16716 +RMD160 68a3703b26738b30a812d91a71427142e28d99eb ChangeLog 16716 +SHA256 21e585a815655278a7fd32127e65456ec0691ee3bba025ffebfb1cfa0b8b47c1 ChangeLog 16716 MISC metadata.xml 259 RMD160 ce66370016fba0ddf047802d9dc8463041b4a585 SHA1 9f7a04d0cab1654d39498db3f124fc755202adb7 SHA256 d0e8725b6ece5de6014dd4b18064854b993b1e3ab04d838370d7744756656ae5 MD5 2fc9863fa18fa7e25fedaa87a92a3c43 metadata.xml 259 RMD160 ce66370016fba0ddf047802d9dc8463041b4a585 metadata.xml 259 SHA256 d0e8725b6ece5de6014dd4b18064854b993b1e3ab04d838370d7744756656ae5 metadata.xml 259 -MD5 89737d7622ff2e0636fc1f63ac8a493c files/digest-maildrop-2.0.1 250 -RMD160 b4af87627832fc9c15d8a9cf8d2e5b8e40e62736 files/digest-maildrop-2.0.1 250 -SHA256 8beacc6143d9811b3efbf84228ca24f43550be3b3e2e9dfbdae0fdf33aa1b156 files/digest-maildrop-2.0.1 250 -MD5 89737d7622ff2e0636fc1f63ac8a493c files/digest-maildrop-2.0.1-r1 250 -RMD160 b4af87627832fc9c15d8a9cf8d2e5b8e40e62736 files/digest-maildrop-2.0.1-r1 250 -SHA256 8beacc6143d9811b3efbf84228ca24f43550be3b3e2e9dfbdae0fdf33aa1b156 files/digest-maildrop-2.0.1-r1 250 MD5 314f55ae652c9de7988cceea00abef5e files/digest-maildrop-2.0.2-r1 250 RMD160 3d91f12684eb8796bef3ce82fa4877e6e11e2a5c files/digest-maildrop-2.0.2-r1 250 SHA256 78431eb9d4c6051cbab5179e262d754b4fea3883832c0630050dbbc1d19ee3f4 files/digest-maildrop-2.0.2-r1 250 @@ -57,9 +38,9 @@ MD5 2281078914983d671d994d6020febeff files/digest-maildrop-2.0.3 250 RMD160 c19036ff57923a3f2a888c000f5db61a54554370 files/digest-maildrop-2.0.3 250 SHA256 13c83770ebeecd81e6149b867f24f6f4f26b20ac67a9e22e6b76c07404acba8a files/digest-maildrop-2.0.3 250 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.1 (GNU/Linux) +Version: GnuPG v1.4.2.2 (GNU/Linux) -iD8DBQFFnVKGugEuf3OQ0akRAjI6AKCZOHFcyDelPgaB/D3FcRbgcFcaigCfcfn/ -sKGFYO2ScCN7rtfWvi2ZoX0= -=Htlj +iD8DBQFFnVeLViELBEf1JB0RAsVzAJ4utyIWrslT7t8N4Ax6YPMvbgq4NQCfQtR2 +VpFLoCfQj/9hgb8obZ/8cHE= +=0v2g -----END PGP SIGNATURE----- diff --git a/mail-filter/maildrop/files/digest-maildrop-2.0.1 b/mail-filter/maildrop/files/digest-maildrop-2.0.1 deleted file mode 100644 index c2eb525ff6c4..000000000000 --- a/mail-filter/maildrop/files/digest-maildrop-2.0.1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 6ea97cb4e6757579873218adf212dbf0 maildrop-2.0.1.tar.bz2 2105424 -RMD160 c8f5e3b450bdf1d458a81dd54a9c9486d361ebd8 maildrop-2.0.1.tar.bz2 2105424 -SHA256 2de43cb4536e71ca54ce8dce663d6d264b80fdadb2cd6b1007579efd727b31fb maildrop-2.0.1.tar.bz2 2105424 diff --git a/mail-filter/maildrop/files/digest-maildrop-2.0.1-r1 b/mail-filter/maildrop/files/digest-maildrop-2.0.1-r1 deleted file mode 100644 index c2eb525ff6c4..000000000000 --- a/mail-filter/maildrop/files/digest-maildrop-2.0.1-r1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 6ea97cb4e6757579873218adf212dbf0 maildrop-2.0.1.tar.bz2 2105424 -RMD160 c8f5e3b450bdf1d458a81dd54a9c9486d361ebd8 maildrop-2.0.1.tar.bz2 2105424 -SHA256 2de43cb4536e71ca54ce8dce663d6d264b80fdadb2cd6b1007579efd727b31fb maildrop-2.0.1.tar.bz2 2105424 diff --git a/mail-filter/maildrop/files/maildrop-1.8.0-db4.patch b/mail-filter/maildrop/files/maildrop-1.8.0-db4.patch deleted file mode 100644 index 58e871628352..000000000000 --- a/mail-filter/maildrop/files/maildrop-1.8.0-db4.patch +++ /dev/null @@ -1,63 +0,0 @@ ---- bdbobj/configure.in.orig 2001-09-18 18:26:28.000000000 -0700 -+++ bdbobj/configure.in 2004-08-20 22:55:04.468505515 -0700 -@@ -21,15 +21,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.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_4002, FOUND_DB=1) -+AC_CHECK_FUNC(db_create_4001, FOUND_DB=1) -+AC_CHECK_FUNC(db_create_4000, FOUND_DB=1) -+AC_CHECK_FUNC(db_create, FOUND_DB=1) - - LIBS="$saveLIBS" - ---- configure.in.orig 2004-07-26 18:36:40.000000000 -0700 -+++ configure.in 2004-08-20 22:52:27.419757049 -0700 -@@ -80,18 +80,21 @@ - MAILBOT=mailbot - ;; - 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.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_4002, HAVE_BDB=1) -+ AC_CHECK_FUNC(db_create_4001, HAVE_BDB=1) -+ AC_CHECK_FUNC(db_create_4000, HAVE_BDB=1) -+ AC_CHECK_FUNC(db_create, HAVE_BDB=1) -+ - if test "$HAVE_BDB" != "1" - then -- AC_MSG_ERROR(GDBM library not found) -+ AC_MSG_ERROR(DB library not found) - fi - MAILBOT=mailbot - ;; diff --git a/mail-filter/maildrop/maildrop-2.0.1-r1.ebuild b/mail-filter/maildrop/maildrop-2.0.1-r1.ebuild deleted file mode 100644 index c44251ccfd73..000000000000 --- a/mail-filter/maildrop/maildrop-2.0.1-r1.ebuild +++ /dev/null @@ -1,134 +0,0 @@ -# Copyright 1999-2006 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.2 2006/08/14 17:56:12 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.5 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.5 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.5 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 -} diff --git a/mail-filter/maildrop/maildrop-2.0.1.ebuild b/mail-filter/maildrop/maildrop-2.0.1.ebuild deleted file mode 100644 index 13448628520b..000000000000 --- a/mail-filter/maildrop/maildrop-2.0.1.ebuild +++ /dev/null @@ -1,132 +0,0 @@ -# Copyright 1999-2006 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.ebuild,v 1.11 2006/08/14 17:56:12 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.5 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.5 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.5 autoconf || die "recreate configure failed (topdir)" - fi -} - -src_compile() { - local myconf - local mytrustedusers="apache dspam root mail \ - daemon postmaster qmaild mmdf vmail alias" - - replace-flags -Os -O2 - - 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 -} |