wok-6.x view etherboot/receipt @ rev 24654
updated i7z (0.27.3 -> 0.27.4)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 11 06:54:52 2022 +0100 (2022-03-11) |
parents | 10a263b71ff0 |
children | 8ea0030e77cb |
line source
1 # SliTaz package receipt.
3 PACKAGE="etherboot"
4 VERSION="5.4.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Ethernet bootloader for PXE and NBI images."
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="$SF_MIRROR/$PACKAGE/$TARBALL"
13 BUILD_DEPENDS="perl"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/etherboot/files/etherboot/ 2>/dev/null | \
19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
20 sed '/scope="row/!d;s|.*/etherboot/||;s|/.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src/src
27 sed -i 's|uname -m|echo i486|' Makefile
28 while read file; do
29 [ -f done.$file ] && continue
30 patch -p2 < $stuff/$file
31 touch done.$file
32 done <<EOT
33 etherboot-net.u
34 etherboot-prefix.u
35 EOT
36 make EXTRA_CFLAGS="-Wno-error=unused-but-set-variable" bin/etherboot-net.bzImage
37 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share/boot
44 cp $src/src/bin/etherboot-net.bzImage $fs/usr/share/boot/etherboot
45 }
47 # Pre and post install commands for Tazpkg.
48 post_install()
49 {
50 [ -s $1/boot/isolinux/isolinux.cfg ] &&
51 ! grep -qs 'Web Boot' $1/boot/isolinux/isolinux.cfg &&
52 sed -i 's|i18n.cfg|&\n\
53 LABEL web zeb\
54 MENU LABEL Web Boot\
55 KERNEL /boot/etherboot|' $1/boot/isolinux/isolinux.cfg
56 echo
57 echo "----"
58 echo "You can create pxe/nbi boot floppy with:"
59 echo "# cp /usr/share/boot/etherboot /dev/fd0"
60 echo "----"
61 }