From 9217aa859fea7590b05ec8efa5e4e64228849718 Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Thu, 15 Apr 2021 17:55:55 -0600 Subject: [PATCH] strongswan: change name of config base directory Signed-off-by: Philip Prindeville --- net/strongswan/Makefile | 2 +- net/strongswan/files/gencerts.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/strongswan/Makefile b/net/strongswan/Makefile index 3b45a2222..a66645a70 100644 --- a/net/strongswan/Makefile +++ b/net/strongswan/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=strongswan PKG_VERSION:=5.9.2 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=https://download.strongswan.org/ https://download2.strongswan.org/ diff --git a/net/strongswan/files/gencerts.sh b/net/strongswan/files/gencerts.sh index 57dc0df6d..abd167b39 100755 --- a/net/strongswan/files/gencerts.sh +++ b/net/strongswan/files/gencerts.sh @@ -34,8 +34,8 @@ SHORT_DOMAIN="${DOMAIN%%.*}" ORG="$1"; shift # invariants... -STRONGSWANDIR=/etc -SWANCTL_DIR=$STRONGSWANDIR/swanctl +SYSCONFDIR=/etc +SWANCTL_DIR="$SYSCONFDIR/swanctl" : ${KEYINFO:="rsa:4096"} : ${CADAYS:=3650} : ${CRTDAYS:=730} @@ -140,7 +140,7 @@ ROOTDN="$(makeDN "$C" "$ORG" "Root CA")" [ -f "$SWANCTL_DIR/x509ca/$SHORT_DOMAIN.crt" ] || genca -PARENT="$STRONGSWANDIR" +PARENT="$SYSCONFDIR" BASEDIR="${SWANCTL_DIR##$PARENT/}" for name in "$@"; do