]>
Commit | Line | Data |
---|---|---|
f36f7094 | 1 | # |
a2a0fac5 | 2 | # TODO: check madwifi-ng-devel and madwifi-devel BR |
f36f7094 | 3 | # |
c83bc4f5 | 4 | Summary: HostAP - acts as an access point |
3a1ff280 JR |
5 | Summary(es.UTF-8): HostAP - actúa como un punto de acceso |
6 | Summary(pl.UTF-8): HostAP - praca jako access point | |
c83bc4f5 | 7 | Name: hostapd |
5b11fa57 | 8 | Version: 0.5.7 |
faf313f4 | 9 | Release: 1 |
a2a0fac5 | 10 | License: GPL v2 |
c83bc4f5 | 11 | Group: Daemons |
12 | Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz | |
5b11fa57 | 13 | # Source0-md5: d5113247dc6ee17106e6bc7cb89aa507 |
c83bc4f5 | 14 | Source1: %{name}.init |
d8e88466 | 15 | Patch0: %{name}-config.patch |
f36f7094 | 16 | Patch1: %{name}-build-time-config.patch |
c83bc4f5 | 17 | URL: http://hostap.epitest.fi/ |
f36f7094 | 18 | BuildRequires: madwifi-ng-devel |
a2a0fac5 | 19 | BuildRequires: rpmbuild(macros) >= 1.268 |
faf313f4 | 20 | Requires(post,preun): /sbin/chkconfig |
874aca65 | 21 | Requires: kernel-net-hostap >= 0.1.2 |
86311832 | 22 | Requires: rc-scripts |
2a75f8bb | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c83bc4f5 | 24 | |
25 | %description | |
26 | This package contains utilities and userspace daemon for the Linux | |
a2a0fac5 | 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 | |
34 | IBSS. | |
c83bc4f5 | 35 | |
3a1ff280 | 36 | %description -l es.UTF-8 |
c83bc4f5 | 37 | Este paquete contiene unas herramientas y un servidor del espacio de |
3a1ff280 | 38 | usuario para tarjetas LAN inalámbricas basadas en el chipset Intersil |
a2a0fac5 | 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, | |
3a1ff280 JR |
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 | |
a2a0fac5 | 45 | IBSS. |
c83bc4f5 | 46 | |
3a1ff280 JR |
47 | %description -l pl.UTF-8 |
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 | |
a2a0fac5 | 51 | GT/Duette/Indigo (Prism54), Atheros ar521x (madwifi). Sterownik |
3a1ff280 JR |
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 | |
a2a0fac5 | 56 | IBSS. |
c83bc4f5 | 57 | |
58 | %prep | |
59 | %setup -q | |
04bc77b5 | 60 | %patch0 -p1 |
f36f7094 | 61 | %patch1 -p1 |
faf313f4 | 62 | |
c83bc4f5 | 63 | %build |
2fcbed0b | 64 | %{__make} \ |
65 | CC="%{__cc}" \ | |
66 | OPT="%{rpmcflags}" | |
c83bc4f5 | 67 | |
c9b6aa9a | 68 | %{__make} nt_password_hash \ |
69 | CC="%{__cc}" \ | |
70 | OPT="%{rpmcflags}" | |
71 | ||
72 | %{__make} hlr_auc_gw \ | |
73 | CC="%{__cc}" | |
74 | OPT="%{rpmcflags}" | |
75 | ||
c83bc4f5 | 76 | %install |
77 | rm -rf $RPM_BUILD_ROOT | |
c83bc4f5 | 78 | install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{hostap,pcmcia}} |
79 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d | |
80 | ||
f36f7094 | 81 | #hostapd hostapd_cli nt_password_hash hlr_auc_gw |
c83bc4f5 | 82 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hostapd |
83 | install hostapd $RPM_BUILD_ROOT/sbin | |
f36f7094 | 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 | |
c83bc4f5 | 87 | |
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 | |
92 | ||
faf313f4 JB |
93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
c83bc4f5 | 96 | %post |
97 | /sbin/chkconfig --add hostapd | |
a2a0fac5 | 98 | %service hostapd restart "HostAP daemons" |
c83bc4f5 | 99 | |
100 | %preun | |
101 | if [ "$1" = "0" ]; then | |
a2a0fac5 | 102 | %service hostapd stop |
c83bc4f5 | 103 | /sbin/chkconfig --del hostapd |
104 | fi | |
105 | ||
c83bc4f5 | 106 | %files |
107 | %defattr(644,root,root,755) | |
0fb98269 | 108 | %doc ChangeLog README |
c83bc4f5 | 109 | %dir %{_sysconfdir}/hostap |
86311832 | 110 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/* |
f36f7094 | 111 | %attr(755,root,root) /sbin/* |
c83bc4f5 | 112 | %attr(754,root,root) /etc/rc.d/init.d/hostapd |