diff options
author | Michael Januszewski <spock@gentoo.org> | 2004-02-18 20:24:41 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2004-02-18 20:24:41 +0000 |
commit | 3f824c989e692091ec2679b3aeabe7e67c306410 (patch) | |
tree | 60356776ec21ea38d27a2b1a57373f1d65ae085e /media-gfx/bootsplash | |
parent | Added postinst warning against seeking help from gaim developers (Manifest re... (diff) | |
download | gentoo-2-3f824c989e692091ec2679b3aeabe7e67c306410.tar.gz gentoo-2-3f824c989e692091ec2679b3aeabe7e67c306410.tar.bz2 gentoo-2-3f824c989e692091ec2679b3aeabe7e67c306410.zip |
A new revision to fix issues with 2.6.3 kernels.
Diffstat (limited to 'media-gfx/bootsplash')
-rw-r--r-- | media-gfx/bootsplash/ChangeLog | 9 | ||||
-rw-r--r-- | media-gfx/bootsplash/bootsplash-0.6-r8.ebuild | 179 | ||||
-rw-r--r-- | media-gfx/bootsplash/files/digest-bootsplash-0.6-r8 | 1 |
3 files changed, 188 insertions, 1 deletions
diff --git a/media-gfx/bootsplash/ChangeLog b/media-gfx/bootsplash/ChangeLog index d6944586eaf1..69cf46578fbd 100644 --- a/media-gfx/bootsplash/ChangeLog +++ b/media-gfx/bootsplash/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-gfx/bootsplash # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/bootsplash/ChangeLog,v 1.21 2004/02/17 23:49:19 spock Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/bootsplash/ChangeLog,v 1.22 2004/02/18 20:24:40 spock Exp $ + +*bootsplash-0.6-r8 (18 Feb 2004) + + 18 Feb 2004; Michal Januszewski <spock@gentoo.org> bootsplash-0.6-r8.ebuild: + Yes, they broke it, again! ;) The new 2.6.3_rc4 kernel introduces some new + patches, which make the system freeze during boot-time when Bootsplash is + used. This revision of the Bootsplash package fixes this issue. 18 Feb 2004; Michal Januszewski <spock@gentoo.org> bootsplash-0.6-r5.ebuild, bootsplash-0.6-r6.ebuild, bootsplash-0.6-r7.ebuild: diff --git a/media-gfx/bootsplash/bootsplash-0.6-r8.ebuild b/media-gfx/bootsplash/bootsplash-0.6-r8.ebuild new file mode 100644 index 000000000000..8a93021891ea --- /dev/null +++ b/media-gfx/bootsplash/bootsplash-0.6-r8.ebuild @@ -0,0 +1,179 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/bootsplash/bootsplash-0.6-r8.ebuild,v 1.1 2004/02/18 20:24:40 spock Exp $ + +DESCRIPTION="Graphical backgrounds for frame buffer consoles" +HOMEPAGE="http://www.bootsplash.org/ http://linux.tkdack.com/" +SRC_URI="http://dev.gentoo.org/~spock/portage/distfiles/bootsplash-${PV}-${PR}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 amd64 ~ppc" + +S="${WORKDIR}/${PF}" + +DEPEND=">=media-libs/freetype-2 + media-libs/libmng" + +src_compile() { + # compile utils + # the util builds but the rc scripts have not been modified + # animated boot up require patches to the baselayout package + cd ${S}/utils/fbmngplay + emake || die + + cd ${S}/utils/fbtruetype + emake || die + + cd ${S}/utils/splashutils + emake || die +} + +src_install() { + # Splash utilities + exeinto /sbin + doexe ${S}/utils/fbmngplay/fbmngplay + doexe ${S}/utils/fbmngplay/fbmngplay.static + doexe ${S}/utils/fbtruetype/fbtruetype + doexe ${S}/utils/fbtruetype/fbtruetype.static + newexe ${S}/utils/splashutils/splash splash.bin + doexe ${S}/misc/splash + doexe ${S}/utils/splashutils/fbresolution + doexe ${S}/utils/splashutils/getkey + doexe ${S}/utils/splashutils/progress + + mkdir -p ${D}/etc/${PN} + cp -pR ${S}/themes/* ${D}/etc/${PN} + + # link default config for boot images if not already set + if [ ! -e /etc/bootsplash/default ]; then + dosym ./gentoo /etc/bootsplash/default + fi + + insinto /etc/init.d + doins ${S}/misc/bootsplash + fperms 755 /etc/init.d/bootsplash + + insinto /etc/conf.d + doins ${S}/misc/bootsplash.conf + + insinto /usr/share/${PN} + doins ${S}/kernel/*.bz2 + doins ${S}/misc/grub.conf.sample + + cat >${D}/sbin/bootsplash_patch <<END +#!/bin/bash +LINUX=\$1 ebuild /var/db/pkg/media-gfx/${PF}/${PF}.ebuild config +END + chmod 0754 ${D}/sbin/bootsplash_patch +} + +pkg_postinst() { + # Has to be done here so that the initrd images are created properly + for SIZE in 800x600 1024x768 1280x1024 1600x1200 + do + /sbin/splash -s -f /etc/bootsplash/gentoo/config/bootsplash-${SIZE}.cfg > /usr/share/${PN}/initrd-${SIZE} + done + + echo "" + einfo "Execute \"bootsplash_patch\" to have your kernel sources in" + einfo "/usr/src/linux patched with the Framebuffer Bootsplash patches." + einfo + einfo "You can also use:" + einfo " bootsplash_patch /path/to/your/custom/kernel/" + einfo "to patch your custom kernel sources." + echo "" + ewarn "If you have already patched the kernel then you only need to copy" + ewarn "an initrd from /usr/share/${PN} to /boot" + echo "" + einfo "Run:" + einfo " rc-update add bootsplash default" + einfo "to change the console images after startup" + echo "" + einfo "Please note that in case /usr is a separate partition" + einfo "you'll need to use the statically linked versions of Bootplash" + einfo 'utilities (fbmngplay.static, fbtruetype.static) during boot-time.' + echo "" +} + +pkg_config() { + + if [ "${LINUX}" == "" ]; then + LINUX='/usr/src/linux' + fi + + eval `sed -n -e 's/^\([A-Z]*\) = \([0-9]*\)$/\1=\2/p' -e 's/^\([A-Z]*\) = \(-[-a-z0-9]*\)$/\1=\2/p' ${LINUX}/Makefile` + + if [ -z "$VERSION" -o -z "$PATCHLEVEL" -o -z "$SUBLEVEL" ] + then + die "Unable to determine kernel version in ${LINUX}" + fi + + KB="${VERSION}.${PATCHLEVEL}" + KV_MINOR="${SUBLEVEL}" + + ewarn + ewarn "Patching the kernel (branch: ${KB}) in ${LINUX} ..." + ewarn + + cd ${ROOT}/${LINUX} + + if [ "${KB}" == "2.4" ]; then + + if [ -f drivers/video/fbcon-splash.c ]; then + eerror + eerror "It appears your kernel has already been patched." + eerror + exit 1 + fi + + if [ ${KV_MINOR} -ge 22 ]; then + bzip2 -dc ${ROOT}/usr/share/${PN}/bootsplash-3.0.7-2.4.22-vanilla.diff.bz2 | patch -p1 || die + else + bzip2 -dc ${ROOT}/usr/share/${PN}/bootsplash-3.0.7-2.4.20-vanilla.diff.bz2 | patch -p1 || die + fi + + elif [ "${KB}" == "2.6" ]; then + + if [ -d drivers/video/bootsplash ]; then + eerror + eerror "It appears your kernel has already been patched." + eerror + exit 1 + fi + + if [ ${KV_MINOR} -ge 3 ]; then + bzip2 -dc ${ROOT}/usr/share/${PN}/bootsplash-3.1.3-2.6.3-r2.patch.bz2 | patch -p1 || die + else + bzip2 -dc ${ROOT}/usr/share/${PN}/bootsplash-3.1.3-2.6.0-test9.diff.bz2 | patch -p1 || die + fi + else + die "Sorry, this kernel branch is not supported." + fi + + ewarn + ewarn " ... complete." + einfo + einfo "Your kernel has been patched, rebuild with the following options" + einfo "enabled (do not build them as modules!):" + einfo " Block Devices ->" + einfo " [*] RAM disk support" + einfo " [*] Loopback device support" + einfo " [*] Initial RAM disk (initrd) support" + einfo + einfo " Console Drivers ->" + einfo " [*] Video mode selection support" + einfo " Frame-buffer support ->" + einfo " [*] Support for frame buffer devices" + einfo " [*] VESA VGA graphics console" + einfo " [*] Use splash screen instead of boot logo" + einfo + einfo "Copy an initrd from /usr/share/${PN} to /boot" + einfo + einfo "Look at \"/usr/share/${PN}/grub.conf.sample\" for an example" + einfo "grub.conf file with the appropriate changes to enable the" + einfo "framebuffer boot screens" + einfo + einfo "Ensure you make the appropriate changes to your grub.conf" + einfo +} diff --git a/media-gfx/bootsplash/files/digest-bootsplash-0.6-r8 b/media-gfx/bootsplash/files/digest-bootsplash-0.6-r8 new file mode 100644 index 000000000000..e286db6a831c --- /dev/null +++ b/media-gfx/bootsplash/files/digest-bootsplash-0.6-r8 @@ -0,0 +1 @@ +MD5 2cd7d5f161a387c5c8e96002172743f0 bootsplash-0.6-r8.tar.bz2 402316 |