wok-next annotate gpxe/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
rev   line source
pascal@20324 1 # SliTaz package receipt v2.
pascal@955 2
pascal@955 3 PACKAGE="gpxe"
pascal@955 4 VERSION="0.9.3"
pascal@955 5 CATEGORY="system-tools"
al@21020 6 SHORT_DESC="Ethernet bootloader"
pascal@955 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15001 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://etherboot.org/wiki/"
al@21020 10
pascal@955 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@1459 12 WGET_URL="http://kernel.org/pub/software/utils/boot/$PACKAGE/Old/$TARBALL"
pankso@9695 13
Hans-G?nter@21359 14 BUILD_DEPENDS="perl"
al@21020 15 SPLIT="$PACKAGE-pxe"
pascal@955 16
Hans-G?nter@21359 17 HOST_ARCH="i486"
Hans-G?nter@21359 18
Hans-G?nter@21359 19 compile_rules()
Hans-G?nter@21359 20 {
pascal@955 21 cd $src/src
pascal@5737 22 sed -i 's/ = ++ns->cur_rx %/++; ns->cur_rx %=/' drivers/net/ns83820.c
pascal@5737 23 sed -i 's/ = (++tp->cur_rx) %/++; tp->cur_rx %=/' drivers/net/tulip.c
pascal@20304 24 sed -i 's/? s : ___strtok//' core/stringextra.c
pascal@20304 25 sed -i '/timer2_running/d' include/timer.h
Hans-G?nter@21359 26
Hans-G?nter@21359 27 make EXTRA_CFLAGS="-fno-strict-aliasing \
pascal@20354 28 -Wno-error=unused-but-set-variable -Wno-error=implicit-function-declaration \
pascal@20355 29 -Wno-error=array-bounds" bin/gpxe.lkrn bin/undionly.kpxe 2>&1 | \
pascal@20355 30 grep -v housekeeping: | grep -v blib.list
pascal@955 31 }
pascal@955 32
Hans-G?nter@21359 33 genpkg_rules()
Hans-G?nter@21359 34 {
pascal@20324 35 case $PACKAGE in
al@21020 36 gpxe)
al@21020 37 mkdir -p $fs/boot
al@21020 38 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
al@21020 39 # install 255 bytes of forced url at offset 519
al@21020 40 echo -n "\
pascal@2338 41 http://mirror.slitaz.org/pxe/pxelinux.0,\
pascal@4720 42 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
al@21020 43 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" \
al@21020 44 | cat - /dev/zero \
al@21020 45 | dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
al@21020 46 ;;
al@21020 47 gpxe-pxe)
al@21020 48 CAT="system-tools|for pxe server"
al@21020 49 mkdir -p $fs/usr/share/boot
al@21020 50 cp $src/src/bin/undionly.kpxe $fs/usr/share/boot/gpxe.pxe
al@21020 51 # install 255 bytes of forced url at offset 5
al@21020 52 echo -n "\
pascal@20324 53 http://mirror.slitaz.org/pxe/pxelinux.0,\
pascal@20324 54 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
al@21020 55 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" \
al@21020 56 | cat - /dev/zero \
al@21020 57 | dd bs=1 seek=5 count=255 conv=notrunc of=$fs/usr/share/boot/gpxe.pxe
al@21020 58 ;;
pascal@20324 59 esac
pascal@955 60 }