]> git.pld-linux.org Git - packages/hostapd.git/blame - hostapd.spec
- release 3 (by relup.sh)
[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
cc4d3e06 7Version: 1.1
788d4246 8Release: 3
7f5cb6c4 9License: GPL v2 or BSD
c83bc4f5 10Group: Daemons
11Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
cc4d3e06 12# Source0-md5: e3ace8306d066ab2d24b4c9f668e2dd7
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
d764f339 67%{__make} -C hostapd \
58fa11a2 68 all nt_password_hash hlr_auc_gw \
69 V=1 \
2fcbed0b 70 CC="%{__cc}" \
878752c8 71 OPTCFLAGS="%{rpmcflags} %{rpmcppflags} `pkg-config --cflags libnl-3.0`" \
7f5cb6c4 72 LDFLAGS="%{rpmcflags} %{rpmldflags}"
c9b6aa9a 73
c83bc4f5 74%install
75rm -rf $RPM_BUILD_ROOT
c83bc4f5 76install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{hostap,pcmcia}}
77install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
78
d764f339 79# hostapd hostapd_cli nt_password_hash hlr_auc_gw
a485f685
ER
80install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hostapd
81install -p hostapd/hostapd $RPM_BUILD_ROOT/sbin
82install -p hostapd/hostapd_cli $RPM_BUILD_ROOT/sbin
83install -p hostapd/nt_password_hash $RPM_BUILD_ROOT/sbin
84install -p hostapd/hlr_auc_gw $RPM_BUILD_ROOT/sbin
c83bc4f5 85
d764f339 86# hostapd configuration
a485f685
ER
87cp -a hostapd/hostapd.accept $RPM_BUILD_ROOT%{_sysconfdir}/hostap
88cp -a hostapd/hostapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/hostap
89cp -a hostapd/hostapd.deny $RPM_BUILD_ROOT%{_sysconfdir}/hostap
c83bc4f5 90
faf313f4
JB
91%clean
92rm -rf $RPM_BUILD_ROOT
93
c83bc4f5 94%post
95/sbin/chkconfig --add hostapd
a485f685 96%service hostapd restart "HostAP Daemon"
c83bc4f5 97
98%preun
99if [ "$1" = "0" ]; then
a2a0fac5 100 %service hostapd stop
c83bc4f5 101 /sbin/chkconfig --del hostapd
102fi
103
c83bc4f5 104%files
105%defattr(644,root,root,755)
7f5cb6c4 106%doc 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
This page took 0.050975 seconds and 4 git commands to generate.