SUMMARY="A WPA Supplicant with support for WPA and WPA2"
DESCRIPTION="
wpa_supplicant is a WPA Supplicant for Linux, BSD, Mac OS X, and Windows with \
support for WPA and WPA2 (IEEE 802.11i / RSN). It is suitable for both \
desktop/laptop computers and embedded systems. Supplicant is the IEEE \
802.1X/WPA component that is used in the client stations. It implements key \
negotiation with a WPA Authenticator and it controls the roaming and IEEE \
802.11 authentication/association of the wlan driver.
"
HOMEPAGE="http://hostap.epitest.fi/wpa_supplicant/"
SRC_URI="http://hostap.epitest.fi/releases/wpa_supplicant-2.0.tar.gz"
CHECKSUM_SHA256="2c115609fbb5223d51381084a5c944455a8afcda81d584173ff55ba233379e09"
LICENSE="
	BSD (2-clause)
	GNU GPL v2
	"
COPYRIGHT="2003-2012 Jouni Malinen"
REVISION="3"
ARCHITECTURES="x86_gcc2 x86 x86_64"

PATCHES="wpa_supplicant-2.0.patch"

PROVIDES="
	wpa_supplicant = $portVersion compat >= 2
	cmd:wpa_supplicant = $portVersion compat >= 2
	"
REQUIRES="
	haiku >= $haikuVersion
	lib:libssl
	"
BUILD_REQUIRES="
	devel:libssl >= 1.0.0
	"
BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:gcc
	cmd:ld
	cmd:make
	"


BUILD()
{
	cd wpa_supplicant
	CFLAGS="-MMD -O2 -Wall" make wpa_supplicant
}

INSTALL()
{
	cd wpa_supplicant
	mkdir -p $binDir
	cp -v wpa_supplicant $binDir
}
