baresip: update default config
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 21 Apr 2019 13:24:09 +0000 (15:24 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 21 Apr 2019 13:24:11 +0000 (15:24 +0200)
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>
net/baresip/Makefile

index af40b0228ea02914625e92becaadb9f6fe632dda..888fea96b0702ecc96856cc8e0cdf214fa21e215 100644 (file)
@@ -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