summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Kemper <sebastian_ml@gmx.net>2019-04-21 15:24:09 +0200
committerSebastian Kemper <sebastian_ml@gmx.net>2019-04-21 15:24:11 +0200
commit5c29fde85ca70ff53e3bf4051762b9bbcc8beefe (patch)
treefea41b544d13eeefd9af1bce3b99c43a2480bf8e
parenta87851451348944d68ce494d25c2932279e1cf45 (diff)
baresip: update default config
This adds two (three, really) sed scripts to update the default configuration. All example accounts are getting disabled/commented. And the module_path is set to the actual path. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
-rw-r--r--net/baresip/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/baresip/Makefile b/net/baresip/Makefile
index af40b02..888fea9 100644
--- a/net/baresip/Makefile
+++ b/net/baresip/Makefile
@@ -124,6 +124,8 @@ define Package/baresip/install
$(INSTALL_DIR) $(1)/usr/share/baresip
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/baresip/* $(1)/usr/share/baresip
$(INSTALL_DIR) $(1)/etc/baresip
+ $(SED) '/^#/!s/^/#/' $(PKG_BUILD_DIR)/docs/examples/accounts
+ $(SED) '/^#module_path/s|^#||;s|/local||' $(PKG_BUILD_DIR)/docs/examples/config
$(INSTALL_CONF) $(PKG_BUILD_DIR)/docs/examples/{accounts,config,contacts} $(1)/etc/baresip
$(INSTALL_DIR) $(1)/etc/default
$(INSTALL_CONF) ./files/baresip.default $(1)/etc/default/baresip