Changeset 26263


Ignore:
Timestamp:
2011-03-22T01:39:37+01:00 (7 years ago)
Author:
cshore
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/yate/Makefile

    r26256 r26263  
    4646  Is a next-generation telephony engine focused on the VoIP and PSTN.  It does 
    4747  SIP, H.323, IAX, PSTN, and more. 
     48endef 
     49 
     50define Package/$(PKG_NAME)-scripts-php 
     51  $(call Package/yate/Default) 
     52  DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +php5 +php5-cli 
     53  TITLE:= PHP Scripts and script libraries for Yate 
     54endef 
     55 
     56define Package/$(PKG_NAME)-scripts-perl 
     57  $(call Package/yate/Default) 
     58  DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +microperl 
     59  TITLE:= Perl module for Yate 
     60endef 
     61 
     62define Package/$(PKG_NAME)-scripts-python 
     63  $(call Package/yate/Default) 
     64  DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +python-mini 
     65  TITLE:= Python module for Yate 
     66endef 
     67 
     68define Package/$(PKG_NAME)-sounds 
     69  $(call Package/yate/Default) 
     70  DEPENDS += $(PKG_NAME) 
     71  TITLE := Sounds for Yate 
     72endef 
     73 
     74define Package/$(PKG_NAME)-collection-basic 
     75  $(call Package/yate/Default) 
     76  DEPENDS += $(PKG_NAME) \ 
     77        +$(PKG_NAME)-sounds \ 
     78        +$(PKG_NAME)-mod-dumbchan \ 
     79        +$(PKG_NAME)-mod-regfile \ 
     80        +$(PKG_NAME)-mod-regexroute \ 
     81        +$(PKG_NAME)-mod-rmanager \ 
     82        +$(PKG_NAME)-mod-tonegen \ 
     83        +$(PKG_NAME)-mod-yrtpchan \ 
     84        +$(PKG_NAME)-mod-ysipchan 
     85   TITLE := Basic Yate Server 
    4886endef 
    4987 
     
    85123endef 
    86124 
     125define Package/$(PKG_NAME)-scripts-php/install 
     126        $(INSTALL_DIR) $(1)/usr/share/yate/scripts 
     127        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/leavemail.php $(1)/usr/share/yate/scripts/ 
     128        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/queue_in.php $(1)/usr/share/yate/scripts/ 
     129        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/queue_out.php $(1)/usr/share/yate/scripts/ 
     130        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/route.php $(1)/usr/share/yate/scripts/ 
     131        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/voicemail.php $(1)/usr/share/yate/scripts/ 
     132        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libvoicemail.php $(1)/usr/share/yate/scripts/ 
     133        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyatechan.php $(1)/usr/share/yate/scripts/ 
     134        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyateivr.php $(1)/usr/share/yate/scripts/ 
     135        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyate.php $(1)/usr/share/yate/scripts/ 
     136endef 
     137 
     138define Package/$(PKG_NAME)-scripts-perl/install 
     139        $(INSTALL_DIR) $(1)/usr/share/yate/scripts 
     140        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/Yate.pm $(1)/usr/share/yate/scripts/ 
     141endef 
     142 
     143define Package/$(PKG_NAME)-scripts-python/install 
     144        $(INSTALL_DIR) $(1)/usr/share/yate/scripts 
     145        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyate.py $(1)/usr/share/yate/scripts/ 
     146endef 
     147 
     148define Package/$(PKG_NAME)-sounds/install 
     149        $(INSTALL_DIR) $(1)/usr/share/yate/sounds 
     150        $(CP) $(PKG_INSTALL_DIR)/usr/share/yate/sounds/ $(1)/usr/share/yate/ 
     151endef 
     152 
     153define Package/$(PKG_NAME)-collection-basic/install 
     154endef 
     155 
    87156define Build/InstallDev 
    88157        $(INSTALL_DIR) $(STAGING_DIR)/usr/include 
     
    125194endef 
    126195 
    127 $(eval $(call BuildPackage,yate)) 
     196$(eval $(call BuildPackage,$(PKG_NAME))) 
     197$(eval $(call BuildPackage,$(PKG_NAME)-collection-basic)) 
     198$(eval $(call BuildPackage,$(PKG_NAME)-scripts-php)) 
     199$(eval $(call BuildPackage,$(PKG_NAME)-scripts-perl)) 
     200$(eval $(call BuildPackage,$(PKG_NAME)-scripts-python)) 
     201$(eval $(call BuildPackage,$(PKG_NAME)-sounds)) 
    128202$(eval $(call BuildPlugin,accfile,server,SIP or H.323 client (from file),)) 
    129203$(eval $(call BuildPlugin,alsachan,client,ALSA Sound Channel,+alsa-lib)) 
Note: See TracChangeset for help on using the changeset viewer.