Skip to content

Commit

Permalink
strongswan: add missing config files for plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Backport of r40524

git-svn-id: svn://svn.openwrt.org/openwrt/branches/packages_12.09@40525 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
nbd committed Apr 17, 2014
1 parent 13d728a commit 381bbea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions net/strongswan/Makefile
Expand Up @@ -316,13 +316,22 @@ define BuildPlugin
DEPENDS:= +strongswan $(3)
endef

strongswan_mod_conf=$(wildcard $(PKG_INSTALL_DIR)/etc/strongswan.d/charon/$(1).conf)
define Package/strongswan-mod-$(1)/install
$(INSTALL_DIR) $$(1)/etc/strongswan.d/charon
$(if $(call strongswan_mod_conf,$(1)), \
$(INSTALL_DATA) \
$(call strongswan_mod_conf,$(1)) \
$$(1)/etc/strongswan.d/charon/ \
)
$(INSTALL_DIR) $$(1)/usr/lib/ipsec/plugins
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/plugins/libstrongswan-$(1).so \
$$(1)/usr/lib/ipsec/plugins/
$(call Plugin/$(1)/install,$$(1))
endef

Package/strongswan-mod-$(1)/conffiles=$(patsubst $(PKG_INSTALL_DIR)%,%,$(call strongswan_mod_conf,$(1)))

$$(eval $$(call BuildPackage,strongswan-mod-$(1)))
endef

Expand Down

0 comments on commit 381bbea

Please sign in to comment.