From: Jo-Philipp Wich Date: Tue, 20 Dec 2011 04:36:40 +0000 (+0000) Subject: Keep ipsec configuration information across upgrades X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=daeef95f7726c2ad4b824334e18011f6454543f3 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 SVN-Revision: 29584 --- diff --git a/net/openswan/Makefile b/net/openswan/Makefile index ac155c64c7..6920a714ad 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 0000000000..36ba0c5488 --- /dev/null +++ b/net/openswan/files/ipsec.upgrade @@ -0,0 +1,3 @@ +/etc/ipsec.conf +/etc/ipsec.d/ +/etc/ipsec.secrets