summaryrefslogtreecommitdiffstats
path: root/network/strongswan/strongswan.SlackBuild
diff options
context:
space:
mode:
author Wayne Cuddy2018-05-14 01:15:38 +0200
committer David Spencer2018-05-19 01:45:03 +0200
commit422634f66f7207ba006935af2107e1c5a915c339 (patch)
treef3341c819589c0ca8babe74bb44cd93ebca7bf78 /network/strongswan/strongswan.SlackBuild
parentbf6f64fdb1cf59ca4c3db2d91f765c6b0c0bd63a (diff)
downloadslackbuilds-422634f66f7207ba006935af2107e1c5a915c339.tar.gz
network/strongswan: Updated for version 5.6.2 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
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