diff options
author | Fernando J. Pereda <ferdy@gentoo.org> | 2005-04-25 16:15:21 +0000 |
---|---|---|
committer | Fernando J. Pereda <ferdy@gentoo.org> | 2005-04-25 16:15:21 +0000 |
commit | bec4824c932b522b7fb33600a8003066279da77b (patch) | |
tree | e8bab06a52699efb3b7276a443dfc94dee9898c5 /eclass | |
parent | cleaning (diff) | |
download | historical-bec4824c932b522b7fb33600a8003066279da77b.tar.gz historical-bec4824c932b522b7fb33600a8003066279da77b.tar.bz2 historical-bec4824c932b522b7fb33600a8003066279da77b.zip |
removed trailing spaces. added PROVIDE and !mailwrapper? (!virtual/mta) dependency
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mailer.eclass | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/eclass/mailer.eclass b/eclass/mailer.eclass index e9ffe7711ccf..7276158df8e3 100644 --- a/eclass/mailer.eclass +++ b/eclass/mailer.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mailer.eclass,v 1.1 2005/04/25 13:19:25 ferdy Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mailer.eclass,v 1.2 2005/04/25 16:15:21 ferdy Exp $ # # Original Author: Fernando J. Pereda <ferdy@gentoo.org> @@ -13,7 +13,9 @@ INHERITED="$INHERITED $ECLASS" IUSE="${IUSE} mailwrapper" RDEPEND="${RDEPEND} mailwrapper? ( net-mail/mailer-config - >=net-mail/mailwrapper-0.2.1-r1 )" + >=net-mail/mailwrapper-0.2.1-r1 ) + !mailwrapper? ( !virtual/mta )" +PROVIDE="virtual/mta" EXPORT_FUNCTIONS pkg_postinst pkg_postrm @@ -23,16 +25,16 @@ mailer_get_current() { return $? } -# Installs a new mailer.conf from FILESDIR +# Installs a new mailer.conf from FILESDIR mailer_install_conf() { local newname - + if [[ ${PN} == "mailer-config" ]] ; then newname="default" else newname=${P} fi - + # If the newfile does not exist or the version in the system # differs from the one in FILESDIR/ (update); install it if [[ ! -f /etc/mail/${newname}.mailer ]] || \ @@ -45,7 +47,7 @@ mailer_install_conf() { # Set current mailer profile mailer_set_profile() { local newprofile=${1:-${P}} - + ebegin "Setting the current mailer profile to \"${newprofile}\"" mailer-config --set-profile ${newprofile} >/dev/null || die eend $? @@ -54,7 +56,7 @@ mailer_set_profile() { # Wipe unused configs mailer_wipe_confs() { local x i - + ebegin "Wiping all non-used mailer profiles" for x in /etc/mail/*.mailer ; do i=${x##*/} |