diff --git a/wpa_supplicant.changes b/wpa_supplicant.changes index 50eaae3..e7ae09e 100644 --- a/wpa_supplicant.changes +++ b/wpa_supplicant.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 16 20:19:37 UTC 2023 - Callum Farmer + +- Change ctrl_interface from /var/run to %_rundir (/run) + ------------------------------------------------------------------- Thu Sep 1 13:52:19 UTC 2022 - Stefan Schubert diff --git a/wpa_supplicant.conf b/wpa_supplicant.conf index 17eb227..75a8829 100644 --- a/wpa_supplicant.conf +++ b/wpa_supplicant.conf @@ -1,3 +1,3 @@ -ctrl_interface=/var/run/wpa_supplicant +ctrl_interface=@RUNSTATEDIR@/wpa_supplicant ctrl_interface_group=wheel diff --git a/wpa_supplicant.spec b/wpa_supplicant.spec index 564142b..a047ec9 100644 --- a/wpa_supplicant.spec +++ b/wpa_supplicant.spec @@ -87,6 +87,7 @@ install -d %{buildroot}%{_datadir}/dbus-1/system.d install -m 0644 wpa_supplicant/dbus/dbus-wpa_supplicant.conf %{buildroot}%{_datadir}/dbus-1/system.d/wpa_supplicant.conf install -d %{buildroot}/%{_sysconfdir}/%{name} install -m 0600 %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name} +sed 's-@RUNSTATEDIR@-%{_rundir}-g' -i %{buildroot}/%{_sysconfdir}/%{name}/%{name}.conf install -d %{buildroot}/%{_datadir}/dbus-1/system-services install -m 0644 %{SOURCE3} %{buildroot}/%{_datadir}/dbus-1/system-services install -m 0644 %{SOURCE5} %{buildroot}/%{_datadir}/dbus-1/system-services