Changeset 22084


Ignore:
Timestamp:
2010-07-07T13:18:11+02:00 (7 years ago)
Author:
cshore
Message:

[packages]: net/freeswitch: Added initial uci configuration capability.

Location:
packages/net/freeswitch
Files:
47 added
3 edited

Legend:

Unmodified
Added
Removed
  • packages/net/freeswitch/Makefile

    r22082 r22084  
    173173define Package/freeswitch-config-minimal 
    174174$(call Package/freeswitch/Default) 
    175   TITLE:=FreeSWITCH minimal OpenWRT config 
     175  TITLE:=FreeSWITCH a minimal FS config 
    176176  DEPENDS:= freeswitch 
    177177endef 
    178178 
    179179define Package/freeswitch-config-minimal/description 
    180   The OpenWRT configuration for the OpenWRT FreeSWITCH minimal package collection. 
     180  A minimal configuration of FreeSWITCH for OpenWRT devices.  Is what the UCI  
     181  configuration began with. 
     182   
     183endef 
     184 
     185define Package/freeswitch-config-uci 
     186$(call Package/freeswitch/Default) 
     187  TITLE:=UCI-configuration for FreeSWITCH  
     188  DEPENDS:= freeswitch 
     189endef 
     190 
     191define Package/freeswitch-config-uci/description 
     192  The UCI configuration system for FreeSWITCH on OpenWRT. 
    181193endef 
    182194 
     
    210222endef 
    211223 
     224define Package/freeswitch-collection-minimal 
     225$(call Package/freeswitch/Default) 
     226  TITLE:=A FreeSWITCH minimal package collection 
     227  DEPENDS:= freeswitch \ 
     228                +freeswitch-config-minimal \ 
     229                +freeswitch-mod-commands \ 
     230                +freeswitch-mod-syslog \ 
     231                +freeswitch-mod-dialplan-xml \ 
     232                +freeswitch-mod-dptools \ 
     233                +freeswitch-mod-event-socket \ 
     234                +freeswitch-mod-local-stream \ 
     235                +freeswitch-mod-sndfile \ 
     236                +freeswitch-mod-sofia \ 
     237                +freeswitch-mod-tone-stream \ 
     238                +freeswitch-mod-voipcodecs \ 
     239                +freeswitch-tools 
     240endef 
     241 
    212242# mod_lua is included in FreeSWITCH minimal because it is intended to be used 
    213243# by the LuCI / ucitrigger interface to FreeSWITCH on OpenWRT 
    214244 
    215 define Package/freeswitch-collection-minimal 
    216 $(call Package/freeswitch/Default) 
    217   TITLE:=FreeSWITCH on OpenWRT minimal config 
     245define Package/freeswitch-collection-uci-minimal 
     246$(call Package/freeswitch/Default) 
     247  TITLE:=FreeSWITCH on OpenWRT minimal collection of packages 
    218248  DEPENDS:= freeswitch \ 
    219                 +freeswitch-config-minimal \ 
     249                +freeswitch-config-uci \ 
    220250                +freeswitch-mod-commands \ 
    221251                +freeswitch-mod-syslog \ 
     
    420450endef 
    421451 
     452define Package/freeswitch-collection-uci-minimal/install 
     453        $(INSTALL_DIR) $(1)/etc/freeswitch 
     454endef 
     455 
    422456define Package/freeswitch-config-minimal/install 
    423457        $(INSTALL_DIR) $(1)/etc/freeswitch 
    424458        $(CP) ./files/etc.minimal/* $(1)/etc/freeswitch/ 
     459endef 
     460 
     461define Package/freeswitch-config-uci/install 
     462        $(INSTALL_DIR) $(1)/etc/freeswitch 
     463        $(CP) ./files/etc.uci/* $(1)/etc/freeswitch/ 
     464        $(INSTALL_DIR) $(1)/usr/lib/freeswitch/uci 
     465        $(CP) ./files/uci/* $(1)/usr/lib/freeswitch/uci/ 
    425466endef 
    426467 
     
    467508$(eval $(call BuildPackage,freeswitch-collection-upstream-defaults)) 
    468509$(eval $(call BuildPackage,freeswitch-collection-minimal)) 
     510$(eval $(call BuildPackage,freeswitch-collection-uci-minimal)) 
    469511$(eval $(call BuildPackage,freeswitch-sounds-en)) 
    470512$(eval $(call BuildPackage,freeswitch-sounds-moh)) 
     
    473515$(eval $(call BuildPackage,freeswitch-config-upstream-defaults)) 
    474516$(eval $(call BuildPackage,freeswitch-config-minimal)) 
     517$(eval $(call BuildPackage,freeswitch-config-uci)) 
    475518 
    476519#$(eval $(call BuildPlugin,Name,Title,Files,Depends)) 
  • packages/net/freeswitch/files/freeswitch.config

    r20836 r22084  
    33        option 'started' '0' 
    44 
     5config 'profile_top' 'internal_top' 
     6 
     7config 'profile_top' 'external_top' 
     8 
     9config 'external_gateway' 'external_example' 
     10 
     11 
  • packages/net/freeswitch/files/freeswitch.init

    r21965 r22084  
    1616        mkdir -p $FS_DIR_LOG 
    1717        ulimit -s 240 
     18        include /usr/lib/freeswitch/uci 
     19        fs_init_xml 
    1820        $FS_DIR/usr/bin/freeswitch $OPTIONS -nc 
    1921} 
Note: See TracChangeset for help on using the changeset viewer.