]> git.pld-linux.org Git - packages/hostapd.git/blame - hostapd.spec
- converted to UTF-8
[packages/hostapd.git] / hostapd.spec
CommitLineData
f36f7094 1#
a2a0fac5 2# TODO: check madwifi-ng-devel and madwifi-devel BR
f36f7094 3#
c83bc4f5 4Summary: HostAP - acts as an access point
3a1ff280
JR
5Summary(es.UTF-8): HostAP - actúa como un punto de acceso
6Summary(pl.UTF-8): HostAP - praca jako access point
c83bc4f5 7Name: hostapd
5b11fa57 8Version: 0.5.7
faf313f4 9Release: 1
a2a0fac5 10License: GPL v2
c83bc4f5 11Group: Daemons
12Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
5b11fa57 13# Source0-md5: d5113247dc6ee17106e6bc7cb89aa507
c83bc4f5 14Source1: %{name}.init
d8e88466 15Patch0: %{name}-config.patch
f36f7094 16Patch1: %{name}-build-time-config.patch
c83bc4f5 17URL: http://hostap.epitest.fi/
f36f7094 18BuildRequires: madwifi-ng-devel
a2a0fac5 19BuildRequires: rpmbuild(macros) >= 1.268
faf313f4 20Requires(post,preun): /sbin/chkconfig
874aca65 21Requires: kernel-net-hostap >= 0.1.2
86311832 22Requires: rc-scripts
2a75f8bb 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c83bc4f5 24
25%description
26This package contains utilities and userspace daemon for the Linux
a2a0fac5 27driver for wireless LAN cards based on Intersil's Prism2/2.5/3,
28Intersil/Conexant Prism GT/Duette/Indigo (Prism54), Atheros ar521x
29(madwifi) chipsets. The driver supports a so called Host AP mode,
30i.e., it takes care of IEEE 802.11 management functions in the host
31computer and acts as an access point. This does not require any
32special firmware for the wireless LAN card. In addition to this, it
33has support for normal station operations in BSS and possible also in
34IBSS.
c83bc4f5 35
3a1ff280 36%description -l es.UTF-8
c83bc4f5 37Este paquete contiene unas herramientas y un servidor del espacio de
3a1ff280 38usuario para tarjetas LAN inalámbricas basadas en el chipset Intersil
a2a0fac5 39Prism2/2.5/3, Intersil/Conexant Prism GT/Duette/Indigo (Prism54),
40Atheros ar521x (madwifi). El driver soporta el llamado modo Host AP,
41es decir, se encarga de las funciones administrativas el el host,
3a1ff280
JR
42actuando como "access point". Ello no requiere ningún firmware
43especial para la tarjeta LAN inalámbrica. Además, también hay soporte
44para operaciones normales de estación en BSS y posiblemente también en
a2a0fac5 45IBSS.
c83bc4f5 46
3a1ff280
JR
47%description -l pl.UTF-8
48Ten pakiet zawiera narzędzia oraz demona działającego w przestrzeni
49użytkownika dla linuksowego sterownika kart sieci bezprzewodowych
50opartych na układach Intersil Prism2/2.5/3, Intersil/Conexant Prism
a2a0fac5 51GT/Duette/Indigo (Prism54), Atheros ar521x (madwifi). Sterownik
3a1ff280
JR
52obsługuje tak zwany tryb Host AP, czyli dba o funkcje zarządzające
53IEEE 802.11 na komputerze i działa jako access point. Nie wymaga to
54żadnego specjalnego firmware dla karty sieci bezprzewodowej. Ponadto
55ma obsługę normalnych operacji stacyjnych w BSS, a być może także
a2a0fac5 56IBSS.
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
77rm -rf $RPM_BUILD_ROOT
c83bc4f5 78install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{hostap,pcmcia}}
79install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
80
f36f7094 81#hostapd hostapd_cli nt_password_hash hlr_auc_gw
c83bc4f5 82install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hostapd
83install hostapd $RPM_BUILD_ROOT/sbin
f36f7094 84install hostapd_cli $RPM_BUILD_ROOT/sbin
85install nt_password_hash $RPM_BUILD_ROOT/sbin
86install hlr_auc_gw $RPM_BUILD_ROOT/sbin
c83bc4f5 87
88#hostapd configuration
89install hostapd.accept $RPM_BUILD_ROOT%{_sysconfdir}/hostap
90install hostapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/hostap
91install hostapd.deny $RPM_BUILD_ROOT%{_sysconfdir}/hostap
92
faf313f4
JB
93%clean
94rm -rf $RPM_BUILD_ROOT
95
c83bc4f5 96%post
97/sbin/chkconfig --add hostapd
a2a0fac5 98%service hostapd restart "HostAP daemons"
c83bc4f5 99
100%preun
101if [ "$1" = "0" ]; then
a2a0fac5 102 %service hostapd stop
c83bc4f5 103 /sbin/chkconfig --del hostapd
104fi
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
This page took 0.057554 seconds and 4 git commands to generate.