summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-05-19 21:27:48 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-05-19 21:27:48 +0000
commite81df7db95da8358ed4ae33f12e10a879528f0f3 (patch)
treee4b436f1c56c59332ee37c56b4e75b48a9f25b88 /eclass
parentAdd ~x86-fbsd and ~amd64 keywords. (diff)
downloadgentoo-2-e81df7db95da8358ed4ae33f12e10a879528f0f3.tar.gz
gentoo-2-e81df7db95da8358ed4ae33f12e10a879528f0f3.tar.bz2
gentoo-2-e81df7db95da8358ed4ae33f12e10a879528f0f3.zip
Put normal games.eclass pkg_postinst output behind a check for GAMES_SHOW_WARNING. Blame Paul Bredbury <brebs@sent.com>. Closing bug #133665.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/games.eclass28
1 files changed, 15 insertions, 13 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass
index 2bed478f5e54..928cf4a12948 100644
--- a/eclass/games.eclass
+++ b/eclass/games.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.112 2006/04/24 07:18:16 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.113 2006/05/19 21:27:48 wolf31o2 Exp $
#
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -154,18 +154,20 @@ games_pkg_preinst() {
# pkg_postinst function ... create env.d entry and warn about games group
games_pkg_postinst() {
gamesenv
- ewarn "Remember, in order to play games, you have to"
- ewarn "be in the '${GAMES_GROUP}' group."
- echo
- case ${CHOST} in
- *-darwin*) einfo "Just run 'niutil -appendprop / /groups/games users <USER>'";;
- *-freebsd*|*-dragonfly*) einfo "Just run 'pw groupmod ${GAMES_GROUP} -m <USER>'";;
- *) einfo "Just run 'gpasswd -a <USER> ${GAMES_GROUP}'";;
- esac
- echo
- einfo "For more info about Gentoo gaming in general, see our website:"
- einfo " http://games.gentoo.org/"
- echo
+ if [[ -z "${GAMES_SHOW_WARNING}" ]] ; then
+ ewarn "Remember, in order to play games, you have to"
+ ewarn "be in the '${GAMES_GROUP}' group."
+ echo
+ case ${CHOST} in
+ *-darwin*) ewarn "Just run 'niutil -appendprop / /groups/games users <USER>'";;
+ *-freebsd*|*-dragonfly*) ewarn "Just run 'pw groupmod ${GAMES_GROUP} -m <USER>'";;
+ *) ewarn "Just run 'gpasswd -a <USER> ${GAMES_GROUP}', then have <USER> re-login.";;
+ esac
+ echo
+ einfo "For more info about Gentoo gaming in general, see our website:"
+ einfo " http://games.gentoo.org/"
+ echo
+ fi
}
# Unpack .uz(2) files for UT/UT2003/UT2004