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 <kevin@kevinlocke.name>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@29584 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-12-20 04:36:40 +00:00
parent 83951c8645
commit 6d1726c72d
2 changed files with 5 additions and 0 deletions

View File

@ -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))

View File

@ -0,0 +1,3 @@
/etc/ipsec.conf
/etc/ipsec.d/
/etc/ipsec.secrets