wok-6.x view etherboot/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 | fcdd50638150 |
children | 3705d68ed8f3 |
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 while read file; do
20 [ -f done.$file ] && continue
21 patch -p2 < $stuff/$file
22 touch done.$file
23 done <<EOT
24 etherboot-net.u
25 etherboot-prefix.u
26 EOT
27 make bin/etherboot-net.bzImage
28 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/boot
35 cp $src/src/bin/etherboot-net.bzImage $fs/usr/share/boot/etherboot
36 }
38 # Pre and post install commands for Tazpkg.
39 post_install()
40 {
41 echo "----"
42 echo "You can create pxe/nbi boot floppy with:"
43 echo "# cp /usr/share/boot/etherboot /dev/fd0"
44 echo "----"
45 [ -s $1/boot/isolinux/isolinux.cfg ] &&
46 ! grep -qs 'Web Boot' $1/boot/isolinux/isolinux.cfg &&
47 sed -i 's|i18n.cfg|&\n\
48 LABEL web zeb\
49 MENU LABEL Web Boot\
50 KERNEL /boot/etherboot|' $1/boot/isolinux/isolinux.cfg
51 }