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)
$(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]*\)<!-- *\(.*\)"mod_$(1)"\(.*\) *-->\(.*\)$$$$|\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<!-- \2"mod_$(1)"\3 -->|' $$$${IPKG_INSTROOT}/etc/freeswitch/autoload_configs/modules.conf.xml
endef
$$(eval $$(call BuildPackage,freeswitch-mod-$(1)))