wok view grub/receipt @ rev 19260
Up cookutils (807)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Jul 03 15:10:16 2016 +0300 (2016-07-03) |
parents | 86e86ea880e3 |
children | 8efe208e0c37 |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/grub/"
11 WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL"
12 CONFIG_FILES="/boot/grub"
14 BUILD_DEPENDS="gcc3"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 for i in $stuff/*.diff ; do
21 [ -f $(basename $i) ] && continue
22 patch -p1 < $i
23 touch $(basename $i)
24 done
25 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
26 util/grub-install.in
27 ./configure CC=gcc-3 --prefix=/usr --infodir=/usr/share/info \
28 --without-curses --mandir=/usr/share/man $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/boot/grub $fs/usr
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/sbin $fs/usr
39 cp -a $install/usr/lib $fs/usr
41 # Permissions
42 chmod 755 $fs/usr/sbin/grub-*
43 chmod 655 $fs/usr/lib/grub/*/*
45 # Strip.
46 # Example config file (menu.lst).
47 cp $stuff/example-menu.lst $fs/boot/grub
48 cp $stuff/splash.xpm.gz $fs/boot/grub
49 }