wok-6.x annotate grub/receipt @ rev 25565
Reenable rpc for glibc, fix gpxe grub4dos receipt, fix linld url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue May 09 17:24:00 2023 +0000 (22 months ago) |
parents | ad9008f821da |
children |
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" |
pankso@29 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@29 | 10 WEB_SITE="http://www.gnu.org/software/grub/" |
pascal@24415 | 11 WGET_URL="http://alpha.gnu.org/gnu/grub/$TARBALL" |
pascal@1633 | 12 CONFIG_FILES="/boot/grub" |
pankso@29 | 13 |
pascal@12235 | 14 BUILD_DEPENDS="gcc3" |
pascal@12235 | 15 |
pascal@24415 | 16 # What is the latest version available today? |
pascal@24415 | 17 current_version() |
pascal@24415 | 18 { |
pascal@24415 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24626 | 20 sed "/$PACKAGE-0/!d;/tar/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q |
pascal@24415 | 21 } |
pascal@24415 | 22 |
pankso@29 | 23 # Rules to configure and make the package. |
pankso@29 | 24 compile_rules() |
pankso@29 | 25 { |
pascal@24987 | 26 # binutils 2.37 support |
pascal@24987 | 27 sed 's|-O binary|--only-section=.text &|' -i configure* acinclude.m4 stage*/Makefile* |
pascal@24987 | 28 sed 's|2000 8000 7C00|0x2000 0x8000 0x7C00|' -i configure* acinclude.m4 |
pascal@24987 | 29 |
slaxemulator@9700 | 30 for i in $stuff/*.diff ; do |
pascal@2599 | 31 [ -f $(basename $i) ] && continue |
pascal@2599 | 32 patch -p1 < $i |
pascal@2599 | 33 touch $(basename $i) |
pascal@2599 | 34 done |
pascal@12235 | 35 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \ |
pascal@12235 | 36 util/grub-install.in |
pascal@24416 | 37 grub_cv_prog_objcopy_absolute=yes \ |
pascal@12235 | 38 ./configure CC=gcc-3 --prefix=/usr --infodir=/usr/share/info \ |
pascal@5865 | 39 --without-curses --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1633 | 40 make && |
pascal@15078 | 41 make DESTDIR=$DESTDIR install |
pankso@29 | 42 } |
pankso@29 | 43 |
pankso@29 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 45 genpkg_rules() |
pankso@29 | 46 { |
pankso@29 | 47 mkdir -p $fs/boot/grub $fs/usr |
pascal@15078 | 48 cp -a $install/usr/bin $fs/usr |
pascal@15078 | 49 cp -a $install/usr/sbin $fs/usr |
pascal@15078 | 50 cp -a $install/usr/lib $fs/usr |
pankso@29 | 51 |
pankso@29 | 52 # Permissions |
pankso@29 | 53 chmod 755 $fs/usr/sbin/grub-* |
pascal@15078 | 54 chmod 655 $fs/usr/lib/grub/*/* |
pankso@29 | 55 |
pankso@29 | 56 # Strip. |
pankso@29 | 57 # Example config file (menu.lst). |
pascal@18763 | 58 cp $stuff/example-menu.lst $fs/boot/grub |
pankso@29 | 59 } |