Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37572530
en ru br
ALT Linux repos
S:2.10-alt2
5.0: 0.6.5-alt1
4.1: 0.5.10-alt3.M41.1
4.0: 0.5.8-alt1
3.0: 0.3.9-alt2

Group :: Security/Networking
RPM: wpa_supplicant

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define madwifi_version  0.9.4

Packager: Stanislav Ievlev <inger at altlinux.org>

Name: wpa_supplicant
Version: 0.5.10
Release: alt3.M41.1
License: GPL/BSD
Group: Security/Networking
Summary: wpa_supplicant is an implementation of the WPA Supplicant component
Url: http://hostap.epitest.fi/
Source0: %name-%version.tar
Source1: %name.sysconfig
Source2: %name.init
Source3: %name.config
Source4: dbus-%name.conf
Source5: dbus-%name.service

PreReq: coreutils
PreReq: modutils
Requires: dbus

BuildPreReq: kernel-build-tools >= 0.7 kernel-source-madwifi = %madwifi_version libdbus-devel

# Automatically added by buildreq on Thu May 10 2007

BuildRequires: docbook-utils libncurses-devel libpcsclite-devel libreadline-devel libssl-devel

%description
wpa_supplicant is an implementation of the WPA Supplicant component,
i.e., the part that runs in the client stations. It implements WPA key
negotiation with a WPA Authenticator and EAP authentication with
Authentication Server. In addition, it controls the roaming and IEEE
802.11 authentication/association of the wlan driver.

wpa_supplicant is designed to be a "daemon" program that runs in the
background and acts as the backend component controlling the wireless
connection. wpa_supplicant supports separate frontend programs and an
example text-based frontend, wpa_cli, is included with wpa_supplicant.

%prep

%setup -q

rm -rf kernel-source-madwifi-%madwifi_version
tar -jxvf %kernel_src/kernel-source-madwifi-%madwifi_version.tar.bz2

%build
%__cp %SOURCE3 .config
%__subst 's|-I../madwifi/wpa|-I./kernel-source-madwifi-%madwifi_version|' .config
%__subst 's at \/usr\/lib at %_libdir at ' %name.conf

#utils

%make_build

#docs

cd doc/docbook
   make ||:
cd -

%install
#utils
for i in wpa_supplicant wpa_cli wpa_passphrase; do
   %__install -Dpm755 $i %buildroot/%_sbindir/${i##*/}
done

#docs

cd doc/docbook
   for i in `find . -name '*.[0-9]'`;do
%__install -Dpm 644 $i %buildroot/%_mandir/man${i##*.}/${i##*/}
   done
cd -

#extra

%__install -Dpm644 %name.conf %buildroot%_sysconfdir/%name.conf
%__install -Dpm644 %SOURCE1 %buildroot%_sysconfdir/sysconfig/%name
%__install -Dpm644 %SOURCE2 %buildroot%_initdir/%name
%__install -Dpm644 %SOURCE4 %buildroot%_sysconfdir/dbus-1/system.d/dbus-%name.conf
%__install -Dpm644 %SOURCE5 %buildroot%_datadir/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service

%files
%config(noreplace) %attr(0600,root,root) %_sysconfdir/%name.conf
%config(noreplace) %attr(0600,root,root) %_sysconfdir/sysconfig/*
%config %_sysconfdir/dbus-1/system.d/dbus-%name.conf
%config %_datadir/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service

%_initdir/%name
%_sbindir/*
%_man5dir/*
%_man8dir/*
%doc COPYING README ChangeLog

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin