summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuan Van <langthang@gentoo.org>2004-07-27 00:39:13 +0000
committerTuan Van <langthang@gentoo.org>2004-07-27 00:39:13 +0000
commit9e1946d22f486bc8c8bd678cb3607bf004b07a1e (patch)
tree4689324e8815a72896e4d5ee40198c4752f60fb7 /net-mail/mailutils
parentnew version 3.4, changed package name to balsa (Manifest recommit) (diff)
downloadgentoo-2-9e1946d22f486bc8c8bd678cb3607bf004b07a1e.tar.gz
gentoo-2-9e1946d22f486bc8c8bd678cb3607bf004b07a1e.tar.bz2
gentoo-2-9e1946d22f486bc8c8bd678cb3607bf004b07a1e.zip
add virtual/mailx, wrt bug #58164. default to mysql, wrt bug #58162.
Diffstat (limited to 'net-mail/mailutils')
-rw-r--r--net-mail/mailutils/ChangeLog6
-rw-r--r--net-mail/mailutils/mailutils-0.5.ebuild51
2 files changed, 36 insertions, 21 deletions
diff --git a/net-mail/mailutils/ChangeLog b/net-mail/mailutils/ChangeLog
index f7647fb9cbee..7689db620a2b 100644
--- a/net-mail/mailutils/ChangeLog
+++ b/net-mail/mailutils/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-mail/mailutils
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailutils/ChangeLog,v 1.9 2004/07/14 20:55:53 langthang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailutils/ChangeLog,v 1.10 2004/07/27 00:39:13 langthang Exp $
+
+ 26 Jul 2004; Tuan Van <langthang@gentoo.org> mailutils-0.5.ebuild:
+ add virtual/mailx, wrt bug #58164.
+ default to 'mysql', wrt bug #58162.
14 Jul 2004; <tvan@gentoo.org> mailutils-0.5.ebuild:
stay away from awk.
diff --git a/net-mail/mailutils/mailutils-0.5.ebuild b/net-mail/mailutils/mailutils-0.5.ebuild
index 4c68aa319c34..ce659291c6cb 100644
--- a/net-mail/mailutils/mailutils-0.5.ebuild
+++ b/net-mail/mailutils/mailutils-0.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailutils/mailutils-0.5.ebuild,v 1.3 2004/07/14 20:55:53 langthang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailutils/mailutils-0.5.ebuild,v 1.4 2004/07/27 00:39:13 langthang Exp $
inherit eutils
DESCRIPTION="A useful collection of mail servers, clients, and filters."
@@ -10,7 +10,8 @@ LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="mailwrapper nls pam mysql postgres gdbm"
-DEPEND="!mail-client/mailx
+PROVIDE="virtual/mailx"
+DEPEND="!virtual/mailx
!mail-client/nmh
dev-util/guile
gdbm? ( sys-libs/gdbm )
@@ -19,6 +20,21 @@ DEPEND="!mail-client/mailx
nls? ( sys-devel/gettext )
virtual/mta"
+pkg_setup() {
+ # Default to MySQL if USE="mysql postgres', bug #58162.
+ if use mysql && use postgres; then
+ echo
+ ewarn "You have both 'mysql' and 'postgres' in your USE flags."
+ ewarn "Portage will build this package with MySQL support."
+ echo
+ ewarn "If this is not what you want; please hit Control-C now;"
+ ewarn "change you USE flags then emerge this package again."
+ echo
+ ewarn "Waiting 30 seconds before continuing..."
+ ewarn "(Control-C to abort)..."
+ sleep 30
+ fi
+}
src_unpack() {
unpack ${A}
cd ${S}
@@ -27,31 +43,26 @@ src_unpack() {
}
src_compile() {
- # Shamelessly stolen from nagios-core
- if use mysql && use postgres; then
- eerror "Unfortunatly you can't have both MySQL and PostgreSQL enabled at the same time."
- eerror "You have to remove either 'mysql' or 'postgres' from your USE flags before emerging this."
-
- has_version ">=sys-apps/portage-2.0.50" && (
- einfo "You can alternatively add"
- einfo "net-mail/mailutils [use flags]"
- einfo "to the file:"
- einfo "/etc/portage/package.use"
- einfo "to permamently set this package's USE flags"
- )
-
- exit 1
- fi
local myconf="--localstatedir=/var --sharedstatedir=/var --enable-mh-utils"
# bug in autoconf logic treats both --with and --without as set,
# so we cannot do use_with
- use mysql && myconf="${myconf} --with-mysql"
- use postgres && myconf="${myconf} --with-postgres"
+ # use mysql && myconf="${myconf} --with-mysql"
+ # use postgres && myconf="${myconf} --with-postgres"
+ if use mysql && use postgres; then
+ einfo "build with MySQL support."
+ myconf="${myconf} --with-mysql"
+ elif use mysql; then
+ einfo "build with MySQL support."
+ myconf="${myconf} --with-mysql"
+ elif use postgres; then
+ einfo "build with PotsgreSQL support."
+ myconf="${myconf} --with-postgres"
+ fi
# do not disable-sendmail for postfix user w/o mailwrapper, bug #44249.
- mymta=$(portageq best_version / virtual/mta)
+ mymta=$(best_version virtual/mta)
mymta=${mymta%-[0-9]*}
mymta=${mymta##*\/}
if ! use mailwrapper && [ "$mymta" == "postfix" ]; then