2007-01-15 23:41:30 +00:00
|
|
|
#
|
2011-09-01 13:15:22 +00:00
|
|
|
# spec file for package wpa_supplicant
|
2007-01-15 23:41:30 +00:00
|
|
|
#
|
2018-07-20 11:57:19 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:41:30 +00:00
|
|
|
#
|
2008-09-02 10:16:58 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-11 12:23:42 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:41:30 +00:00
|
|
|
#
|
|
|
|
|
2008-03-11 17:11:21 +00:00
|
|
|
|
2016-02-18 12:03:21 +00:00
|
|
|
Name: wpa_supplicant
|
2016-10-06 16:48:36 +00:00
|
|
|
Version: 2.6
|
2012-03-18 18:10:56 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: WPA supplicant implementation
|
2018-07-20 11:57:19 +00:00
|
|
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
2007-01-15 23:41:30 +00:00
|
|
|
Group: Productivity/Networking/Other
|
2018-11-02 13:28:04 +00:00
|
|
|
URL: http://hostap.epitest.fi/wpa_supplicant/
|
2013-04-25 10:55:41 +00:00
|
|
|
Source: http://hostap.epitest.fi/releases/wpa_supplicant-%{version}.tar.gz
|
2007-01-15 23:41:30 +00:00
|
|
|
Source1: config
|
2007-11-14 13:55:48 +00:00
|
|
|
Source2: %{name}.conf
|
|
|
|
Source3: fi.epitest.hostap.WPASupplicant.service
|
2009-09-10 10:52:36 +00:00
|
|
|
Source4: logrotate.wpa_supplicant
|
2011-04-19 15:15:05 +00:00
|
|
|
Source5: fi.w1.wpa_supplicant1.service
|
2016-12-23 11:47:42 +00:00
|
|
|
Source6: wpa_supplicant.service
|
2016-12-23 12:48:31 +00:00
|
|
|
Source7: wpa_supplicant@.service
|
2009-05-06 16:55:20 +00:00
|
|
|
# wpa_supplicant-flush-debug-output.patch won't go upstream as it might
|
|
|
|
# change timings
|
2008-08-04 11:02:45 +00:00
|
|
|
Patch1: wpa_supplicant-flush-debug-output.patch
|
2009-05-06 16:55:20 +00:00
|
|
|
# wpa_supplicant-sigusr1-changes-debuglevel.patch won't go upstream as it
|
|
|
|
# is not portable
|
2008-08-04 11:02:45 +00:00
|
|
|
Patch2: wpa_supplicant-sigusr1-changes-debuglevel.patch
|
2016-02-18 12:32:42 +00:00
|
|
|
Patch3: wpa_supplicant-alloc_size.patch
|
2016-02-18 15:55:55 +00:00
|
|
|
Patch4: wpa_supplicant-getrandom.patch
|
2016-10-06 16:48:36 +00:00
|
|
|
Patch5: wpa_supplicant-dump-certificate-as-PEM-in-debug-mode.diff
|
2017-10-17 09:12:00 +00:00
|
|
|
Patch10: rebased-v2.6-0001-hostapd-Avoid-key-reinstallation-in-FT-handshake.patch
|
|
|
|
Patch11: rebased-v2.6-0002-Prevent-reinstallation-of-an-already-in-use-group-ke.patch
|
|
|
|
Patch12: rebased-v2.6-0003-Extend-protection-of-GTK-IGTK-reinstallation-of-WNM-.patch
|
|
|
|
Patch13: rebased-v2.6-0004-Prevent-installation-of-an-all-zero-TK.patch
|
|
|
|
Patch14: rebased-v2.6-0005-Fix-PTK-rekeying-to-generate-a-new-ANonce.patch
|
|
|
|
Patch15: rebased-v2.6-0006-TDLS-Reject-TPK-TK-reconfiguration.patch
|
|
|
|
Patch16: rebased-v2.6-0007-WNM-Ignore-WNM-Sleep-Mode-Response-without-pending-r.patch
|
|
|
|
Patch17: rebased-v2.6-0008-FT-Do-not-allow-multiple-Reassociation-Response-fram.patch
|
2018-07-20 11:57:19 +00:00
|
|
|
Patch18: wpa_supplicant-bnc-1099835-fix-private-key-password.patch
|
|
|
|
Patch19: wpa_supplicant-bnc-1099835-clear-default_passwd_cb.patch
|
2018-10-11 12:23:42 +00:00
|
|
|
Patch20: rebased-v2.6-0009-WPA-Ignore-unauthenticated-encrypted-EAPOL-Key-data.patch
|
2018-10-16 07:35:51 +00:00
|
|
|
Patch21: wpa_supplicant-log-file-permission.patch
|
|
|
|
Patch22: wpa_supplicant-log-file-cloexec.patch
|
2018-10-16 06:39:10 +00:00
|
|
|
Patch23: wpa_supplicant-git-fa67debf4c6ddbc881a212b175faa6d5d0d90c8c.patch
|
|
|
|
Patch24: wpa_supplicant-git-f5b74b966c942feb95a8ddbb7d130540b15b796d.patch
|
2016-07-22 06:38:28 +00:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: systemd-rpm-macros
|
2016-02-20 18:00:59 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
2016-07-22 06:38:28 +00:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
BuildRequires: pkgconfig(libnl-3.0)
|
2009-09-10 10:52:36 +00:00
|
|
|
Requires: logrotate
|
2016-07-22 06:38:28 +00:00
|
|
|
%{?systemd_requires}
|
2007-01-15 23:41:30 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
wpa_supplicant is an implementation of the WPA Supplicant component,
|
|
|
|
i.e., the part that runs in the client stations. It implements key
|
|
|
|
negotiation with a WPA Authenticator and it controls the roaming and
|
|
|
|
IEEE 802.11 authentication/association of the wlan driver.
|
|
|
|
|
|
|
|
%package gui
|
|
|
|
Summary: WPA supplicant graphical front-end
|
|
|
|
Group: System/Monitoring
|
2012-03-18 18:10:56 +00:00
|
|
|
Requires: wpa_supplicant
|
2007-01-15 23:41:30 +00:00
|
|
|
|
|
|
|
%description gui
|
|
|
|
This package contains a graphical front-end to wpa_supplicant, an
|
|
|
|
implementation of the WPA Supplicant component.
|
|
|
|
|
|
|
|
%prep
|
2010-02-11 18:44:15 +00:00
|
|
|
%setup -q -n wpa_supplicant-%{version}
|
|
|
|
rm -rf wpa_supplicant-%{version}/patches
|
2008-08-04 11:02:45 +00:00
|
|
|
cp %{SOURCE1} wpa_supplicant/.config
|
2016-02-18 12:03:21 +00:00
|
|
|
%patch1
|
2014-06-16 08:51:03 +00:00
|
|
|
%patch2 -p1
|
2015-04-24 10:21:08 +00:00
|
|
|
%patch3 -p1
|
2016-02-18 15:55:55 +00:00
|
|
|
%patch4 -p1
|
2016-10-06 16:48:36 +00:00
|
|
|
%patch5 -p1
|
2017-10-17 09:12:00 +00:00
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
|
|
|
%patch16 -p1
|
|
|
|
%patch17 -p1
|
2018-07-20 11:57:19 +00:00
|
|
|
%patch18 -p1
|
|
|
|
%patch19 -p1
|
2018-10-11 12:23:42 +00:00
|
|
|
%patch20 -p1
|
2018-10-12 07:03:14 +00:00
|
|
|
%patch21 -p1
|
|
|
|
%patch22 -p1
|
2018-10-16 06:39:10 +00:00
|
|
|
%patch23 -p1
|
|
|
|
%patch24 -p1
|
2016-07-22 06:38:28 +00:00
|
|
|
|
2007-01-15 23:41:30 +00:00
|
|
|
%build
|
2008-08-04 11:02:45 +00:00
|
|
|
cd wpa_supplicant
|
2016-02-18 12:03:21 +00:00
|
|
|
CFLAGS="%{optflags}" make V=1 %{?_smp_mflags}
|
2018-10-16 06:39:10 +00:00
|
|
|
CFLAGS="%{optflags}" make V=1 %{?_smp_mflags} eapol_test
|
2007-11-14 13:55:48 +00:00
|
|
|
cd wpa_gui-qt4
|
2016-07-22 06:38:28 +00:00
|
|
|
%qmake5
|
2011-10-10 15:19:43 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:41:30 +00:00
|
|
|
|
|
|
|
%install
|
2007-11-14 13:55:48 +00:00
|
|
|
install -d %{buildroot}/%{_sbindir}
|
2008-08-04 11:02:45 +00:00
|
|
|
install -m 0755 wpa_supplicant/wpa_cli %{buildroot}%{_sbindir}
|
|
|
|
install -m 0755 wpa_supplicant/wpa_passphrase %{buildroot}%{_sbindir}
|
|
|
|
install -m 0755 wpa_supplicant/wpa_supplicant %{buildroot}%{_sbindir}
|
2018-10-16 06:39:10 +00:00
|
|
|
install -m 0755 wpa_supplicant/eapol_test %{buildroot}%{_sbindir}
|
2007-11-14 13:55:48 +00:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/dbus-1/system.d
|
2010-02-11 18:44:15 +00:00
|
|
|
install -m 0644 wpa_supplicant/dbus/dbus-wpa_supplicant.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
|
2007-11-14 13:55:48 +00:00
|
|
|
install -d %{buildroot}/%{_sysconfdir}/%{name}
|
|
|
|
install -m 0600 %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name}
|
|
|
|
install -d %{buildroot}/%{_datadir}/dbus-1/system-services
|
|
|
|
install -m 0644 %{SOURCE3} %{buildroot}/%{_datadir}/dbus-1/system-services
|
2011-04-19 15:15:05 +00:00
|
|
|
install -m 0644 %{SOURCE5} %{buildroot}/%{_datadir}/dbus-1/system-services
|
2009-09-10 10:52:36 +00:00
|
|
|
install -d %{buildroot}/%{_sysconfdir}/logrotate.d/
|
|
|
|
install -m 644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/logrotate.d/wpa_supplicant
|
2014-05-11 05:24:49 +00:00
|
|
|
install -d %{buildroot}/%{_rundir}/%{name}
|
2007-11-14 13:55:48 +00:00
|
|
|
install -d %{buildroot}%{_mandir}/man{5,8}
|
2008-08-04 11:02:45 +00:00
|
|
|
install -m 0644 wpa_supplicant/doc/docbook/*.8 %{buildroot}%{_mandir}/man8
|
2018-10-16 06:39:10 +00:00
|
|
|
# wpa_supplicant is built without CONFIG_PRIVSEP
|
2015-04-16 14:56:34 +00:00
|
|
|
rm %{buildroot}%{_mandir}/man8/wpa_priv.*
|
2008-08-04 11:02:45 +00:00
|
|
|
install -m 0644 wpa_supplicant/doc/docbook/*.5 %{buildroot}%{_mandir}/man5
|
|
|
|
install -m 755 wpa_supplicant/wpa_gui-qt4/wpa_gui %{buildroot}%{_sbindir}
|
2013-09-10 10:51:20 +00:00
|
|
|
install -d %{buildroot}%{_unitdir}
|
|
|
|
install -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}
|
2016-12-23 12:48:31 +00:00
|
|
|
install -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}
|
2016-07-22 06:38:28 +00:00
|
|
|
ln -s service %{buildroot}/%{_sbindir}/rcwpa_supplicant
|
2014-09-18 12:43:12 +00:00
|
|
|
# avoid spurious dependency on /usr/bin/python
|
|
|
|
chmod -x wpa_supplicant/examples/*.py
|
2016-02-18 12:03:21 +00:00
|
|
|
# dbus auto activation boo#966535
|
2016-12-23 11:47:42 +00:00
|
|
|
ln -s wpa_supplicant.service %{buildroot}%{_unitdir}/dbus-fi.epitest.hostap.WPASupplicant.service
|
|
|
|
ln -s wpa_supplicant.service %{buildroot}%{_unitdir}/dbus-fi.w1.wpa_supplicant1.service
|
2013-09-10 10:51:20 +00:00
|
|
|
|
|
|
|
%pre
|
2016-12-23 11:47:42 +00:00
|
|
|
%service_add_pre wpa_supplicant.service
|
2013-09-10 10:51:20 +00:00
|
|
|
|
|
|
|
%post
|
2016-12-23 11:47:42 +00:00
|
|
|
%service_add_post wpa_supplicant.service
|
2013-09-10 10:51:20 +00:00
|
|
|
|
|
|
|
%preun
|
2016-12-23 11:47:42 +00:00
|
|
|
%service_del_preun wpa_supplicant.service
|
2013-09-10 10:51:20 +00:00
|
|
|
|
|
|
|
%postun
|
2016-12-23 11:47:42 +00:00
|
|
|
%service_del_postun wpa_supplicant.service
|
2007-01-15 23:41:30 +00:00
|
|
|
|
|
|
|
%files
|
2018-11-02 13:28:04 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc wpa_supplicant/ChangeLog README wpa_supplicant/todo.txt wpa_supplicant/examples wpa_supplicant/wpa_supplicant.conf
|
2018-10-16 06:39:10 +00:00
|
|
|
%{_sbindir}/eapol_test
|
2016-07-22 06:38:28 +00:00
|
|
|
%{_sbindir}/rcwpa_supplicant
|
2007-01-15 23:41:30 +00:00
|
|
|
%{_sbindir}/wpa_cli
|
|
|
|
%{_sbindir}/wpa_passphrase
|
|
|
|
%{_sbindir}/wpa_supplicant
|
2007-11-14 13:55:48 +00:00
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/%{name}.conf
|
|
|
|
%{_datadir}/dbus-1/system-services
|
|
|
|
%config %{_sysconfdir}/%{name}/%{name}.conf
|
2009-09-10 10:52:36 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/wpa_supplicant
|
2014-05-11 05:24:49 +00:00
|
|
|
%dir %{_rundir}/%{name}
|
|
|
|
%ghost %{_rundir}/%{name}
|
2016-12-23 11:47:42 +00:00
|
|
|
%{_unitdir}/wpa_supplicant.service
|
2016-12-23 12:48:31 +00:00
|
|
|
%{_unitdir}/wpa_supplicant@.service
|
2016-02-18 12:03:21 +00:00
|
|
|
%{_unitdir}/dbus-fi.epitest.hostap.WPASupplicant.service
|
|
|
|
%{_unitdir}/dbus-fi.w1.wpa_supplicant1.service
|
2007-11-14 13:55:48 +00:00
|
|
|
%dir %{_sysconfdir}/%{name}
|
2016-02-18 12:03:21 +00:00
|
|
|
%{_mandir}/man8/*
|
2015-04-16 14:56:34 +00:00
|
|
|
%exclude %{_mandir}/man8/wpa_gui.*
|
2016-02-18 12:03:21 +00:00
|
|
|
%{_mandir}/man5/*
|
2007-01-15 23:41:30 +00:00
|
|
|
|
|
|
|
%files gui
|
2016-02-18 12:03:21 +00:00
|
|
|
%{_sbindir}/wpa_gui
|
2016-07-22 06:38:28 +00:00
|
|
|
%{_mandir}/man8/wpa_gui*
|
2007-12-19 00:08:58 +00:00
|
|
|
|
2007-03-13 00:07:10 +00:00
|
|
|
%changelog
|