asterisk18: add asterisk18-pgsql
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
This commit is contained in:
parent
7004829626
commit
094d51d250
1 changed files with 35 additions and 2 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=asterisk18
|
PKG_NAME:=asterisk18
|
||||||
PKG_VERSION:=1.8.10.1
|
PKG_VERSION:=1.8.10.1
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
|
PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/
|
||||||
|
@ -104,6 +104,18 @@ $(call Package/asterisk18/Default/description)
|
||||||
Asterisk.
|
Asterisk.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/asterisk18-pgsql
|
||||||
|
$(call Package/asterisk18/Default)
|
||||||
|
TITLE:=PostgreSQL support
|
||||||
|
DEPENDS:= asterisk18 +libpq
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/asterisk18-pgsql/description
|
||||||
|
$(call Package/asterisk18/Default/description)
|
||||||
|
This package provides PostgreSQL support to
|
||||||
|
Asterisk.
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/asterisk18-res-musiconhold
|
define Package/asterisk18-res-musiconhold
|
||||||
$(call Package/asterisk18/Default)
|
$(call Package/asterisk18/Default)
|
||||||
TITLE:=MOH support
|
TITLE:=MOH support
|
||||||
|
@ -285,6 +297,14 @@ else
|
||||||
--without-curl
|
--without-curl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-pgsql),)
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--with-postgres="$(STAGING_DIR)/usr"
|
||||||
|
else
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--without-postgres
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-mysql),)
|
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-mysql),)
|
||||||
CONFIGURE_ARGS+= \
|
CONFIGURE_ARGS+= \
|
||||||
--with-mysqlclient="$(STAGING_DIR)/usr/bin"
|
--with-mysqlclient="$(STAGING_DIR)/usr/bin"
|
||||||
|
@ -481,7 +501,6 @@ define Package/asterisk18-cdr/conffiles
|
||||||
/etc/asterisk/cdr_custom.conf
|
/etc/asterisk/cdr_custom.conf
|
||||||
/etc/asterisk/cdr_manager.conf
|
/etc/asterisk/cdr_manager.conf
|
||||||
/etc/asterisk/cdr_odbc.conf
|
/etc/asterisk/cdr_odbc.conf
|
||||||
/etc/asterisk/cdr_pgsql.conf
|
|
||||||
/etc/asterisk/cdr_tds.conf
|
/etc/asterisk/cdr_tds.conf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -504,6 +523,19 @@ define Package/asterisk18-cdr/install
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*cdr*.so $(1)/usr/lib/asterisk/modules/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*cdr*.so $(1)/usr/lib/asterisk/modules/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/asterisk18-pgsql/conffiles
|
||||||
|
/etc/asterisk/cel_pgsql.conf
|
||||||
|
/etc/asterisk/cdr_pgsql.conf
|
||||||
|
/etc/asterisk/res_pgsql.conf
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/asterisk18-pgsql/install
|
||||||
|
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||||
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/{cel,cdr,res}_pgsql.conf $(1)/etc/asterisk/
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/{cel,cdr,res_config}_pgsql.so $(1)/usr/lib/asterisk/modules/
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/asterisk18-res-musiconhold/install
|
define Package/asterisk18-res-musiconhold/install
|
||||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/musiconhold.conf $(1)/etc/asterisk/
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/musiconhold.conf $(1)/etc/asterisk/
|
||||||
|
@ -669,6 +701,7 @@ $(eval $(call BuildPackage,asterisk18-res-musiconhold))
|
||||||
$(eval $(call BuildPackage,asterisk18-chan-gtalk))
|
$(eval $(call BuildPackage,asterisk18-chan-gtalk))
|
||||||
$(eval $(call BuildPackage,asterisk18-chan-mobile))
|
$(eval $(call BuildPackage,asterisk18-chan-mobile))
|
||||||
$(eval $(call BuildPackage,asterisk18-odbc))
|
$(eval $(call BuildPackage,asterisk18-odbc))
|
||||||
|
$(eval $(call BuildPackage,asterisk18-pgsql))
|
||||||
$(eval $(call BuildPackage,asterisk18-pbx-lua))
|
$(eval $(call BuildPackage,asterisk18-pbx-lua))
|
||||||
$(eval $(call BuildPackage,asterisk18-res-fax))
|
$(eval $(call BuildPackage,asterisk18-res-fax))
|
||||||
$(eval $(call BuildPackage,asterisk18-res-fax-spandsp))
|
$(eval $(call BuildPackage,asterisk18-res-fax-spandsp))
|
||||||
|
|
Loading…
Reference in a new issue