CHANGELOG 2006-01-25
[hdw-linux/hdw-linux.git] / packages / hackbard / hostap / hostap
1 # hdw - linux hostap package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 0.4.7
6 # [S] 3-9
7 # [D] hostap-driver-0.4.7.tar.gz http://hostap.epitest.fi/releases/
8 # [D] hostap-utils-0.4.7.tar.gz http://hostap.epitest.fi/releases/
9 # [D] hostapd-0.4.7.tar.gz http://hostap.epitest.fi/releases/
10
11 # hint: hostap drivers now in 2.6 kernel tree
12
13 make_conf="KERNEL_PATH=$prefix/src/linux $make_conf"
14 install_conf="KERNEL_PATH=$prefix/src/linux $install_conf"
15
16 post_install()  {
17         # hostap driver
18         rm -rf $docdir ; mkdir -p $docdir
19         cp README $docdir/README.driver
20         # utils & hostapd
21         tar --use-compress-program=gunzip -xvf \
22                 $archdir/hostap-utils-${ver}.tar.gz -C ../
23         cd ../hostap-utils-$ver
24         make
25         cp prism2_srec hostap_crypt_conf hostap_diag hostap_io_debug \
26                 hostap_rid $prefix/sbin
27         cp prism2_param $docdir
28         cp README $docdir/README.utils
29         tar --use-compress-program=gunzip -xvf \
30                 $archdir/hostapd-${ver}.tar.gz -C ../
31         cd ../hostapd-$ver
32         sed 's%usr/local%usr%g' Makefile > tmp~ && mv tmp~ Makefile
33         sed 's%#CONFIG_DRIVER_WIRED=y%CONFIG_DRIVER_WIRED=y%' defconfig > \
34                 .config
35         make
36         make install
37         cp README $docdir/README.hostapd
38                 }