From 1e161aff1f917f9651a5f913a09308f40c9949db Mon Sep 17 00:00:00 2001 From: tpgxyz Date: Thu, 1 Oct 2020 18:37:15 +0200 Subject: [PATCH 1/2] iwd replaces wpa_supplicant --- iwd.spec | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/iwd.spec b/iwd.spec index ab0da8c..d325ddc 100644 --- a/iwd.spec +++ b/iwd.spec @@ -1,7 +1,7 @@ Summary: Wireless daemon for Linux Name: iwd Version: 1.9 -Release: 1 +Release: 2 License: LGPLv2+ URL: https://lists.01.org/mailman/listinfo/iwd Source0: https://www.kernel.org/pub/linux/network/wireless/%{name}-%{version}.tar.xz @@ -19,6 +19,7 @@ BuildRequires: systemd-macros BuildRequires: pkgconfig(ell) >= 0.29 Requires: dbus Requires: systemd +Obsoletes: wpa_supplicant < 2.9 %description The daemon and utilities for controlling and configuring the Wi-Fi network @@ -51,38 +52,11 @@ cat > %{buildroot}%{_presetdir}/86-iwd.preset << EOF enable iwd.service EOF -# (tpg) make sure that wpa_supplicant is stop and disabled on update -%triggerin -- wpa_supplicant -systemctl disable --now wpa_supplicant.service - -# (tpg) make sure that IWD is default backend and restart NM -# this may be removed or changed after wpa_supplicant go away -%triggerin -- NetworkManager -sed -i -e 's/^#wifi.backend=iwd/wifi.backend=iwd/g' /usr/lib/NetworkManager/conf.d/00-wifi-backend.conf -sed -i -e 's/^wifi.backend=wpa_supplicant/#wifi.backend=wpa_supplicant/g' /usr/lib/NetworkManager/conf.d/00-wifi-backend.conf -systemctl restart --quiet NetworkManager.service - %post %systemd_post iwd.service -# (tpg) this may be removed or adapted when wpa_supplicant will go away -if [ "$1" = 1 ]; then - if [ -e /usr/lib/NetworkManager/conf.d/00-wifi-backend.conf ]; then - systemctl disable --now wpa_supplicant.service - sed -i -e 's/^#wifi.backend=iwd/wifi.backend=iwd/g' /usr/lib/NetworkManager/conf.d/00-wifi-backend.conf - sed -i -e 's/^wifi.backend=wpa_supplicant/#wifi.backend=wpa_supplicant/g' /usr/lib/NetworkManager/conf.d/00-wifi-backend.conf - systemctl restart --quiet NetworkManager.service - fi -fi %preun -# (tpg) this may be removed or adapted when wpa_supplicant will go away -if [ "$1" = 0 ]; then - if [ $(command -v wpa_supplicant) ]; then - sed -i -e 's/^#wifi.backend=iwd/wifi.backend=iwd/g' /usr/lib/NetworkManager/conf.d/00-wifi-backend.conf - sed -i -e 's/^wifi.backend=wpa_supplicant/#wifi.backend=wpa_supplicant/g' /usr/lib/NetworkManager/conf.d/00-wifi-backend.conf - systemctl restart --quiet NetworkManager.service - fi -fi +%systemd_preun iwd.service %files %doc AUTHORS README TODO ChangeLog From 3f9670e929283f924749cdc7c19cffdb51f6b36e Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Fri, 18 Jul 2025 02:00:46 +0200 Subject: [PATCH 2/2] Add OneDev buildspec --- .onedev-buildspec.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .onedev-buildspec.yml diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml new file mode 100644 index 0000000..b95f83a --- /dev/null +++ b/.onedev-buildspec.yml @@ -0,0 +1,4 @@ +version: 40 +imports: +- projectPath: OpenMandriva/Packages + revision: mirroring