# SliTaz package receipt.

PACKED_SIZE="368.0K"
UNPACKED_SIZE="372.0K"
PACKAGE="ipxe"
VERSION="1.0.0-20160119"
CATEGORY="system-tools"
SHORT_DESC="Open source network boot firmware (586+)."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="http://ipxe.org/"
TARBALL="$PACKAGE-$VERSION"
WGET_URL="http://cook.slitaz.org/cooker.cgi?download=../wok/$PACKAGE/taz/$PACKAGE-$VERSION/fs/boot/ipxe"
TARGET="i486"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/boot
	cp $SOURCES_REPOSITORY/$TARBALL $fs/boot/$PACKAGE
}

# Post install/remove commands for Tazpkg.
post_install()
{
	grep -qs ^ipxe $1/boot/bootmenu ||
	echo "ipxe	IPXE,web,zeb,pxe	SliTaz web boot (may run under DOS, in real mode or with emm386, if renamed to ipxe.exe)" >> $1/boot/bootmenu
}