summaryrefslogtreecommitdiff
path: root/network/vpnc
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2016-12-27 21:32:33 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-12-31 08:22:25 +0700
commit362bf162a9f3c8296fa6afef9b592e4a3a811e40 (patch)
tree4ea4770e34b144564e7e67179b51a44ed48cee73 /network/vpnc
parent5c69a23749f9f1f9d9cd10b12472be7015f82732 (diff)
downloadslackbuilds-362bf162a9f3c8296fa6afef9b592e4a3a811e40.tar.gz
network/vpnc: Patch vpnc-script.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/vpnc')
-rw-r--r--network/vpnc/vpnc.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/network/vpnc/vpnc.SlackBuild b/network/vpnc/vpnc.SlackBuild
index 69be3f5727..b6eaa76d79 100644
--- a/network/vpnc/vpnc.SlackBuild
+++ b/network/vpnc/vpnc.SlackBuild
@@ -36,7 +36,7 @@
PRGNAM=vpnc
VERSION=${VERSION:-r550}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -97,6 +97,10 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
# Let's not clobber config files
mv $PKG/etc/vpnc/default.conf $PKG/etc/vpnc/default.conf.new
mv $PKG/etc/vpnc/vpnc-script $PKG/etc/vpnc/vpnc-script.new
+# Patch vpnc-script because it finds /sbin/netconfig and it believes to be on Suse
+sed -i \
+ '/-x \/sbin\/netconfig/c\elif [ -x /sbin/netconfig ] && [ ! -f /etc/slackware-version]; then # tool on Suse after 11.1, do not use on Slackware' \
+ $PKG/etc/vpnc/vpnc-script.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a VERSION README TODO $PKG/usr/doc/$PRGNAM-$VERSION