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.

21 lines
550 B

  1. hostap_postmake() {
  2. if [ $( echo $PWD | grep "[wpa_supplicant|hostapd|hostap-util]" ) ]; then
  3. find $PWD -perm 755 -type f -exec cp -vp '{}' /usr/sbin/ \;
  4. fi
  5. if [ $( echo $PWD | grep hostap-driver ) ]; then
  6. make install
  7. fi
  8. }
  9. hostap_premake() {
  10. if [ $( echo $PWD | grep wpa_supplicant ) ]; then
  11. make mkconfig
  12. fi
  13. if [ $( echo $PWD | grep hostap-driver ) ]; then
  14. patch -p1 <$confdir/hostap-driver_nodepmod.diff
  15. fi
  16. }
  17. realmakeinstopt=$makeinstopt
  18. makeinstopt=""
  19. hook_add postmake 3 "hostap_postmake"
  20. hook_add premake 3 "hostap_premake"