summaryrefslogtreecommitdiff
path: root/network/openconnect/openconnect.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/openconnect/openconnect.SlackBuild')
-rw-r--r--network/openconnect/openconnect.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/network/openconnect/openconnect.SlackBuild b/network/openconnect/openconnect.SlackBuild
index 2f9b6ad13d..cf1a6d6409 100644
--- a/network/openconnect/openconnect.SlackBuild
+++ b/network/openconnect/openconnect.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for openconnect
-# Copyright 2010,2011 Robby Workman, Northport, Alabama, USA
+# Copyright 2010-2012 Robby Workman, Northport, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openconnect
-VERSION=${VERSION:-3.15}
+VERSION=${VERSION:-3.20}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -77,11 +77,16 @@ CFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --with-vpnc-script=/etc/vpnc/vpnc-script \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
+mkdir -p $PKG/etc/vpnc
+cat $CWD/vpnc-script > $PKG/etc/vpnc/vpnc-script.new
+chmod 0755 $PKG/etc/vpnc/vpnc-script.new
+
gzip -9 $PKG/usr/man/man?/*.?
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
@@ -93,6 +98,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}