summaryrefslogtreecommitdiff
path: root/network/strongswan/strongswan.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/strongswan/strongswan.SlackBuild')
-rw-r--r--network/strongswan/strongswan.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/network/strongswan/strongswan.SlackBuild b/network/strongswan/strongswan.SlackBuild
index 549b1652ff..2b9fae21ae 100644
--- a/network/strongswan/strongswan.SlackBuild
+++ b/network/strongswan/strongswan.SlackBuild
@@ -1,5 +1,6 @@
#!/bin/sh
+# Copyright 2018, Wayne Cuddy, wcuddyATgmailDOTcom
# Copyright 2009-2013, Jonathan Larsen (agentc0re), SLC, UT
# Copyright 2013-2015, Markus Hutmacher, mailing@markhu.de
# All rights reserved.
@@ -22,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=strongswan
-VERSION=${VERSION:-5.3.4}
+VERSION=${VERSION:-5.6.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -39,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -79,6 +80,7 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-shared \
--disable-static \
+ --enable-openssl \
--build=$ARCH-slackware-linux
make
@@ -91,8 +93,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Don't clobber existing config files
-mv $PKG/etc/ipsec.conf $PKG/etc/ipsec.conf.new
-mv $PKG/etc/strongswan.conf $PKG/etc/strongswan.conf.new
+mv $PKG/etc/ipsec.secrets $PKG/etc/ipsec.secrets.new
+for i in $(find $PKG/etc -type f -name '*.conf') ; do mv $i $i.new ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION