]> git.pld-linux.org Git - packages/hostapd.git/blob - hostapd.spec
- 0.5.5-1 rel
[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.5
9 Release:        1
10 License:        GPL v2
11 Group:          Daemons
12 Source0:        http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
13 # Source0-md5:  92288aeb2b90c0c81ae3f50beff9b890
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         CC="%{__cc}" \
66         OPT="%{rpmcflags}"
67
68 %{__make} nt_password_hash \
69         CC="%{__cc}" \
70         OPT="%{rpmcflags}"
71
72 %{__make} hlr_auc_gw \
73         CC="%{__cc}" 
74         OPT="%{rpmcflags}"
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{hostap,pcmcia}}
79 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
80
81 #hostapd hostapd_cli nt_password_hash hlr_auc_gw
82 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hostapd
83 install hostapd $RPM_BUILD_ROOT/sbin
84 install hostapd_cli $RPM_BUILD_ROOT/sbin
85 install nt_password_hash $RPM_BUILD_ROOT/sbin
86 install hlr_auc_gw $RPM_BUILD_ROOT/sbin
87
88 #hostapd configuration
89 install hostapd.accept $RPM_BUILD_ROOT%{_sysconfdir}/hostap
90 install hostapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/hostap
91 install hostapd.deny $RPM_BUILD_ROOT%{_sysconfdir}/hostap
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post
97 /sbin/chkconfig --add hostapd
98 %service hostapd restart "HostAP daemons"
99
100 %preun
101 if [ "$1" = "0" ]; then
102         %service hostapd stop
103         /sbin/chkconfig --del hostapd
104 fi
105
106 %files
107 %defattr(644,root,root,755)
108 %doc ChangeLog README
109 %dir %{_sysconfdir}/hostap
110 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/*
111 %attr(755,root,root) /sbin/*
112 %attr(754,root,root) /etc/rc.d/init.d/hostapd
This page took 0.069033 seconds and 4 git commands to generate.