wok-6.x annotate 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 |
rev | line source |
---|---|
pankso@29 | 1 # SliTaz package receipt. |
pankso@29 | 2 |
pankso@29 | 3 PACKAGE="grub" |
pankso@29 | 4 VERSION="0.97" |
pankso@211 | 5 CATEGORY="base-system" |
pankso@29 | 6 SHORT_DESC="GRUB boot loader." |
pankso@29 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@29 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@29 | 9 WEB_SITE="http://www.gnu.org/software/grub/" |
pankso@29 | 10 WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL" |
pascal@1633 | 11 CONFIG_FILES="/boot/grub" |
pascal@2484 | 12 DEPENDS="ncurses" |
pankso@29 | 13 |
pankso@29 | 14 # Rules to configure and make the package. |
pankso@29 | 15 compile_rules() |
pankso@29 | 16 { |
pankso@29 | 17 cd $src |
pankso@29 | 18 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1633 | 19 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1633 | 20 make && |
pankso@29 | 21 make DESTDIR=$PWD/_pkg install |
pankso@29 | 22 } |
pankso@29 | 23 |
pankso@29 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 25 genpkg_rules() |
pankso@29 | 26 { |
pankso@29 | 27 mkdir -p $fs/boot/grub $fs/usr |
pankso@29 | 28 cp -a $_pkg/usr/bin $fs/usr |
pankso@29 | 29 cp -a $_pkg/usr/sbin $fs/usr |
pankso@29 | 30 cp -a $_pkg/usr/lib $fs/usr |
pankso@29 | 31 |
pankso@29 | 32 # Permissions |
pankso@29 | 33 chmod 755 $fs/usr/sbin/grub-* |
pankso@29 | 34 chmod 655 $fs/usr/lib/grub/i386-pc/* |
pankso@29 | 35 |
pankso@29 | 36 # Strip. |
pankso@29 | 37 strip -s $fs/usr/bin/* |
pankso@29 | 38 strip -s $fs/usr/sbin/grub |
pankso@29 | 39 # Example config file (menu.lst). |
pankso@29 | 40 cp stuff/example-menu.lst $fs/boot/grub |
pankso@29 | 41 } |
pankso@29 | 42 |