From 6d1726c72dca369dcc598d562c77efc684a59e2c Mon Sep 17 00:00:00 2001 From: jow Date: Tue, 20 Dec 2011 04:36:40 +0000 Subject: [PATCH] Keep ipsec configuration information across upgrades The /etc/ipsec.d directory holds the certificates and CRLs used for IPsec, many of which may have been uploaded by users. /etc/ipsec.conf and /etc/ipsec.secrets hold user configuration for the IPsec daemons. Add a keep.d file to preserve these files/directories across upgrades. Signed-off-by: Kevin Locke git-svn-id: svn://svn.openwrt.org/openwrt/packages@29584 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/openswan/Makefile | 2 ++ net/openswan/files/ipsec.upgrade | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 net/openswan/files/ipsec.upgrade diff --git a/net/openswan/Makefile b/net/openswan/Makefile index ac155c64c..6920a714a 100644 --- a/net/openswan/Makefile +++ b/net/openswan/Makefile @@ -97,6 +97,8 @@ define Package/openswan/install rm -rf $(1)/var rm -rf $(1)/etc/rc.d find $(1) -name \*.old | xargs rm -rf + $(INSTALL_DIR) $(1)/lib/upgrade/keep.d + $(INSTALL_DATA) files/ipsec.upgrade $(1)/lib/upgrade/keep.d/ipsec endef $(eval $(call BuildPackage,openswan)) diff --git a/net/openswan/files/ipsec.upgrade b/net/openswan/files/ipsec.upgrade new file mode 100644 index 000000000..36ba0c548 --- /dev/null +++ b/net/openswan/files/ipsec.upgrade @@ -0,0 +1,3 @@ +/etc/ipsec.conf +/etc/ipsec.d/ +/etc/ipsec.secrets