]> git.pld-linux.org Git - packages/hostapd.git/blob - hostapd.spec
- 0.2.3
[packages/hostapd.git] / hostapd.spec
1 Summary:        HostAP - acts as an access point
2 Summary(es):    HostAP - actúa como un punto de acceso
3 Summary(pl):    HostAP - praca jako access point
4 Name:           hostapd
5 Version:        0.2.3
6 Release:        1
7 License:        GPL
8 Group:          Daemons
9 Source0:        http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
10 # Source0-md5:  c580d022424ee06c79131e1d2ae9f8ee
11 Source1:        %{name}.init
12 Patch0:         %{name}-config.patch
13 URL:            http://hostap.epitest.fi/
14 PreReq:         rc-scripts
15 Requires(post,preun):   /sbin/chkconfig
16 Requires:       kernel-net-hostap >= 0.1.2
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 This package contains utilities and userspace daemon for the Linux
21 driver for wireless LAN cards based on Intersil's Prism2/2.5/3
22 chipset. The driver supports a so called Host AP mode, i.e., it takes
23 care of IEEE 802.11 management functions in the host computer and acts
24 as an access point. This does not require any special firmware for the
25 wireless LAN card. In addition to this, it has support for normal
26 station operations in BSS and possible also in IBSS.
27
28 %description -l es
29 Este paquete contiene unas herramientas y un servidor del espacio de
30 usuario para tarjetas LAN inalámbricas basadas en el chipset Intersil
31 Prism2/2.5/3. El driver soporta el llamado modo Host AP, es decir, se
32 encarga de las funciones administrativas el el host, actuando como
33 "access point". Ello no requiere ningún firmware especial para la
34 tarjeta LAN inalámbrica. Además, también hay soporte para operaciones
35 normales de estación en BSS y posiblemente también en IBSS.
36
37 %description -l pl
38 Ten pakiet zawiera narzêdzia oraz demona dzia³aj±cego w przestrzeni
39 u¿ytkownika dla linuksowego sterownika kart sieci bezprzewodowych
40 opartych na uk³adach Intersil Prism2/2.5/3. Sterownik obs³uguje tak
41 zwany tryb Host AP, czyli dba o funkcje zarz±dzaj±ce IEEE 802.11 na
42 komputerze i dzia³a jako access point. Nie wymaga to ¿adnego
43 specjalnego firmware dla karty sieci bezprzewodowej. Ponadto ma
44 obs³ugê normalnych operacji stacyjnych w BSS, a byæ mo¿e tak¿e IBSS.
45
46 %prep
47 %setup -q
48 %patch0 -p1
49
50 %build
51 %{__make}
52 # TODO: optflags
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{hostap,pcmcia}}
57 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
58
59 #hostapd
60 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hostapd
61 install hostapd $RPM_BUILD_ROOT/sbin
62
63 #hostapd configuration
64 install hostapd.accept $RPM_BUILD_ROOT%{_sysconfdir}/hostap
65 install hostapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/hostap
66 install hostapd.deny $RPM_BUILD_ROOT%{_sysconfdir}/hostap
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post
72 /sbin/chkconfig --add hostapd
73 if [ -r /var/lock/subsys/hostapd ]; then
74         /etc/rc.d/init.d/hostapd restart >&2
75 else
76         echo "Run \"/etc/rc.d/init.d/hostapd start\" to start HostAP daemons."
77 fi
78
79 %preun
80 if [ "$1" = "0" ]; then
81         if [ -r /var/lock/subsys/hostapd ]; then
82                 /etc/rc.d/init.d/hostapd stop >&2
83         fi
84         /sbin/chkconfig --del hostapd
85 fi
86
87 %files
88 %defattr(644,root,root,755)
89 %doc README
90 %dir %{_sysconfdir}/hostap
91 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/hostap/*
92 %attr(755,root,root) /sbin/hostapd
93 %attr(754,root,root) /etc/rc.d/init.d/hostapd
This page took 0.03213 seconds and 4 git commands to generate.