]>
Commit | Line | Data |
---|---|---|
c83bc4f5 | 1 | Summary: HostAP - acts as an access point |
64ea1939 ER |
2 | Summary(es.UTF-8): HostAP - actúa como un punto de acceso |
3 | Summary(pl.UTF-8): HostAP - praca jako access point | |
c83bc4f5 | 4 | Name: hostapd |
0760ac2d | 5 | Version: 2.6 |
b1b08872 | 6 | Release: 1 |
0760ac2d | 7 | License: BSD |
c83bc4f5 | 8 | Group: Daemons |
4bd340f2 | 9 | Source0: http://w1.fi/releases/%{name}-%{version}.tar.gz |
0760ac2d | 10 | # Source0-md5: eaa56dce9bd8f1d195eb62596eab34c7 |
c83bc4f5 | 11 | Source1: %{name}.init |
d8e88466 | 12 | Patch0: %{name}-config.patch |
f36f7094 | 13 | Patch1: %{name}-build-time-config.patch |
4bd340f2 | 14 | URL: http://w1.fi/ |
7f5cb6c4 | 15 | BuildRequires: libnl-devel >= 1:3.2 |
0760ac2d | 16 | BuildRequires: openssl-devel >= 1.0.2 |
a2a0fac5 | 17 | BuildRequires: rpmbuild(macros) >= 1.268 |
58fa11a2 | 18 | BuildRequires: sed >= 4.0 |
0760ac2d | 19 | BuildRequires: sqlite3-devel >= 3 |
faf313f4 | 20 | Requires(post,preun): /sbin/chkconfig |
0760ac2d | 21 | Requires: openssl >= 1.0.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 |
878752c8 | 62 | |
58fa11a2 | 63 | %{__sed} '/CFLAGS =/{s/-g//; s/-O2/$(OPTCFLAGS)/}' -i hostapd/Makefile |
faf313f4 | 64 | |
c83bc4f5 | 65 | %build |
b1b08872 | 66 | %{__make} -C hostapd all nt_password_hash hlr_auc_gw \ |
58fa11a2 | 67 | V=1 \ |
2fcbed0b | 68 | CC="%{__cc}" \ |
b1b08872 | 69 | OPTCFLAGS="%{rpmcflags} %{rpmcppflags}" \ |
7f5cb6c4 | 70 | LDFLAGS="%{rpmcflags} %{rpmldflags}" |
c9b6aa9a | 71 | |
c83bc4f5 | 72 | %install |
73 | rm -rf $RPM_BUILD_ROOT | |
b1b08872 | 74 | install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{hostap,pcmcia},%{_mandir}/man{1,8}} |
c83bc4f5 | 75 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
76 | ||
d764f339 | 77 | # hostapd hostapd_cli nt_password_hash hlr_auc_gw |
a485f685 ER |
78 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hostapd |
79 | install -p hostapd/hostapd $RPM_BUILD_ROOT/sbin | |
80 | install -p hostapd/hostapd_cli $RPM_BUILD_ROOT/sbin | |
81 | install -p hostapd/nt_password_hash $RPM_BUILD_ROOT/sbin | |
82 | install -p hostapd/hlr_auc_gw $RPM_BUILD_ROOT/sbin | |
b1b08872 JB |
83 | cp -p hostapd/hostapd.8 $RPM_BUILD_ROOT%{_mandir}/man8 |
84 | cp -p hostapd/hostapd_cli.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
c83bc4f5 | 85 | |
d764f339 | 86 | # hostapd configuration |
a485f685 ER |
87 | cp -a hostapd/hostapd.accept $RPM_BUILD_ROOT%{_sysconfdir}/hostap |
88 | cp -a hostapd/hostapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/hostap | |
89 | cp -a hostapd/hostapd.deny $RPM_BUILD_ROOT%{_sysconfdir}/hostap | |
c83bc4f5 | 90 | |
faf313f4 JB |
91 | %clean |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
c83bc4f5 | 94 | %post |
95 | /sbin/chkconfig --add hostapd | |
a485f685 | 96 | %service hostapd restart "HostAP Daemon" |
c83bc4f5 | 97 | |
98 | %preun | |
99 | if [ "$1" = "0" ]; then | |
a2a0fac5 | 100 | %service hostapd stop |
c83bc4f5 | 101 | /sbin/chkconfig --del hostapd |
102 | fi | |
103 | ||
c83bc4f5 | 104 | %files |
105 | %defattr(644,root,root,755) | |
0760ac2d | 106 | %doc COPYING hostapd/{ChangeLog,README,README-WPS} |
c83bc4f5 | 107 | %dir %{_sysconfdir}/hostap |
7f5cb6c4 JB |
108 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/hostapd.accept |
109 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/hostapd.conf | |
110 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/hostapd.deny | |
111 | %attr(755,root,root) /sbin/hlr_auc_gw | |
112 | %attr(755,root,root) /sbin/hostapd | |
113 | %attr(755,root,root) /sbin/hostapd_cli | |
114 | %attr(755,root,root) /sbin/nt_password_hash | |
c83bc4f5 | 115 | %attr(754,root,root) /etc/rc.d/init.d/hostapd |
b1b08872 JB |
116 | %{_mandir}/man1/hostapd_cli.1* |
117 | %{_mandir}/man8/hostapd.8* |