# SliTaz package receipt.

PACKAGE="wireless_tools"
VERSION="29"
CATEGORY="system-tools"
SHORT_DESC="Wireless Tools for Linux"
MAINTAINER="erjo@slitaz.org"
DEPENDS=""
SUGGESTED="linux-wireless"
TARBALL="${PACKAGE}.${VERSION}.tar.gz"
WEB_SITE="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html"
WGET_URL="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/$TARBALL"
TAGS="wireless"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	make PREFIX=$PWD/_pkg/usr
	make PREFIX=$PWD/_pkg/usr install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/share/applications
	cp -a $_pkg/usr/sbin $fs/usr
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
}

post_install()
{
	echo "You may need to install linux-wireless to have wireless network drivers."
	echo "Or install tazndis to use Windows drivers."
}
# Rules to clean extras dirs or files
clean_wok()
{
	rm -rf $WOK/$PACKAGE/${PACKAGE}.${VERSION}
}