]> git.pld-linux.org Git - packages/hostapd.git/blobdiff - hostapd.spec
- release 2
[packages/hostapd.git] / hostapd.spec
index 3d8a19b2ed0c8749838affb06eebaf5702e0269b..daeb1a8bca6e87e6ea43b42bd211866d119e7147 100644 (file)
+# TODO
+# - check madwifi-ng-devel and madwifi-devel BR -- ???
 Summary:       HostAP - acts as an access point
-Summary(es):   HostAP - actúa como un punto de acceso
-Summary(pl):   HostAP - praca jako access point
+Summary(es.UTF-8):     HostAP - actúa como un punto de acceso
+Summary(pl.UTF-8):     HostAP - praca jako access point
 Name:          hostapd
-Version:       0.2.5
-Release:       1
-License:       GPL
+Version:       0.7.0
+Release:       2
+License:       GPL v2
 Group:         Daemons
 Source0:       http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
-# Source0-md5: 4714f9f405001be1e14c63c985eaa7e8
+# Source0-md5: 04ae8c7dfc895420dcd32992471a15c4
 Source1:       %{name}.init
 Patch0:                %{name}-config.patch
+Patch1:                %{name}-build-time-config.patch
 URL:           http://hostap.epitest.fi/
+BuildRequires: libnl-devel
+BuildRequires: madwifi-ng-devel
+BuildRequires: openssl-devel
+BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: sed >= 4.0
 Requires(post,preun):  /sbin/chkconfig
-Requires:      kernel-net-hostap >= 0.1.2
 Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 This package contains utilities and userspace daemon for the Linux
-driver for wireless LAN cards based on Intersil's Prism2/2.5/3
-chipset. The driver supports a so called Host AP mode, i.e., it takes
-care of IEEE 802.11 management functions in the host computer and acts
-as an access point. This does not require any special firmware for the
-wireless LAN card. In addition to this, it has support for normal
-station operations in BSS and possible also in IBSS.
+driver for wireless LAN cards based on Intersil's Prism2/2.5/3,
+Intersil/Conexant Prism GT/Duette/Indigo (Prism54), Atheros ar521x
+(madwifi) chipsets. The driver supports a so called Host AP mode,
+i.e., it takes care of IEEE 802.11 management functions in the host
+computer and acts as an access point. This does not require any
+special firmware for the wireless LAN card. In addition to this, it
+has support for normal station operations in BSS and possible also in
+IBSS.
 
-%description -l es
+%description -l es.UTF-8
 Este paquete contiene unas herramientas y un servidor del espacio de
-usuario para tarjetas LAN inalámbricas basadas en el chipset Intersil
-Prism2/2.5/3. El driver soporta el llamado modo Host AP, es decir, se
-encarga de las funciones administrativas el el host, actuando como
-"access point". Ello no requiere ningún firmware especial para la
-tarjeta LAN inalámbrica. Además, también hay soporte para operaciones
-normales de estación en BSS y posiblemente también en IBSS.
+usuario para tarjetas LAN inalámbricas basadas en el chipset Intersil
+Prism2/2.5/3, Intersil/Conexant Prism GT/Duette/Indigo (Prism54),
+Atheros ar521x (madwifi). El driver soporta el llamado modo Host AP,
+es decir, se encarga de las funciones administrativas el el host,
+actuando como "access point". Ello no requiere ningún firmware
+especial para la tarjeta LAN inalámbrica. Además, también hay soporte
+para operaciones normales de estación en BSS y posiblemente también en
+IBSS.
 
-%description -l pl
-Ten pakiet zawiera narzêdzia oraz demona dzia³aj±cego w przestrzeni
-u¿ytkownika dla linuksowego sterownika kart sieci bezprzewodowych
-opartych na uk³adach Intersil Prism2/2.5/3. Sterownik obs³uguje tak
-zwany tryb Host AP, czyli dba o funkcje zarz±dzaj±ce IEEE 802.11 na
-komputerze i dzia³a jako access point. Nie wymaga to ¿adnego
-specjalnego firmware dla karty sieci bezprzewodowej. Ponadto ma
-obs³ugê normalnych operacji stacyjnych w BSS, a byæ mo¿e tak¿e IBSS.
+%description -l pl.UTF-8
+Ten pakiet zawiera narzędzia oraz demona działającego w przestrzeni
+użytkownika dla linuksowego sterownika kart sieci bezprzewodowych
+opartych na układach Intersil Prism2/2.5/3, Intersil/Conexant Prism
+GT/Duette/Indigo (Prism54), Atheros ar521x (madwifi). Sterownik
+obsługuje tak zwany tryb Host AP, czyli dba o funkcje zarządzające
+IEEE 802.11 na komputerze i działa jako access point. Nie wymaga to
+żadnego specjalnego firmware dla karty sieci bezprzewodowej. Ponadto
+ma obsługę normalnych operacji stacyjnych w BSS, a być może także
+IBSS.
 
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%{__sed} '/CFLAGS =/{s/-g//; s/-O2/$(OPTCFLAGS)/}' -i hostapd/Makefile
+%{__sed} '/NOBJS =/s@../src/crypto/rc4.o@../src/utils/wpabuf.o ../src/utils/wpa_debug.o@' -i hostapd/Makefile
 
 %build
-%{__make}
-# TODO: optflags
+%{__make} -C hostapd \
+       all nt_password_hash hlr_auc_gw \
+       V=1 \
+       CC="%{__cc}" \
+       OPTCFLAGS="%{rpmcflags}" \
+       LDFLAGS="%{rpmcflags} %{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{hostap,pcmcia}}
 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 
-#hostapd
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hostapd
-install hostapd $RPM_BUILD_ROOT/sbin
+# hostapd hostapd_cli nt_password_hash hlr_auc_gw
+install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hostapd
+install -p hostapd/hostapd $RPM_BUILD_ROOT/sbin
+install -p hostapd/hostapd_cli $RPM_BUILD_ROOT/sbin
+install -p hostapd/nt_password_hash $RPM_BUILD_ROOT/sbin
+install -p hostapd/hlr_auc_gw $RPM_BUILD_ROOT/sbin
 
-#hostapd configuration
-install hostapd.accept $RPM_BUILD_ROOT%{_sysconfdir}/hostap
-install hostapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/hostap
-install hostapd.deny $RPM_BUILD_ROOT%{_sysconfdir}/hostap
+# hostapd configuration
+cp -a hostapd/hostapd.accept $RPM_BUILD_ROOT%{_sysconfdir}/hostap
+cp -a hostapd/hostapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/hostap
+cp -a hostapd/hostapd.deny $RPM_BUILD_ROOT%{_sysconfdir}/hostap
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add hostapd
-if [ -r /var/lock/subsys/hostapd ]; then
-       /etc/rc.d/init.d/hostapd restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/hostapd start\" to start HostAP daemons."
-fi
+%service hostapd restart "HostAP Daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -r /var/lock/subsys/hostapd ]; then
-               /etc/rc.d/init.d/hostapd stop >&2
-       fi
+       %service hostapd stop
        /sbin/chkconfig --del hostapd
 fi
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README
+%doc hostapd/ChangeLog hostapd/README
 %dir %{_sysconfdir}/hostap
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostap/*
-%attr(755,root,root) /sbin/hostapd
+%attr(755,root,root) /sbin/*
 %attr(754,root,root) /etc/rc.d/init.d/hostapd
This page took 0.039938 seconds and 4 git commands to generate.