summaryrefslogtreecommitdiff
path: root/network/NetworkManager-openconnect/NetworkManager-openconnect.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2016-01-02 22:43:09 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commit09612fa87d14a00c944f5a2631c6b5a3c123e469 (patch)
treef189ab1517cd8b6fa2550c91c9be319087273e2f /network/NetworkManager-openconnect/NetworkManager-openconnect.SlackBuild
parent708fc2697c10502d0d667b258e9f8c56ee196112 (diff)
downloadslackbuilds-09612fa87d14a00c944f5a2631c6b5a3c123e469.tar.gz
network/NetworkManager-openconnect: Updated for version 1.0.8.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/NetworkManager-openconnect/NetworkManager-openconnect.SlackBuild')
-rw-r--r--network/NetworkManager-openconnect/NetworkManager-openconnect.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/network/NetworkManager-openconnect/NetworkManager-openconnect.SlackBuild b/network/NetworkManager-openconnect/NetworkManager-openconnect.SlackBuild
index 98cdc52f56..003ddab073 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 \