wok annotate etherboot/receipt @ rev 17388

hg merge
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Nov 27 13:44:07 2014 +0200 (2014-11-27)
parents d1768332cee0
children beda06c66d60
rev   line source
pascal@515 1 # SliTaz package receipt.
pascal@515 2
pascal@515 3 PACKAGE="etherboot"
pascal@515 4 VERSION="5.4.3"
pascal@515 5 CATEGORY="system-tools"
pascal@515 6 SHORT_DESC="Ethernet bootloader for PXE and NBI images."
pascal@515 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15588 8 LICENSE="GPL2"
pascal@515 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@515 10 WEB_SITE="http://www.etherboot.org/"
pascal@515 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@515 12
pascal@15588 13 BUILD_DEPENDS="perl"
pascal@15588 14
pascal@515 15 # Rules to configure and make the package.
pascal@515 16 compile_rules()
pascal@515 17 {
pascal@515 18 cd $src/src
pascal@1442 19 while read file; do
pascal@1442 20 [ -f done.$file ] && continue
slaxemulator@9700 21 patch -p2 < $stuff/$file
pascal@1442 22 touch done.$file
pascal@1442 23 done <<EOT
pascal@1442 24 etherboot-net.u
pascal@1442 25 etherboot-prefix.u
pascal@1442 26 EOT
pascal@541 27 make bin/etherboot-net.bzImage
pascal@515 28 }
pascal@515 29
pascal@515 30
pascal@515 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@515 32 genpkg_rules()
pascal@515 33 {
pascal@515 34 mkdir -p $fs/usr/share/boot
pascal@541 35 cp $src/src/bin/etherboot-net.bzImage $fs/usr/share/boot/etherboot
pascal@515 36 }
pascal@515 37
pascal@515 38 # Pre and post install commands for Tazpkg.
pascal@515 39 post_install()
pascal@515 40 {
pascal@515 41 echo "----"
pascal@515 42 echo "You can create pxe/nbi boot floppy with:"
pascal@515 43 echo "# cp /usr/share/boot/etherboot /dev/fd0"
pascal@515 44 echo "----"
pascal@515 45 }