diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2002-01-07 03:54:52 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2002-01-07 03:54:52 +0000 |
commit | 7636a2d84ca55af72362f9a7bb9c9c543d50d7ec (patch) | |
tree | d0151101a91469ab8a4773b6f1bc985b35a7af30 /sys-apps/lilo | |
parent | removed a dep (diff) | |
download | gentoo-2-7636a2d84ca55af72362f9a7bb9c9c543d50d7ec.tar.gz gentoo-2-7636a2d84ca55af72362f9a7bb9c9c543d50d7ec.tar.bz2 gentoo-2-7636a2d84ca55af72362f9a7bb9c9c543d50d7ec.zip |
New lilo closing bug #48
Diffstat (limited to 'sys-apps/lilo')
-rw-r--r-- | sys-apps/lilo/files/digest-lilo-22.1-r1 | 1 | ||||
-rw-r--r-- | sys-apps/lilo/lilo-22.1-r1.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/sys-apps/lilo/files/digest-lilo-22.1-r1 b/sys-apps/lilo/files/digest-lilo-22.1-r1 new file mode 100644 index 000000000000..3e77d5080f89 --- /dev/null +++ b/sys-apps/lilo/files/digest-lilo-22.1-r1 @@ -0,0 +1 @@ +MD5 ba6830b939e6eeaadf450c68c96a42fb lilo-22.1.tar.gz 323584 diff --git a/sys-apps/lilo/lilo-22.1-r1.ebuild b/sys-apps/lilo/lilo-22.1-r1.ebuild new file mode 100644 index 000000000000..2b5dad4d4e0e --- /dev/null +++ b/sys-apps/lilo/lilo-22.1-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lilo/lilo-22.1-r1.ebuild,v 1.1 2002/01/07 03:54:52 drobbins Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Standard Linux boot loader" +SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/${P}.tar.gz" + +DEPEND="virtual/glibc >=sys-devel/bin86-0.15.5" + +RDEPEND="virtual/glibc" + +src_unpack() { + unpack ${A} + cd ${S} + cp Makefile Makefile.orig + sed -e "s:-g:${CFLAGS}:" Makefile.orig > Makefile +} + +src_compile() { + emake || die +} + +src_install() { + into / + dosbin lilo + into /usr + dosbin keytab-lilo.pl + dodir /boot + insinto /boot + doins boot-text.b boot-menu.b boot-bmp.b chain.b os2_d.b + doman manPages/*.[5-8] + dodoc CHANGES COPYING INCOMPAT QuickInst README* +} + +pkg_preinst() { + if [ ! -L $ROOT/boot/boot.b -a -f $ROOT/boot/boot.b ] + then + echo "Saving old boot.b..." + mv $ROOT/boot/boot.b $ROOT/boot/boot.old; + fi + + if [ ! -L $ROOT/boot/chain.b -a -f $ROOT/boot/chain.b ] + then + echo "Saving old chain.b..." + mv $ROOT/boot/chain.b $ROOT/boot/chain.old; + fi + + if [ ! -L $ROOT/boot/os2_d.b -a -f $ROOT/boot/os2_d.b ] + then + echo "Saving old os2_d.b..." + mv $ROOT/boot/os2_d.b $ROOT/boot/os2_d.old; + fi +} + +pkg_postinst() { + + . ${ROOT}/etc/init.d/functions.sh + + einfo "Activating boot-menu..." + ln -sf boot-menu.b $ROOT/boot/boot.b; +} + + |