wok view grub/receipt @ rev 9282
Add backuppc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 16 09:13:12 2011 +0100 (2011-03-16) |
parents | 9c47e2a0e10b |
children | 02bbaa9d12ba |
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 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 for i in ../stuff/*.diff ; do
18 [ -f $(basename $i) ] && continue
19 patch -p1 < $i
20 touch $(basename $i)
21 done
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --without-curses --mandir=/usr/share/man $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/boot/grub $fs/usr
32 cp -a $_pkg/usr/bin $fs/usr
33 cp -a $_pkg/usr/sbin $fs/usr
34 cp -a $_pkg/usr/lib $fs/usr
36 # Permissions
37 chmod 755 $fs/usr/sbin/grub-*
38 chmod 655 $fs/usr/lib/grub/i386-pc/*
40 # Strip.
41 strip -s $fs/usr/bin/*
42 strip -s $fs/usr/sbin/grub
43 # Example config file (menu.lst).
44 cp stuff/example-menu.lst $fs/boot/grub
45 }