SUMMARY="A WPA Supplicant with support for WPA and WPA2" DESCRIPTION=" wpa_supplicant is a WPA Supplicant for Linux, BSD, macOS, Windows, and Haiku \ 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="https://w1.fi/wpa_supplicant/" COPYRIGHT="2003-2022 Jouni Malinen" LICENSE="BSD (2-clause) GNU GPL v2" REVISION="1" srcGitRev="9120a9107871e43829b4107a2deee7d73278f98d" SOURCE_URI="https://github.com/haiku/wpa_supplicant/archive/$srcGitRev.tar.gz" CHECKSUM_SHA256="2c6107a2b81b4ce8c07f88e507df67ec01bca74336ac7d85dd34848011bd8a4d" SOURCE_DIR="wpa_supplicant-$srcGitRev" PATCHES="wpa_supplicant-2.10-gcc2.patch" ARCHITECTURES="all" PROVIDES=" wpa_supplicant = $portVersion compat >= 2 cmd:wpa_supplicant = $portVersion compat >= 2 " REQUIRES=" haiku lib:libssl " BUILD_REQUIRES=" devel:libssl " BUILD_PREREQUIRES=" haiku_devel cmd:gcc cmd:ld cmd:make " BUILD() { cd wpa_supplicant make wpa_supplicant } INSTALL() { cd wpa_supplicant mkdir -p $binDir cp -v wpa_supplicant $binDir appSig=$(catattr -r BEOS:APP_SIG wpa_supplicant | cut -f2 -d"/") localeFolder=$dataDir/locale/catalogs mkdir -p $localeFolder/$appSig for file in wpa_gui-haiku/locales/*.catkeys; do catLang=$(basename $file .catkeys) echo "Linking $catLang.catalog..." linkcatkeys -o $localeFolder/$appSig/$catLang.catalog \ -s "application/$appSig" -l $catLang "$file" done }