]> git.pld-linux.org Git - packages/hostapd.git/blob - hostapd.spec
- use %service and adapterize
[packages/hostapd.git] / hostapd.spec
1 #
2 # TODO:         check madwifi-ng-devel and madwifi-devel BR
3 #
4 Summary:        HostAP - acts as an access point
5 Summary(es):    HostAP - actúa como un punto de acceso
6 Summary(pl):    HostAP - praca jako access point
7 Name:           hostapd
8 Version:        0.5.2
9 Release:        1
10 License:        GPL v2
11 Group:          Daemons
12 Source0:        http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
13 # Source0-md5:  b7f4739ca4758798f8dc3b1ea9fd00d0
14 Source1:        %{name}.init
15 Patch0:         %{name}-config.patch
16 Patch1:         %{name}-build-time-config.patch
17 URL:            http://hostap.epitest.fi/
18 BuildRequires:  madwifi-ng-devel
19 BuildRequires:  rpmbuild(macros) >= 1.268
20 Requires(post,preun):   /sbin/chkconfig
21 Requires:       kernel-net-hostap >= 0.1.2
22 Requires:       rc-scripts
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This package contains utilities and userspace daemon for the Linux
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.
35
36 %description -l es
37 Este paquete contiene unas herramientas y un servidor del espacio de
38 usuario para tarjetas LAN inalámbricas basadas en el chipset Intersil
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,
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
45 IBSS.
46
47 %description -l pl
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
51 GT/Duette/Indigo (Prism54), Atheros ar521x (madwifi). Sterownik
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
56 IBSS.
57
58 %prep
59 %setup -q
60 %patch0 -p1
61 %patch1 -p1
62
63 %build
64 %{__make}
65 # TODO: optflags
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{hostap,pcmcia}}
70 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
71
72 #hostapd hostapd_cli nt_password_hash hlr_auc_gw
73 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hostapd
74 install hostapd $RPM_BUILD_ROOT/sbin
75 install hostapd_cli $RPM_BUILD_ROOT/sbin
76 install nt_password_hash $RPM_BUILD_ROOT/sbin
77 install hlr_auc_gw $RPM_BUILD_ROOT/sbin
78
79 #hostapd configuration
80 install hostapd.accept $RPM_BUILD_ROOT%{_sysconfdir}/hostap
81 install hostapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/hostap
82 install hostapd.deny $RPM_BUILD_ROOT%{_sysconfdir}/hostap
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post
88 /sbin/chkconfig --add hostapd
89 %service hostapd restart "HostAP daemons"
90
91 %preun
92 if [ "$1" = "0" ]; then
93         %service hostapd stop
94         /sbin/chkconfig --del hostapd
95 fi
96
97 %files
98 %defattr(644,root,root,755)
99 %doc ChangeLog README
100 %dir %{_sysconfdir}/hostap
101 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/*
102 %attr(755,root,root) /sbin/*
103 %attr(754,root,root) /etc/rc.d/init.d/hostapd
This page took 0.031751 seconds and 3 git commands to generate.