|
@@ -1,7 +1,9 @@
|
|
|
|
+%define build_gui 1
|
|
|
|
+
|
|
Summary: WPA/WPA2/IEEE 802.1X Supplicant
|
|
Summary: WPA/WPA2/IEEE 802.1X Supplicant
|
|
Name: wpa_supplicant
|
|
Name: wpa_supplicant
|
|
-Version: 0.7.3
|
|
+Version: 2.3
|
|
-Release: 3%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
License: BSD
|
|
License: BSD
|
|
Group: System Environment/Base
|
|
Group: System Environment/Base
|
|
URL: http://w1.fi/wpa_supplicant/
|
|
URL: http://w1.fi/wpa_supplicant/
|
|
@@ -13,7 +15,6 @@ Source3: %{name}.init.d
|
|
Source4: %{name}.sysconfig
|
|
Source4: %{name}.sysconfig
|
|
Source6: %{name}.logrotate
|
|
Source6: %{name}.logrotate
|
|
|
|
|
|
-# import from Fedora package
|
|
|
|
# distro specific customization and not suitable for upstream,
|
|
# distro specific customization and not suitable for upstream,
|
|
# works around busted drivers
|
|
# works around busted drivers
|
|
Patch0: wpa_supplicant-assoc-timeout.patch
|
|
Patch0: wpa_supplicant-assoc-timeout.patch
|
|
@@ -24,26 +25,31 @@ Patch1: wpa_supplicant-flush-debug-output.patch
|
|
Patch2: wpa_supplicant-dbus-service-file-args.patch
|
|
Patch2: wpa_supplicant-dbus-service-file-args.patch
|
|
# quiet an annoying and frequent syslog message
|
|
# quiet an annoying and frequent syslog message
|
|
Patch3: wpa_supplicant-quiet-scan-results-message.patch
|
|
Patch3: wpa_supplicant-quiet-scan-results-message.patch
|
|
-# recover from streams of driver disconnect messages (iwl3945)
|
|
|
|
-Patch4: wpa_supplicant-squelch-driver-disconnect-spam.patch
|
|
|
|
# allow more private key encryption algorithms
|
|
# allow more private key encryption algorithms
|
|
Patch5: wpa_supplicant-openssl-more-algs.patch
|
|
Patch5: wpa_supplicant-openssl-more-algs.patch
|
|
-# Send PropertyChanged notificationes when the BSS list changes
|
|
+# distro specific customization for Qt4 build tools, not suitable for upstream
|
|
-Patch7: wpa_supplicant-bss-changed-prop-notify.patch
|
|
+Patch6: wpa_supplicant-gui-qt4.patch
|
|
-# Don't crash trying to pass NULL to dbus
|
|
+# Fix libnl3 includes path
|
|
-Patch8: 0001-dbus-clean-up-new-D-Bus-interface-getters-setters.patch
|
|
+Patch7: libnl3-includes.patch
|
|
|
|
+# Less aggressive roaming; signal strength is wildly variable
|
|
|
|
+Patch8: rh837402-less-aggressive-roaming.patch
|
|
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
+## Vine patches
|
|
|
|
+Patch700: wpa_supplicant-2.3-vineqt4.patch
|
|
|
|
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
+%if %{build_gui}
|
|
BuildRequires: qt4-devel
|
|
BuildRequires: qt4-devel
|
|
-BuildRequires: qt4-designer
|
|
+%endif
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: readline-devel
|
|
BuildRequires: readline-devel
|
|
BuildRequires: dbus-devel
|
|
BuildRequires: dbus-devel
|
|
-BuildRequires: libnl-devel
|
|
+BuildRequires: libnl3-devel
|
|
|
|
+BuildRequires: docbook-utils
|
|
|
|
|
|
-Requires(post): chkconfig
|
|
+Requires(post): /sbin/chkconfig
|
|
-Requires(preun): chkconfig
|
|
+Requires(preun): /sbin/chkconfig /sbin/service
|
|
|
|
+Requires(postun): /sbin/service
|
|
|
|
|
|
%description
|
|
%description
|
|
wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support
|
|
wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support
|
|
@@ -52,9 +58,10 @@ component that is used in the client stations. It implements key negotiation
|
|
with a WPA Authenticator and it controls the roaming and IEEE 802.11
|
|
with a WPA Authenticator and it controls the roaming and IEEE 802.11
|
|
authentication/association of the wlan driver.
|
|
authentication/association of the wlan driver.
|
|
|
|
|
|
|
|
+%if %{build_gui}
|
|
%package gui
|
|
%package gui
|
|
Summary: Graphical User Interface for %{name}
|
|
Summary: Graphical User Interface for %{name}
|
|
-Summary(ja): wpa_supplicant のグラフィカルユーザインタフェース
|
|
+Summary(ja): %{name} のグラフィカルユーザインタフェース
|
|
Group: Applications/System
|
|
Group: Applications/System
|
|
|
|
|
|
%description gui
|
|
%description gui
|
|
@@ -62,6 +69,7 @@ Graphical User Interface for wpa_supplicant written using QT4
|
|
|
|
|
|
%description -l ja gui
|
|
%description -l ja gui
|
|
QT4 を用いた wpa_supplicant のグラフィカルユーザインタフェース
|
|
QT4 を用いた wpa_supplicant のグラフィカルユーザインタフェース
|
|
|
|
+%endif
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
@@ -69,18 +77,29 @@ QT4 を用いた wpa_supplicant のグラフィカルユーザインタフェー
|
|
%patch1 -p1 -b .flush-debug-output
|
|
%patch1 -p1 -b .flush-debug-output
|
|
%patch2 -p1 -b .dbus-service-file
|
|
%patch2 -p1 -b .dbus-service-file
|
|
%patch3 -p1 -b .quiet-scan-results-msg
|
|
%patch3 -p1 -b .quiet-scan-results-msg
|
|
-%patch4 -p1 -b .disconnect-spam
|
|
|
|
%patch5 -p1 -b .more-openssl-algs
|
|
%patch5 -p1 -b .more-openssl-algs
|
|
-%patch7 -p1 -b .bss-changed-prop-notify
|
|
+%patch6 -p1 -b .qt4
|
|
-%patch8 -p1 -b .dbus-rework
|
|
+%patch7 -p1 -b .libnl3
|
|
|
|
+%patch8 -p1 -b .rh837402-less-aggressive-roaming
|
|
|
|
+
|
|
|
|
+%patch700 -p1 -b .qt4
|
|
|
|
|
|
%build
|
|
%build
|
|
pushd wpa_supplicant
|
|
pushd wpa_supplicant
|
|
- cp %{SOURCE1} ./.config
|
|
+ cp %{SOURCE1} .config
|
|
- CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
|
|
+ echo "CONFIG_LIBNL32=y" >> .config
|
|
- CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;
|
|
+
|
|
- make %{_smp_mflags}
|
|
+ CFLAGS="${CFLAGS:-%optflags} -fPIE -DPIE" ; export CFLAGS ;
|
|
- PATH=$PATH:%{_libdir}/qt4/bin QTDIR=%{_libdir}/qt4 make wpa_gui-qt4 %{_smp_mflags}
|
|
+ CXXFLAGS="${CXXFLAGS:-%optflags} -fPIE -DPIE" ; export CXXFLAGS ;
|
|
|
|
+ LDFLAGS="${LDFLAGS:-%optflags} -pie -Wl,-z,now" ; export LDFLAGS ;
|
|
|
|
+ # yes, BINDIR=_sbindir
|
|
|
|
+ BINDIR="%{_sbindir}" ; export BINDIR ;
|
|
|
|
+ LIBDIR="%{_libdir}" ; export LIBDIR ;
|
|
|
|
+ make %{?_smp_mflags}
|
|
|
|
+%if %{build_gui}
|
|
|
|
+ QTDIR=%{_libdir}/qt4 make wpa_gui-qt4 %{?_smp_mflags}
|
|
|
|
+%endif
|
|
|
|
+ make eapol_test
|
|
popd
|
|
popd
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -103,9 +122,11 @@ install -D -m 0644 %{name}/dbus/dbus-wpa_supplicant.conf %{buildroot}/%{_sysconf
|
|
install -D -m 0644 %{name}/dbus/fi.w1.wpa_supplicant1.service %{buildroot}/%{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service
|
|
install -D -m 0644 %{name}/dbus/fi.w1.wpa_supplicant1.service %{buildroot}/%{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service
|
|
install -D -m 0644 %{name}/dbus/fi.epitest.hostap.WPASupplicant.service %{buildroot}/%{_datadir}/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
|
|
install -D -m 0644 %{name}/dbus/fi.epitest.hostap.WPASupplicant.service %{buildroot}/%{_datadir}/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
|
|
|
|
|
|
|
|
+%if %{build_gui}
|
|
# gui
|
|
# gui
|
|
install -d %{buildroot}/%{_bindir}
|
|
install -d %{buildroot}/%{_bindir}
|
|
install -m 0755 %{name}/wpa_gui-qt4/wpa_gui %{buildroot}/%{_bindir}
|
|
install -m 0755 %{name}/wpa_gui-qt4/wpa_gui %{buildroot}/%{_bindir}
|
|
|
|
+%endif
|
|
|
|
|
|
# running
|
|
# running
|
|
mkdir -p %{buildroot}/%{_localstatedir}/run/%{name}
|
|
mkdir -p %{buildroot}/%{_localstatedir}/run/%{name}
|
|
@@ -118,23 +139,27 @@ install -m 0644 %{name}/doc/docbook/*.5 %{buildroot}%{_mandir}/man5
|
|
# some cleanup in docs
|
|
# some cleanup in docs
|
|
rm -f %{name}/doc/.cvsignore
|
|
rm -f %{name}/doc/.cvsignore
|
|
rm -rf %{name}/doc/docbook
|
|
rm -rf %{name}/doc/docbook
|
|
-
|
|
+chmod -R 0644 %{name}/examples/*.py
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
%post
|
|
%post
|
|
if [ $1 = 1 ]; then
|
|
if [ $1 = 1 ]; then
|
|
- chkconfig --add %{name}
|
|
+ /sbin/chkconfig --add %{name}
|
|
fi
|
|
fi
|
|
|
|
|
|
%preun
|
|
%preun
|
|
if [ $1 = 0 ]; then
|
|
if [ $1 = 0 ]; then
|
|
- service %{name} stop > /dev/null 2>&1
|
|
+ /sbin/service %{name} stop > /dev/null 2>&1
|
|
- killall -TERM wpa_supplicant >/dev/null 2>&1
|
|
+ killall -TERM wpa_supplicant >/dev/null 2>&1
|
|
- /sbin/chkconfig --del %{name}
|
|
+ /sbin/chkconfig --del %{name}
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+%postun
|
|
|
|
+if [ $1 -ge 1 ]; then
|
|
|
|
+ /sbin/service %{name} condrestart > /dev/null 2>&1
|
|
|
|
+fi
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
@@ -154,12 +179,20 @@ fi
|
|
%{_mandir}/man8/*
|
|
%{_mandir}/man8/*
|
|
%{_mandir}/man5/*
|
|
%{_mandir}/man5/*
|
|
|
|
|
|
|
|
+%if %{build_gui}
|
|
%files gui
|
|
%files gui
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
%{_bindir}/wpa_gui
|
|
%{_bindir}/wpa_gui
|
|
|
|
+%endif
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
-* Mon Aug 22 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.7.3-3
|
|
+* Thu Feb 5 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.3-1
|
|
|
|
+- updated to 2.3
|
|
|
|
+- built with libnl3 instead of libnl
|
|
|
|
+- added Patch 6, 7 and 8 from Fedora
|
|
|
|
+- added Patch700
|
|
|
|
+
|
|
|
|
+ * Mon Aug 22 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.7.3-3
|
|
- import Patch8 from Fedora 1:0.7.3-9 to fix some crashes
|
|
- import Patch8 from Fedora 1:0.7.3-9 to fix some crashes
|
|
- Wed Jul 27 2011 Dan Williams <dcbw@redhat.com> - 1:0.7.3-9
|
|
- Wed Jul 27 2011 Dan Williams <dcbw@redhat.com> - 1:0.7.3-9
|
|
- Fix various crashes with D-Bus interface (rh #678625) (rh #725517)
|
|
- Fix various crashes with D-Bus interface (rh #678625) (rh #725517)
|