wok-next annotate grub/receipt @ rev 21013
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Oct 14 05:29:23 2018 +0300 (2018-10-14) |
parents | d6378d455338 |
children | d5aab818505e |
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" |
pascal@15078 | 8 LICENSE="GPL2" |
al@20882 | 9 WEB_SITE="http://www.gnu.org/software/grub/" |
al@20882 | 10 REPOLOGY="grub-legacy" |
al@20882 | 11 |
pankso@29 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@29 | 13 WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL" |
pascal@1633 | 14 CONFIG_FILES="/boot/grub" |
pankso@29 | 15 |
pascal@12235 | 16 BUILD_DEPENDS="gcc3" |
pascal@12235 | 17 |
pankso@29 | 18 # Rules to configure and make the package. |
pankso@29 | 19 compile_rules() |
pankso@29 | 20 { |
pascal@12235 | 21 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \ |
pascal@12235 | 22 util/grub-install.in |
pascal@12235 | 23 ./configure CC=gcc-3 --prefix=/usr --infodir=/usr/share/info \ |
pascal@5865 | 24 --without-curses --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1633 | 25 make && |
pascal@15078 | 26 make DESTDIR=$DESTDIR 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 |
pascal@15078 | 33 cp -a $install/usr/bin $fs/usr |
pascal@15078 | 34 cp -a $install/usr/sbin $fs/usr |
pascal@15078 | 35 cp -a $install/usr/lib $fs/usr |
pankso@29 | 36 |
pankso@29 | 37 # Permissions |
pankso@29 | 38 chmod 755 $fs/usr/sbin/grub-* |
pascal@15078 | 39 chmod 655 $fs/usr/lib/grub/*/* |
pankso@29 | 40 |
pankso@29 | 41 # Strip. |
pankso@29 | 42 # Example config file (menu.lst). |
pascal@18763 | 43 cp $stuff/example-menu.lst $fs/boot/grub |
pascal@18763 | 44 cp $stuff/splash.xpm.gz $fs/boot/grub |
pankso@29 | 45 } |
pankso@29 | 46 |