[package] asterisk-1.8.x: add ODBC module
this patch includes ODBC support for Asterisk18 package. Signed-off-by: Jiri Slachta <slachta@cesnet.cz> git-svn-id: svn://svn.openwrt.org/openwrt/packages@33793 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a2eda5b7d1
commit
84427ed9a6
@ -234,6 +234,17 @@ $(call Package/asterisk18/Default/description)
|
||||
This package provides the channel chan_lantiq support to Asterisk.
|
||||
endef
|
||||
|
||||
define Package/asterisk18-odbc
|
||||
$(call Package/asterisk18/Default)
|
||||
TITLE:=ODBC support
|
||||
DEPENDS:= asterisk18 +libpthread +libc +unixodbc
|
||||
endef
|
||||
|
||||
define Package/asterisk18-odbc/description
|
||||
$(call Package/asterisk18/Default/description)
|
||||
This package provides ODBC support for Asterisk.
|
||||
endef
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-app-meetme),)
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-dahdi="$(STAGING_DIR)/usr"
|
||||
@ -308,7 +319,6 @@ CONFIGURE_ARGS+= \
|
||||
--with-ncurses="$(STAGING_DIR)/usr" \
|
||||
--without-netsnmp \
|
||||
--without-newt \
|
||||
--without-odbc \
|
||||
--without-ogg \
|
||||
--without-osptk \
|
||||
--with-popt="$(STAGING_DIR)/usr" \
|
||||
@ -594,6 +604,13 @@ define Package/asterisk18-res-srtp/install
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_srtp.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Package/asterisk18-odbc/install
|
||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||
$(CP) $(PKG_INSTALL_DIR)/etc/asterisk/*odbc*.conf $(1)/etc/asterisk/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*odbc*.so $(1)/usr/lib/asterisk/modules/
|
||||
endef
|
||||
|
||||
define Buildasterisk18ModuleTemplate
|
||||
|
||||
define Package/asterisk18-$(subst _,-,$(1))
|
||||
@ -624,6 +641,7 @@ $(eval $(call BuildPackage,asterisk18-cdr))
|
||||
$(eval $(call BuildPackage,asterisk18-res-musiconhold))
|
||||
$(eval $(call BuildPackage,asterisk18-chan-gtalk))
|
||||
$(eval $(call BuildPackage,asterisk18-chan-mobile))
|
||||
$(eval $(call BuildPackage,asterisk18-odbc))
|
||||
$(eval $(call BuildPackage,asterisk18-res-fax))
|
||||
$(eval $(call BuildPackage,asterisk18-res-fax-spandsp))
|
||||
$(eval $(call BuildPackage,asterisk18-res-timing-timerfd))
|
||||
|
Loading…
x
Reference in New Issue
Block a user