wok-current view gpxe/receipt @ rev 20210

syslinux: remove memtest & ipxe entries
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 24 11:14:17 2018 +0100 (2018-02-24)
parents 12d5d6943718
children 3705d68ed8f3
line source
1 # SliTaz package receipt.
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"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src/src
19 for i in prefix.u default_boot.u cmdline.u url_list.u gcc.u; do
20 [ -f done.$i ] && continue
21 echo "Apply $i..."
22 patch -p2 < $stuff/$i || return 1
23 touch done.$i
24 done
25 sed -i 's/ = ++ns->cur_rx %/++; ns->cur_rx %=/' drivers/net/ns83820.c
26 sed -i 's/ = (++tp->cur_rx) %/++; tp->cur_rx %=/' drivers/net/tulip.c
27 make EXTRA_CFLAGS="-fno-strict-aliasing -Wno-error=unused-but-set-variable" bin/gpxe.lkrn bin/undionly.kpxe 2>&1 | grep -v housekeeping: | grep -v blib.list
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
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" | cat - /dev/zero | \
40 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
41 }
43 # Pre and post install commands for Tazpkg.
44 post_install()
45 {
46 [ -s $1/boot/isolinux/isolinux.cfg ] &&
47 ! grep -qs 'Web Boot' $1/boot/isolinux/isolinux.cfg &&
48 sed -i 's|i18n.cfg|&\n\
49 LABEL web zeb\
50 MENU LABEL Web Boot\
51 KERNEL /boot/gpxe|' $1/boot/isolinux/isolinux.cfg
52 }