wok-next view gpxe/receipt @ rev 20883

Check Repology info from h* to l* packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jul 11 02:06:34 2018 +0300 (2018-07-11)
parents ef8195de90bb
children d5aab818505e
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 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 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 case $PACKAGE in
34 gpxe)
35 mkdir -p $fs/boot
36 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
37 # install 255 bytes of forced url at offset 519
38 echo -n "\
39 http://mirror.slitaz.org/pxe/pxelinux.0,\
40 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
41 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \
42 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
43 ;;
44 gpxe-pxe)
45 CAT="system-tools|Ethernet bootloader for pxe server."
46 mkdir -p $fs/usr/share/boot
47 cp $src/src/bin/undionly.kpxe $fs/usr/share/boot/gpxe.pxe
48 # install 255 bytes of forced url at offset 5
49 echo -n "\
50 http://mirror.slitaz.org/pxe/pxelinux.0,\
51 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
52 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \
53 dd bs=1 seek=5 count=255 conv=notrunc of=$fs/usr/share/boot/gpxe.pxe
54 ;;
55 esac
56 }