wok annotate etherboot/receipt @ rev 23837

Up freetype (2.10.2), git (2.26.2), glpi (9.4.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 01 10:44:24 2020 +0000 (2020-06-01)
parents 970c5ec9a60a
children 640a2eba2511
rev   line source
pascal@515 1 # SliTaz package receipt.
pascal@515 2
pascal@515 3 PACKAGE="etherboot"
pascal@515 4 VERSION="5.4.3"
pascal@515 5 CATEGORY="system-tools"
pascal@515 6 SHORT_DESC="Ethernet bootloader for PXE and NBI images."
pascal@515 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15588 8 LICENSE="GPL2"
pascal@515 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@515 10 WEB_SITE="http://www.etherboot.org/"
pascal@515 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@515 12
pascal@15588 13 BUILD_DEPENDS="perl"
pascal@15588 14
pascal@515 15 # Rules to configure and make the package.
pascal@515 16 compile_rules()
pascal@515 17 {
pascal@515 18 cd $src/src
pascal@20212 19 sed -i 's|uname -m|echo i486|' Makefile
pascal@1442 20 while read file; do
pascal@1442 21 [ -f done.$file ] && continue
slaxemulator@9700 22 patch -p2 < $stuff/$file
pascal@1442 23 touch done.$file
pascal@1442 24 done <<EOT
pascal@1442 25 etherboot-net.u
pascal@1442 26 etherboot-prefix.u
pascal@1442 27 EOT
pascal@20321 28 make EXTRA_CFLAGS="-Wno-error=unused-but-set-variable" bin/etherboot-net.bzImage
pascal@515 29 }
pascal@515 30
pascal@515 31
pascal@515 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@515 33 genpkg_rules()
pascal@515 34 {
pascal@515 35 mkdir -p $fs/usr/share/boot
pascal@541 36 cp $src/src/bin/etherboot-net.bzImage $fs/usr/share/boot/etherboot
pascal@515 37 }
pascal@515 38
pascal@515 39 # Pre and post install commands for Tazpkg.
pascal@515 40 post_install()
pascal@515 41 {
pascal@20210 42 [ -s $1/boot/isolinux/isolinux.cfg ] &&
pascal@20210 43 ! grep -qs 'Web Boot' $1/boot/isolinux/isolinux.cfg &&
pascal@20210 44 sed -i 's|i18n.cfg|&\n\
pascal@20210 45 LABEL web zeb\
pascal@20210 46 MENU LABEL Web Boot\
pascal@20210 47 KERNEL /boot/etherboot|' $1/boot/isolinux/isolinux.cfg
pascal@20319 48 echo
pascal@20219 49 echo "----"
pascal@20219 50 echo "You can create pxe/nbi boot floppy with:"
pascal@20219 51 echo "# cp /usr/share/boot/etherboot /dev/fd0"
pascal@20219 52 echo "----"
pascal@515 53 }