mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
network/vpnc: Patch vpnc-script.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
5c69a23749
commit
362bf162a9
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue