mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
927 B

  1. srcdir="wpa_supplicant-0.6.4/wpa_supplicant"
  2. wpa_supplicant_preconf()
  3. {
  4. cp defconfig .config
  5. if pkginstalled openssl ; then
  6. sed -i -e 's,^#\(CONFIG_EAP_TLS=y\),\1,' \
  7. -e 's,^#\(CONFIG_EAP_PEAP=y\),\1,' \
  8. -e 's,^#\(CONFIG_EAP_TTLS=y\),\1,' .config
  9. fi
  10. if pkginstalled pcsc-lite ; then
  11. sed -i -e 's,^#\(CONFIG_EAP_PCSC=y\),\1,' \
  12. -e 's,^#\(CONFIG_EAP_SIM=y\),\1,' \
  13. -e 's,^#\(CONFIG_EAP_AKA=y\),\1,' .config
  14. fi
  15. if pkginstalled atmelwlandriver ; then
  16. sed -i -e 's,^#\(CONFIG_DRIVER_ATMEL=y\),\1,' .config
  17. fi
  18. }
  19. wpa_supplicant_postmake()
  20. {
  21. if pkginstalled qt3* ; then
  22. make wpa_gui
  23. cp -a wpa_gui/wpa_gui $root/$bindir/
  24. fi
  25. if pkginstalled qt4* ; then
  26. make wpa_gui-qt4
  27. cp -a wpa_gui-qt4/wpa_gui $root/$bindir/wpa_gui-qt4
  28. fi
  29. [ ! -f $root/etc/wpa_supplicant.conf ] && \
  30. cp -a wpa_supplicant.conf $root/etc
  31. }
  32. hook_add preconf 5 wpa_supplicant_preconf
  33. hook_add postmake 5 wpa_supplicant_postmake