freeswitch-stable: add symbol to allow inclusion of module examples
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 11 Jun 2017 12:48:27 +0000 (14:48 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 11 Jun 2017 12:48:31 +0000 (14:48 +0200)
Some modules include example content, e.g. xml snippets, in their source
directory. Added a symbol that causes these to be included in the
packages.

Disabled by default.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/freeswitch-stable/Config.in
net/freeswitch-stable/Makefile

index 084c698c26ab71bc1580e9c60701fce1c8f23e6f..c11712be5bd62898f1f84db67924c29735575b24 100644 (file)
@@ -67,4 +67,11 @@ config FS_STABLE_WITH_ZRTP
        help
          Compile with ZRTP support.
 
+config FS_STABLE_WITH_MODCONF
+       bool "Include module examples"
+       default n
+       help
+         Some modules include examples in their source directory, e.g. xml
+         snippets. Select y to include them.
+
 endmenu
index 4951c5320030258bdabafcc270da9b2ce5e4b93f..326f2d82886e1e96d6459e347e30a89ce3d9614e 100644 (file)
@@ -438,6 +438,9 @@ $(subst \n,$(newline),$(3))
 endef
 define Package/$(PKG_NAME)-mod-$(1)/install
 $(call Package/$(PKG_NAME)/install/mod,$$(1),$(1))
+ifeq ($(CONFIG_FS_STABLE_WITH_MODCONF),y)
+$(call Package/$(PKG_NAME)/install/dir,$$(1)/usr/share/$(PRG_NAME)/examples/mod_$(1),$(PKG_BUILD_DIR)/src/mod/*/mod_$(1)/conf)
+endif
 ifeq ($(1),python)
        $(INSTALL_DIR) $$(1)$(PYTHON_PKG_DIR)
        $(INSTALL_DATA) \