wok-current view etherboot/receipt @ rev 20750
updated bluefish (2.2.0 -> 2.2.10)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Feb 11 17:14:38 2019 +0100 (2019-02-11) |
parents | 970c5ec9a60a |
children | 640a2eba2511 |
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 # 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 while read file; do
21 [ -f done.$file ] && continue
22 patch -p2 < $stuff/$file
23 touch done.$file
24 done <<EOT
25 etherboot-net.u
26 etherboot-prefix.u
27 EOT
28 make EXTRA_CFLAGS="-Wno-error=unused-but-set-variable" bin/etherboot-net.bzImage
29 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/boot
36 cp $src/src/bin/etherboot-net.bzImage $fs/usr/share/boot/etherboot
37 }
39 # Pre and post install commands for Tazpkg.
40 post_install()
41 {
42 [ -s $1/boot/isolinux/isolinux.cfg ] &&
43 ! grep -qs 'Web Boot' $1/boot/isolinux/isolinux.cfg &&
44 sed -i 's|i18n.cfg|&\n\
45 LABEL web zeb\
46 MENU LABEL Web Boot\
47 KERNEL /boot/etherboot|' $1/boot/isolinux/isolinux.cfg
48 echo
49 echo "----"
50 echo "You can create pxe/nbi boot floppy with:"
51 echo "# cp /usr/share/boot/etherboot /dev/fd0"
52 echo "----"
53 }