wok-next view grub/receipt @ rev 12337
Up: lvm2 to 2.02.95.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Apr 19 09:06:18 2012 +0000 (2012-04-19) |
parents | d1768332cee0 |
children | 86e86ea880e3 |
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"
13 BUILD_DEPENDS="gcc3"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 for i in $stuff/*.diff ; do
20 [ -f $(basename $i) ] && continue
21 patch -p1 < $i
22 touch $(basename $i)
23 done
24 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
25 util/grub-install.in
26 ./configure CC=gcc-3 --prefix=/usr --infodir=/usr/share/info \
27 --without-curses --mandir=/usr/share/man $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/boot/grub $fs/usr
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/sbin $fs/usr
38 cp -a $_pkg/usr/lib $fs/usr
40 # Permissions
41 chmod 755 $fs/usr/sbin/grub-*
42 chmod 655 $fs/usr/lib/grub/i386-pc/*
44 # Strip.
45 # Example config file (menu.lst).
46 cp stuff/example-menu.lst $fs/boot/grub
47 }