kind: manual
depends:
- foundation.bst
- connectivity/libnl.bst
sources:
- kind: git
  url: upstream:hostap
  track: hostap_2_6
  ref: 2462f347bca0a7cce7e06ff88adbe3aa47c52d54
config:
  configure-commands:
  - |
    cat >"wpa_supplicant/.config" <<EOF
    CONFIG_DRIVER_HOSTAP=y
    CONFIG_DRIVER_ATMEL=y
    CONFIG_DRIVER_WEXT=y
    CONFIG_DRIVER_NL80211=y
    CONFIG_DRIVER_WIRED=y
    CONFIG_IEEE8021X_EAPOL=y
    CONFIG_EAP_MD5=y
    CONFIG_EAP_MSCHAPV2=y
    CONFIG_EAP_TLS=y
    CONFIG_EAP_PEAP=y
    CONFIG_EAP_TTLS=y
    CONFIG_EAP_GTC=y
    CONFIG_EAP_OTP=y
    CONFIG_EAP_LEAP=y
    CONFIG_WPS=y
    CONFIG_PKCS12=y
    CONFIG_SMARTCARD=y
    CONFIG_CTRL_IFACE=y
    CONFIG_BACKEND=file
    CONFIG_PEERKEY=y
    CONFIG_CTRL_IFACE_DBUS=y
    CONFIG_CTRL_IFACE_DBUS_NEW=y
    CONFIG_CTRL_IFACE_DBUS_INTRO=y
    CONFIG_LIBNL32=y
    CONFIG_IPV6=y
    CFLAGS += -I/usr/include/libnl3
    EOF
  build-commands:
  - make -C wpa_supplicant
  install-commands:
  - make -C wpa_supplicant DESTDIR="%{install-root}" install
