wok-next rev 4478

Add grub2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 11 23:16:28 2009 +0100 (2009-11-11)
parents c1ac547a80bf
children 19b8908aeeca
files grub2/receipt grub2/stuff/example-grub.cfg
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/grub2/receipt	Wed Nov 11 23:16:28 2009 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="grub2"
     1.7 +SOURCE="grub"
     1.8 +VERSION="1.97"
     1.9 +CATEGORY="base-system"
    1.10 +SHORT_DESC="GRUB2 boot loader."
    1.11 +MAINTAINER="pascal.bellard@slitaz.org"
    1.12 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.13 +DEPENDS="zlib freetype ncurses libusb-compat libusb"
    1.14 +BUILD_DEPENDS="zlib-dev freetype-dev ncurses-dev libusb-compat-dev libusb-dev"
    1.15 +WEB_SITE="http://www.gnu.org/software/grub/"
    1.16 +WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	./configure --prefix=/usr --sysconfdir=/etc \
    1.23 +	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.24 +	make &&
    1.25 +	make DESTDIR=$PWD/_pkg install
    1.26 +}
    1.27 +
    1.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 +genpkg_rules()
    1.30 +{
    1.31 +	mkdir -p $fs/boot/grub $fs/usr
    1.32 +	cp -a $_pkg/usr/bin $fs/usr
    1.33 +	cp -a $_pkg/usr/sbin $fs/usr
    1.34 +	cp -a $_pkg/usr/lib $fs/usr
    1.35 +	cp -a $_pkg/etc $fs
    1.36 +	
    1.37 +	# Example config file (grub.cfg).
    1.38 +	cp stuff/example-grub.cfg $fs/boot/grub
    1.39 +}
    1.40 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/grub2/stuff/example-grub.cfg	Wed Nov 11 23:16:28 2009 +0100
     2.3 @@ -0,0 +1,34 @@
     2.4 +# /boot/grub/menu.lst: GRUB boot loader configuration.
     2.5 +#
     2.6 +
     2.7 +# By default, boot the first entry.
     2.8 +set default=0
     2.9 +
    2.10 +# Boot automatically after 20 secs.
    2.11 +set timeout=20
    2.12 +
    2.13 +# Change the colors.
    2.14 +menu_color_normal yellow/brown
    2.15 +menu_color_hightlight light-green/black
    2.16 +
    2.17 +# For booting SliTaz from a cdrom (LiveCD).
    2.18 +#
    2.19 +#menuentry  "SliTaz GNU/Linux (Cooking)" {
    2.20 +#    linux /boot/bzImage root=/dev/null vga=771
    2.21 +#    initrd /boot/rootfs.gz
    2.22 +#}
    2.23 +
    2.24 +# For booting SliTaz from hda1.
    2.25 +#
    2.26 +#menuentry 	"SliTaz GNU/Linux (Cooking) (Kernel 2.6.30.6)" {
    2.27 +#    set root=(hd0,0)
    2.28 +#    linux /boot/vmlinuz-2.6.30.6-slitaz root=/dev/hda1
    2.29 +#}
    2.30 +
    2.31 +# For booting Windows
    2.32 +#
    2.33 +#menuentry "Windows NT / Windows 95 / XP" {
    2.34 +#    set root=(hd0,0)
    2.35 +#    chainloader  +1
    2.36 +#}
    2.37 +