wok-next view gpxe/receipt @ rev 21678

updated getmail (4.41.0 -> 5.14)
author Hans-G?nter Theisgen
date Mon Jun 29 13:44:08 2020 +0100 (2020-06-29)
parents d5aab818505e
children
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://kernel.org/pub/software/utils/boot/$PACKAGE/Old/$TARBALL"
14 BUILD_DEPENDS="perl"
15 SPLIT="$PACKAGE-pxe"
17 HOST_ARCH="i486"
19 compile_rules()
20 {
21 cd $src/src
22 sed -i 's/ = ++ns->cur_rx %/++; ns->cur_rx %=/' drivers/net/ns83820.c
23 sed -i 's/ = (++tp->cur_rx) %/++; tp->cur_rx %=/' drivers/net/tulip.c
24 sed -i 's/? s : ___strtok//' core/stringextra.c
25 sed -i '/timer2_running/d' include/timer.h
27 make EXTRA_CFLAGS="-fno-strict-aliasing \
28 -Wno-error=unused-but-set-variable -Wno-error=implicit-function-declaration \
29 -Wno-error=array-bounds" bin/gpxe.lkrn bin/undionly.kpxe 2>&1 | \
30 grep -v housekeeping: | grep -v blib.list
31 }
33 genpkg_rules()
34 {
35 case $PACKAGE in
36 gpxe)
37 mkdir -p $fs/boot
38 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
39 # install 255 bytes of forced url at offset 519
40 echo -n "\
41 http://mirror.slitaz.org/pxe/pxelinux.0,\
42 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
43 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" \
44 | cat - /dev/zero \
45 | dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
46 ;;
47 gpxe-pxe)
48 CAT="system-tools|for pxe server"
49 mkdir -p $fs/usr/share/boot
50 cp $src/src/bin/undionly.kpxe $fs/usr/share/boot/gpxe.pxe
51 # install 255 bytes of forced url at offset 5
52 echo -n "\
53 http://mirror.slitaz.org/pxe/pxelinux.0,\
54 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
55 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" \
56 | cat - /dev/zero \
57 | dd bs=1 seek=5 count=255 conv=notrunc of=$fs/usr/share/boot/gpxe.pxe
58 ;;
59 esac
60 }