Ignore:
Timestamp:
2010-04-13T12:23:46+02:00 (6 years ago)
Author:
cshore
Message:

net/freeswitch: Updated to 1.0.6 (which allowed to eliminate patches), fixed network failure on startup, fixed OOM on exit, and moved logging of fs console output to file (on /tmp) instead of to syslog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/freeswitch/Makefile

    r19792 r20836  
    1 # 
    2 # Copyright (C) 2009 OpenWrt.org 
     1# (C) 2009 OpenWrt.org 
    32# 
    43# This is free software, licensed under the GNU General Public License v2. 
     
    98 
    109PKG_NAME:=freeswitch 
    11 PKG_VERSION:=1.0.4 
     10PKG_VERSION:=1.0.6 
    1211PKG_RELEASE:=1 
    1312 
    1413PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     14PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    1515PKG_SOURCE_URL:=http://files.freeswitch.org/ 
    16 PKG_MD5SUM:=86e34bdd8cc027d71772cb0dc51388da 
     16PKG_MD5SUM:=388effee587887a81fe7f411b7350590 
    1717 
    1818PKG_FIXUP:=libtool 
     
    2222        amr \ 
    2323        amrwb \ 
     24        bv \ 
    2425        cdr-csv \ 
    2526        celt \ 
    2627        cepstral \ 
     28        cidlookup \ 
    2729        cluechoo \ 
    2830        commands \ 
     
    3537        dialplan-xml \ 
    3638        dingaling \ 
     39        directory \ 
     40        distributor \ 
    3741        dptools \ 
    3842        easyroute \ 
     
    5155        g729 \ 
    5256        h26x \ 
     57        h323 \ 
    5358        iax \ 
    5459        ilbc \ 
     
    6065        loopback \ 
    6166        lua \ 
     67        managed \ 
    6268        memcache \ 
    6369        native-file \ 
     
    6874        pocketsphinx \ 
    6975        portaudio \ 
     76        portaudio-stream \ 
    7077        python \ 
    7178        radius-cdr \ 
     
    7885        say-nl \ 
    7986        say-ru \ 
     87        say-th \ 
    8088        say-zh \ 
     89        shell-stream \ 
    8190        shout \ 
     91        silk \ 
    8292        siren \ 
    83         skypiax \ 
     93        skinny \ 
     94        skypopen \ 
     95        sangoma-codec \ 
     96        snapshot \ 
     97        snipe-hunt \ 
    8498        sndfile \ 
    8599        snom \ 
     
    94108        spidermonkey-teletone \ 
    95109        spy \ 
     110        stress \ 
    96111        syslog \ 
    97112        tone-stream \ 
    98113        unimrcp \ 
     114        valet-parking \ 
    99115        vmd \ 
    100116        voicemail \ 
     
    121137$(call Package/freeswitch/Default) 
    122138  TITLE:=FreeSWITCH open source telephony platform 
    123   DEPENDS:=+libopenssl +libreadline +libncurses +libpthread +libstdcpp 
     139  DEPENDS:= +libopenssl +libreadline +libncurses +libpthread +libstdcpp 
    124140  MENU:=1 
    125141endef 
     
    132148 
    133149 
     150 
    134151define Package/freeswitch-default 
    135152$(call Package/freeswitch/Default) 
    136153  TITLE:=FreeSWITCH default config 
    137   DEPENDS:=freeswitch \ 
     154  DEPENDS:= freeswitch \ 
    138155                +freeswitch-mod-commands \ 
    139156                +freeswitch-mod-conference \ 
     
    161178$(call Package/freeswitch/Default) 
    162179  TITLE:=FreeSWITCH minimal config 
    163   DEPENDS:=freeswitch \ 
     180  DEPENDS:= freeswitch \ 
    164181                +freeswitch-mod-commands \ 
    165182                +freeswitch-mod-console \ 
     
    177194$(call Package/freeswitch/Default) 
    178195  TITLE:=FreeSWITCH english sounds 
    179   DEPENDS:=freeswitch 
     196  DEPENDS:= freeswitch 
    180197endef 
    181198 
     
    184201$(call Package/freeswitch/Default) 
    185202  TITLE:=FreeSWITCH music-on-hold sounds 
    186   DEPENDS:=freeswitch 
     203  DEPENDS:= freeswitch 
    187204endef 
    188205 
     
    191208$(call Package/freeswitch/Default) 
    192209  TITLE:=FreeSWITCH control tools 
    193   DEPENDS:=freeswitch 
     210  DEPENDS:= freeswitch 
    194211endef 
    195212 
     
    218235 
    219236ifneq ($(CONFIG_PACKAGE_freeswitch-mod-flite),) 
    220  $(eval $(call Download/files,flite,flite-1.3.99-latest.tar.gz,,downloads/libs/,libs/)) 
     237 $(eval $(call Download/files,flite,flite-1.3.99.tar.gz,,downloads/libs/,libs/)) 
    221238endif 
    222239 
     
    231248endif 
    232249 
     250FS_TARGET_CFLAGS = ${TARGET_CFLAGS} -DLUA_USE_LINUX $(FPIC) -std=gnu99 
     251FS_TARGET_CXXFLAGS = ${TARGET_CXXFLAGS} -DLUA_USE_LINUX $(FPIC) 
     252FS_TARGET_CPPFLAGS = -I. -I./lua ${TARGET_CPPFLAGS} 
     253 
     254ifneq ($(CONFIG_USE_EGLIBC),) 
     255  ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),) 
     256    TARGET_CFLAGS += -DNO_GETLOGIN 
     257  endif 
     258endif 
    233259 
    234260CONFIGURE_ARGS+= \ 
     
    245271        --without-erlang \ 
    246272        --without-java \ 
    247         --without-odbc \ 
    248273        --without-mysql \ 
    249274        --without-pgsql \ 
     
    252277 
    253278CONFIGURE_VARS+= \ 
    254         config_BUILD_CC="$(HOSTCC)" \ 
    255         config_BUILD_CFLAGS="$(HOST_CFLAGS)" \ 
    256         config_TARGET_CC="$(TARGET_CC)" \ 
    257         config_TARGET_CFLAGS="$(TARGET_CFLAGS)" \ 
    258         config_TARGET_READLINE_INC="$(TARGET_CPPFLAGS)" \ 
    259         config_TARGET_READLINE_LIBS="$(TARGET_LDFLAGS) -lreadline -lncurses" \ 
    260         config_TARGET_LIBS="$(TARGET_LDFLAGS) -lpthread" \ 
    261         CC_FOR_BUILD="$(HOSTCC)" \ 
    262         CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \ 
    263         LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \ 
    264         LDFLAGS="$(TARGET_LDFLAGS) -Wl,-rpath-link=\"$(STAGING_DIR)/usr/lib\"" \ 
     279        config_TARGET_CC="${TARGET_CC}" \ 
     280        config_TARGET_CFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CFLAGS}" \ 
     281        config_TARGET_CXX="${TARGET_CXX}" \ 
     282        config_TARGET_CXXFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CXXFLAGS}" \ 
     283        config_TARGET_CPPFLAGS="${FS_TARGET_CPPFLAGS}" \ 
     284        config_BUILD_CC="${HOSTCC}" \ 
     285        config_TARGET_READLINE_INC="${FS_TARGET_CPPFLAGS}" \ 
     286        config_TARGET_READLINE_LIBS="${TARGET_LDFLAGS} -lreadline -lncurses" \ 
     287        config_TARGET_LIBS="${TARGET_LDFLAGS} -lpthread" \ 
     288        CC_FOR_BUILD="${HOSTCC}" \ 
     289        LDFLAGS_FOR_BUILD="${HOST_LDFLAGS}" \ 
     290        CC="${TARGET_CC}" \ 
     291        CXX="${TARGET_CXX}" \ 
     292        CFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CFLAGS}" \ 
     293        CXXFLAGS="${FS_TARGET_CPPFLAGS} ${FS_TARGET_CXXFLAGS}" \ 
     294        CPPFLAGS="${FS_TARGET_CPPFLAGS}" \ 
     295        LDFLAGS="${TARGET_LDFLAGS} -Wl,-rpath-link=\"${STAGING_DIR}/usr/lib\"" \ 
    265296        ac_cv_dev_urandom="yes" \ 
    266297        ac_cv_file_dbd_apr_dbd_mysql_c="no" \ 
     
    271302        ac_cv_func_pthread_rwlock_init="yes" \ 
    272303        ac_cv_struct_rlimit="yes" \ 
     304        ac_cv_func_setpgrp_void="yes" \ 
    273305        apr_cv_mutex_recursive="yes" \ 
    274306        apr_cv_process_shared_works="no" \ 
     
    276308        apr_cv_type_rwlock_t="yes" \ 
    277309        ac_cv_path_LIBGNUTLS_CONFIG="no" \ 
     310 
    278311 
    279312define Build/Prepare 
     
    287320 
    288321define Build/Configure 
    289         ( cd $(PKG_BUILD_DIR); ./rebootstrap.sh; ) 
    290322$(call Build/Configure/Default) 
    291323        $(foreach m,$(FS_MOD_AVAILABLE), 
     
    322354        $(INSTALL_DIR) $(1)/etc/init.d 
    323355        $(INSTALL_BIN) ./files/freeswitch.init $(1)/etc/init.d/freeswitch 
     356        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface 
     357        $(INSTALL_DATA) ./files/freeswitch.hotplug $(1)/etc/hotplug.d/iface/90-freeswitch 
     358        $(INSTALL_DIR) $(1)/etc/config 
     359        $(INSTALL_DATA) ./files/freeswitch.config $(1)/etc/config/freeswitch 
    324360endef 
    325361 
     
    357393  define Package/freeswitch-mod-$(1) 
    358394    $$(call Package/freeswitch/Default) 
    359     TITLE:= FS $(2) module 
    360     DEPENDS:=freeswitch $$(foreach m,$(4),+freeswitch-mod-$$m) $(5) 
     395    TITLE:= FS $(2) module (snapshot) 
     396    DEPENDS:= freeswitch $$(foreach m,$(4),+freeswitch-mod-$$m) $(5) 
    361397  endef 
    362398 
     
    384420$(eval $(call BuildPlugin,amr,GSM-AMR codec,mod_amr,,)) 
    385421$(eval $(call BuildPlugin,amrwb,GSM-AMRWB,mod_amrwb,,)) 
     422$(eval $(call BuildPlugin,bv,codec mod_bv,mod_bv,,)) 
    386423$(eval $(call BuildPlugin,cdr-csv,CSV-CDR handler,mod_cdr_csv,,)) 
    387 $(eval $(call BuildPlugin,celt,CELT ultra-low delay codec,mod_celt,,)) 
     424$(eval $(call BuildPlugin,celt,CELT ultra-low delay codec,mod_celt,,+libogg)) 
    388425$(eval $(call BuildPlugin,cepstral,Cepstral interface,mod_cepstral,,@BROKEN)) # needs <swift.h> 
     426$(eval $(call BuildPlugin,cidlookup,applications mod_cidlookup,mod_cidlookup,,)) 
    389427$(eval $(call BuildPlugin,cluechoo,Framework Demo,mod_cluechoo,,)) 
    390428$(eval $(call BuildPlugin,commands,API commands,mod_commands,,)) 
    391429$(eval $(call BuildPlugin,conference,Conference room,mod_conference,,)) 
    392430$(eval $(call BuildPlugin,console,Console logger,mod_console,,)) 
    393 $(eval $(call BuildPlugin,curl,HTTP request,mod_curl,,)) 
     431$(eval $(call BuildPlugin,curl,HTTP request,mod_curl,,+libcurl)) 
    394432$(eval $(call BuildPlugin,dahdi-codec,DAHDI codecs,mod_dahdi_codec,,)) 
    395433$(eval $(call BuildPlugin,dialplan-asterisk,Asterisk dialplan parser,mod_dialplan_asterisk,,)) 
    396434$(eval $(call BuildPlugin,dialplan-directory,Dialplan-Directory interface,mod_dialplan_directory,,)) 
    397435$(eval $(call BuildPlugin,dialplan-xml,Dialplan-XML interface,mod_dialplan_xml,,)) 
    398 $(eval $(call BuildPlugin,dingaling,Jabber interface,mod_dingaling,,)) 
     436$(eval $(call BuildPlugin,dingaling,Jabber interface,mod_dingaling,,+libgnutls-openssl))  
     437$(eval $(call BuildPlugin,directory,application mod_directory,mod_directory,,)) 
     438$(eval $(call BuildPlugin,distributor,application mod_distributor,mod_distributor,,)) 
    399439$(eval $(call BuildPlugin,dptools,Dialplan tools,mod_dptools,,)) 
    400440$(eval $(call BuildPlugin,easyroute,DID routing,mod_easyroute,,)) 
     
    405445$(eval $(call BuildPlugin,event-socket,Socket event handler,mod_event_socket,,)) 
    406446$(eval $(call BuildPlugin,expr,Expression evaluation,mod_expr,,)) 
    407 $(eval $(call BuildPlugin,fax,Fax,mod_fax,,@BROKEN)) # fails in spandsp 
     447$(eval $(call BuildPlugin,fax,Fax,mod_fax,,@BROKEN +libjpeg)) # fails in spandsp 
    408448$(eval $(call BuildPlugin,fifo,FIFO,mod_fifo,,)) 
    409449$(eval $(call BuildPlugin,file-string,File streaming,mod_file_string,,)) 
     
    413453$(eval $(call BuildPlugin,g729,G.729 codec,mod_g729,,)) 
    414454$(eval $(call BuildPlugin,h26x,H26X linear codec,mod_h26x,,)) 
     455$(eval $(call BuildPlugin,h323,h323 endpoint,mod_h323,,@BROKEN)) # missing header files (other packages needed) 
    415456$(eval $(call BuildPlugin,iax,IAX2 interface,mod_iax,,)) 
     457$(eval $(call BuildPlugin,java,Java language interface,mod_java,,@BROKEN)) # needs java 
    416458$(eval $(call BuildPlugin,ilbc,ILBC codec,mod_ilbc,,)) 
    417459$(eval $(call BuildPlugin,lcr,Least Cost Routing,mod_lcr,,)) 
     
    421463$(eval $(call BuildPlugin,logfile,File logger,mod_logfile,,)) 
    422464$(eval $(call BuildPlugin,loopback,Loopback endpoint,mod_loopback,,)) 
    423 $(eval $(call BuildPlugin,lua,Lua language interface,mod_lua,,+libstdcpp)) # needs C++ 
     465$(eval $(call BuildPlugin,lua,Lua language interface,mod_lua,,+libstdcpp)) 
     466$(eval $(call BuildPlugin,managed,language mod_managed,mod_managed,,@BROKEN)) # needs Mono 
    424467$(eval $(call BuildPlugin,memcache,MemCached interface,mod_memcache,,@BROKEN)) # fails in libmemcached 
    425468$(eval $(call BuildPlugin,native-file,Native files,mod_native_file,,)) 
     
    430473$(eval $(call BuildPlugin,pocketsphinx,PocketSphinx SR,mod_pocketsphinx,,@BROKEN)) # fails in sphinxbase 
    431474$(eval $(call BuildPlugin,portaudio,Local audio endpoint,mod_portaudio,,+alsa-lib)) 
     475$(eval $(call BuildPlugin,portaudio-stream,format mod_portaudio_stream,mod_portaudio_stream,,)) 
    432476$(eval $(call BuildPlugin,python,Python language interface,mod_python,,+python @BROKEN)) # needs Python 
    433477$(eval $(call BuildPlugin,radius-cdr,Radius-CDR interface,mod_radius_cdr,,@BROKEN)) # fails in freeradius-client 
     
    440484$(eval $(call BuildPlugin,say-nl,Dutch say,mod_say_nl,,)) 
    441485$(eval $(call BuildPlugin,say-ru,Russian say,mod_say_ru,,)) 
     486$(eval $(call BuildPlugin,say-th,mod_th say,mod_say_th,,)) 
    442487$(eval $(call BuildPlugin,say-zh,Chineese say,mod_say_zh,,)) 
     488$(eval $(call BuildPlugin,shell-stream,,mod_shell_stream,,)) 
    443489$(eval $(call BuildPlugin,shout,MP3 and Shoutcast stream,mod_shout,,@BROKEN)) # needs Ogg/Vorbis 
    444 $(eval $(call BuildPlugin,siren,G.722.1 codec,mod_siren,,@BROKEN)) # fails in libg722_1 
    445 $(eval $(call BuildPlugin,skypiax,Skype compatible endpoint,mod_skypiax,,@BROKEN)) # needs <X11/Xlib.h> 
     490$(eval $(call BuildPlugin,silk,codec mod_silk,mod_silk,,)) 
     491$(eval $(call BuildPlugin,siren,G.722.1 codec,mod_siren,,@BROKEN)) # fails in libg722_1 - attempts to execute cross-compiled binary on host 
     492$(eval $(call BuildPlugin,skinny,endpoint mod_skinny,mod_skinny,,)) 
     493$(eval $(call BuildPlugin,skypopen,Skype compatible endpoint,mod_skypopen,,@BROKEN)) # needs <X11/Xlib.h> 
     494$(eval $(call BuildPlugin,sangoma-codec,codec sangoma-codec,mod_sangoma_codec,,@BROKEN)) # Untested 
     495$(eval $(call BuildPlugin,snapshot,application mod_snapshot,mod_snapshot,,)) 
     496$(eval $(call BuildPlugin,snipe-hunt,application mod_snipe_hunt,mod_snipe_hunt,,)) 
    446497$(eval $(call BuildPlugin,sndfile,Multi-Format file transcoder,mod_sndfile,,)) 
    447498$(eval $(call BuildPlugin,snom,SNOM specific features,mod_snom,,)) 
     
    456507$(eval $(call BuildPlugin,spidermonkey-teletone,JavaScript teletone,mod_spidermonkey_teletone,,@BROKEN)) 
    457508$(eval $(call BuildPlugin,spy,User spy,mod_spy,,)) 
     509$(eval $(call BuildPlugin,stress,application mod_stress,mod_stress,,)) 
    458510$(eval $(call BuildPlugin,syslog,SysLog logger,mod_syslog,,)) 
    459511$(eval $(call BuildPlugin,tone-stream,Tone generation stream,mod_tone_stream,,)) 
    460512$(eval $(call BuildPlugin,unimrcp,MRCP interface,mod_unimrcp,,)) 
     513$(eval $(call BuildPlugin,valet-parking,application mod_valet_parking,mod_valet_parking,,)) 
    461514$(eval $(call BuildPlugin,vmd,VoiceMail beep detection,mod_vmd,,)) 
    462515$(eval $(call BuildPlugin,voicemail,VoiceMail,mod_voicemail,,)) 
     
    467520$(eval $(call BuildPlugin,xml-rpc,XML-RPC interface,mod_xml_rpc,,)) 
    468521$(eval $(call BuildPlugin,yaml,YAML dialplans,mod_yaml,,)) 
     522 
Note: See TracChangeset for help on using the changeset viewer.