wok-4.x annotate grub/receipt @ rev 3404
Remove old pkg reference for renamed python packages
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Fri Jun 12 11:12:54 2009 +0000 (2009-06-12) |
parents | dbf873bf74a8 |
children | 7b9886355889 |
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 |
pascal@2599 | 18 for i in ../stuff/*.diff ; do |
pascal@2599 | 19 [ -f $(basename $i) ] && continue |
pascal@2599 | 20 patch -p1 < $i |
pascal@2599 | 21 touch $(basename $i) |
pascal@2599 | 22 done |
pankso@29 | 23 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1633 | 24 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1633 | 25 make && |
pankso@29 | 26 make DESTDIR=$PWD/_pkg install |
pankso@29 | 27 } |
pankso@29 | 28 |
pankso@29 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 30 genpkg_rules() |
pankso@29 | 31 { |
pankso@29 | 32 mkdir -p $fs/boot/grub $fs/usr |
pankso@29 | 33 cp -a $_pkg/usr/bin $fs/usr |
pankso@29 | 34 cp -a $_pkg/usr/sbin $fs/usr |
pankso@29 | 35 cp -a $_pkg/usr/lib $fs/usr |
pankso@29 | 36 |
pankso@29 | 37 # Permissions |
pankso@29 | 38 chmod 755 $fs/usr/sbin/grub-* |
pankso@29 | 39 chmod 655 $fs/usr/lib/grub/i386-pc/* |
pankso@29 | 40 |
pankso@29 | 41 # Strip. |
pankso@29 | 42 strip -s $fs/usr/bin/* |
pankso@29 | 43 strip -s $fs/usr/sbin/grub |
pankso@29 | 44 # Example config file (menu.lst). |
pankso@29 | 45 cp stuff/example-menu.lst $fs/boot/grub |
pankso@29 | 46 } |
pankso@29 | 47 |