wok-next view gpxe/receipt @ rev 20365

palemoon: disable SSE2, up get-palemoon.
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Fri Nov 24 08:37:29 2017 +0100 (2017-11-24)
parents 29e7eb2b19f9
children d6378d455338
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.etherboot.org/"
11 WGET_URL="http://kernel.org/pub/software/utils/boot/$PACKAGE/Old/$TARBALL"
13 BUILD_DEPENDS="perl gcc49"
14 SPLIT="gpxe gpxe-pxe"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src/src
20 for i in prefix.u default_boot.u cmdline.u url_list.u gcc.u; do
21 [ -f done.$i ] && continue
22 echo "Apply $i..."
23 patch -p2 < $stuff/$i || return 1
24 touch done.$i
25 done
26 sed -i 's/ = ++ns->cur_rx %/++; ns->cur_rx %=/' drivers/net/ns83820.c
27 sed -i 's/ = (++tp->cur_rx) %/++; tp->cur_rx %=/' drivers/net/tulip.c
28 sed -i 's/? s : ___strtok//' core/stringextra.c
29 sed -i '/timer2_running/d' include/timer.h
30 make CC=gcc-49 EXTRA_CFLAGS="-fno-strict-aliasing \
31 -Wno-error=unused-but-set-variable -Wno-error=implicit-function-declaration \
32 -Wno-error=array-bounds" bin/gpxe.lkrn bin/undionly.kpxe 2>&1 | \
33 grep -v housekeeping: | grep -v blib.list
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 case $PACKAGE in
40 gpxe)
41 mkdir -p $fs/boot
42 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
43 # install 255 bytes of forced url at offset 519
44 echo -n "\
45 http://mirror.slitaz.org/pxe/pxelinux.0,\
46 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
47 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \
48 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
49 ;;
50 gpxe-pxe)
51 CAT="system-tools|Ethernet bootloader for pxe server."
52 mkdir -p $fs/usr/share/boot
53 cp $src/src/bin/undionly.kpxe $fs/usr/share/boot/gpxe.pxe
54 # install 255 bytes of forced url at offset 5
55 echo -n "\
56 http://mirror.slitaz.org/pxe/pxelinux.0,\
57 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
58 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \
59 dd bs=1 seek=5 count=255 conv=notrunc of=$fs/usr/share/boot/gpxe.pxe
60 ;;
61 esac
62 }