From bea794b2d0173eeb9dcbc508085b456329065509 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: May 01 2012 17:06:05 +0000 Subject: Fix systemd startup ordering (rh #815091) --- diff --git a/sources b/sources index bcd4d70..fc67280 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -eb3495560baa793f67c423409cc1fd5b wpa_supplicant-1.0-rc2.git20120302.tar.gz +8a3134a6df4229877bbd9f577b208ee9 wpa_supplicant-1.0-rc3.tar.gz diff --git a/wpa_supplicant-dbus-service-file-args.patch b/wpa_supplicant-dbus-service-file-args.patch index d0e3c10..b7478da 100644 --- a/wpa_supplicant-dbus-service-file-args.patch +++ b/wpa_supplicant-dbus-service-file-args.patch @@ -5,7 +5,7 @@ diff -up wpa_supplicant-0.7.3/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service. [D-BUS Service] Name=fi.w1.wpa_supplicant1 -Exec=@BINDIR@/wpa_supplicant -u -+Exec=@SBINDIR@/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -B -u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid ++Exec=@BINDIR@/wpa_supplicant -B -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.conf -P /var/run/wpa_supplicant.pid User=root SystemdService=wpa_supplicant.service diff -up wpa_supplicant-0.7.3/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in.fedora wpa_supplicant-0.7.3/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in @@ -15,6 +15,6 @@ diff -up wpa_supplicant-0.7.3/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplican [D-BUS Service] Name=fi.epitest.hostap.WPASupplicant -Exec=@BINDIR@/wpa_supplicant -u -+Exec=@SBINDIR@/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -B -u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid ++Exec=@BINDIR@/wpa_supplicant -B -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.conf -P /var/run/wpa_supplicant.pid User=root SystemdService=wpa_supplicant.service diff --git a/wpa_supplicant.service b/wpa_supplicant.service index 67374d1..45d8b99 100644 --- a/wpa_supplicant.service +++ b/wpa_supplicant.service @@ -1,11 +1,13 @@ [Unit] Description=WPA Supplicant daemon -After=syslog.target network.target +Before=network.target +After=syslog.target [Service] -Type=forking +Type=dbus +BusName=fi.w1.wpa_supplicant1 EnvironmentFile=-/etc/sysconfig/wpa_supplicant -ExecStart=/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf $INTERFACES $DRIVERS -B -u $OTHER_ARGS +ExecStart=/usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.conf $INTERFACES $DRIVERS $OTHER_ARGS [Install] WantedBy=multi-user.target diff --git a/wpa_supplicant.spec b/wpa_supplicant.spec index f5d46fc..7e55a38 100644 --- a/wpa_supplicant.spec +++ b/wpa_supplicant.spec @@ -1,11 +1,11 @@ -%define rcver -rc2 -%define snapshot .git20120302 +%define rcver -rc3 +%define snapshot %{nil} Summary: WPA/WPA2/IEEE 802.1X Supplicant Name: wpa_supplicant Epoch: 1 Version: 1.0 -Release: 0.3%{?dist} +Release: 0.4%{?dist} License: BSD Group: System Environment/Base Source0: http://w1.fi/releases/%{name}-%{version}%{rcver}%{snapshot}.tar.gz @@ -111,6 +111,9 @@ pushd wpa_supplicant cp %{SOURCE1} .config CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; + # 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} @@ -229,6 +232,10 @@ fi %postun -n libeap -p /sbin/ldconfig %changelog +* Tue May 1 2012 Dan Williams - 1:1.0-0.4 +- Update to wpa_supplicant 1.0-rc3 +- Fix systemd target dependencies (rh #815091) + * Fri Mar 2 2012 Dan Williams - 1:1.0-0.3 - Update to latest 1.0 git snapshot - Rebuild against libnl3