2 # TODO: check madwifi-ng-devel and madwifi-devel BR
4 Summary: HostAP - acts as an access point
5 Summary(es): HostAP - actúa como un punto de acceso
6 Summary(pl): HostAP - praca jako access point
12 Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
13 # Source0-md5: 92288aeb2b90c0c81ae3f50beff9b890
15 Patch0: %{name}-config.patch
16 Patch1: %{name}-build-time-config.patch
17 URL: http://hostap.epitest.fi/
18 BuildRequires: madwifi-ng-devel
19 BuildRequires: rpmbuild(macros) >= 1.268
20 Requires(post,preun): /sbin/chkconfig
21 Requires: kernel-net-hostap >= 0.1.2
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This package contains utilities and userspace daemon for the Linux
27 driver for wireless LAN cards based on Intersil's Prism2/2.5/3,
28 Intersil/Conexant Prism GT/Duette/Indigo (Prism54), Atheros ar521x
29 (madwifi) chipsets. The driver supports a so called Host AP mode,
30 i.e., it takes care of IEEE 802.11 management functions in the host
31 computer and acts as an access point. This does not require any
32 special firmware for the wireless LAN card. In addition to this, it
33 has support for normal station operations in BSS and possible also in
37 Este paquete contiene unas herramientas y un servidor del espacio de
38 usuario para tarjetas LAN inalámbricas basadas en el chipset Intersil
39 Prism2/2.5/3, Intersil/Conexant Prism GT/Duette/Indigo (Prism54),
40 Atheros ar521x (madwifi). El driver soporta el llamado modo Host AP,
41 es decir, se encarga de las funciones administrativas el el host,
42 actuando como "access point". Ello no requiere ningún firmware
43 especial para la tarjeta LAN inalámbrica. Además, también hay soporte
44 para operaciones normales de estación en BSS y posiblemente también en
48 Ten pakiet zawiera narzêdzia oraz demona dzia³aj±cego w przestrzeni
49 u¿ytkownika dla linuksowego sterownika kart sieci bezprzewodowych
50 opartych na uk³adach Intersil Prism2/2.5/3, Intersil/Conexant Prism
51 GT/Duette/Indigo (Prism54), Atheros ar521x (madwifi). Sterownik
52 obs³uguje tak zwany tryb Host AP, czyli dba o funkcje zarz±dzaj±ce
53 IEEE 802.11 na komputerze i dzia³a jako access point. Nie wymaga to
54 ¿adnego specjalnego firmware dla karty sieci bezprzewodowej. Ponadto
55 ma obs³ugê normalnych operacji stacyjnych w BSS, a byæ mo¿e tak¿e
68 %{__make} nt_password_hash \
72 %{__make} hlr_auc_gw \
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{hostap,pcmcia}}
79 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
81 #hostapd hostapd_cli nt_password_hash hlr_auc_gw
82 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hostapd
83 install hostapd $RPM_BUILD_ROOT/sbin
84 install hostapd_cli $RPM_BUILD_ROOT/sbin
85 install nt_password_hash $RPM_BUILD_ROOT/sbin
86 install hlr_auc_gw $RPM_BUILD_ROOT/sbin
88 #hostapd configuration
89 install hostapd.accept $RPM_BUILD_ROOT%{_sysconfdir}/hostap
90 install hostapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/hostap
91 install hostapd.deny $RPM_BUILD_ROOT%{_sysconfdir}/hostap
94 rm -rf $RPM_BUILD_ROOT
97 /sbin/chkconfig --add hostapd
98 %service hostapd restart "HostAP daemons"
101 if [ "$1" = "0" ]; then
102 %service hostapd stop
103 /sbin/chkconfig --del hostapd
107 %defattr(644,root,root,755)
108 %doc ChangeLog README
109 %dir %{_sysconfdir}/hostap
110 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/*
111 %attr(755,root,root) /sbin/*
112 %attr(754,root,root) /etc/rc.d/init.d/hostapd