diff options
author | Michael Januszewski <spock@gentoo.org> | 2006-03-14 16:38:50 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2006-03-14 16:38:50 +0000 |
commit | a8023bf3e1d733db285327faaf52a78f7570a16a (patch) | |
tree | 6c0c45fdd13d4a606b59518108bc506ac5c05b4d /media-gfx | |
parent | fix silly mistake (diff) | |
download | historical-a8023bf3e1d733db285327faaf52a78f7570a16a.tar.gz historical-a8023bf3e1d733db285327faaf52a78f7570a16a.tar.bz2 historical-a8023bf3e1d733db285327faaf52a78f7570a16a.zip |
Made most of the einfo/ewarn messages conditional (as suggested in bug #124907).
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/splashutils/metadata.xml | 2 | ||||
-rw-r--r-- | media-gfx/splashutils/splashutils-1.1.9.10-r1.ebuild | 54 |
2 files changed, 33 insertions, 23 deletions
diff --git a/media-gfx/splashutils/metadata.xml b/media-gfx/splashutils/metadata.xml index 28b373129e37..36ec4f2b53d8 100644 --- a/media-gfx/splashutils/metadata.xml +++ b/media-gfx/splashutils/metadata.xml @@ -3,6 +3,6 @@ <pkgmetadata> <herd>no-herd</herd> <maintainer> - <email>spock@gentoo.org</email> + <email>spock@gentoo.org</email> </maintainer> </pkgmetadata> diff --git a/media-gfx/splashutils/splashutils-1.1.9.10-r1.ebuild b/media-gfx/splashutils/splashutils-1.1.9.10-r1.ebuild index 107befa1f3a9..039fbefe8d83 100644 --- a/media-gfx/splashutils/splashutils-1.1.9.10-r1.ebuild +++ b/media-gfx/splashutils/splashutils-1.1.9.10-r1.ebuild @@ -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/media-gfx/splashutils/splashutils-1.1.9.10-r1.ebuild,v 1.1 2006/03/02 17:41:52 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/splashutils/splashutils-1.1.9.10-r1.ebuild,v 1.2 2006/03/14 16:38:50 spock Exp $ inherit eutils multilib linux-mod @@ -21,12 +21,12 @@ IUSE="hardened png truetype kdgraphics" DESCRIPTION="Framebuffer splash utilities." HOMEPAGE="http://dev.gentoo.org/~spock/projects/gensplash/" SRC_URI="mirror://gentoo/${PN}-lite-${PV}.tar.bz2 - mirror://gentoo/${GENTOOSPLASH}.tar.bz2 - mirror://gentoo/${MISCSPLASH}.tar.bz2 - mirror://sourceforge/libpng/libpng-${V_PNG}.tar.bz2 - ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v${V_JPEG}.tar.gz - mirror://sourceforge/freetype/freetype-${V_FT}.tar.bz2 - http://www.gzip.org/zlib/zlib-${V_ZLIB}.tar.bz2" + mirror://gentoo/${GENTOOSPLASH}.tar.bz2 + mirror://gentoo/${MISCSPLASH}.tar.bz2 + mirror://sourceforge/libpng/libpng-${V_PNG}.tar.bz2 + ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v${V_JPEG}.tar.gz + mirror://sourceforge/freetype/freetype-${V_FT}.tar.bz2 + http://www.gzip.org/zlib/zlib-${V_ZLIB}.tar.bz2" LICENSE="GPL-2" SLOT="0" @@ -200,19 +200,29 @@ pkg_postinst() { echo "" fi - ewarn "If you're upgrading from a pre-1.0 splashutils version, make sure that you" - ewarn "rebuild your initrds. You can use the splash_geninitramfs script to do that." - echo "" - ewarn "It is required that you add 'console=tty1' to your kernel" - ewarn "command line parameters." - echo "" - einfo "After these modifications, the relevant part of the kernel command" - einfo "line might look like:" - einfo " splash=silent,fadein,theme:emergence console=tty1" - echo "" - einfo "The sample Gentoo themes (emergence, gentoo) have been removed from the" - einfo "core splashutils package. To get some themes you might want to emerge:" - einfo " media-gfx/splash-themes-livecd" - einfo " media-gfx/splash-themes-gentoo" - echo "" + if has_version '<media-gfx/splashutils-1.0' ; then + ewarn "Since you are upgrading from a pre-1.0 version, please make sure that you" + ewarn "rebuild your initrds. You can use the splash_geninitramfs script to do that." + echo "" + fi + + if ! test -f /proc/cmdline || + ! egrep -q '(console|CONSOLE)=(tty1|/dev/tty1)' /proc/cmdline ; then + ewarn "It is required that you add 'console=tty1' to your kernel" + ewarn "command line parameters." + echo "" + einfo "After these modifications, the relevant part of the kernel command" + einfo "line might look like:" + einfo " splash=silent,fadein,theme:emergence console=tty1" + echo "" + fi + + if ! has_version 'media-gfx/splash-themes-livecd' && + ! has_version 'media-gfx/splash-themes-gentoo'; then + einfo "The sample Gentoo themes (emergence, gentoo) have been removed from the" + einfo "core splashutils package. To get some themes you might want to emerge:" + einfo " media-gfx/splash-themes-livecd" + einfo " media-gfx/splash-themes-gentoo" + echo "" + fi } |