diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-09-03 00:08:10 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-09-03 00:08:10 +0000 |
commit | d5d97a31e007a298c3bc627686d337011f441341 (patch) | |
tree | b95b478497351fc5a0c16a431edaa96fb25b856f /sys-apps/lilo | |
parent | mask new lilo (diff) | |
download | gentoo-2-d5d97a31e007a298c3bc627686d337011f441341.tar.gz gentoo-2-d5d97a31e007a298c3bc627686d337011f441341.tar.bz2 gentoo-2-d5d97a31e007a298c3bc627686d337011f441341.zip |
new version .. lots of bug fixes and cleanups
Diffstat (limited to 'sys-apps/lilo')
-rw-r--r-- | sys-apps/lilo/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/lilo/files/digest-lilo-22.3.3 | 1 | ||||
-rw-r--r-- | sys-apps/lilo/lilo-22.3.3.ebuild | 119 |
3 files changed, 126 insertions, 1 deletions
diff --git a/sys-apps/lilo/ChangeLog b/sys-apps/lilo/ChangeLog index 018f2c27fbc6..3bd859f39d94 100644 --- a/sys-apps/lilo/ChangeLog +++ b/sys-apps/lilo/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/lilo # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lilo/ChangeLog,v 1.9 2002/07/20 19:01:50 gerk Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lilo/ChangeLog,v 1.10 2002/09/03 00:08:10 azarah Exp $ + +*lilo-22.3.3 (3 Sep 2002) + + 3 Sep 2002; Martin Schlemmer <azarah@gentoo.org> lilo-22.3.3.ebuild : + Updated version. *lilo-21.7.5-r2 (8 Apr 2002) diff --git a/sys-apps/lilo/files/digest-lilo-22.3.3 b/sys-apps/lilo/files/digest-lilo-22.3.3 new file mode 100644 index 000000000000..6befa16d3255 --- /dev/null +++ b/sys-apps/lilo/files/digest-lilo-22.3.3 @@ -0,0 +1 @@ +MD5 12b729c6cc1aeebff5e94380a2eb64d3 lilo-22.3.3.tar.gz 369359 diff --git a/sys-apps/lilo/lilo-22.3.3.ebuild b/sys-apps/lilo/lilo-22.3.3.ebuild new file mode 100644 index 000000000000..ab7cfed531d8 --- /dev/null +++ b/sys-apps/lilo/lilo-22.3.3.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lilo/lilo-22.3.3.ebuild,v 1.1 2002/09/03 00:08:10 azarah Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Standard Linux boot loader" +SRC_URI="http://home.san.rr.com/johninsd/pub/linux/lilo/${P}.tar.gz + ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/${P}.tar.gz" +HOMEPAGE="http://brun.dyndns.org/pub/linux/lilo/" + +KEYWORDS="x86 -ppc -sparc -sparc64" +SLOT="0" +LICENSE="BSD" + +DEPEND="virtual/glibc + >=sys-devel/bin86-0.15.5" + +RDEPEND="virtual/glibc" + +pkg_setup() { + + [ "${ROOT}" != "/" ] && return 0 + + local fstabstate="$(cat /etc/fstab | awk '!/^#|^\t+#/ {print $2}')" + local procstate="$(cat /proc/mounts | awk '{print $2}')" + + if [ -n "$(echo ${fstabstate} | egrep "/boot")" ] && \ + [ -n "$(echo ${procstate} | egrep "/boot")" ] + then + einfo "Your boot partition was detected as being mounted as /boot." + einfo "Files will be installed there for lilo to function correctly." + + elif [ -n "$(echo ${fstabstate} | egrep "/boot")" ] && \ + [ -z "$(echo ${procstate} | egrep "/boot")" ] + then + mount /boot &>/dev/null + + if [ "$?" -eq 0 ] + then + einfo "Your boot partition was not mounted as /boot, but portage was able to mount" + einfo "it without additional intervention." + einfo "Files will be installed there for lilo to function correctly." + else + eerror "Your boot partition has to be mounted on /boot before the installation" + eerror "can continue. Lilo needs to install important files there." + die "Please mount your /boot partition." + fi + else + einfo "You do not have a seperate /boot partition." + fi +} + +src_unpack() { + + unpack ${A} + + cd ${S} + cp Makefile Makefile.orig + sed -e "s:\$(OPT) -Wall -g:-Wall ${CFLAGS}:" Makefile.orig > Makefile +} + +src_compile() { + + emake || die +} + +src_install() { + + into / + dosbin lilo mkrescue + into /usr + dosbin keytab-lilo.pl + dodir /boot + insinto /boot + doins boot-text.b boot-menu.b boot-bmp.b chain.b mbr.b os2_d.b + + insinto /etc + newins ${FILESDIR}/lilo.conf lilo.conf.example + + doman manPages/*.[5-8] + dodoc CHANGES COPYING COPYRIGHT INCOMPAT QuickInst README* + + docinto samples + dodoc sample/* +} + +pkg_preinst() { + + if [ ! -L ${ROOT}/boot/boot.b -a -f ${ROOT}/boot/boot.b ] + then + einfo "Saving old boot.b..." + mv -f ${ROOT}/boot/boot.b ${ROOT}/boot/boot.old; + fi + + if [ ! -L ${ROOT}/boot/chain.b -a -f ${ROOT}/boot/chain.b ] + then + einfo "Saving old chain.b..." + mv -f ${ROOT}/boot/chain.b ${ROOT}/boot/chain.old; + fi + + if [ ! -L ${ROOT}/boot/mbr.b -a -f ${ROOT}/boot/mbr.b ] + then + einfo "Saving old mbr.b..." + mv -f ${ROOT}/boot/mbr.b ${ROOT}/boot/mbr.old + fi + + if [ ! -L ${ROOT}/boot/os2_d.b -a -f ${ROOT}/boot/os2_d.b ] + then + einfo "Saving old os2_d.b..." + mv -f ${ROOT}/boot/os2_d.b ${ROOT}/boot/os2_d.old; + fi +} + +pkg_postinst() { + + einfo "Activating boot-menu..." + ln -snf boot-menu.b ${ROOT}/boot/boot.b +} + |