[net] Telephony: Yate: Added packages for files under /usr/share/yate, and created a minimal package collection for easy install.

git-svn-id: svn://svn.openwrt.org/openwrt/packages@26263 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
cshore 2011-03-22 00:39:37 +00:00
parent 57ddea3d46
commit 6e2b2d8013

View File

@ -47,6 +47,44 @@ define Package/$(PKG_NAME)/Default/description
SIP, H.323, IAX, PSTN, and more.
endef
define Package/$(PKG_NAME)-scripts-php
$(call Package/yate/Default)
DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +php5 +php5-cli
TITLE:= PHP Scripts and script libraries for Yate
endef
define Package/$(PKG_NAME)-scripts-perl
$(call Package/yate/Default)
DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +microperl
TITLE:= Perl module for Yate
endef
define Package/$(PKG_NAME)-scripts-python
$(call Package/yate/Default)
DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +python-mini
TITLE:= Python module for Yate
endef
define Package/$(PKG_NAME)-sounds
$(call Package/yate/Default)
DEPENDS += $(PKG_NAME)
TITLE := Sounds for Yate
endef
define Package/$(PKG_NAME)-collection-basic
$(call Package/yate/Default)
DEPENDS += $(PKG_NAME) \
+$(PKG_NAME)-sounds \
+$(PKG_NAME)-mod-dumbchan \
+$(PKG_NAME)-mod-regfile \
+$(PKG_NAME)-mod-regexroute \
+$(PKG_NAME)-mod-rmanager \
+$(PKG_NAME)-mod-tonegen \
+$(PKG_NAME)-mod-yrtpchan \
+$(PKG_NAME)-mod-ysipchan
TITLE := Basic Yate Server
endef
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include $(if $(CONFIG_BIG_ENDIAN),-DBIGENDIAN,)
CONFIGURE_ARGS+= \
@ -84,6 +122,37 @@ define Package/$(PKG_NAME)/install
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/yate/yate.conf $(1)/etc/$(PKG_NAME)/yate.conf
endef
define Package/$(PKG_NAME)-scripts-php/install
$(INSTALL_DIR) $(1)/usr/share/yate/scripts
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/leavemail.php $(1)/usr/share/yate/scripts/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/queue_in.php $(1)/usr/share/yate/scripts/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/queue_out.php $(1)/usr/share/yate/scripts/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/route.php $(1)/usr/share/yate/scripts/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/voicemail.php $(1)/usr/share/yate/scripts/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libvoicemail.php $(1)/usr/share/yate/scripts/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyatechan.php $(1)/usr/share/yate/scripts/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyateivr.php $(1)/usr/share/yate/scripts/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyate.php $(1)/usr/share/yate/scripts/
endef
define Package/$(PKG_NAME)-scripts-perl/install
$(INSTALL_DIR) $(1)/usr/share/yate/scripts
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/Yate.pm $(1)/usr/share/yate/scripts/
endef
define Package/$(PKG_NAME)-scripts-python/install
$(INSTALL_DIR) $(1)/usr/share/yate/scripts
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyate.py $(1)/usr/share/yate/scripts/
endef
define Package/$(PKG_NAME)-sounds/install
$(INSTALL_DIR) $(1)/usr/share/yate/sounds
$(CP) $(PKG_INSTALL_DIR)/usr/share/yate/sounds/ $(1)/usr/share/yate/
endef
define Package/$(PKG_NAME)-collection-basic/install
endef
define Build/InstallDev
$(INSTALL_DIR) $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(STAGING_DIR)/usr/include/
@ -124,7 +193,12 @@ define BuildPlugin
$$(eval $$(call BuildPackage,$(PKG_NAME)-mod-$(1)))
endef
$(eval $(call BuildPackage,yate))
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)-collection-basic))
$(eval $(call BuildPackage,$(PKG_NAME)-scripts-php))
$(eval $(call BuildPackage,$(PKG_NAME)-scripts-perl))
$(eval $(call BuildPackage,$(PKG_NAME)-scripts-python))
$(eval $(call BuildPackage,$(PKG_NAME)-sounds))
$(eval $(call BuildPlugin,accfile,server,SIP or H.323 client (from file),))
$(eval $(call BuildPlugin,alsachan,client,ALSA Sound Channel,+alsa-lib))
$(eval $(call BuildPlugin,amrnbcodec,,AMR-NB Codec,@BROKEN)) # Missing amr-nb library