freeswitch-stable: add symbol to allow inclusion of module examples
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>
This commit is contained in:
parent
6a4a965b1f
commit
eea358cfed
2 changed files with 10 additions and 0 deletions
|
@ -67,4 +67,11 @@ config FS_STABLE_WITH_ZRTP
|
||||||
help
|
help
|
||||||
Compile with ZRTP support.
|
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
|
endmenu
|
||||||
|
|
|
@ -438,6 +438,9 @@ $(subst \n,$(newline),$(3))
|
||||||
endef
|
endef
|
||||||
define Package/$(PKG_NAME)-mod-$(1)/install
|
define Package/$(PKG_NAME)-mod-$(1)/install
|
||||||
$(call Package/$(PKG_NAME)/install/mod,$$(1),$(1))
|
$(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)
|
ifeq ($(1),python)
|
||||||
$(INSTALL_DIR) $$(1)$(PYTHON_PKG_DIR)
|
$(INSTALL_DIR) $$(1)$(PYTHON_PKG_DIR)
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
|
|
Loading…
Reference in a new issue