Testing hostapd, the IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
Here is my hostapd.conf attached. View hostapd.conf.

The Openssl way:

[builder@ex SPECS]$ rpmbuild -ba --target i686-pc-linux-gnu hostapd.spec > hostapd.log 2>&1
[builder@ex SPECS]$ tail hostapd.log
Requires: /bin/sh libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.3) libcrypto.so.7 libnl.so.1 libssl.so.7 rtld(GNU_HASH)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/builder/BUILDROOT/hostapd-0.6.9-1.fc10.i386
Wrote: /home/builder/rpm/SRPMS/hostapd-0.6.9-1.fc10.src.rpm
Wrote: /home/builder/rpm/RPMS/i686/hostapd-0.6.9-1.fc10.i686.rpm
Executing(%clean): /bin/sh -e /home/builder/rpm/TMP/rpm-tmp.u6souT
+ umask 022
+ cd /home/builder/rpm/BUILD
+ cd hostapd-0.6.9
+ /bin/rm -rf /home/builder/BUILDROOT/hostapd-0.6.9-1.fc10.i386
+ exit 0
[builder@ex SPECS]$

Here are the hostapd-0.6.9-1.fc10.src.rpm and hostapd-0.6.9-1.fc10.i686.rpm attached.


The Gnutls way:

[builder@ex SPECS]$ rpmbuild -ba --target i686-pc-linux-gnu --define '_tls gnutls' hostapd.spec > hostapd.log 2>&1
[builder@ex SPECS]$ tail hostapd.log
Requires: /bin/sh libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.3) libgcrypt.so.11 libgcrypt.so.11(GCRYPT_1.2) libgnutls.so.26 libgnutls.so.26(GNUTLS_1_4) libgpg-error.so.0 libnl.so.1 rtld(GNU_HASH)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/builder/BUILDROOT/hostapd-0.6.9-1.fc10.i386
Wrote: /home/builder/rpm/SRPMS/hostapd-0.6.9-1.fc10.src.rpm
Wrote: /home/builder/rpm/RPMS/i686/hostapd-0.6.9-1.fc10.i686.rpm
Executing(%clean): /bin/sh -e /home/builder/rpm/TMP/rpm-tmp.cs4HOn
+ umask 022
+ cd /home/builder/rpm/BUILD
+ cd hostapd-0.6.9
+ /bin/rm -rf /home/builder/BUILDROOT/hostapd-0.6.9-1.fc10.i386
+ exit 0
[builder@ex SPECS]$


One will install it:

[root@ex ~]# rpm -ihv /home/builder/rpm/RPMS/i686/hostapd-0.6.9-1.fc10.i686.rpm
Preparing...                ########################################### [100%]
   1:hostapd                ########################################### [100%]
[root@ex ~]#


[root@ex ~]# rpm -ql hostapd
/etc/hostapd.conf
/etc/rc.d/init.d/hostapd
/etc/sysconfig/hostapd
/usr/sbin/hostapd
/usr/sbin/hostapd_cli
/usr/share/doc/hostapd-0.6.9
/usr/share/doc/hostapd-0.6.9/COPYING
/usr/share/doc/hostapd-0.6.9/README
/usr/share/man/man8/hostapd.8.gz
/var/run/hostapd
[root@ex ~]#



[root@ex ~]# service hostapd start
Starting hostapd: Configuration file: /etc/hostapd.conf
ctrl_interface_group=0
eapol_version=2
Opening raw packet socket for ifindex 3
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
eth0: IEEE 802.11 Fetching hardware channel/rate support not supported.
Flushing old station entries
Deauthenticate all stations
Mode: IEEE 802.11a  Channel: 60  Frequency: 0 MHz
Using interface eth0 with hwaddr 00:xx:xx:xx:xx:xx and ssid 'test'
eth0: RADIUS Authentication server 127.0.0.1:1812
RADIUS local address: 127.0.0.1:9336
Using existing control interface directory.
eth0: Setup of interface done.
                                                           [  OK  ]
[root@ex ~]#




2009.05.12    Michael    mclroy@gmail.com
Subpages (3): cert files hostapd.spec