wok view gpxe/receipt @ rev 20761

updated cairo again
author Hans-G?nter Theisgen
date Tue Feb 12 17:49:17 2019 +0100 (2019-02-12)
parents 3705d68ed8f3
children d8c511e24c20
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 sed -i 's|uname -m|echo i486|' Makefile
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 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
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/boot
35 cp $src/src/bin/gpxe.lkrn $fs/boot/gpxe
36 # install 255 bytes of forced url at offset 519
37 echo -n "\
38 http://mirror.slitaz.org/pxe/pxelinux.0,\
39 http://mirror.switch.ch/ftp/mirror/pxe/pxelinux.0,\
40 http://download.tuxfamily.org/slitaz/pxe/pxelinux.0" | cat - /dev/zero | \
41 dd bs=1 seek=519 count=255 conv=notrunc of=$fs/boot/gpxe
42 }
44 # Pre and post install commands for Tazpkg.
45 post_install()
46 {
47 [ -s $1/boot/isolinux/isolinux.cfg ] &&
48 ! grep -qs 'Web Boot' $1/boot/isolinux/isolinux.cfg &&
49 sed -i 's|i18n.cfg|&\n\
50 LABEL web zeb\
51 MENU LABEL Web Boot\
52 KERNEL /boot/gpxe|' $1/boot/isolinux/isolinux.cfg
53 true
54 }