#
# author: hackbard@hackdaworld.dyndns.org
#
-# [V] 0.4.1
+# [V] 0.4.7
# [S] 3-9
-# [D] hostap-driver-0.4.1.tar.gz http://hostap.epitest.fi/releases/
-## [D] hostap-utils-0.1.3.tar.gz http://hostap.epitest.fi/releases/
-## [D] hostapd-0.1.3.tar.gz http://hostap.epitest.fi/releases/
+# [D] hostap-driver-0.4.7.tar.gz http://hostap.epitest.fi/releases/
+# [D] hostap-utils-0.4.7.tar.gz http://hostap.epitest.fi/releases/
+# [D] hostapd-0.4.7.tar.gz http://hostap.epitest.fi/releases/
+
+# hint: hostap drivers now in 2.6 kernel tree
make_conf="KERNEL_PATH=$prefix/src/linux $make_conf"
install_conf="KERNEL_PATH=$prefix/src/linux $install_conf"
post_install() {
+ # hostap driver
rm -rf $docdir ; mkdir -p $docdir
- cp README $docdir
-}
+ cp README $docdir/README.driver
+ # utils & hostapd
+ tar --use-compress-program=gunzip -xvf \
+ $archdir/hostap-utils-${ver}.tar.gz -C ../
+ cd ../hostap-utils-$ver
+ make
+ cp prism2_srec hostap_crypt_conf hostap_diag hostap_io_debug \
+ hostap_rid $prefix/sbin
+ cp prism2_param $docdir
+ cp README $docdir/README.utils
+ tar --use-compress-program=gunzip -xvf \
+ $archdir/hostapd-${ver}.tar.gz -C ../
+ cd ../hostapd-$ver
+ sed 's%usr/local%usr%g' Makefile > tmp~ && mv tmp~ Makefile
+ sed 's%#CONFIG_DRIVER_WIRED=y%CONFIG_DRIVER_WIRED=y%' defconfig > \
+ .config
+ make
+ make install
+ cp README $docdir/README.hostapd
+ }