wok-next view gpxe/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents d6378d455338
children f290a74c4d08
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gpxe"
4 VERSION="0.9.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Ethernet bootloader"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://etherboot.org/wiki/"
10 HOST_ARCH="i486"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="http://kernel.org/pub/software/utils/boot/$PACKAGE/Old/$TARBALL"
15 BUILD_DEPENDS="perl gcc49"
16 SPLIT="$PACKAGE-pxe"
18 compile_rules() {
19 cd $src/src
20 sed -i 's/ = ++ns->cur_rx %/++; ns->cur_rx %=/' drivers/net/ns83820.c
21 sed -i 's/ = (++tp->cur_rx) %/++; tp->cur_rx %=/' drivers/net/tulip.c
22 sed -i 's/? s : ___strtok//' core/stringextra.c
23 sed -i '/timer2_running/d' include/timer.h
24 make CC=gcc-49 EXTRA_CFLAGS="-fno-strict-aliasing \
25 -Wno-error=unused-but-set-variable -Wno-error=implicit-function-declaration \
26 -Wno-error=array-bounds" bin/gpxe.lkrn bin/undionly.kpxe 2>&1 | \
27 grep -v housekeeping: | grep -v blib.list
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 gpxe)
33 mkdir -p $fs/boot
34 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
35 # install 255 bytes of forced url at offset 519
36 echo -n "\
37 http://mirror.slitaz.org/pxe/pxelinux.0,\
38 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
39 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" \
40 | cat - /dev/zero \
41 | dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
42 ;;
43 gpxe-pxe)
44 CAT="system-tools|for pxe server"
45 mkdir -p $fs/usr/share/boot
46 cp $src/src/bin/undionly.kpxe $fs/usr/share/boot/gpxe.pxe
47 # install 255 bytes of forced url at offset 5
48 echo -n "\
49 http://mirror.slitaz.org/pxe/pxelinux.0,\
50 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
51 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" \
52 | cat - /dev/zero \
53 | dd bs=1 seek=5 count=255 conv=notrunc of=$fs/usr/share/boot/gpxe.pxe
54 ;;
55 esac
56 }