wok view grub/receipt @ rev 69

UP : tazlito 1.3
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 24 19:17:09 2007 +0100 (2007-12-24)
parents
children cdac43c3f44f
line source
1 # SliTaz package receipt.
3 PACKAGE="grub"
4 VERSION="0.97"
5 CATEGORY="base-apps"
6 SHORT_DESC="GRUB boot loader."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.gnu.org/software/grub/"
10 WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src
16 ./configure --prefix=/usr --infodir=/usr/share/info \
17 --mandir=/usr/share/man $CONFIGURE_ARGS
18 make
19 make DESTDIR=$PWD/_pkg install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/boot/grub $fs/usr
26 cp -a $_pkg/usr/bin $fs/usr
27 cp -a $_pkg/usr/sbin $fs/usr
28 cp -a $_pkg/usr/lib $fs/usr
30 # Permissions
31 chmod 755 $fs/usr/sbin/grub-*
32 chmod 655 $fs/usr/lib/grub/i386-pc/*
34 # Strip.
35 strip -s $fs/usr/bin/*
36 strip -s $fs/usr/sbin/grub
37 # Example config file (menu.lst).
38 cp stuff/example-menu.lst $fs/boot/grub
39 }