From 362bf162a9f3c8296fa6afef9b592e4a3a811e40 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Tue, 27 Dec 2016 21:32:33 +0100 Subject: network/vpnc: Patch vpnc-script. Signed-off-by: Matteo Bernardini --- network/vpnc/vpnc.SlackBuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'network/vpnc/vpnc.SlackBuild') 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 -- cgit v1.2.3