From 09612fa87d14a00c944f5a2631c6b5a3c123e469 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sat, 2 Jan 2016 22:43:09 -0600 Subject: network/NetworkManager-openconnect: Updated for version 1.0.8. Signed-off-by: Robby Workman Signed-off-by: Willy Sudiarto Raharjo --- .../NetworkManager-openconnect.SlackBuild | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'network/NetworkManager-openconnect/NetworkManager-openconnect.SlackBuild') diff --git a/network/NetworkManager-openconnect/NetworkManager-openconnect.SlackBuild b/network/NetworkManager-openconnect/NetworkManager-openconnect.SlackBuild index 98cdc52f560..003ddab0734 100644 --- a/network/NetworkManager-openconnect/NetworkManager-openconnect.SlackBuild +++ b/network/NetworkManager-openconnect/NetworkManager-openconnect.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=NetworkManager-openconnect -VERSION=${VERSION:-0.9.8.6} +VERSION=${VERSION:-1.0.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -54,6 +54,15 @@ else LIBDIRSUFFIX="" fi +# Bail out if user isn't valid on your system +# For slackbuilds.org, assigned nm-openconnect uid is 321 +# See http://slackbuilds.org/uid_gid.txt +if ! getent passwd nm-openconnect 2>&1 > /dev/null; then + echo " You must have a \"nm-openconnect\" user to run this script." + echo " # useradd -u 320 -g nogroup -d /var/empty -s /bin/false nm-openconnect" + exit 1 +fi + set -e rm -rf $PKG @@ -69,12 +78,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Support openconnect-7.x -patch -p1 < $CWD/NetworkManager-openconnect-0.9.8.6-libopenconnect5.patch - -# Remove mention of an extraneous user account from the dbus config file -patch -p1 < $CWD/nm-openconnect-service.conf.diff - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ -- cgit v1.2.3