network/vpnc: Patch vpnc-script.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2016-12-27 21:32:33 +01:00 committed by Willy Sudiarto Raharjo
parent 5c69a23749
commit 362bf162a9
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -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