From 58ca4908b5ef763513ccc129029f34094b616424 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:50:35 +0100 Subject: [PATCH] create required nm-openvpn user [release 1.8.18-2mamba;Fri May 06 2022] --- NetworkManager-openvpn.spec | 13 ++++++++++++- openvpn-sysusers.conf | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 openvpn-sysusers.conf diff --git a/NetworkManager-openvpn.spec b/NetworkManager-openvpn.spec index 14c0d86..9f29d94 100644 --- a/NetworkManager-openvpn.spec +++ b/NetworkManager-openvpn.spec @@ -1,7 +1,7 @@ %define majver %(echo %version | cut -d. -f1-2) Name: NetworkManager-openvpn Version: 1.8.18 -Release: 1mamba +Release: 2mamba Summary: NetworkManager plugin for openvpn VPN clients Group: Network/Libraries Vendor: openmamba @@ -9,6 +9,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: https://www.gnome.org Source: https://download.gnome.org/sources/NetworkManager-openvpn/%{majver}/NetworkManager-openvpn-%{version}.tar.xz +Source1: openvpn-sysusers.conf Patch0: %{name}-1.8.10-dbus_policy.patch Patch1: NetworkManager-openvpn-0.9.6.0-gtk-3.6.patch Patch2: NetworkManager-openvpn-1.8.10-libnm-1.22.2.patch @@ -61,13 +62,20 @@ autoreconf -f -i [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall +install -D -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/nm-openvpn.conf + %find_lang %{name} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%pre +%sysusers_create_package nm-openvpn %{SOURCE1} +: + %files -f %{name}.lang %defattr(-,root,root) +%{_sysusersdir}/nm-openvpn.conf %{_datadir}/metainfo/network-manager-openvpn.metainfo.xml %{_datadir}/dbus-1/system.d/nm-openvpn-service.conf %{_prefix}/lib/NetworkManager/VPN/nm-openvpn-service.name @@ -84,6 +92,9 @@ autoreconf -f -i #ChangeLog NEWS README %changelog +* Fri May 06 2022 Silvan Calarco 1.8.18-2mamba +- create required nm-openvpn user + * Sat Mar 12 2022 Automatic Build System 1.8.18-1mamba - automatic version update by autodist diff --git a/openvpn-sysusers.conf b/openvpn-sysusers.conf new file mode 100644 index 0000000..9b35aa2 --- /dev/null +++ b/openvpn-sysusers.conf @@ -0,0 +1 @@ +u nm-openvpn - "NetworkManager OpenVPN"