From 2e59bf88163b206a61bfd8009d734f0ca39a48b4 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Fri, 4 Aug 2017 13:37:19 +0200 Subject: [PATCH] NetworkManager-openvpn: Fix system user creation. fixes #7276 --- srcpkgs/NetworkManager-openvpn/template | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/srcpkgs/NetworkManager-openvpn/template b/srcpkgs/NetworkManager-openvpn/template index 17b60e686ef..60916ce64cd 100644 --- a/srcpkgs/NetworkManager-openvpn/template +++ b/srcpkgs/NetworkManager-openvpn/template @@ -1,7 +1,7 @@ # Template build file for 'NetworkManager-openvpn'. pkgname=NetworkManager-openvpn version=1.2.10 -revision=2 +revision=3 lib32disabled=yes build_style=gnu-configure configure_args="--disable-static" @@ -14,5 +14,10 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz" license="GPL-2" maintainer="Enno Boland " checksum=ac86a7a539d78df90095676e9183f2d422fb93dbfe4b3afef22f81825d303d61 -system_accounts="nm-openvpn" -nm-openvpn_homedir="/var/empty" +system_accounts="_nm_openvpn" +_nm_openvpn_homedir="/var/empty" + +post_extract() { + sed -i 's/\(#define NM_OPENVPN_\(USER\|GROUP\)\).*/\1 "_nm_openvpn"/' \ + shared/nm-service-defines.h +}