Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37865613
en ru br
Репозитории ALT
S:2.10-alt2
5.1: 0.6.9-alt1
4.1: 0.5.10-alt3.M41.1
4.0: 0.5.8-alt1
3.0: 0.3.9-alt2
www.altlinux.org/Changes

Группа :: Безопасность/Сети
Пакет: wpa_supplicant

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_disable privsep

Name: wpa_supplicant
Version: 0.6.9
Release: alt1

Summary: wpa_supplicant is an implementation of the WPA Supplicant component
License: GPL/BSD
Group: Security/Networking
Url: http://hostap.epitest.fi/

Source0: %name-%version-%release.tar
Source1: src-%version-%release.tar

Requires: dbus

BuildRequires(pre): kernel-build-tools >= 0.7
BuildRequires: kernel-source-madwifi libdbus-devel libnl-devel >= 1.1
BuildRequires: docbook-utils libncurses-devel libpcsclite-devel libreadline-devel libssl-devel
BuildRequires: gcc-c++ inkscape libqt4-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.

%package -n wpa_gui
Summary: wpa_supplicant GUI
Group: Security/Networking
Requires: wpa_supplicant = %version-%release

%description -n wpa_gui
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.

This package provides GUI to wpa_supplicant

%prep
%setup -c -a1
mkdir madwifi
tar xf %kernel_src/kernel-source-madwifi-*.tar.* \
   --strip-components=1 --recursive-unlink --directory madwifi

sed -e '' %{?_enable_privsep:-e 's,^.\+CONFIG_PRIVSEP=.\+,CONFIG_PRIVSEP=y,'} \
   < %name/defconfig > %name/.config

%build
make -C %name

%install
install -pm0644 -D %name/%name.conf %buildroot%_sysconfdir/wpa_supplicant.conf
install -pm0644 -D %name/%name.sysconfig %buildroot%_sysconfdir/sysconfig/wpa_supplicant
install -pm0755 -D %name/%name.init %buildroot%_initdir/%name

install -pm0755 -D %name/wpa_supplicant %buildroot%_sbindir/wpa_supplicant
install -pm0755 %name/wpa_cli %buildroot%_sbindir
install -pm0755 -D %name/wpa_gui-qt4/wpa_gui %buildroot%_bindir/wpa_gui

%if_enabled privsep
install -pm0755 %name/wpa_priv %buildroot%_sbindir
%endif

install -pm0755 -D %name/wpa_passphrase %buildroot%_bindir/wpa_passphrase
install -pm0644 -D %name/dbus-wpa_supplicant.conf %buildroot%_sysconfdir/dbus-1/system.d/dbus-%name.conf
install -pm0644 -D %name/dbus-wpa_supplicant.service %buildroot%_datadir/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service

install -pm0644 -D %name/doc/docbook/%name.conf.5 %buildroot%_man5dir/%name.conf.5
install -pm0644 -D %name/doc/docbook/%name.8 %buildroot%_man8dir/%name.8
install -pm0644 %name/doc/docbook/wpa_{cli,passphrase,background,priv}.8 %buildroot%_man8dir

mkdir -p %buildroot%_iconsdir
install -pm0644 -D %name/wpa_gui-qt4/wpa_gui.desktop %buildroot%_desktopdir/wpa_gui.desktop
tar c -C %name/wpa_gui-qt4/icons hicolor |tar x -C %buildroot%_iconsdir

%post
%post_service %name

%preun
%preun_service %name

%files
%doc %name/README %name/ChangeLog %name/examples

%_initdir/%name
%config(noreplace) %attr(0600,root,root) %_sysconfdir/wpa_supplicant.conf
%config(noreplace) %_sysconfdir/sysconfig/wpa_supplicant
%config %_sysconfdir/dbus-1/system.d/dbus-%name.conf

%_datadir/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service

%if_enabled privsep
%_sbindir/wpa_priv
%endif

%_sbindir/wpa_supplicant
%_sbindir/wpa_cli
%_bindir/wpa_passphrase

%_man5dir/wpa_supplicant.conf.*

%_man8dir/wpa_background.*
%_man8dir/wpa_cli.*
%_man8dir/wpa_supplicant.*
%_man8dir/wpa_passphrase.*

%if_enabled privsep
%_man8dir/wpa_priv.*
%endif

%files -n wpa_gui
%_bindir/wpa_gui
%_desktopdir/wpa_gui.desktop
%_liconsdir/wpa_gui.png
%_miconsdir/wpa_gui.png
%_niconsdir/wpa_gui.png

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin