]> git.pld-linux.org Git - packages/hostapd.git/blame - hostapd.spec
- up to 2.3
[packages/hostapd.git] / hostapd.spec
CommitLineData
9e45a30f
ER
1# TODO
2# - check madwifi-ng-devel and madwifi-devel BR -- ???
c83bc4f5 3Summary: HostAP - acts as an access point
64ea1939
ER
4Summary(es.UTF-8): HostAP - actúa como un punto de acceso
5Summary(pl.UTF-8): HostAP - praca jako access point
c83bc4f5 6Name: hostapd
0a2b0f6b 7Version: 2.3
b1b08872 8Release: 1
7f5cb6c4 9License: GPL v2 or BSD
c83bc4f5 10Group: Daemons
11Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
0a2b0f6b 12# Source0-md5: 40b89c61036add0c2dd1fc10767d3b5f
c83bc4f5 13Source1: %{name}.init
d8e88466 14Patch0: %{name}-config.patch
f36f7094 15Patch1: %{name}-build-time-config.patch
c83bc4f5 16URL: http://hostap.epitest.fi/
7f5cb6c4 17BuildRequires: libnl-devel >= 1:3.2
f36f7094 18BuildRequires: madwifi-ng-devel
bf8257d5 19BuildRequires: openssl-devel
a2a0fac5 20BuildRequires: rpmbuild(macros) >= 1.268
58fa11a2 21BuildRequires: sed >= 4.0
faf313f4 22Requires(post,preun): /sbin/chkconfig
86311832 23Requires: rc-scripts
2a75f8bb 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c83bc4f5 25
26%description
27This package contains utilities and userspace daemon for the Linux
a2a0fac5 28driver for wireless LAN cards based on Intersil's Prism2/2.5/3,
29Intersil/Conexant Prism GT/Duette/Indigo (Prism54), Atheros ar521x
30(madwifi) chipsets. The driver supports a so called Host AP mode,
31i.e., it takes care of IEEE 802.11 management functions in the host
32computer and acts as an access point. This does not require any
33special firmware for the wireless LAN card. In addition to this, it
34has support for normal station operations in BSS and possible also in
35IBSS.
c83bc4f5 36
3a1ff280 37%description -l es.UTF-8
c83bc4f5 38Este paquete contiene unas herramientas y un servidor del espacio de
3a1ff280 39usuario para tarjetas LAN inalámbricas basadas en el chipset Intersil
a2a0fac5 40Prism2/2.5/3, Intersil/Conexant Prism GT/Duette/Indigo (Prism54),
41Atheros ar521x (madwifi). El driver soporta el llamado modo Host AP,
42es decir, se encarga de las funciones administrativas el el host,
3a1ff280
JR
43actuando como "access point". Ello no requiere ningún firmware
44especial para la tarjeta LAN inalámbrica. Además, también hay soporte
45para operaciones normales de estación en BSS y posiblemente también en
a2a0fac5 46IBSS.
c83bc4f5 47
3a1ff280
JR
48%description -l pl.UTF-8
49Ten pakiet zawiera narzędzia oraz demona działającego w przestrzeni
50użytkownika dla linuksowego sterownika kart sieci bezprzewodowych
51opartych na układach Intersil Prism2/2.5/3, Intersil/Conexant Prism
a2a0fac5 52GT/Duette/Indigo (Prism54), Atheros ar521x (madwifi). Sterownik
3a1ff280
JR
53obsługuje tak zwany tryb Host AP, czyli dba o funkcje zarządzające
54IEEE 802.11 na komputerze i działa jako access point. Nie wymaga to
55żadnego specjalnego firmware dla karty sieci bezprzewodowej. Ponadto
56ma obsługę normalnych operacji stacyjnych w BSS, a być może także
a2a0fac5 57IBSS.
c83bc4f5 58
59%prep
60%setup -q
04bc77b5 61%patch0 -p1
f36f7094 62%patch1 -p1
878752c8 63
58fa11a2 64%{__sed} '/CFLAGS =/{s/-g//; s/-O2/$(OPTCFLAGS)/}' -i hostapd/Makefile
faf313f4 65
c83bc4f5 66%build
b1b08872 67%{__make} -C hostapd all nt_password_hash hlr_auc_gw \
58fa11a2 68 V=1 \
2fcbed0b 69 CC="%{__cc}" \
b1b08872 70 OPTCFLAGS="%{rpmcflags} %{rpmcppflags}" \
7f5cb6c4 71 LDFLAGS="%{rpmcflags} %{rpmldflags}"
c9b6aa9a 72
c83bc4f5 73%install
74rm -rf $RPM_BUILD_ROOT
b1b08872 75install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{hostap,pcmcia},%{_mandir}/man{1,8}}
c83bc4f5 76install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
77
d764f339 78# hostapd hostapd_cli nt_password_hash hlr_auc_gw
a485f685
ER
79install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hostapd
80install -p hostapd/hostapd $RPM_BUILD_ROOT/sbin
81install -p hostapd/hostapd_cli $RPM_BUILD_ROOT/sbin
82install -p hostapd/nt_password_hash $RPM_BUILD_ROOT/sbin
83install -p hostapd/hlr_auc_gw $RPM_BUILD_ROOT/sbin
b1b08872
JB
84cp -p hostapd/hostapd.8 $RPM_BUILD_ROOT%{_mandir}/man8
85cp -p hostapd/hostapd_cli.1 $RPM_BUILD_ROOT%{_mandir}/man1
c83bc4f5 86
d764f339 87# hostapd configuration
a485f685
ER
88cp -a hostapd/hostapd.accept $RPM_BUILD_ROOT%{_sysconfdir}/hostap
89cp -a hostapd/hostapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/hostap
90cp -a hostapd/hostapd.deny $RPM_BUILD_ROOT%{_sysconfdir}/hostap
c83bc4f5 91
faf313f4
JB
92%clean
93rm -rf $RPM_BUILD_ROOT
94
c83bc4f5 95%post
96/sbin/chkconfig --add hostapd
a485f685 97%service hostapd restart "HostAP Daemon"
c83bc4f5 98
99%preun
100if [ "$1" = "0" ]; then
a2a0fac5 101 %service hostapd stop
c83bc4f5 102 /sbin/chkconfig --del hostapd
103fi
104
c83bc4f5 105%files
106%defattr(644,root,root,755)
7f5cb6c4 107%doc hostapd/{ChangeLog,README,README-WPS}
c83bc4f5 108%dir %{_sysconfdir}/hostap
7f5cb6c4
JB
109%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/hostapd.accept
110%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/hostapd.conf
111%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/hostapd.deny
112%attr(755,root,root) /sbin/hlr_auc_gw
113%attr(755,root,root) /sbin/hostapd
114%attr(755,root,root) /sbin/hostapd_cli
115%attr(755,root,root) /sbin/nt_password_hash
c83bc4f5 116%attr(754,root,root) /etc/rc.d/init.d/hostapd
b1b08872
JB
117%{_mandir}/man1/hostapd_cli.1*
118%{_mandir}/man8/hostapd.8*
This page took 0.083699 seconds and 4 git commands to generate.