]> git.pld-linux.org Git - packages/hostapd.git/blame - hostapd.spec
fix build flags application; rel 2
[packages/hostapd.git] / hostapd.spec
CommitLineData
5588f8df
JP
1#
2# Conditional build:
3%bcond_without systemd # don't package systemd units
4
c83bc4f5 5Summary: HostAP - acts as an access point
64ea1939
ER
6Summary(es.UTF-8): HostAP - actúa como un punto de acceso
7Summary(pl.UTF-8): HostAP - praca jako access point
c83bc4f5 8Name: hostapd
94173213 9Version: 2.10
389389e6 10Release: 2
0760ac2d 11License: BSD
c83bc4f5 12Group: Daemons
c29d4493 13Source0: https://w1.fi/releases/%{name}-%{version}.tar.gz
94173213 14# Source0-md5: 0be43e9e09ab94a7ebf82de0d1c57761
c83bc4f5 15Source1: %{name}.init
5588f8df
JP
16Source2: %{name}.service
17Source3: %{name}@.service
d8e88466 18Patch0: %{name}-config.patch
f36f7094 19Patch1: %{name}-build-time-config.patch
2b2ffb9f 20URL: http://w1.fi/hostapd/
7f5cb6c4 21BuildRequires: libnl-devel >= 1:3.2
0760ac2d 22BuildRequires: openssl-devel >= 1.0.2
26c6c5bc 23BuildRequires: pkgconfig
a2a0fac5 24BuildRequires: rpmbuild(macros) >= 1.268
58fa11a2 25BuildRequires: sed >= 4.0
0760ac2d 26BuildRequires: sqlite3-devel >= 3
faf313f4 27Requires(post,preun): /sbin/chkconfig
0760ac2d 28Requires: openssl >= 1.0.2
86311832 29Requires: rc-scripts
5588f8df 30%{?with_systemd:Requires: systemd-units >= 38}
2a75f8bb 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c83bc4f5 32
33%description
34This package contains utilities and userspace daemon for the Linux
a2a0fac5 35driver for wireless LAN cards based on Intersil's Prism2/2.5/3,
36Intersil/Conexant Prism GT/Duette/Indigo (Prism54), Atheros ar521x
37(madwifi) chipsets. The driver supports a so called Host AP mode,
38i.e., it takes care of IEEE 802.11 management functions in the host
39computer and acts as an access point. This does not require any
40special firmware for the wireless LAN card. In addition to this, it
41has support for normal station operations in BSS and possible also in
42IBSS.
c83bc4f5 43
3a1ff280 44%description -l es.UTF-8
c83bc4f5 45Este paquete contiene unas herramientas y un servidor del espacio de
3a1ff280 46usuario para tarjetas LAN inalámbricas basadas en el chipset Intersil
a2a0fac5 47Prism2/2.5/3, Intersil/Conexant Prism GT/Duette/Indigo (Prism54),
48Atheros ar521x (madwifi). El driver soporta el llamado modo Host AP,
49es decir, se encarga de las funciones administrativas el el host,
3a1ff280
JR
50actuando como "access point". Ello no requiere ningún firmware
51especial para la tarjeta LAN inalámbrica. Además, también hay soporte
52para operaciones normales de estación en BSS y posiblemente también en
a2a0fac5 53IBSS.
c83bc4f5 54
3a1ff280
JR
55%description -l pl.UTF-8
56Ten pakiet zawiera narzędzia oraz demona działającego w przestrzeni
57użytkownika dla linuksowego sterownika kart sieci bezprzewodowych
58opartych na układach Intersil Prism2/2.5/3, Intersil/Conexant Prism
a2a0fac5 59GT/Duette/Indigo (Prism54), Atheros ar521x (madwifi). Sterownik
3a1ff280
JR
60obsługuje tak zwany tryb Host AP, czyli dba o funkcje zarządzające
61IEEE 802.11 na komputerze i działa jako access point. Nie wymaga to
62żadnego specjalnego firmware dla karty sieci bezprzewodowej. Ponadto
63ma obsługę normalnych operacji stacyjnych w BSS, a być może także
a2a0fac5 64IBSS.
c83bc4f5 65
66%prep
67%setup -q
04bc77b5 68%patch0 -p1
f36f7094 69%patch1 -p1
878752c8 70
c83bc4f5 71%build
389389e6
JP
72CFLAGS="%{rpmcflags} %{rpmcppflags}" \
73LDFLAGS="%{rpmldflags}" \
b1b08872 74%{__make} -C hostapd all nt_password_hash hlr_auc_gw \
58fa11a2 75 V=1 \
2fcbed0b 76 CC="%{__cc}" \
c9b6aa9a 77
c83bc4f5 78%install
79rm -rf $RPM_BUILD_ROOT
b1b08872 80install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{hostap,pcmcia},%{_mandir}/man{1,8}}
c83bc4f5 81install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
82
d764f339 83# hostapd hostapd_cli nt_password_hash hlr_auc_gw
a485f685 84install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hostapd
5588f8df
JP
85%if %{with systemd}
86install -pD %{SOURCE2} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
87install -pD %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}@.service
88%endif
a485f685
ER
89install -p hostapd/hostapd $RPM_BUILD_ROOT/sbin
90install -p hostapd/hostapd_cli $RPM_BUILD_ROOT/sbin
91install -p hostapd/nt_password_hash $RPM_BUILD_ROOT/sbin
92install -p hostapd/hlr_auc_gw $RPM_BUILD_ROOT/sbin
b1b08872
JB
93cp -p hostapd/hostapd.8 $RPM_BUILD_ROOT%{_mandir}/man8
94cp -p hostapd/hostapd_cli.1 $RPM_BUILD_ROOT%{_mandir}/man1
c83bc4f5 95
d764f339 96# hostapd configuration
a485f685
ER
97cp -a hostapd/hostapd.accept $RPM_BUILD_ROOT%{_sysconfdir}/hostap
98cp -a hostapd/hostapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/hostap
99cp -a hostapd/hostapd.deny $RPM_BUILD_ROOT%{_sysconfdir}/hostap
c83bc4f5 100
faf313f4
JB
101%clean
102rm -rf $RPM_BUILD_ROOT
103
c83bc4f5 104%post
105/sbin/chkconfig --add hostapd
a485f685 106%service hostapd restart "HostAP Daemon"
c83bc4f5 107
108%preun
109if [ "$1" = "0" ]; then
a2a0fac5 110 %service hostapd stop
c83bc4f5 111 /sbin/chkconfig --del hostapd
112fi
113
c83bc4f5 114%files
115%defattr(644,root,root,755)
0760ac2d 116%doc COPYING hostapd/{ChangeLog,README,README-WPS}
c83bc4f5 117%dir %{_sysconfdir}/hostap
7f5cb6c4
JB
118%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/hostapd.accept
119%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/hostapd.conf
120%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/hostapd.deny
121%attr(755,root,root) /sbin/hlr_auc_gw
122%attr(755,root,root) /sbin/hostapd
123%attr(755,root,root) /sbin/hostapd_cli
124%attr(755,root,root) /sbin/nt_password_hash
c83bc4f5 125%attr(754,root,root) /etc/rc.d/init.d/hostapd
b1b08872
JB
126%{_mandir}/man1/hostapd_cli.1*
127%{_mandir}/man8/hostapd.8*
5588f8df
JP
128%if %{with systemd}
129%{systemdunitdir}/%{name}.service
130%{systemdunitdir}/%{name}@.service
131%endif
This page took 0.118044 seconds and 4 git commands to generate.