rpms/wpa_supplicant/devel wpa_supplicant.service, NONE, 1.1 wpa_supplicant.conf, 1.1, 1.2 wpa_supplicant.init.d, 1.2, 1.3 wpa_supplicant.spec, 1.27, 1.28 wpa_supplicant.sysconfig, 1.2, 1.3

Daniel Williams (dcbw) fedora-extras-commits at redhat.com
Fri Aug 24 17:41:10 UTC 2007


Author: dcbw

Update of /cvs/extras/rpms/wpa_supplicant/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10938

Modified Files:
	wpa_supplicant.conf wpa_supplicant.init.d wpa_supplicant.spec 
	wpa_supplicant.sysconfig 
Added Files:
	wpa_supplicant.service 
Log Message:
- Remove service start requirement for interfaces & devices from sysconfig file,
    since wpa_supplicant's D-Bus interface is now turned on




--- NEW FILE wpa_supplicant.service ---
[D-BUS Service]
Name=fi.epitest.hostap.WPASupplicant
Exec=/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -f
User=root



Index: wpa_supplicant.conf
===================================================================
RCS file: /cvs/extras/rpms/wpa_supplicant/devel/wpa_supplicant.conf,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- wpa_supplicant.conf	27 Jan 2006 06:08:29 -0000	1.1
+++ wpa_supplicant.conf	24 Aug 2007 17:40:37 -0000	1.2
@@ -1,8 +1,3 @@
 ctrl_interface=/var/run/wpa_supplicant
 ctrl_interface_group=wheel
 
-network={
-	ssid="any"
-	key_mgmt=NONE
-}
-


Index: wpa_supplicant.init.d
===================================================================
RCS file: /cvs/extras/rpms/wpa_supplicant/devel/wpa_supplicant.init.d,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- wpa_supplicant.init.d	19 Jun 2007 17:03:10 -0000	1.2
+++ wpa_supplicant.init.d	24 Aug 2007 17:40:37 -0000	1.3
@@ -18,21 +18,16 @@
 # Source networking configuration.
 . /etc/sysconfig/network
 
-# Check that networking is up.
-[ "$NETWORKING" = "no" ] && exit 0
-
 exec="/usr/sbin/wpa_supplicant"
 prog=$(basename $exec)
 conf="/etc/wpa_supplicant/wpa_supplicant.conf"
 lockfile=/var/lock/subsys/$prog
 
 [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
-[ "$INTERFACES" != "" ] || exit 0
-[ "$DRIVERS" != "" ] || exit 0
 
 start() {
  	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
-	daemon $prog -c $conf $INTERFACES $DRIVERS -B
+	daemon $prog -c $conf $INTERFACES $DRIVERS -B -u -f
 	retval=$?
 	echo
 	[ $retval -eq 0 ] && touch $lockfile


Index: wpa_supplicant.spec
===================================================================
RCS file: /cvs/extras/rpms/wpa_supplicant/devel/wpa_supplicant.spec,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- wpa_supplicant.spec	24 Aug 2007 17:13:12 -0000	1.27
+++ wpa_supplicant.spec	24 Aug 2007 17:40:37 -0000	1.28
@@ -11,6 +11,7 @@
 Source3: %{name}.init.d
 Source4: %{name}.sysconfig
 Source5: madwifi-headers-r1475.tar.bz2
+Source6: %{name}.service
 Patch0: wpa_supplicant-assoc-timeout.patch
 Patch1: wpa_supplicant-driver-wext-debug.patch
 Patch2: wpa_supplicant-wep-key-fix.patch
@@ -81,8 +82,10 @@
 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 -d %{buildroot}/%{_sysconfdir}/dbus-1/system.d/
 install -m 0644 dbus-wpa_supplicant.conf %{buildroot}/%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
+install -d %{buildroot}/%{_datadir}/dbus-1/system-services/
+install -m 0644 %{SOURCE6} %{buildroot}/%{_datadir}/dbus-1/system-services
 
 # gui
 install -d %{buildroot}/%{_bindir}
@@ -118,11 +121,12 @@
 
 %files
 %defattr(-, root, root)
-%doc COPYING ChangeLog README README-Windows.txt eap_testing.txt todo.txt wpa_supplicant.conf examples
+%doc COPYING ChangeLog README eap_testing.txt todo.txt wpa_supplicant.conf examples
 %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
 %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
 %{_sysconfdir}/rc.d/init.d/%{name}
 %{_sysconfdir}/dbus-1/system.d/%{name}.conf
+%{_datadir}/dbus-1/system-services/%{name}.service
 %{_sbindir}/wpa_passphrase
 %{_sbindir}/wpa_supplicant
 %{_sbindir}/wpa_cli
@@ -140,6 +144,8 @@
 - 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
+- Remove service start requirement for interfaces & devices from sysconfig file,
+    since wpa_supplicant's D-Bus interface is now turned on
 
 * Fri Aug 17 2007 Dan Williams <dcbw at redhat.com> - 0.5.7-6
 - Fix compilation with RPM_OPT_FLAGS (rh #249951)


Index: wpa_supplicant.sysconfig
===================================================================
RCS file: /cvs/extras/rpms/wpa_supplicant/devel/wpa_supplicant.sysconfig,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- wpa_supplicant.sysconfig	19 Jun 2007 17:03:10 -0000	1.2
+++ wpa_supplicant.sysconfig	24 Aug 2007 17:40:37 -0000	1.3
@@ -1,2 +1,2 @@
-INTERFACES="-iwlan0"
-DRIVERS="-Dwext"
+INTERFACES=""
+DRIVERS=""




More information about the fedora-extras-commits mailing list