Changeset 21447


Ignore:
Timestamp:
2010-05-14T11:36:01+02:00 (7 years ago)
Author:
zandbelt
Message:

[packages] asterisk-1.6.x: add a bunch of modules through templating

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/asterisk-1.6.x/Makefile

    r20622 r21447  
    9191endef 
    9292 
    93 define Package/asterisk16-chan-local 
    94 $(call Package/asterisk16/Default) 
    95   TITLE:=chan_local support 
    96   DEPENDS:= +asterisk16 
    97 endef 
    98  
    99 define Package/asterisk16-chan-local/description 
    100 $(call Package/asterisk16/Default/description) 
    101  This package provides chan_local support to 
    102  Asterisk. 
    103 endef 
    104  
    10593define Package/asterisk16-cdr 
    10694$(call Package/asterisk16/Default) 
     
    127115endef 
    128116 
    129 define Package/asterisk16-format-g729 
    130 $(call Package/asterisk16/Default) 
    131   TITLE:=G.729 support 
    132   DEPENDS:= +asterisk16 
    133 endef 
    134  
    135 define Package/asterisk16-format-g729/description 
    136 $(call Package/asterisk16/Default/description) 
    137  This package provides G.729 support to 
    138  Asterisk. 
    139 endef 
    140  
    141117define Package/asterisk16-chan-gtalk 
    142118$(call Package/asterisk16/Default) 
     
    150126 support to Asterisk. 
    151127endef 
    152  
    153 define Package/asterisk16-app-system 
    154 $(call Package/asterisk16/Default) 
    155   TITLE:=System exec support 
    156   DEPENDS:= +asterisk16 
    157 endef 
    158  
    159 define Package/asterisk16-app-system/description 
    160 $(call Package/asterisk16/Default/description) 
    161  This package provides support for executing system commands in Asterisk. 
    162 endef 
    163  
     128  
    164129CONFIGURE_ARGS+= \ 
    165130        --without-curl \ 
     
    346311endef 
    347312 
    348 define Package/asterisk16-chan-local/install 
    349         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules 
    350         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_local.so $(1)/usr/lib/asterisk/modules/ 
    351 endef 
    352  
    353313define Package/asterisk16-cdr/install 
    354314        $(INSTALL_DIR) $(1)/etc/asterisk 
     
    363323        $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules 
    364324        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_musiconhold.so $(1)/usr/lib/asterisk/modules/ 
    365 endef 
    366  
    367 define Package/asterisk16-format-g729/install 
    368         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules 
    369         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/format_g729.so $(1)/usr/lib/asterisk/modules/ 
    370325endef 
    371326 
     
    384339endef 
    385340 
    386 define Package/asterisk16-app-system/install 
    387         $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules 
    388         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/app_system.so $(1)/usr/lib/asterisk/modules/ 
     341define BuildAsterisk16ModuleTemplate 
     342 
     343  define Package/asterisk16-$(subst _,-,$(1)) 
     344  $$(call Package/asterisk16/Default) 
     345    TITLE:=$(2) support 
     346    DEPENDS:= +asterisk16 
     347  endef 
     348 
     349  define Package/asterisk16-$(subst _,-,$(1))/description 
     350  $$(call Package/asterisk16/Default/description) 
     351    This package provides support $(3) in Asterisk. 
     352  endef 
     353 
     354  define Package/asterisk16-$(subst _,-,$(1))/install 
     355        $(INSTALL_DIR) $$(1)/usr/lib/asterisk/modules 
     356        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$(1).so $$(1)/usr/lib/asterisk/modules/ 
     357  endef 
     358 
     359  $$(eval $$(call BuildPackage,asterisk16-$(subst _,-,$(1)))) 
    389360endef 
    390361 
     
    394365#$(eval $(call BuildPackage,asterisk16-app-meetme)) 
    395366$(eval $(call BuildPackage,asterisk16-chan-iax2)) 
    396 $(eval $(call BuildPackage,asterisk16-chan-local)) 
    397367$(eval $(call BuildPackage,asterisk16-cdr)) 
    398368$(eval $(call BuildPackage,asterisk16-res-musiconhold)) 
    399 $(eval $(call BuildPackage,asterisk16-format-g729)) 
    400369$(eval $(call BuildPackage,asterisk16-chan-gtalk)) 
    401 $(eval $(call BuildPackage,asterisk16-app-system)) 
     370$(eval $(call BuildAsterisk16ModuleTemplate,app_authenticate,Authenticate,support for executing arbitrary authenticate commands)) 
     371$(eval $(call BuildAsterisk16ModuleTemplate,app_chanisavail,Channel availability check,support for checking if a channel is available)) 
     372$(eval $(call BuildAsterisk16ModuleTemplate,app_chanspy,Channel listen in,support for listening in on any channel)) 
     373$(eval $(call BuildAsterisk16ModuleTemplate,app_directed_pickup,Directed call pickup,support for directed call pickup)) 
     374$(eval $(call BuildAsterisk16ModuleTemplate,app_exec,Exec application,support for application execution)) 
     375$(eval $(call BuildAsterisk16ModuleTemplate,app_minivm,Minimal voicemail system,a voicemail system in small building blocks working together based on the Comedian Mail voicemail system)) 
     376$(eval $(call BuildAsterisk16ModuleTemplate,app_readexten,Extension to variable,a trivial application to read an extension into a variable)) 
     377$(eval $(call BuildAsterisk16ModuleTemplate,app_read,Variable read,a trivial application to read a variable)) 
     378$(eval $(call BuildAsterisk16ModuleTemplate,app_sayunixtime,Say Unix time,an application to say Unix time)) 
     379$(eval $(call BuildAsterisk16ModuleTemplate,app_sms,SMS,SMS support (ETSI ES 201 912 protocol 1))) 
     380$(eval $(call BuildAsterisk16ModuleTemplate,app_stack,Stack applications, stack applications Gosub Return etc.)) 
     381$(eval $(call BuildAsterisk16ModuleTemplate,app_system,System exec,support for executing system commands)) 
     382$(eval $(call BuildAsterisk16ModuleTemplate,app_talkdetect,File playback with audio detect,for file playback with audio detect)) 
     383$(eval $(call BuildAsterisk16ModuleTemplate,app_waituntil,Sleep,support sleeping until the given epoch)) 
     384$(eval $(call BuildAsterisk16ModuleTemplate,app_while,While loop,a while loop implementation)) 
     385$(eval $(call BuildAsterisk16ModuleTemplate,chan_agent,Agents proxy channel, an implementation of agents proxy channel)) 
     386$(eval $(call BuildAsterisk16ModuleTemplate,chan_local,Local proxy channel, an implementation of local proxy channel)) 
     387$(eval $(call BuildAsterisk16ModuleTemplate,codec_ulaw,Signed linear to ulaw translation,translation between signed linear and ulaw codecs)) 
     388$(eval $(call BuildAsterisk16ModuleTemplate,codec_a_mu,Alaw to ulaw translation,translation between alaw and ulaw codecs)) 
     389$(eval $(call BuildAsterisk16ModuleTemplate,codec_g726,Signed linear to G.726 translation,translation between signed linear and ITU G.726-32kbps codecs)) 
     390$(eval $(call BuildAsterisk16ModuleTemplate,format_g726,G.726,support for headerless G.726 16/24/32/40kbps data format)) 
     391$(eval $(call BuildAsterisk16ModuleTemplate,format_g729,G.729,support for raw headerless G729 data)) 
     392$(eval $(call BuildAsterisk16ModuleTemplate,format_sln,Raw slinear format,support for raw slinear format)) 
     393$(eval $(call BuildAsterisk16ModuleTemplate,format_sln16,Raw slinear 16 format,support for Raw slinear 16 format)) 
     394$(eval $(call BuildAsterisk16ModuleTemplate,func_db,Database interaction,functions for interaction with the database)) 
     395$(eval $(call BuildAsterisk16ModuleTemplate,func_devstate,Blinky lights control,functions for manually controlled blinky lights)) 
     396$(eval $(call BuildAsterisk16ModuleTemplate,func_vmcount,vmcount dialplan,a vmcount dialplan function)) 
     397$(eval $(call BuildAsterisk16ModuleTemplate,func_extstate,Hinted extension state,retrieving the state of a hinted extension for dialplan control)) 
     398$(eval $(call BuildAsterisk16ModuleTemplate,func_global,Global variable,global variable dialplan functions)) 
     399$(eval $(call BuildAsterisk16ModuleTemplate,func_shell,Shell,support for shell execution)) 
     400$(eval $(call BuildAsterisk16ModuleTemplate,pbx_ael,Asterisk Extension Logic,support for symbolic Asterisk Extension Logic)) 
     401$(eval $(call BuildAsterisk16ModuleTemplate,res_ael_share,Shareable AEL code,support for shareable AEL code mainly between internal and external modules)) 
     402$(eval $(call BuildAsterisk16ModuleTemplate,res_agi,Asterisk Gateway Interface,support for the Asterisk Gateway Interface extension)) 
Note: See TracChangeset for help on using the changeset viewer.