Skip to content

Commit 381bbea

Browse files
author
nbd
committed
strongswan: add missing config files for plugins
Signed-off-by: Felix Fietkau <[email protected]> Backport of r40524 git-svn-id: svn://svn.openwrt.org/openwrt/branches/packages_12.09@40525 3c298f89-4303-0410-b956-a3cf2f4a3e73
1 parent 13d728a commit 381bbea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

net/strongswan/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,22 @@ define BuildPlugin
316316
DEPENDS:= +strongswan $(3)
317317
endef
318318

319+
strongswan_mod_conf=$(wildcard $(PKG_INSTALL_DIR)/etc/strongswan.d/charon/$(1).conf)
319320
define Package/strongswan-mod-$(1)/install
321+
$(INSTALL_DIR) $$(1)/etc/strongswan.d/charon
322+
$(if $(call strongswan_mod_conf,$(1)), \
323+
$(INSTALL_DATA) \
324+
$(call strongswan_mod_conf,$(1)) \
325+
$$(1)/etc/strongswan.d/charon/ \
326+
)
320327
$(INSTALL_DIR) $$(1)/usr/lib/ipsec/plugins
321328
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/plugins/libstrongswan-$(1).so \
322329
$$(1)/usr/lib/ipsec/plugins/
323330
$(call Plugin/$(1)/install,$$(1))
324331
endef
325332

333+
Package/strongswan-mod-$(1)/conffiles=$(patsubst $(PKG_INSTALL_DIR)%,%,$(call strongswan_mod_conf,$(1)))
334+
326335
$$(eval $$(call BuildPackage,strongswan-mod-$(1)))
327336
endef
328337

0 commit comments

Comments
 (0)