rpms/wpa_supplicant/devel wpa_supplicant-0.5.7-sigusr1-changes-debuglevel.patch, NONE, 1.1 wpa_supplicant.spec, 1.26, 1.27
Daniel Williams (dcbw)
fedora-extras-commits at redhat.com
Fri Aug 24 17:13:45 UTC 2007
Author: dcbw
Update of /cvs/extras/rpms/wpa_supplicant/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9516
Modified Files:
wpa_supplicant.spec
Added Files:
wpa_supplicant-0.5.7-sigusr1-changes-debuglevel.patch
Log Message:
* Fri Aug 24 2007 Dan Williams <dcbw at redhat.com> - 0.5.7-7
- Make SIGUSR1 change debug level on-the-fly; useful in combination with
the -f switch to log output to /var/log/wpa_supplicant.log
- Stop stripping binaries on install so we get debuginfo packages
wpa_supplicant-0.5.7-sigusr1-changes-debuglevel.patch:
--- NEW FILE wpa_supplicant-0.5.7-sigusr1-changes-debuglevel.patch ---
--- wpa_supplicant-0.5.7/wpa_supplicant.c.sigusr1 2007-08-24 11:24:51.000000000 -0400
+++ wpa_supplicant-0.5.7/wpa_supplicant.c 2007-08-24 11:43:08.000000000 -0400
@@ -930,6 +930,22 @@ static void wpa_supplicant_reconfig(int
}
}
+static void wpa_supplicant_handle_sigusr1(int sig, void *eloop_ctx,
+ void *signal_ctx)
+{
+ /* Increase verbosity (by decreasing the debug level) and wrap back
+ * to MSG_INFO when needed.
+ */
+ if (wpa_debug_level)
+ wpa_debug_level--;
+ else
+ wpa_debug_level = MSG_INFO;
+
+ wpa_printf(MSG_INFO, "Signal %d received - changing debug level to %s", sig,
+ (wpa_debug_level == MSG_INFO) ? "INFO" :
+ ((wpa_debug_level == MSG_DEBUG) ? "DEBUG" :
+ ((wpa_debug_level == MSG_MSGDUMP) ? "MSGDUMP" : "UNKNOWN")));
+}
static void wpa_supplicant_gen_assoc_event(struct wpa_supplicant *wpa_s)
{
@@ -2561,6 +2577,8 @@ int wpa_supplicant_run(struct wpa_global
eloop_register_signal_terminate(wpa_supplicant_terminate, NULL);
eloop_register_signal_reconfig(wpa_supplicant_reconfig, NULL);
+ eloop_register_signal(SIGUSR1, wpa_supplicant_handle_sigusr1, NULL);
+
eloop_run();
return 0;
Index: wpa_supplicant.spec
===================================================================
RCS file: /cvs/extras/rpms/wpa_supplicant/devel/wpa_supplicant.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- wpa_supplicant.spec 17 Aug 2007 21:29:43 -0000 1.26
+++ wpa_supplicant.spec 24 Aug 2007 17:13:12 -0000 1.27
@@ -2,7 +2,7 @@
Name: wpa_supplicant
Epoch: 1
Version: 0.5.7
-Release: 6%{?dist}
+Release: 7%{?dist}
License: GPLv2
Group: System Environment/Base
Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
@@ -19,6 +19,7 @@
Patch4: wpa_supplicant-0.5.7-debug-file.patch
Patch5: wpa_supplicant-0.5.7-qmake-location.patch
Patch6: wpa_supplicant-0.5.7-flush-debug-output.patch
+Patch7: wpa_supplicant-0.5.7-sigusr1-changes-debuglevel.patch
URL: http://w1.fi/wpa_supplicant/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -52,6 +53,7 @@
%patch4 -p1 -b .debug-file
%patch5 -p1 -b .qmake-location
%patch6 -p1 -b .flush-debug-output
+%patch7 -p1 -b .sigusr1-changes-debuglevel
%build
cp %{SOURCE1} ./.config
@@ -76,15 +78,15 @@
# binary
install -d %{buildroot}/%{_sbindir}
-install -m 0755 -s wpa_passphrase %{buildroot}/%{_sbindir}
-install -m 0755 -s wpa_cli %{buildroot}/%{_sbindir}
-install -m 0755 -s wpa_supplicant %{buildroot}/%{_sbindir}
+install -m 0755 wpa_passphrase %{buildroot}/%{_sbindir}
+install -m 0755 wpa_cli %{buildroot}/%{_sbindir}
+install -m 0755 wpa_supplicant %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_sysconfdir}/dbus-1/system.d/
install -m 0644 dbus-wpa_supplicant.conf %{buildroot}/%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
# gui
install -d %{buildroot}/%{_bindir}
-install -m 0755 -s wpa_gui/wpa_gui %{buildroot}/%{_bindir}
+install -m 0755 wpa_gui/wpa_gui %{buildroot}/%{_bindir}
# running
mkdir -p %{buildroot}/%{_localstatedir}/run/%{name}
@@ -134,6 +136,11 @@
%{_bindir}/wpa_gui
%changelog
+* Fri Aug 24 2007 Dan Williams <dcbw at redhat.com> - 0.5.7-7
+- Make SIGUSR1 change debug level on-the-fly; useful in combination with
+ the -f switch to log output to /var/log/wpa_supplicant.log
+- Stop stripping binaries on install so we get debuginfo packages
+
* Fri Aug 17 2007 Dan Williams <dcbw at redhat.com> - 0.5.7-6
- Fix compilation with RPM_OPT_FLAGS (rh #249951)
- Make debug output to logfile a runtime option
More information about the fedora-extras-commits
mailing list