summaryrefslogtreecommitdiffstats
path: root/network/strongswan/strongswan.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/strongswan/strongswan.SlackBuild')
-rw-r--r--network/strongswan/strongswan.SlackBuild50
1 files changed, 44 insertions, 6 deletions
diff --git a/network/strongswan/strongswan.SlackBuild b/network/strongswan/strongswan.SlackBuild
index d9d0310224..be9f4e9a42 100644
--- a/network/strongswan/strongswan.SlackBuild
+++ b/network/strongswan/strongswan.SlackBuild
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/bin/bash
-# Copyright 2018-2019, Wayne Cuddy, wcuddyATgmailDOTcom
+# Copyright 2018-2022, Wayne Cuddy, wcuddyATgmailDOTcom
# Copyright 2009-2013, Jonathan Larsen (agentc0re), SLC, UT
# Copyright 2013-2015, Markus Hutmacher, mailing@markhu.de
# All rights reserved.
@@ -23,6 +23,26 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
+# 2023-11-17
+# - upgraded upstream to verion 5.9.11
+#
+# 2022-12-25
+# - added configure options in preparation for NetworkManager-Strongswan
+# --enable-eap-gtc
+# --enable-eap-md5
+# --enable-nm
+#
+# 2022-10-09
+# - upgraded upstream version to 5.9.8
+# - removed INSTALL file per sbopkglint
+#
+# 2022-04-16
+# - upgraded upstream version to 5.9.5
+#
+# 2020-12-21
+# - continue building bypass-lan but disable it by default so that the
+# admin can still enable it if necessary
+#
# 2019-09-17
# - upgraded upstream version to 5.8.1
# - added additional "enable" options to DEFAULT_CONFIG_OPTS
@@ -32,10 +52,13 @@
# - added DEFAULT_CONFIG_OPTS and EXTRA_CONFIG_OPTS
#
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=strongswan
-VERSION=${VERSION:-5.8.1}
+VERSION=${VERSION:-5.9.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
DEFAULT_CONFIG_OPTS="\
--enable-shared \
@@ -52,6 +75,8 @@ DEFAULT_CONFIG_OPTS="\
--enable-sha3 \
--enable-files \
--enable-lookip \
+ --enable-eap-gtc \
+ --enable-eap-md5 \
--enable-eap-identity \
--enable-eap-mschapv2 \
--enable-eap-tls \
@@ -76,6 +101,7 @@ DEFAULT_CONFIG_OPTS="\
--enable-counters \
--enable-farp \
--enable-lookip \
+ --enable-nm \
"
if [ -z "$ARCH" ]; then
@@ -86,7 +112,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -144,7 +177,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
-cp -a COPYING ChangeLog INSTALL NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING ChangeLog NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -168,4 +201,9 @@ do
echo "config $i.new" >> $PKG/install/doinst.sh
done
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+# bypass-lan may cause problems for most users but it still used in many
+# situations. Disable it by default allowing the user to enable it if
+# necessary.
+sed -i -e 's/load = yes/load = no/' $PKG/etc/strongswan.d/charon/bypass-lan.conf.new
+
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE