strongswan: remove synthesized ipsec conf files 15339/head
authorPhilip Prindeville <philipp@redfish-solutions.com>
Thu, 1 Apr 2021 20:43:12 +0000 (14:43 -0600)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Thu, 1 Apr 2021 21:06:00 +0000 (15:06 -0600)
If you shutdown ipsec service, and it doesn't clean up
/var/ipsec/ipsec.conf, then when you start swanctl service it
might see an incompatible file on startup.  Remedy is to
remove unneeded files when shutting down the service.  They
can always be regenerated when the service starts again.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
net/strongswan/Makefile
net/strongswan/files/ipsec.init

index 24d30915ee71d67d06c040fc03fd90e17f8a5e83..06ec598baa28ecc203ec6f835b1b569157d752fe 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=strongswan
 PKG_VERSION:=5.9.1
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://download.strongswan.org/ https://download2.strongswan.org/
index ed55b95a9820bdc1eb53a9708d795e97e5219523..bbfa573d69a41c2613f2a8f32f7210595e04fea4 100644 (file)
@@ -331,6 +331,12 @@ reload_service() {
        start
 }
 
+stop_service() {
+       ipsec_reset
+       swan_reset
+       secret_reset
+}
+
 check_ipsec_interface() {
        local intf