# HG changeset patch # User Pascal Bellard # Date 1257977788 -3600 # Node ID c967459ef972f6f4d08d37f8dfca0bc42e7b3ec8 # Parent c1ac547a80bf88b4acbda300a1f3786668cb1319 Add grub2 diff -r c1ac547a80bf -r c967459ef972 grub2/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/grub2/receipt Wed Nov 11 23:16:28 2009 +0100 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="grub2" +SOURCE="grub" +VERSION="1.97" +CATEGORY="base-system" +SHORT_DESC="GRUB2 boot loader." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$SOURCE-$VERSION.tar.gz" +DEPENDS="zlib freetype ncurses libusb-compat libusb" +BUILD_DEPENDS="zlib-dev freetype-dev ncurses-dev libusb-compat-dev libusb-dev" +WEB_SITE="http://www.gnu.org/software/grub/" +WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --sysconfdir=/etc \ + --mandir=/usr/share/man $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/boot/grub $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + cp -a $_pkg/etc $fs + + # Example config file (grub.cfg). + cp stuff/example-grub.cfg $fs/boot/grub +} + diff -r c1ac547a80bf -r c967459ef972 grub2/stuff/example-grub.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/grub2/stuff/example-grub.cfg Wed Nov 11 23:16:28 2009 +0100 @@ -0,0 +1,34 @@ +# /boot/grub/menu.lst: GRUB boot loader configuration. +# + +# By default, boot the first entry. +set default=0 + +# Boot automatically after 20 secs. +set timeout=20 + +# Change the colors. +menu_color_normal yellow/brown +menu_color_hightlight light-green/black + +# For booting SliTaz from a cdrom (LiveCD). +# +#menuentry "SliTaz GNU/Linux (Cooking)" { +# linux /boot/bzImage root=/dev/null vga=771 +# initrd /boot/rootfs.gz +#} + +# For booting SliTaz from hda1. +# +#menuentry "SliTaz GNU/Linux (Cooking) (Kernel 2.6.30.6)" { +# set root=(hd0,0) +# linux /boot/vmlinuz-2.6.30.6-slitaz root=/dev/hda1 +#} + +# For booting Windows +# +#menuentry "Windows NT / Windows 95 / XP" { +# set root=(hd0,0) +# chainloader +1 +#} +