wok-6.x view grub/receipt @ rev 2557
libfox-dev: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 26 12:36:11 2009 +0000 (2009-03-26) |
parents | eea0bde9b32e |
children | 9c47e2a0e10b |
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 ./configure --prefix=/usr --infodir=/usr/share/info \
19 --mandir=/usr/share/man $CONFIGURE_ARGS &&
20 make &&
21 make DESTDIR=$PWD/_pkg install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/boot/grub $fs/usr
28 cp -a $_pkg/usr/bin $fs/usr
29 cp -a $_pkg/usr/sbin $fs/usr
30 cp -a $_pkg/usr/lib $fs/usr
32 # Permissions
33 chmod 755 $fs/usr/sbin/grub-*
34 chmod 655 $fs/usr/lib/grub/i386-pc/*
36 # Strip.
37 strip -s $fs/usr/bin/*
38 strip -s $fs/usr/sbin/grub
39 # Example config file (menu.lst).
40 cp stuff/example-menu.lst $fs/boot/grub
41 }