wok-4.x view grub/receipt @ rev 2984

Up: unfs3 (0.9.22)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon May 11 10:41:51 2009 +0200 (2009-05-11)
parents dbf873bf74a8
children 7b9886355889
line source
1 # SliTaz package receipt.
3 PACKAGE="grub"
4 VERSION="0.97"
5 CATEGORY="base-system"
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"
11 CONFIG_FILES="/boot/grub"
12 DEPENDS="ncurses"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 for i in ../stuff/*.diff ; do
19 [ -f $(basename $i) ] && continue
20 patch -p1 < $i
21 touch $(basename $i)
22 done
23 ./configure --prefix=/usr --infodir=/usr/share/info \
24 --mandir=/usr/share/man $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/boot/grub $fs/usr
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/sbin $fs/usr
35 cp -a $_pkg/usr/lib $fs/usr
37 # Permissions
38 chmod 755 $fs/usr/sbin/grub-*
39 chmod 655 $fs/usr/lib/grub/i386-pc/*
41 # Strip.
42 strip -s $fs/usr/bin/*
43 strip -s $fs/usr/sbin/grub
44 # Example config file (menu.lst).
45 cp stuff/example-menu.lst $fs/boot/grub
46 }