From c8b0c0ce9b4ec16e469a9aba94d7c11eba1d3384 Mon Sep 17 00:00:00 2001 From: Daniel Dickinson Date: Sun, 22 Aug 2010 05:06:49 +0000 Subject: [PATCH] [packages] net/freeswitch: Re-added per-package module configurartion (currently only voicemail uses it). SVN-Revision: 22755 --- net/freeswitch/Makefile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/net/freeswitch/Makefile b/net/freeswitch/Makefile index 13a0d6d043..b6d36b5ce3 100644 --- a/net/freeswitch/Makefile +++ b/net/freeswitch/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=freeswitch PKG_VERSION:=1.0.6 -PKG_RELEASE:=7 +PKG_RELEASE:=8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) @@ -467,6 +467,22 @@ define BuildPlugin $(PKG_INSTALL_DIR)/usr/lib/freeswitch/$$$$$$$${f}.so \ $$(1)/usr/lib/freeswitch/ ; \ done + if [ -d "./files/etc.packages/$(1)" ]; then \ + $(INSTALL_DIR) $$(1)/etc/freeswitch ; \ + $(CP) \ + ./files/etc.packages/$(1)/* \ + $$(1)/etc/freeswitch/ ; \ + fi + endef + + define Package/freeswitch-mod-$(1)/postinst +#!/bin/sh +sed -i -e 's|^\([ \t]*\)\(.*\)$$$$|\1\2"mod_$(1)"\3\4|' $$$${IPKG_INSTROOT}/etc/freeswitch/autoload_configs/modules.conf.xml + endef + + define Package/freeswitch-mod-$(1)/postrm +#!/bin/sh +sed -i -e 's|^\([ \t]*\)\(.*\)"mod_$(1)"\(.*\)$$$$|\1|' $$$${IPKG_INSTROOT}/etc/freeswitch/autoload_configs/modules.conf.xml endef $$(eval $$(call BuildPackage,freeswitch-mod-$(1))) -- 2.30.2