aboutsummaryrefslogtreecommitdiff
path: root/net/freeswitch-core-devel
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2012-05-17 21:03:11 +0000
committerChris Rees <crees@FreeBSD.org>2012-05-17 21:03:11 +0000
commit8b8a2ff5e694aac27d1e35573ef5b644d00d118a (patch)
treec77a44d092c78d950f67b779af9f9cbf931b2a0c /net/freeswitch-core-devel
parent8b6dda863f053686c83c3cdfa01c5bb31ed88dca (diff)
downloadports-8b8a2ff5e694aac27d1e35573ef5b644d00d118a.tar.gz
ports-8b8a2ff5e694aac27d1e35573ef5b644d00d118a.zip
Notes
Diffstat (limited to 'net/freeswitch-core-devel')
-rw-r--r--net/freeswitch-core-devel/Makefile353
-rw-r--r--net/freeswitch-core-devel/distinfo30
-rw-r--r--net/freeswitch-core-devel/files/freeswitch.in49
-rw-r--r--net/freeswitch-core-devel/files/patch-Makefile.am48
-rw-r--r--net/freeswitch-core-devel/files/patch-build-getlib.sh.in16
-rw-r--r--net/freeswitch-core-devel/files/patch-build-modules.conf.in10
-rw-r--r--net/freeswitch-core-devel/files/patch-conf-vanilla-autoload_configs-switch.conf.xml10
-rw-r--r--net/freeswitch-core-devel/files/patch-conf-vanilla-sip_profiles-external.xml12
-rw-r--r--net/freeswitch-core-devel/files/patch-conf-vanilla-sip_profiles-internal.xml14
-rw-r--r--net/freeswitch-core-devel/files/patch-configure.in167
-rw-r--r--net/freeswitch-core-devel/files/patch-libs-freetdm-Makefile.am9
-rw-r--r--net/freeswitch-core-devel/files/patch-libs-freetdm-mod_freetdm-Makefile.in12
-rw-r--r--net/freeswitch-core-devel/files/patch-src-include-private-switch_core_pvt.h10
-rw-r--r--net/freeswitch-core-devel/files/patch-src-include-switch_types.h12
-rw-r--r--net/freeswitch-core-devel/files/patch-src-mod-event_handlers-mod_event_socket-mod_event_socket.c24
-rw-r--r--net/freeswitch-core-devel/files/patch-src-switch_core.c36
-rw-r--r--net/freeswitch-core-devel/files/pkg-install.in41
-rw-r--r--net/freeswitch-core-devel/files/pkg-message.in20
-rw-r--r--net/freeswitch-core-devel/pkg-descr3
-rw-r--r--net/freeswitch-core-devel/pkg-plist349
20 files changed, 1225 insertions, 0 deletions
diff --git a/net/freeswitch-core-devel/Makefile b/net/freeswitch-core-devel/Makefile
new file mode 100644
index 000000000000..e9c6da4c7681
--- /dev/null
+++ b/net/freeswitch-core-devel/Makefile
@@ -0,0 +1,353 @@
+# Ports collection makefile for: freeswitch-core-devel
+# Date created: May 14, 2012
+# Whom: Richard Neese <r.neese@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= freeswitch
+DISTVERSION= 1.2.rc2
+CATEGORIES= net
+MASTER_SITES= http://files.freeswitch.org/ \
+ http://files.freeswitch.org/downloads/libs/:2 \
+ http://download.zeromq.org/:3
+PKGNAMESUFFIX= -core-devel
+DISTFILES= ${PORTNAME}-${DISTVERSION}.tar.bz2 \
+ opus-0.9.0.tar.gz:2 \
+ celt-0.10.0.tar.gz:2 \
+ flite-1.5.4-current.tar.bz2:2 \
+ json-c-0.9.tar.gz:2 \
+ lame-3.98.4.tar.gz:2 \
+ libmemcached-0.32.tar.gz:2 \
+ libshout-2.2.2.tar.gz:2 \
+ mpg123-1.13.2.tar.gz:2 \
+ openldap-2.4.11.tar.gz:2 \
+ pocketsphinx-0.7.tar.gz:2 \
+ soundtouch-1.6.0.tar.gz:2 \
+ sphinxbase-0.7.tar.gz:2 \
+ communicator_semi_6000_20080321.tar.gz:2 \
+ zeromq-2.1.11.tar.gz:3
+DIST_SUBDIR= ${PORTNAME}
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}.tar.bz2
+
+MAINTAINER= r.neese@gmail.com
+COMMENT= FreeSwitch SoftSwitch Port
+
+BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
+LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
+ jpeg:${PORTSDIR}/graphics/jpeg \
+ tiff:${PORTSDIR}/graphics/tiff \
+ odbc:${PORTSDIR}/databases/unixODBC
+
+CONFLICTS= freeswitch-core-[0-9]*
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
+
+USE_AUTOTOOLS= autoconf:env automake:env libtool:env
+
+USE_PERL5_BUILD=yes
+USE_BISON= both
+USE_GMAKE= yes
+SUB_FILES= pkg-install
+USE_RC_SUBR= freeswitch
+HAS_CONFIGURE= yes
+USE_LDCONFIG= yes
+LDFLAGS+= -L${LOCALBASE}/lib
+INCLUDES= -I${LOCALBASE}/include
+CONFIGURE_ARGS+=--prefix=${PREFIX} \
+ --bindir=${PREFIX}/bin \
+ --datadir=${VARBASE}/db/${PORTNAME} \
+ --includedir=${PREFIX}/include/${PORTNAME} \
+ --libdir=${PREFIX}/lib/${PORTNAME}/lib \
+ --localstatedir=${VARBASE} \
+ --sysconfdir=${PREFIX}/etc/${PORTNAME}/conf \
+ --with-htdocsdir=${PREFIX}/www/${PORTNAME}/htdocs \
+ --with-soundsdir=${PREFIX}/share/${PORTNAME}/sounds \
+ --with-grammardir=${PREFIX}/etc/${PORTNAME}/grammar \
+ --with-scriptdir=${PREFIX}/etc/${PORTNAME}/scripts \
+ --with-modinstdir=${PREFIX}/lib/${PORTNAME}/mod \
+ --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
+ --with-storagedir=${VARBASE}/${PORTNAME} \
+ --with-recordingsdir=${VARBASE}/${PORTNAME}/recordings \
+ --with-ogg=${LOCALBASE} \
+ --with-ogg-libraries=${LOCALBASE}/lib \
+ --with-ogg-includes=${LOCALBASE}/include
+
+CONFIGURE_ENV+= INCLUDES="${INCLUDES}" \
+ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
+
+FREESWITCH_USER?= freeswitch
+FREESWITCH_GROUP?= ${FREESWITCH_USER}
+FREESWITCH_UID?= 610
+FREESWITCH_GID?= ${FREESWITCH_UID}
+
+USERS= ${FREESWITCH_USER}
+GROUPS= ${FREESWITCH_GROUP}
+
+SUB_LIST= FREESWITCH_USER=${FREESWITCH_USER} \
+ FREESWITCH_GROUP=${FREESWITCH_GROUP}
+
+BASE_PORTNAME= ${FREESWITCH_USER}
+
+VARBASE= /var
+ETCDIR= ${PREFIX}/etc/${PORTNAME}
+WWWDIR= ${PREFIX}/www/${PORTNAME}
+
+SAMPLESDIR= conf conf/autoload_configs
+
+OPTIONS= REBOOTSTRAP "Rebootstrap freeswitch build" on \
+ MODABSTRACTION "Simplify/Standarize API" on \
+ MODAVMD "Detects voicemail generalized approach" on \
+ MODCALLCENTER "Call queuing application" on \
+ MODCIDLOOKUP "Lookup CID via database, url" on\
+ MODBLACKLIST "Blacklisk phone numbers" on \
+ MODCURL "Allows scripts to make HTTP requests" off \
+ MODDISTRIBUTOR "Simple round-robin style distributions" on \
+ MODEASYROUTE "DID Database lookup" off \
+ MODFSK "FSK (Frequency-Shift Keying) data transfer" on \
+ MODHTTAPI "HTTP API" on \
+ MODHTTPCACHE "HTTP GET with caching" off \
+ MODDIRECTORY "Dial by name directory" on \
+ MODLADSPA "use Auto-tune on your call" off \
+ MODLCR "Least Cost Routing" off \
+ MODMEMCACHE "Memcached API" off \
+ MODNIBBLEBILL "Billing Module" off \
+ MODRSS "RSS feed text to speech" on \
+ MODSNOM "Controlling softkeys on Snom phones" on \
+ MODSPY "Extension/Call Spy tool" on \
+ MODSOUNDTOUCH "Pitch shifting audio effects" on \
+ MODSTRESS "Detect Stress in voice" off \
+ MODSNAPSHOT "Audio/Disk Snapshot Tool" off \
+ MODVMD "Voicemail Beep Detection" on \
+ MODVOICEMAILIVR "IVR Based Voicemail(NEW)" on \
+ MODAMRWB "GSM-AMRWB (ARM Wide Band) codec" on \
+ MODCELT "Celt ultra-low delay audio codec" on \
+ MODCODEC2 "Freeswitch Codec2 Module" on \
+ MODISAC "Isac Codec (New Codec)" on \
+ MODOPUS "OPUS ultra-low delay audio codec" on \
+ MODSILK "Skype Silk Codec (Broken/BUILD ISSUES)" off \
+ MODDPASTERISK "Asterisk Dialplan (Old School Dialplan)" off \
+ MODDPDIRECTORY "obtain dialplan from a directory resource" off \
+ MODDINGALING "Jabber/Google Talk integration module" on \
+ MODFREETDM "Interface to Zaptel hardware End Points" off \
+ MODPORTAUDIO "Portaudio API" on \
+ MODRTMP "Real time media protocol" on \
+ MODSKINNY "Skinny/SCCP" on \
+ MODFLITE "Free open source Text to Speech" on \
+ MODPOCKETSPHINX "Free open source Speech Recognition" on \
+ MODTTSCMDLINE "Play Sounds via commandline" on \
+ MODUNIMRCP "Open MRCP implementation ASR/Text" off \
+ MODCDRPGCSV "Asterisk Compatible CDR PostgreSQL" off \
+ MODERLANGEVENT "send/receive events/commands in Erlang" off \
+ MODMULTICAST "Broadcasts events to netmask" on \
+ MODEVENTZMQ "Zeroconf config socket" off \
+ MODSNMP "SNMP AgentX module" off \
+ MODVLC "Play local mp3 files any rate(NEW Testing)" off \
+ MODPASTREAM "PortAudio Streaming Module" on \
+ MODSHELLSTREAM "Stream audio via shell command" on \
+ MODSHOUT "Play local mp3 files any rate(Build Error)" off \
+ MODMANAGED "Common Language Infrastructure API" off \
+ MODPERL "Perl Lang Support" on \
+ MODPYTHON "Python Lang Suppot" on \
+ MODPOSIXTIMER "Posix timer (New/Testing)" on \
+ MODXMLCURL "XML dynamically control of FreeSWITCH" on \
+ MODXMLODBC "XML ODBC Module" on \
+ MODXMLRPC "XML Remote Procedure Calls" on \
+ MODSAYDE "German Voice Prompts" off \
+ MODSAYES "Spanish Voice Prompts" off \
+ MODSAYEN "English Voice Prompts" on \
+ MODSAYFR "French Voice Prompts" off \
+ MODSAYHE "Hebrew Voice Prompts" off \
+ MODSAYHU "Hungarian Voice Propmts" off \
+ MODSAYIT "Italian Voice Propmts" off \
+ MODSAYNL "Dutch Voice Propmts" off \
+ MODSAYPT "Portuguese Voice Propmts" off \
+ MODSAYRU "Russian Voice Propmts" off \
+ MODSAYTH "Thai Voice Propmts" off \
+ MODSAYZH "Chinese Voice Propmts" off
+
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == "amd64"
+CFLAGS+= -fPIC
+.endif
+
+.for i in ${OPTIONS:Non:Noff:N"*"}
+.if defined(WITH_${i})
+PLIST_SUB+= ${i}=""
+.else
+PLIST_SUB+= ${i}="@comment "
+.endif
+.endfor
+
+.if defined(WITH_MODFREETDM)
+.if ${OSVERSION} < 703000 || (${OSVERSION} >= 800000 && ${OSVERSION} < 800108)
+IGNORE= sorry you can not use mod_freetdm on this version of freebsd ( dahdi support broken ) please update
+.else
+CONFIGURE_ARGS+= --with-libpri=${LOCALBASE}
+BUILD_DEPENDS+= ${LOCALBASE}/include/dahdi/wctdm_user.h:${PORTSDIR}/misc/dahdi
+LIB_DEPENDS+= pri:${PORTSDIR}/misc/libpri
+RUN_DEPENDS+= ${LOCALBASE}/include/dahdi/wctdm_user.h:${PORTSDIR}/misc/dahdi
+.endif
+.endif
+
+.if defined(WITH_MODSHOUT)
+LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis
+.endif
+
+.if defined(WITH_MODPERL)
+LIB_DEPENDS+= gdbm:${PORTSDIR}/databases/gdbm \
+ db:${PORTSDIR}/databases/db42
+.endif
+
+.if defined(WITH_MODERLANGEVENT)
+BUILD_DEPENDS+= ${LOCALBASE}/lib/erlang/usr/include/erl_driver.h:${PORTSDIR}/lang/erlang-lite
+.endif
+
+.if defined(WITH_MODPYTHON)
+USE_PYTHON= yes
+.endif
+
+.if defined(WITH_MODCDRPGCSV)
+USE_PGSQL= yes
+.endif
+
+.if defined(WITH_MODSNMP)
+BUILD_DEPENDS+= ${LOCALBASE}/include/net-snmp/definitions.h:${PORTSDIR}/net-mgmt/net-snmp
+RUN_DEPENDS+= ${LOCALBASE}/include/net-snmp/definitions.h:${PORTSDIR}/net-mgmt/net-snmp
+.endif
+
+.if defined(WITH_MODLADSPA)
+BUILD_DEPENDS+= ${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa \
+ ${LOCALBASE}/lib/ladspa/tap_autopan.so:${PORTSDIR}/audio/tap-plugins \
+ ${LOCALBASE}/lib/ladspa/cmt.so:${PORTSDIR}/audio/cmt \
+ ${LOCALBASE}/lib/ladspa/alias_1407.so:${PORTSDIR}/audio/swhplugins \
+ ${LOCALBASE}/lib/ladspa/autotalent.so:${PORTSDIR}/audio/autotalent
+RUN_DEPENDS+= ${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa \
+ ${LOCALBASE}/lib/ladspa/tap_autopan.so:${PORTSDIR}/audio/tap-plugins \
+ ${LOCALBASE}/lib/ladspa/cmt.so:${PORTSDIR}/audio/cmt \
+ ${LOCALBASE}/lib/ladspa/alias_1407.so:${PORTSDIR}/audio/swhplugins \
+ ${LOCALBASE}/lib/ladspa/autotalent.so:${PORTSDIR}/audio/autotalent
+.endif
+
+.if defined(WITH_MODVLC)
+LIB_DEPENDS+= vlc:/${PORTSDIR}/multimedia/vlc
+RUN_DEPENDS+= vlc:/${PORTSDIR}/multimedia/vlc
+.endif
+
+# FreeBSD 7 doesn't have lrintl, but lrint will do the trick just fine
+# It's quite cryptic as to why the reinplace doesn't work; there's no mention
+# of lrintl anywhere in any source....
+.if ${OSVERSION} < 800012
+BROKEN= Requires lrintl, which is not present on FreeBSD 7
+.endif
+
+pre-configure:
+ @${REINPLACE_CMD} -e 's|base=http://files.freeswitch.org/downloads/libs/|base=file://${DISTDIR}/${DIST_SUBDIR}/|g' ${WRKSRC}/build/getlib.sh.in
+ @${REINPLACE_CMD} -e 's|2.1.9|2.1.11|g' ${WRKSRC}/src/mod/event_handlers/mod_event_zmq/Makefile
+ @${REINPLACE_CMD} -e 's|\$$(MAKE) samples-conf|##\$$(MAKE) samples-conf|g' ${WRKSRC}/Makefile.am
+.if defined(WITH_REBOOTSTRAP)
+ cd ${WRKSRC} && ./rebootstrap.sh
+.endif
+
+post-configure:
+.for i in mod_unimrcp mod_flite mod_pocketsphinx
+.if defined(WITH_${i:S/_//g:U})
+ @${REINPLACE_CMD} -e 's|#\(asr_tts/${i}\)|\1|g' ${WRKSRC}/modules.conf
+.endif
+.endfor
+.if defined(WITH_MODTTSCMDLINE)
+ @${REINPLACE_CMD} -e 's|#asr_tts/mod_tts_commandline|asr_tts/mod_tts_commandline|g' ${WRKSRC}/modules.conf
+.endif
+.for i in mod_cidlookup mod_easyroute mod_lcr mod_soundtouch mod_rss mod_snom \
+ mod_vmd mod_avmd mod_spy mod_curl mod_nibblebill mod_memcache mod_directory mod_distributor \
+ mod_snapshot mod_callcenter mod_fsk mod_ladspa mod_blacklist mod_http_cache mod_abstraction \
+ mod_voicemail_ivr mod_httapi
+.if defined(WITH_${i:S/_//g:U})
+ @${REINPLACE_CMD} -e 's|#\(applications/${i}\)|\1|g' ${WRKSRC}/modules.conf
+.endif
+.endfor
+.for i in mod_amrwb mod_celt mod_silk mod_codec2 mod_opus mod_isac
+.if defined(WITH_${i:S/_//g:U})
+ @${REINPLACE_CMD} -e 's|#\(codecs/${i}\)|\1|g' ${WRKSRC}/modules.conf
+.endif
+.endfor
+.for i in mod_shell_stream mod_shout mod_vlc
+.if defined(WITH_${i:S/_//g:U})
+ @${REINPLACE_CMD} -e 's|#\(formats/${i}\)|\1|g' ${WRKSRC}/modules.conf
+.endif
+.endfor
+.if defined(WITH_MODPASTREAM)
+ @${REINPLACE_CMD} -e 's|#formats/mod_portaudio_stream|formats/mod_portaudio_stream|g' ${WRKSRC}/modules.conf
+.endif
+.for i in mod_say_de mod_say_es mod_say_en mod_say_fr mod_say_he mod_say_hu mod_say_it mod_say_nl mod_say_pt mod_say_ru mod_say_th mod_say_zh
+.if defined(WITH_${i:S/_//g:U})
+ @${REINPLACE_CMD} -e 's|#\(say/${i}\)|\1|g' ${WRKSRC}/modules.conf
+.endif
+.endfor
+.for i in mod_perl mod_python
+.if defined(WITH_${i:S/_//g:U})
+ @${REINPLACE_CMD} -e 's|#\(languages/${i}\)|\1|g' ${WRKSRC}/modules.conf
+.endif
+.endfor
+.for i in mod_skinny mod_portaudio mod_dingaling mod_rtmp mod_khomp
+.if defined(WITH_${i:S/_//g:U})
+ @${REINPLACE_CMD} -e 's|#\(endpoints/${i}\)|\1|g' ${WRKSRC}/modules.conf
+.endif
+.endfor
+.if defined(WITH_MODDPDIRECTORY)
+ @${REINPLACE_CMD} -e 's|#dialplans/mod_dialplan_directory|dialplans/mod_dialplan_directory|g' ${WRKSRC}/modules.conf
+.endif
+.if defined(WITH_MODFREETDM)
+ @${REINPLACE_CMD} -e 's|#../../libs/freetdm/mod_freetdm|../../libs/freetdm/mod_freetdm|g' ${WRKSRC}/modules.conf
+.endif
+.if defined(WITH_MODMULTICAST)
+ @${REINPLACE_CMD} -e 's|#event_handlers/mod_event_multicast|event_handlers/mod_event_multicast|g' ${WRKSRC}/modules.conf
+.endif
+.if defined(WITH_MODERLANGEVENT)
+ @${REINPLACE_CMD} -e 's|#event_handlers/mod_erlang_event|event_handlers/mod_erlang_event|g' ${WRKSRC}/modules.conf
+.endif
+.if defined(WITH_MODCDRPGCSV)
+ @${REINPLACE_CMD} -e 's|#event_handlers/mod_cdr_pg_csv|event_handlers/mod_cdr_pg_csv|g' ${WRKSRC}/modules.conf
+.endif
+.if defined(WITH_MODSNMP)
+ @${REINPLACE_CMD} -e 's|#event_handlers/mod_snmp|event_handlers/mod_snmp|g' ${WRKSRC}/modules.conf
+.endif
+.if defined(WITH_MODXMLCURL)
+ @${REINPLACE_CMD} -e 's|#xml_int/mod_xml_curl|xml_int/mod_xml_curl|g' ${WRKSRC}/modules.conf
+.endif
+.if !defined(WITH_MODDPASTERISK)
+ @${REINPLACE_CMD} -e 's|dialplans/mod_dialplan_asterisk|#dialplans/mod_dialplan_asterisk|g' ${WRKSRC}/modules.conf
+.endif
+.if defined(WITH_MODEVENTZMQ)
+ @${REINPLACE_CMD} -e 's|#event_handlers/mod_event_zmq|event_handlers/mod_event_zmq|g' ${WRKSRC}/modules.conf
+.endif
+.if defined(WITH_MODXMLODBC)
+ @${REINPLACE_CMD} -e 's|#../../contrib/mod/xml_int/mod_xml_odbc|../../contrib/mod/xml_int/mod_xml_odbc|g' ${WRKSRC}/modules.conf
+.endif
+.if defined(WITH_MODPOSIXTIMER)
+ @${REINPLACE_CMD} -e 's|#timers/mod_posix_timer|timers/mod_posix_timer|g' ${WRKSRC}/modules.conf
+.endif
+
+pre-install:
+ @${CHMOD} 664 ${WRKSRC}/libs/freetdm/conf/*
+ @${MKDIR} ${ETCDIR}/conf
+.if defined(WITH_MODFREETDM)
+ @${MKDIR} ${ETCDIR}/conf/autoload_configs
+.endif
+ @${FIND} ${PREFIX}/etc/${BASE_PORTNAME}/. -type d | ${XARGS} ${CHMOD} 770
+
+post-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${PKGINSTALL} ${BASE_PORTNAME} POST-INSTALL
+ @${FIND} ${ETCDIR}/. -type d | ${XARGS} ${CHMOD} 770
+ @${MKDIR} ${PREFIX}/share/${BASE_PORTNAME}/sounds
+ @${CHMOD} -R 770 ${PREFIX}/share/${BASE_PORTNAME}
+ @${INSTALL} -o ${FREESWITCH_USER} -g ${FREESWITCH_GROUP} -m 664 ${WRKSRC}/conf/freeswitch.xml ${ETCDIR}/conf/freeswitch.xml.sample
+ @for i in $$(${FIND} ${ETCDIR}/conf/ -type f -name '*.sample'); do if [ ! -f $${i%.sample} ]; then ${CP} -p $$i $${i%.sample}; fi; done
+# @for i in $$(${FIND} ${WWWDIR}/htdocs/ -type f -name '*.sample'); do if [ ! -f $${i%.sample} ]; then ${CP} -p $$i $${i%.sample}; fi; done
+ @${FIND} ${ETCDIR}/. -type f | ${XARGS} ${CHMOD} 660
+ @${FIND} ${WWWDIR}/. -type f | ${XARGS} ${CHMOD} 660
+
+.include <bsd.port.mk>
diff --git a/net/freeswitch-core-devel/distinfo b/net/freeswitch-core-devel/distinfo
new file mode 100644
index 000000000000..0dcd33f8d107
--- /dev/null
+++ b/net/freeswitch-core-devel/distinfo
@@ -0,0 +1,30 @@
+SHA256 (freeswitch/freeswitch-1.2.rc2.tar.bz2) = bbf9b3f6e7a7569b9594b5852d1b8a95266ef3276df222776ac84667adb6cc08
+SIZE (freeswitch/freeswitch-1.2.rc2.tar.bz2) = 38075354
+SHA256 (freeswitch/opus-0.9.0.tar.gz) = b2f75c4ac5ab837845eb028413fae2a28754bfb0a6d76416e2af1441ef447649
+SIZE (freeswitch/opus-0.9.0.tar.gz) = 1255227
+SHA256 (freeswitch/celt-0.10.0.tar.gz) = 147c5bc8c6a37b2ad2c8b8af17c91cb35494421ec9b68110018a4bcec72e45dc
+SIZE (freeswitch/celt-0.10.0.tar.gz) = 435953
+SHA256 (freeswitch/flite-1.5.4-current.tar.bz2) = e98c54307954f406ef59a354f9ec274436b95be53f785e27191f19569af0ed7e
+SIZE (freeswitch/flite-1.5.4-current.tar.bz2) = 14740774
+SHA256 (freeswitch/json-c-0.9.tar.gz) = 816fb2d4baab09e2f51a7c1be75bc9e03ed09d4cf3c2cd03c183f433bb9b565f
+SIZE (freeswitch/json-c-0.9.tar.gz) = 328935
+SHA256 (freeswitch/lame-3.98.4.tar.gz) = ac3144c76617223a9be4aaa3e28a66b51bcab28141050c3af04cb06836f772c8
+SIZE (freeswitch/lame-3.98.4.tar.gz) = 1336025
+SHA256 (freeswitch/libmemcached-0.32.tar.gz) = cf1be20af93163d6ab25b511f79c515778ebced54806875561ebef46011f2a9b
+SIZE (freeswitch/libmemcached-0.32.tar.gz) = 512586
+SHA256 (freeswitch/libshout-2.2.2.tar.gz) = 38701125cb0e0349f4394dd3254d6037eeb8af0747c0942ff433ffbcd48d2367
+SIZE (freeswitch/libshout-2.2.2.tar.gz) = 478582
+SHA256 (freeswitch/mpg123-1.13.2.tar.gz) = b3a855acc96e0061a0c2b1162e8aff80b6b1a03849e3756786db2fcacfc9a9bd
+SIZE (freeswitch/mpg123-1.13.2.tar.gz) = 924948
+SHA256 (freeswitch/openldap-2.4.11.tar.gz) = 76e57147a2373015f306f2e72128330e51d5c0f1056b4713283234dfd16c1c9c
+SIZE (freeswitch/openldap-2.4.11.tar.gz) = 4941654
+SHA256 (freeswitch/pocketsphinx-0.7.tar.gz) = ce0cace1ab153006e631d0a15680f2ec13f289cb2ddafa20c84fb5986fe92455
+SIZE (freeswitch/pocketsphinx-0.7.tar.gz) = 23701750
+SHA256 (freeswitch/soundtouch-1.6.0.tar.gz) = 8776edaf7299ffe1e8c97285f020365a63c0e01aa4f6f7c5fd1d011c0ded278f
+SIZE (freeswitch/soundtouch-1.6.0.tar.gz) = 94852
+SHA256 (freeswitch/sphinxbase-0.7.tar.gz) = 389cb99a545f7d615a2b3bc3f7362a490ca45fc4dc440140ae1d2a41f87773ec
+SIZE (freeswitch/sphinxbase-0.7.tar.gz) = 3291922
+SHA256 (freeswitch/communicator_semi_6000_20080321.tar.gz) = dbb5e9fb85000a7cb97d6958a3ef8d77532dc55fc730ac6979705e8645cb0c18
+SIZE (freeswitch/communicator_semi_6000_20080321.tar.gz) = 5595694
+SHA256 (freeswitch/zeromq-2.1.11.tar.gz) = e1cd4abbe353d3d72df42a2ee05593047915987024a4baf965745d29832eb214
+SIZE (freeswitch/zeromq-2.1.11.tar.gz) = 1891038
diff --git a/net/freeswitch-core-devel/files/freeswitch.in b/net/freeswitch-core-devel/files/freeswitch.in
new file mode 100644
index 000000000000..666e6db9bfcf
--- /dev/null
+++ b/net/freeswitch-core-devel/files/freeswitch.in
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+# PROVIDE: freeswitch
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable freeswitch:
+#
+# freeswitch_enable="YES"
+#
+#
+# freeswitch_user="freeswitch"
+# freeswitch_group="freeswitch"
+
+. /etc/rc.subr
+
+name=freeswitch
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+: ${freeswitch_enable="NO"}
+: ${freeswitch_user="freeswitch"}
+: ${freeswitch_group="freeswitch"}
+: ${freeswitch_flags="-nc -waste"}
+
+command=%%PREFIX%%/bin/freeswitch
+command_args="-u ${freeswitch_user} -g ${freeswitch_group}"
+
+umask 002
+
+pidfile=${freeswitch_pidfile:-"/var/run/freeswitch/freeswitch.pid"}
+
+start_precmd="${name}_prestart"
+stop_cmd="${name}_stop"
+
+freeswitch_stop () {
+ echo "Stopping FreeSWITCH."
+ %%PREFIX%%/bin/freeswitch -stop
+ wait_for_pids `cat $pidfile`
+}
+
+freeswitch_prestart () {
+ install -d -o ${freeswitch_user} -m755 /var/run/${name}
+ sleep 7.7
+ %%PREFIX%%/bin/fs_cli -x "sofia recover"
+}
+
+run_rc_command "$1"
diff --git a/net/freeswitch-core-devel/files/patch-Makefile.am b/net/freeswitch-core-devel/files/patch-Makefile.am
new file mode 100644
index 000000000000..59ed98d46e36
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-Makefile.am
@@ -0,0 +1,48 @@
+--- Makefile.am
++++ Makefile.am
+@@ -485,8 +485,8 @@ vm-sync:
+ test -d $(DESTDIR)$(sysconfdir)/lang/en || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/lang/en
+ test -d $(DESTDIR)$(sysconfdir)/lang/en/demo || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/lang/en/demo
+ test -d $(DESTDIR)$(sysconfdir)/lang/en/vm || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/lang/en/vm
+- $(INSTALL) -m 644 $(switch_srcdir)/conf/vanilla/lang/en/vm/* $(DESTDIR)$(sysconfdir)/lang/en/vm
+- $(INSTALL) -m 644 $(switch_srcdir)/conf/vanilla/lang/en/demo/* $(DESTDIR)$(sysconfdir)/lang/en/demo
++ $(INSTALL) -m 664 $(switch_srcdir)/conf/vanilla/lang/en/vm/* $(DESTDIR)$(sysconfdir)/lang/en/vm/$$filename.sample
++ $(INSTALL) -m 664 $(switch_srcdir)/conf/vanilla/lang/en/demo/* $(DESTDIR)$(sysconfdir)/lang/en/demo/$$filename.sample
+
+ config-%:
+ test -d $(DESTDIR)$(sysconfdir) || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
+@@ -496,7 +496,7 @@ config-%:
+ test -d $(DESTDIR)$(sysconfdir)$$dir || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)$$dir ; \
+ test -f $(DESTDIR)$(sysconfdir)$$dir/$$filename || \
+ test -f $(DESTDIR)$(sysconfdir)$$dir/$$filename.noload || \
+- $(INSTALL) -m 644 $(switch_srcdir)/conf/$*/$$dir/$$filename $(DESTDIR)$(sysconfdir)$$dir; \
++ $(INSTALL) -m 664 $(switch_srcdir)/conf/$*/$$dir/$$filename $(DESTDIR)$(sysconfdir)$$dir/$$filename.sample; \
+ done
+
+ samples-conf: config-vanilla
+@@ -507,21 +507,19 @@ samples-htdocs:
+ dir=`echo $$htdocsfile | sed -e 's|/[^/]*$$||'`; \
+ filename=`echo $$htdocsfile | sed -e 's|^.*/||'`; \
+ test -d $(DESTDIR)$(htdocsdir)$$dir || $(mkinstalldirs) $(DESTDIR)$(htdocsdir)$$dir ; \
+- test -f $(DESTDIR)$(htdocsdir)$$dir/$$filename || $(INSTALL) -m 644 $(switch_srcdir)/htdocs/$$dir/$$filename $(DESTDIR)$(htdocsdir)$$dir 2>/dev/null; \
++ test -f $(DESTDIR)$(htdocsdir)$$dir/$$filename || $(INSTALL) -m 664 $(switch_srcdir)/htdocs/$$dir/$$filename $(DESTDIR)$(htdocsdir)$$dir/$$filename.sample 2>/dev/null; \
+ done
+
+-
+ samples: samples-conf samples-htdocs
+
+ install-exec-local:
+ $(mkinstalldirs) $(DESTDIR)$(modulesdir)
+
+ install-data-local:
+- @echo Installing $(NAME)
+- @for x in $(modulesdir) $(runtimedir) $(dbdir) $(logfiledir) $(logfiledir)/xml_cdr $(bindir) $(scriptdir) $(recordingsdir) $(grammardir); do \
++ @for x in $(bindir) $(modulesdir) $(runtimedir) $(logfiledir) $(logfiledir)/xml_cdr $(dbdir) $(grammardir) $(scriptdir) $(storagedir) $(recordingsdir) ; do \
+ $(mkinstalldirs) $(DESTDIR)$$x ; \
+- done
+- test -d $(DESTDIR)$(sysconfdir) || $(MAKE) samples-conf
++ done
++ $(MAKE) samples-conf
+ test -d $(DESTDIR)$(htdocsdir) || $(MAKE) samples-htdocs
+
+ is-scm:
diff --git a/net/freeswitch-core-devel/files/patch-build-getlib.sh.in b/net/freeswitch-core-devel/files/patch-build-getlib.sh.in
new file mode 100644
index 000000000000..80d48efbe2c6
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-build-getlib.sh.in
@@ -0,0 +1,16 @@
+--- build/getlib.sh.in.orig 2011-11-03 00:15:31.000000000 -0400
++++ build/getlib.sh.in 2011-11-03 02:05:01.000000000 -0400
+@@ -7,10 +7,10 @@
+ WGET=@WGET@
+ CURL=@CURL@
+
+-if [ -f "$WGET" ]; then
+- DOWNLOAD_CMD=$WGET
+-elif [ -f "$CURL" ]; then
++if [ -f "$CURL" ]; then
+ DOWNLOAD_CMD="$CURL -O"
++elif [ -f "$WGET" ]; then
++ DOWNLOAD_CMD=$WGET
+ fi
+
+ if [ -n "`echo $1 | grep '://'`" ]; then
diff --git a/net/freeswitch-core-devel/files/patch-build-modules.conf.in b/net/freeswitch-core-devel/files/patch-build-modules.conf.in
new file mode 100644
index 000000000000..8db58b05bcbf
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-build-modules.conf.in
@@ -0,0 +1,10 @@
+--- build/modules.conf.in.orig 2012-05-13 13:32:34.000000000 -0400
++++ build/modules.conf.in 2012-05-13 13:33:30.000000000 -0400
+@@ -89,6 +89,7 @@
+ #event_handlers/mod_event_zmq
+ #event_handlers/mod_radius_cdr
+ #event_handlers/mod_snmp
++#formats/mod_vlc
+ formats/mod_local_stream
+ formats/mod_native_file
+ #formats/mod_portaudio_stream
diff --git a/net/freeswitch-core-devel/files/patch-conf-vanilla-autoload_configs-switch.conf.xml b/net/freeswitch-core-devel/files/patch-conf-vanilla-autoload_configs-switch.conf.xml
new file mode 100644
index 000000000000..95393ceeb8ae
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-conf-vanilla-autoload_configs-switch.conf.xml
@@ -0,0 +1,10 @@
+--- conf/vanilla/autoload_configs/switch.conf.xml 2010-06-22 17:19:31.000000000 -0400
++++ conf/vanilla/autoload_configs/switch.conf.xml 2010-06-29 11:06:18.000000000 -0400
+@@ -71,6 +71,7 @@
+ -->
+ <param name="mailer-app" value="sendmail"/>
+ <param name="mailer-app-args" value="-t"/>
++ <!--<param name="storage-dir" value="/tmp"/>-->
+ <param name="dump-cores" value="yes"/>
+ <!--RTP port range -->
+ <!--<param name="rtp-start-port" value="16384"/>-->
diff --git a/net/freeswitch-core-devel/files/patch-conf-vanilla-sip_profiles-external.xml b/net/freeswitch-core-devel/files/patch-conf-vanilla-sip_profiles-external.xml
new file mode 100644
index 000000000000..91b9233a7b61
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-conf-vanilla-sip_profiles-external.xml
@@ -0,0 +1,12 @@
+--- conf/vanilla/sip_profiles/external.xml
++++ conf/banilla/sip_profiles/external.xml
+@@ -91,5 +91,8 @@
+ <!-- TLS version ("sslv23" (default), "tlsv1"). NOTE: Phones may not work with TLSv1 -->
+ <param name="tls-version" value="$${sip_tls_version}"/>
+
++ <!-- Enable call revovery -->
++ <param name="track-calls" value="true"/>
++
+ </settings>
+ </profile>
+
diff --git a/net/freeswitch-core-devel/files/patch-conf-vanilla-sip_profiles-internal.xml b/net/freeswitch-core-devel/files/patch-conf-vanilla-sip_profiles-internal.xml
new file mode 100644
index 000000000000..6403bdac61e5
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-conf-vanilla-sip_profiles-internal.xml
@@ -0,0 +1,14 @@
+--- conf/vanilla/sip_profiles/internal.xml
++++ conf/vanilla/sip_profiles/internal.xml
+@@ -379,7 +379,10 @@
+ It's probably not what you want so stick with the default unless you really need to change this.
+ -->
+ <!--<param name="renegotiate-codec-on-hold" value="true"/>-->
+-
++
++ <!-- Enable call revovery -->
++ <param name="track-calls" value="true"/>
++
+ </settings>
+ </profile>
+
diff --git a/net/freeswitch-core-devel/files/patch-configure.in b/net/freeswitch-core-devel/files/patch-configure.in
new file mode 100644
index 000000000000..0b8ea7e28210
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-configure.in
@@ -0,0 +1,167 @@
+--- configure.in.orig 2012-05-11 17:16:05.000000000 -0400
++++ configure.in 2012-05-11 17:31:04.000000000 -0400
+@@ -1,4 +1,5 @@
+-# -*- Autoconf -*-
++
++# -*- Autoconf -*-
+ # Process this file with autoconf to produce a configure script.
+
+ # Must change all of the below together
+@@ -32,19 +33,27 @@
+ AC_SUBST(switch_srcdir)
+ AC_SUBST(switch_builddir)
+
+-# Where to install the modules
+-AC_ARG_WITH([modinstdir],
+- [AS_HELP_STRING([--with-modinstdir=DIR], [Install modules into this location (default: $prefix/mod)])], [modulesdir="$withval"], [modulesdir="${prefix}/mod"])
+-AC_SUBST(modulesdir)
+-AC_DEFINE_UNQUOTED([SWITCH_MOD_DIR],"${modulesdir}",[where to install the modules to])
++#Where to put freeswitch config files
++if test "$sysconfdir" = "\${prefix}/etc" ; then
++ confdir="${prefix}/conf"
++else
++ confdir="${sysconfdir}"
++fi
++
++sysconfdir="$confdir"
++
++AC_SUBST(confdir)
++AC_DEFINE_UNQUOTED([SWITCH_CONF_DIR],"${confdir}",[directory for configuration files])
+
++#Where to put freswitch logfiles and runtime PID;
+ if test "$localstatedir" = "\${prefix}/var" ; then
+- rundir="$prefix/run"
+- logdir="${prefix}/log"
++ rundir="${prefix}/run"
++ logdir="${prefix}/log"
+ else
+- rundir="$localstatedir/run/freeswitch"
+- logdir="$localstatedir/log/freeswitch"
++ rundir="$localstatedir/run/freeswitch"
++ logdir="$localstatedir/log/freeswitch"
+ fi
++
+ # Where to put pidfile
+ AC_ARG_WITH([rundir],
+ [AS_HELP_STRING([--with-rundir=DIR], [Put pidfile into this location (default: $prefix/run)])], [runtimedir="$withval"], [runtimedir="$rundir"])
+@@ -56,51 +65,60 @@
+ AC_SUBST(logfiledir)
+ AC_DEFINE_UNQUOTED([SWITCH_LOG_DIR],"${logfiledir}",[where to put log files])
+
+-AC_ARG_WITH([dbdir],
+- [AS_HELP_STRING([--with-dbdir=DIR], [Put database files into this location (default: $prefix/db)])], [dbdir="$withval"], [dbdir="$prefix/db"])
+-AC_SUBST(dbdir)
+-AC_DEFINE_UNQUOTED([SWITCH_DB_DIR],"${dbdir}",[where to put db files])
++#Where to put Freeswitch database;
++if test "$datadir" = "\${prefix}/var" ; then
++ dbdir="${prefix}/db"
++else
++ dbdir="${datadir}"
++fi
+
+-AC_ARG_WITH([htdocsdir],
+- [AS_HELP_STRING([--with-htdocsdir=DIR], [Put html files into this location (default: $prefix/htdocs)])], [htdocsdir="$withval"], [htdocsdir="$prefix/htdocs"])
+-AC_SUBST(htdocsdir)
+-AC_DEFINE_UNQUOTED([SWITCH_HTDOCS_DIR],"${htdocsdir}",[where to put htdocs files])
++datadir="$dbdir"
+
+-AC_ARG_WITH([soundsdir],
+- [AS_HELP_STRING([--with-soundsdir=DIR], [Put sound files into this location (default: $prefix/sounds)])], [soundsdir="$withval"], [soundsdir="$prefix/sounds"])
+-AC_SUBST(soundsdir)
+-AC_DEFINE_UNQUOTED([SWITCH_SOUNDS_DIR],"${soundsdir}",[where to put sounds files])
++AC_SUBST(dbdir)
++AC_DEFINE_UNQUOTED([SWITCH_DB_DIR],"${dbdir}",[where to store freeswitch database files])
+
++#Where to put grammar files
+ AC_ARG_WITH([grammardir],
+- [AS_HELP_STRING([--with-grammardir=DIR], [Put grammar files into this location (default: $prefix/grammar)])], [grammardir="$withval"], [grammardir="$prefix/grammar"])
++ [AS_HELP_STRING([--with-grammardir=DIR], [Put grammar files into this location (default: $prefix/grammar)])], [grammardir="$withval"], [grammardir="${prefix}/grammar"])
+ AC_SUBST(grammardir)
+-AC_DEFINE_UNQUOTED([SWITCH_GRAMMAR_DIR],"${grammardir}",[where to put grammar files])
++AC_DEFINE_UNQUOTED([SWITCH_GRAMMAR_DIR],"${grammardir}",[where to put freeswitch grammar files])
+
+-AC_ARG_WITH([scriptdir],
+- [AS_HELP_STRING([--with-scriptdir=DIR], [Put script files into this location (default: $prefix/scripts)])], [scriptdir="$withval"], [scriptdir="$prefix/scripts"])
+-AC_SUBST(scriptdir)
+-AC_DEFINE_UNQUOTED([SWITCH_SCRIPT_DIR],"${scriptdir}",[where to put script files])
++AC_ARG_WITH([htdocsdir],
++ [AS_HELP_STRING([--with-htdocsdir=DIR], [Put html files into this location (default: $prefix/htdocs)])], [htdocsdir="$withval"], [htdocsdir="$prefix/htdocs"])
++AC_SUBST(htdocsdir)
++AC_DEFINE_UNQUOTED([SWITCH_HTDOCS_DIR],"${htdocsdir}",[where to put htdocs files])
++
++# Where to install the modules
++AC_ARG_WITH([modinstdir],
++ [AS_HELP_STRING([--with-modinstdir=DIR], [Install modules into this location (default: $prefix/mod)])], [modulesdir="$withval"], [modulesdir="${prefix}/mod"])
++AC_SUBST(modulesdir)
++AC_DEFINE_UNQUOTED([SWITCH_MOD_DIR],"${modulesdir}",[where to install the modules to])
+
++#Where to put Custom Recordings
+ AC_ARG_WITH([recordingsdir],
+- [AS_HELP_STRING([--with-recordingsdir=DIR], [Put recordings files into this location (default: $prefix/recordings)])], [recordingsdir="$withval"], [recordingsdir="$prefix/recordings"])
++ [AS_HELP_STRING([--with-recordingsdir=DIR], [Put recordings files into this location (default: $prefix/recordings)])], [recordingsdir="$withval"], [recordingsdir="${PREFIX}/recordings"])
+ AC_SUBST(recordingsdir)
+-AC_DEFINE_UNQUOTED([SWITCH_RECORDINGS_DIR],"${recordingsdir}",[where to put recording files])
++AC_DEFINE_UNQUOTED([SWITCH_RECORDINGS_DIR],"${recordingsdir}",[where to putfreeswitch custom recording files])
+
+-if test "$sysconfdir" = "\${prefix}/etc" ; then
+- confdir="$prefix/conf"
+-else
+- confdir="$sysconfdir"
+-fi
+-
+-sysconfdir="$confdir"
++#Where to put custom scripts
++AC_ARG_WITH([scriptdir],
++ [AS_HELP_STRING([--with-scriptdir=DIR], [Put script files into this location (default: $prefix/scripts)])], [scriptdir="$withval"], [scriptdir="${prefix}/scripts"])
++AC_SUBST(scriptdir)
++AC_DEFINE_UNQUOTED([SWITCH_SCRIPT_DIR],"${scriptdir}",[where to put freeswitch & custom script files])
+
+-AC_SUBST(confdir)
+-AC_DEFINE_UNQUOTED([SWITCH_CONF_DIR],"${confdir}",[directory for configuration files])
++#Where to put freeswitch sounds and moh
++AC_ARG_WITH([soundsdir],
++ [AS_HELP_STRING([--with-soundsdir=DIR], [Put freeswitch sound files into this location (default: $prefix/sounds)])], [soundsdir="$withval"], [soundsdir="${prefix}/sounds"])
++AC_SUBST(soundsdir)
++AC_DEFINE_UNQUOTED([SWITCH_SOUNDS_DIR],"${soundsdir}",[where to put freeswitch sounds files])
+
+-AC_SUBST(libdir)
+-AC_SUBST(bindir)
+-AC_SUBST(includedir)
++#Freeswitch dir for storage.
++AC_ARG_WITH([storagedir],
++ [AS_HELP_STRING([--with-storagedir=DIR], [Store files in this location (default: $prefix/storage)])], [storagedir="$withval"], [storagedir="${prefix}/storage"])
++AC_SUBST(storagedir)
++AC_DEFINE_UNQUOTED([SWITCH_STORAGE_DIR],"${storagedir}",[where to put extra files & faxes])
+
++#Where to put pkgconfig file
+ AC_ARG_WITH([pkgconfigdir],
+ [AS_HELP_STRING([--with-pkgconfigdir=DIR], [Installation directory for pkgconfig file (default: ${libdir}/pkgconfig)])],
+ [case "${withval}" in
+@@ -112,6 +130,13 @@
+ )
+ AC_SUBST([pkgconfigdir])
+
++AC_SUBST(confdir)
++AC_DEFINE_UNQUOTED([SWITCH_CONF_DIR],"${confdir}",[directory for configuration files])
++
++AC_SUBST(libdir)
++AC_SUBST(bindir)
++AC_SUBST(includedir)
++
+ #Set default language
+ AC_LANG_C
+ # Checks for programs.
+@@ -1143,7 +1168,11 @@
+ echo " libdir: ${libdir}"
+ echo " modulesdir: ${modulesdir}"
+ echo " sysconfdir: ${sysconfdir}"
+-echo " runtimedir: ${runtimedir}"
+-echo " logfiledir: ${logfiledir}"
++echo " dbdir: ${datadir}"
++echo " soundsdir: ${soundsdir}"
++echo " storgredir: ${storagedir}"
++echo " recordingsdir: ${recordingsdir}"
++echo " htdocdir: ${htdocsdir}"
++echo " logdir: ${logfiledir}"
+ echo ""
+ echo "------------------------------------------------------------------------------"
diff --git a/net/freeswitch-core-devel/files/patch-libs-freetdm-Makefile.am b/net/freeswitch-core-devel/files/patch-libs-freetdm-Makefile.am
new file mode 100644
index 000000000000..3fd236f2f3ed
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-libs-freetdm-Makefile.am
@@ -0,0 +1,9 @@
+--- libs/freetdm/Makefile.am
++++ libs/freetdm/Makefile.am
+@@ -320,5 +320,5 @@ mod_freetdm-clean:
+ install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(PREFIX)
+ $(mkinstalldirs) $(DESTDIR)@confdir@
+- @[ -f "$(DESTDIR)@confdir@/freetdm.conf" ] || ( cp conf/*.conf $(DESTDIR)@confdir@)
++ @for i in conf/*.conf; do cp -p $$i $$i.sample; done; cp -f -p conf/*.conf.sample $(DESTDIR)@confdir@
+ @echo FreeTDM Installed
diff --git a/net/freeswitch-core-devel/files/patch-libs-freetdm-mod_freetdm-Makefile.in b/net/freeswitch-core-devel/files/patch-libs-freetdm-mod_freetdm-Makefile.in
new file mode 100644
index 000000000000..2cd545c59f52
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-libs-freetdm-mod_freetdm-Makefile.in
@@ -0,0 +1,12 @@
+--- libs/freetdm/mod_freetdm/Makefile.in
++++ libs/freetdm/mod_freetdm/Makefile.in
+@@ -15,8 +15,7 @@ $(FTLA): $(FT_DIR)/.update
+
+ local_install:
+ cd $(FT_DIR) && $(MAKE) install
+- [ -f $(DESTDIR)@confdir@/autoload_configs/freetdm.conf.xml ] || cp -f $(FT_DIR)/conf/freetdm.conf.xml $(DESTDIR)@confdir@/autoload_configs
+-
++ @for i in $(FT_DIR)/conf/*.xml; do cp -p $$i $$i.sample; done; [ -f $(DESTDIR)@confdir@/autoload_configs/freetdm.conf.xml.sample ] || cp -f -p $(FT_DIR)/conf/freetdm.conf.xml.sample $(DESTDIR)@confdir@/autoload_configs
+ local_clean:
+ cd $(FT_DIR) && $(MAKE) clean
+
diff --git a/net/freeswitch-core-devel/files/patch-src-include-private-switch_core_pvt.h b/net/freeswitch-core-devel/files/patch-src-include-private-switch_core_pvt.h
new file mode 100644
index 000000000000..7c9ed30e1f82
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-src-include-private-switch_core_pvt.h
@@ -0,0 +1,10 @@
+--- src/include/private/switch_core_pvt.h 2010-06-22 17:19:31.000000000 -0400
++++ src/include/private/switch_core_pvt.h 2010-06-29 11:12:54.000000000 -0400
+@@ -209,6 +209,7 @@
+ int32_t sps;
+ int32_t sps_last;
+ switch_log_level_t hard_log_level;
++ char *storage_dir;
+ char *mailer_app;
+ char *mailer_app_args;
+ uint32_t max_dtmf_duration;
diff --git a/net/freeswitch-core-devel/files/patch-src-include-switch_types.h b/net/freeswitch-core-devel/files/patch-src-include-switch_types.h
new file mode 100644
index 000000000000..fd4418875769
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-src-include-switch_types.h
@@ -0,0 +1,12 @@
+--- src/include/switch_types.h.orig 2011-02-02 16:27:41.000000000 -0500
++++ src/include/switch_types.h 2011-02-02 16:29:16.000000000 -0500
+@@ -108,7 +108,7 @@
+ #define SWITCH_DEFAULT_DTMF_DURATION 2000
+ #define SWITCH_MIN_DTMF_DURATION 400
+ #define SWITCH_MAX_DTMF_DURATION 192000
+-#define SWITCH_DEFAULT_DIR_PERMS SWITCH_FPROT_UREAD | SWITCH_FPROT_UWRITE | SWITCH_FPROT_UEXECUTE | SWITCH_FPROT_GREAD | SWITCH_FPROT_GEXECUTE
++#define SWITCH_DEFAULT_DIR_PERMS SWITCH_FPROT_UREAD | SWITCH_FPROT_UWRITE | SWITCH_FPROT_UEXECUTE | SWITCH_FPROT_GREAD | SWITCH_FPROT_GWRITE | SWITCH_FPROT_GEXECUTE
+ #ifdef WIN32
+ #define SWITCH_PATH_SEPARATOR "\\"
+ #else
+
diff --git a/net/freeswitch-core-devel/files/patch-src-mod-event_handlers-mod_event_socket-mod_event_socket.c b/net/freeswitch-core-devel/files/patch-src-mod-event_handlers-mod_event_socket-mod_event_socket.c
new file mode 100644
index 000000000000..ea0457cbc6c4
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-src-mod-event_handlers-mod_event_socket-mod_event_socket.c
@@ -0,0 +1,24 @@
+--- src/mod/event_handlers/mod_event_socket/mod_event_socket.c
++++ src/mod/event_handlers/mod_event_socket/mod_event_socket.c
+@@ -1356,16 +1356,16 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
+ if (switch_test_flag(listener, LFLAG_LINGER)) {
+ char disco_buf[512] = "";
+
+- switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(listener->session), SWITCH_LOG_DEBUG, "%s Socket Linger %"TIME_T_FMT"\n",
+- switch_channel_get_name(channel), listener->linger_timeout);
++ switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(listener->session), SWITCH_LOG_DEBUG, "%s Socket Linger %d\n",
++ switch_channel_get_name(channel), (int)listener->linger_timeout);
+
+ switch_snprintf(disco_buf, sizeof(disco_buf), "Content-Type: text/disconnect-notice\n"
+ "Controlled-Session-UUID: %s\n"
+ "Content-Disposition: linger\n"
+ "Channel-Name: %s\n"
+- "Linger-Time: %"TIME_T_FMT"\n"
++ "Linger-Time: %d\n"
+ "Content-Length: 0\n\n",
+- switch_core_session_get_uuid(listener->session), switch_channel_get_name(channel), listener->linger_timeout);
++ switch_core_session_get_uuid(listener->session), switch_channel_get_name(channel), (int)listener->linger_timeout);
+
+
+ if (listener->linger_timeout != (time_t) -1) {
+
diff --git a/net/freeswitch-core-devel/files/patch-src-switch_core.c b/net/freeswitch-core-devel/files/patch-src-switch_core.c
new file mode 100644
index 000000000000..e24c9838ea7a
--- /dev/null
+++ b/net/freeswitch-core-devel/files/patch-src-switch_core.c
@@ -0,0 +1,36 @@
+--- src/switch_core.c
++++ src/switch_core.c
+@@ -646,6 +646,7 @@ SWITCH_DECLARE(void) switch_core_set_globals(void)
+ switch_assert(SWITCH_GLOBAL_dirs.recordings_dir);
+ switch_assert(SWITCH_GLOBAL_dirs.sounds_dir);
+ switch_assert(SWITCH_GLOBAL_dirs.temp_dir);
++ switch_assert(SWITCH_GLOBAL_dirs.storage_dir);
+ }
+
+
+@@ -1450,7 +1451,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
+ switch_dir_make_recursive(SWITCH_GLOBAL_dirs.recordings_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
+ switch_dir_make_recursive(SWITCH_GLOBAL_dirs.sounds_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
+ switch_dir_make_recursive(SWITCH_GLOBAL_dirs.temp_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
+-
++ switch_dir_make_recursive(SWITCH_GLOBAL_dirs.storage_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
+
+ switch_mutex_init(&runtime.uuid_mutex, SWITCH_MUTEX_NESTED, runtime.memory_pool);
+
+@@ -1488,6 +1489,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
+ switch_find_local_ip(guess_ip, sizeof(guess_ip), NULL, AF_INET6);
+ switch_core_set_variable("local_ip_v6", guess_ip);
+ switch_core_set_variable("base_dir", SWITCH_GLOBAL_dirs.base_dir);
++ switch_core_set_variable("storage_dir", SWITCH_GLOBAL_dirs.storage_dir);
+ switch_core_set_variable("recordings_dir", SWITCH_GLOBAL_dirs.recordings_dir);
+ switch_core_set_variable("sound_prefix", SWITCH_GLOBAL_dirs.sounds_dir);
+ switch_core_set_variable("sounds_dir", SWITCH_GLOBAL_dirs.sounds_dir);
+@@ -1728,6 +1730,8 @@ static void switch_load_core_config(const char *file)
+ switch_set_flag((&runtime), SCF_EARLY_HANGUP);
+ } else if (!strcasecmp(var, "colorize-console") && switch_true(val)) {
+ runtime.colorize_console = SWITCH_TRUE;
++ } else if (!strcasecmp(var, "storage-dir") && !zstr(val)) {
++ runtime.storage_dir = switch_core_strdup(runtime.memory_pool, val);
+ } else if (!strcasecmp(var, "core-db-pre-trans-execute") && !zstr(val)) {
+ runtime.core_db_pre_trans_execute = switch_core_strdup(runtime.memory_pool, val);
+ } else if (!strcasecmp(var, "core-db-post-trans-execute") && !zstr(val)) {
diff --git a/net/freeswitch-core-devel/files/pkg-install.in b/net/freeswitch-core-devel/files/pkg-install.in
new file mode 100644
index 000000000000..94fd2debd181
--- /dev/null
+++ b/net/freeswitch-core-devel/files/pkg-install.in
@@ -0,0 +1,41 @@
+#!/bin/sh
+# $FreeBSD: /tmp/pcvs/ports/net/freeswitch-core-devel/files/pkg-install.in,v 1.1 2012-05-17 21:03:11 crees Exp $
+#
+
+if [ "$2" != "POST-INSTALL" ]; then
+ exit 0
+fi
+
+for dir in \
+ etc/freeswitch/conf/directory/default \
+ etc/freeswitch/scripts \
+ share/freeswitch/sounds
+ do install -d -o %%FREESWITCH_USER%% -g %%FREESWITCH_GROUP%% ${PKG_PREFIX}/$dir
+done
+
+for dir in etc/freeswitch include/freeswitch lib/freeswitch share/freeswitch
+ do chown %%FREESWITCH_USER%%:%%FREESWITCH_GROUP%% ${PKG_PREFIX}/$dir
+done
+
+find ${PKG_PREFIX}/etc/freeswitch/ -type d -exec chmod 770 {} +
+find ${PKG_PREFIX}/etc/freeswitch/ -type f -exec chmod 660 {} +
+
+chmod 775 ${PKG_PREFIX}/share/freeswitch
+
+@cwd /var
+
+for dir in \
+ db/freeswitch \
+ freeswitch/recordings \
+ log/freeswitch/xml_cdr
+ do install -d -m 775 -o %%FREESWITCH_USER%% -g %%FREESWITCH_GROUP%% /var/$dir
+done
+
+echo "This port chown -R various directories %%FREESWITCH_USER%%:%%FREESWITCH_GROUP%%"
+echo "This port chmod -R 770 various directories"
+echo" This port chmod -R 660 various files"
+echo "This is for security reasons. In the event something should"
+echo "stop working, please take the time to check the following dirs:"
+echo " /var/log/freeswitch /var/freeswitch"
+
+exit 0
diff --git a/net/freeswitch-core-devel/files/pkg-message.in b/net/freeswitch-core-devel/files/pkg-message.in
new file mode 100644
index 000000000000..435a4e7b8ea4
--- /dev/null
+++ b/net/freeswitch-core-devel/files/pkg-message.in
@@ -0,0 +1,20 @@
+
+*****************************************************
+* Please read *
+*****************************************************
+ FreeBSD 7.x
+There are some known issues with FreeBSD's libpthread
+implementation and APR that can affect throughput at
+high volume. A possible fix is to use libmap.conf to
+remap FreeSWITCH. and its libraries to use libthr
+(the better performance threading library)
+
+/etc/libmap.conf
+
+[freeswitch]
+libc_r.so.5 libthr.so.2
+libc_r.so.6 libthr.so.2
+libpthread.so.1 libthr.so.2
+libpthread.so.2 libthr.so.2
+
+
diff --git a/net/freeswitch-core-devel/pkg-descr b/net/freeswitch-core-devel/pkg-descr
new file mode 100644
index 000000000000..75097b07d867
--- /dev/null
+++ b/net/freeswitch-core-devel/pkg-descr
@@ -0,0 +1,3 @@
+FreeSwitch Voip SoftSwitch & OpenSource PBX
+
+WWW: http://www.freeswitch.org/
diff --git a/net/freeswitch-core-devel/pkg-plist b/net/freeswitch-core-devel/pkg-plist
new file mode 100644
index 000000000000..272a41cbd697
--- /dev/null
+++ b/net/freeswitch-core-devel/pkg-plist
@@ -0,0 +1,349 @@
+@unexec for i in $(find %D/etc/freeswitch/conf/ -type f -name \*.xml -o -name \*.ttml -o -name \*.tpl -o -name \*.conf -o -name \*.types); do if cmp "$i" "${i}.sample"; then rm "$i"; fi; done
+bin/freeswitch
+bin/fs_cli
+bin/fs_encode
+bin/fs_ivrd
+bin/fsxs
+bin/gentls_cert
+bin/tone2wav
+%%ETCDIR%%/conf/freeswitch.xml.sample
+%%MODFREETDM%%%%ETCDIR%%/conf/autoload_configs/freetdm.conf.xml.sample
+%%MODFREETDM%%%%ETCDIR%%/conf/freetdm.conf.sample
+%%MODFREETDM%%%%ETCDIR%%/conf/pika.conf.sample
+%%MODFREETDM%%%%ETCDIR%%/conf/wanpipe.conf.sample
+%%MODFREETDM%%%%ETCDIR%%/conf/zt.conf.sample
+@exec for i in $(find %D/%%ETCDIR%%/conf/ -type f -name *.sample); do if [ ! -f ${i%%.sample} ]; then cp -rp $i ${i%%.sample}; fi; done
+%%MODPOCKETSPHINX%%%%ETCDIR%%/grammar/default.dic
+%%MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/COPYING
+%%MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/feat.params
+%%MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/mdef
+%%MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/means
+%%MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/noisedict
+%%MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/sendump
+%%MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/transition_matrices
+%%MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/variances
+include/freeswitch/libteletone.h
+include/freeswitch/libteletone_detect.h
+include/freeswitch/libteletone_generate.h
+include/freeswitch/switch.h
+include/freeswitch/switch_am_config.h
+include/freeswitch/switch_apr.h
+include/freeswitch/switch_buffer.h
+include/freeswitch/switch_caller.h
+include/freeswitch/switch_channel.h
+include/freeswitch/switch_config.h
+include/freeswitch/switch_console.h
+include/freeswitch/switch_core.h
+include/freeswitch/switch_core_db.h
+include/freeswitch/switch_core_event_hook.h
+include/freeswitch/switch_cpp.h
+include/freeswitch/switch_dso.h
+include/freeswitch/switch_event.h
+include/freeswitch/switch_frame.h
+include/freeswitch/switch_ivr.h
+include/freeswitch/switch_json.h
+include/freeswitch/switch_limit.h
+include/freeswitch/switch_loadable_module.h
+include/freeswitch/switch_log.h
+include/freeswitch/switch_module_interfaces.h
+include/freeswitch/switch_mprintf.h
+include/freeswitch/switch_nat.h
+include/freeswitch/switch_odbc.h
+include/freeswitch/switch_platform.h
+include/freeswitch/switch_regex.h
+include/freeswitch/switch_resample.h
+include/freeswitch/switch_rtcp_frame.h
+include/freeswitch/switch_rtp.h
+include/freeswitch/switch_scheduler.h
+include/freeswitch/switch_stun.h
+include/freeswitch/switch_types.h
+include/freeswitch/switch_utils.h
+include/freeswitch/switch_xml.h
+include/freeswitch/switch_xml_config.h
+%%MODFREETDM%%include/freetdm.h
+%%MODFREETDM%%include/ftdm_declare.h
+%%MODFREETDM%%include/ftdm_dso.h
+%%MODFREETDM%%include/ftdm_os.h
+%%MODFREETDM%%include/ftdm_threadmutex.h
+lib/freeswitch/lib/libfreeswitch.a
+lib/freeswitch/lib/libfreeswitch.la
+lib/freeswitch/lib/libfreeswitch.so
+lib/freeswitch/lib/libfreeswitch.so.1
+%%MODFREETDM%%lib/freeswitch/lib/libfreetdm.a
+%%MODFREETDM%%lib/freeswitch/lib/libfreetdm.la
+%%MODFREETDM%%lib/freeswitch/lib/libfreetdm.so
+%%MODFREETDM%%lib/freeswitch/lib/libfreetdm.so.1
+lib/freeswitch/lib/libjs.a
+lib/freeswitch/lib/libjs.la
+lib/freeswitch/lib/libjs.so
+lib/freeswitch/lib/libjs.so.1
+lib/freeswitch/lib/libnspr4.a
+lib/freeswitch/lib/libnspr4.so.1
+lib/freeswitch/lib/libplc4.a
+lib/freeswitch/lib/libplc4.so.1
+lib/freeswitch/lib/libplds4.a
+lib/freeswitch/lib/libplds4.so.1
+%%MODFREETDM%%lib/freeswitch/mod/ftmod_analog.la
+%%MODFREETDM%%lib/freeswitch/mod/ftmod_analog.so
+%%MODFREETDM%%lib/freeswitch/mod/ftmod_analog_em.la
+%%MODFREETDM%%lib/freeswitch/mod/ftmod_analog_em.so
+%%MODFREETDM%%lib/freeswitch/mod/ftmod_libpri.la
+%%MODFREETDM%%lib/freeswitch/mod/ftmod_libpri.so
+%%MODFREETDM%%lib/freeswitch/mod/ftmod_skel.a
+%%MODFREETDM%%lib/freeswitch/mod/ftmod_skel.la
+%%MODFREETDM%%lib/freeswitch/mod/ftmod_skel.so
+%%MODFREETDM%%lib/freeswitch/mod/ftmod_zt.la
+%%MODFREETDM%%lib/freeswitch/mod/ftmod_zt.so
+%%MODABSTRACTION%%lib/freeswitch/mod/mod_abstraction.la
+%%MODABSTRACTION%%lib/freeswitch/mod/mod_abstraction.so
+lib/freeswitch/mod/mod_amr.la
+lib/freeswitch/mod/mod_amr.so
+%%MODAMRWB%%lib/freeswitch/mod/mod_amrwb.la
+%%MODAMRWB%%lib/freeswitch/mod/mod_amrwb.so
+%%MODAVMD%%lib/freeswitch/mod/mod_avmd.la
+%%MODAVMD%%lib/freeswitch/mod/mod_avmd.so
+lib/freeswitch/mod/mod_blacklist.la
+lib/freeswitch/mod/mod_blacklist.so
+lib/freeswitch/mod/mod_bv.la
+lib/freeswitch/mod/mod_bv.so
+%%MODCALLCENTER%%lib/freeswitch/mod/mod_callcenter.la
+%%MODCALLCENTER%%lib/freeswitch/mod/mod_callcenter.so
+lib/freeswitch/mod/mod_cdr_csv.la
+lib/freeswitch/mod/mod_cdr_csv.so
+%%MODCDRPGCSV%%lib/freeswitch/mod/mod_cdr_pg_csv.la
+%%MODCDRPGCSV%%lib/freeswitch/mod/mod_cdr_pg_csv.so
+lib/freeswitch/mod/mod_cdr_sqlite.la
+lib/freeswitch/mod/mod_cdr_sqlite.so
+%%MODCELT%%lib/freeswitch/mod/mod_celt.la
+%%MODCELT%%lib/freeswitch/mod/mod_celt.so
+%%MODCIDLOOKUP%%lib/freeswitch/mod/mod_cidlookup.la
+%%MODCIDLOOKUP%%lib/freeswitch/mod/mod_cidlookup.so
+lib/freeswitch/mod/mod_cluechoo.la
+lib/freeswitch/mod/mod_cluechoo.so
+%%MODCODEC2%%lib/freeswitch/mod/mod_codec2.la
+%%MODCODEC2%%lib/freeswitch/mod/mod_codec2.so
+lib/freeswitch/mod/mod_commands.la
+lib/freeswitch/mod/mod_commands.so
+lib/freeswitch/mod/mod_conference.la
+lib/freeswitch/mod/mod_conference.so
+lib/freeswitch/mod/mod_console.la
+lib/freeswitch/mod/mod_console.so
+%%MODCURL%%lib/freeswitch/mod/mod_curl.la
+%%MODCURL%%lib/freeswitch/mod/mod_curl.so
+lib/freeswitch/mod/mod_db.la
+lib/freeswitch/mod/mod_db.so
+%%MODDPASTERISK%%lib/freeswitch/mod/mod_dialplan_asterisk.la
+%%MODDPASTERISK%%lib/freeswitch/mod/mod_dialplan_asterisk.so
+%%MODDPDIRECTORY%%lib/freeswitch/mod/mod_dialplan_directory.la
+%%MODDPDIRECTORY%%lib/freeswitch/mod/mod_dialplan_directory.so
+lib/freeswitch/mod/mod_dialplan_xml.la
+lib/freeswitch/mod/mod_dialplan_xml.so
+%%MODDINGALING%%lib/freeswitch/mod/mod_dingaling.la
+%%MODDINGALING%%lib/freeswitch/mod/mod_dingaling.so
+%%MODDIRECTORY%%lib/freeswitch/mod/mod_directory.la
+%%MODDIRECTORY%%lib/freeswitch/mod/mod_directory.so
+%%MODDISTRIBUTOR%%lib/freeswitch/mod/mod_distributor.la
+%%MODDISTRIBUTOR%%lib/freeswitch/mod/mod_distributor.so
+lib/freeswitch/mod/mod_dptools.la
+lib/freeswitch/mod/mod_dptools.so
+%%MODEASYROUTE%%lib/freeswitch/mod/mod_easyroute.la
+%%MODEASYROUTE%%lib/freeswitch/mod/mod_easyroute.so
+lib/freeswitch/mod/mod_enum.la
+lib/freeswitch/mod/mod_enum.so
+%%MODERLANGEVENT%%lib/freeswitch/mod/mod_erlang_event.la
+%%MODERLANGEVENT%%lib/freeswitch/mod/mod_erlang_event.so
+lib/freeswitch/mod/mod_esf.la
+lib/freeswitch/mod/mod_esf.so
+%%MODMULTICAST%%lib/freeswitch/mod/mod_event_multicast.la
+%%MODMULTICAST%%lib/freeswitch/mod/mod_event_multicast.so
+lib/freeswitch/mod/mod_event_socket.la
+lib/freeswitch/mod/mod_event_socket.so
+%%MODEVENTZMQ%%lib/freeswitch/mod/mod_event_zmq.la
+%%MODEVENTZMQ%%lib/freeswitch/mod/mod_event_zmq.so
+lib/freeswitch/mod/mod_expr.la
+lib/freeswitch/mod/mod_expr.so
+lib/freeswitch/mod/mod_fifo.la
+lib/freeswitch/mod/mod_fifo.so
+%%MODFLITE%%lib/freeswitch/mod/mod_flite.la
+%%MODFLITE%%lib/freeswitch/mod/mod_flite.so
+%%MODFREETDM%%lib/freeswitch/mod/mod_freetdm.la
+%%MODFREETDM%%lib/freeswitch/mod/mod_freetdm.so
+%%MODFSK%%lib/freeswitch/mod/mod_fsk.la
+%%MODFSK%%lib/freeswitch/mod/mod_fsk.so
+lib/freeswitch/mod/mod_fsv.la
+lib/freeswitch/mod/mod_fsv.so
+lib/freeswitch/mod/mod_g723_1.la
+lib/freeswitch/mod/mod_g723_1.so
+lib/freeswitch/mod/mod_g729.la
+lib/freeswitch/mod/mod_g729.so
+lib/freeswitch/mod/mod_h26x.la
+lib/freeswitch/mod/mod_h26x.so
+lib/freeswitch/mod/mod_hash.la
+lib/freeswitch/mod/mod_hash.so
+%%MODHTTAPI%%lib/freeswitch/mod/mod_httapi.la
+%%MODHTTAPI%%lib/freeswitch/mod/mod_httapi.so
+%%MODHTTPCACHE%%lib/freeswitch/mod/mod_http_cache.la
+%%MODHTTPCACHE%%lib/freeswitch/mod/mod_http_cache.so
+lib/freeswitch/mod/mod_ilbc.la
+lib/freeswitch/mod/mod_ilbc.so
+%%MODISAC%%lib/freeswitch/mod/mod_isac.la
+%%MODISAC%%lib/freeswitch/mod/mod_isac.so
+%%MODLADSPA%%lib/freeswitch/mod/mod_ladspa.la
+%%MODLADSPA%%lib/freeswitch/mod/mod_ladspa.so
+%%MODLCR%%lib/freeswitch/mod/mod_lcr.la
+%%MODLCR%%lib/freeswitch/mod/mod_lcr.so
+lib/freeswitch/mod/mod_local_stream.la
+lib/freeswitch/mod/mod_local_stream.so
+lib/freeswitch/mod/mod_logfile.la
+lib/freeswitch/mod/mod_logfile.so
+lib/freeswitch/mod/mod_loopback.la
+lib/freeswitch/mod/mod_loopback.so
+lib/freeswitch/mod/mod_lua.la
+lib/freeswitch/mod/mod_lua.so
+%%MODMEMCACHE%%lib/freeswitch/mod/mod_memcache.la
+%%MODMEMCACHE%%lib/freeswitch/mod/mod_memcache.so
+lib/freeswitch/mod/mod_native_file.la
+lib/freeswitch/mod/mod_native_file.so
+%%MODNIBBLEBILL%%lib/freeswitch/mod/mod_nibblebill.la
+%%MODNIBBLEBILL%%lib/freeswitch/mod/mod_nibblebill.so
+%%MODOPUS%%lib/freeswitch/mod/mod_opus.la
+%%MODOPUS%%lib/freeswitch/mod/mod_opus.so
+%%MODPERL%%lib/freeswitch/mod/mod_perl.la
+%%MODPERL%%lib/freeswitch/mod/mod_perl.so
+%%MODPOCKETSPHINX%%lib/freeswitch/mod/mod_pocketsphinx.la
+%%MODPOCKETSPHINX%%lib/freeswitch/mod/mod_pocketsphinx.so
+%%MODPORTAUDIO%%lib/freeswitch/mod/mod_portaudio.la
+%%MODPORTAUDIO%%lib/freeswitch/mod/mod_portaudio.so
+%%MODPASTREAM%%lib/freeswitch/mod/mod_portaudio_stream.la
+%%MODPASTREAM%%lib/freeswitch/mod/mod_portaudio_stream.so
+%%MODPOSIXTIMER%%lib/freeswitch/mod/mod_posix_timer.la
+%%MODPOSIXTIMER%%lib/freeswitch/mod/mod_posix_timer.so
+%%MODPYTHON%%lib/freeswitch/mod/mod_python.la
+%%MODPYTHON%%lib/freeswitch/mod/mod_python.so
+%%MODRSS%%lib/freeswitch/mod/mod_rss.la
+%%MODRSS%%lib/freeswitch/mod/mod_rss.so
+%%MODRTMP%%lib/freeswitch/mod/mod_rtmp.la
+%%MODRTMP%%lib/freeswitch/mod/mod_rtmp.so
+%%MODSAYDE%%lib/freeswitch/mod/mod_say_de.la
+%%MODSAYDE%%lib/freeswitch/mod/mod_say_de.so
+%%MODSAYEN%%lib/freeswitch/mod/mod_say_en.la
+%%MODSAYEN%%lib/freeswitch/mod/mod_say_en.so
+%%MODSAYES%%lib/freeswitch/mod/mod_say_es.la
+%%MODSAYES%%lib/freeswitch/mod/mod_say_es.so
+%%MODSAYFR%%lib/freeswitch/mod/mod_say_fr.la
+%%MODSAYFR%%lib/freeswitch/mod/mod_say_fr.so
+%%MODSAYHE%%lib/freeswitch/mod/mod_say_he.la
+%%MODSAYHE%%lib/freeswitch/mod/mod_say_he.so
+%%MODSAYHU%%lib/freeswitch/mod/mod_say_hu.la
+%%MODSAYHU%%lib/freeswitch/mod/mod_say_hu.so
+%%MODSAYIT%%lib/freeswitch/mod/mod_say_it.la
+%%MODSAYIT%%lib/freeswitch/mod/mod_say_it.so
+%%MODSAYNL%%lib/freeswitch/mod/mod_say_nl.la
+%%MODSAYNL%%lib/freeswitch/mod/mod_say_nl.so
+%%MODSAYPT%%lib/freeswitch/mod/mod_say_pt.la
+%%MODSAYPT%%lib/freeswitch/mod/mod_say_pt.so
+%%MODSAYRU%%lib/freeswitch/mod/mod_say_ru.la
+%%MODSAYRU%%lib/freeswitch/mod/mod_say_ru.so
+%%MODSAYTH%%lib/freeswitch/mod/mod_say_th.la
+%%MODSAYTH%%lib/freeswitch/mod/mod_say_th.so
+%%MODSAYZH%%lib/freeswitch/mod/mod_say_zh.la
+%%MODSAYZH%%lib/freeswitch/mod/mod_say_zh.so
+%%MODSHELLSTREAM%%lib/freeswitch/mod/mod_shell_stream.la
+%%MODSHELLSTREAM%%lib/freeswitch/mod/mod_shell_stream.so
+%%MODSHOUT%%lib/freeswitch/mod/mod_shout.la
+%%MODSHOUT%%lib/freeswitch/mod/mod_shout.so
+%%MODSILK%%lib/freeswitch/mod/mod_silk.la
+%%MODSILK%%lib/freeswitch/mod/mod_silk.so
+lib/freeswitch/mod/mod_siren.la
+lib/freeswitch/mod/mod_siren.so
+%%MODSKINNY%%lib/freeswitch/mod/mod_skinny.la
+%%MODSKINNY%%lib/freeswitch/mod/mod_skinny.so
+lib/freeswitch/mod/mod_sms.la
+lib/freeswitch/mod/mod_sms.so
+%%MODSNAPSHOT%%lib/freeswitch/mod/mod_snapshot.la
+%%MODSNAPSHOT%%lib/freeswitch/mod/mod_snapshot.so
+lib/freeswitch/mod/mod_sndfile.la
+lib/freeswitch/mod/mod_sndfile.so
+%%MODSNMP%%lib/freeswitch/mod/mod_snmp.la
+%%MODSNMP%%lib/freeswitch/mod/mod_snmp.so
+%%MODSNOM%%lib/freeswitch/mod/mod_snom.la
+%%MODSNOM%%lib/freeswitch/mod/mod_snom.so
+lib/freeswitch/mod/mod_sofia.la
+lib/freeswitch/mod/mod_sofia.so
+%%MODSOUNDTOUCH%%lib/freeswitch/mod/mod_soundtouch.la
+%%MODSOUNDTOUCH%%lib/freeswitch/mod/mod_soundtouch.so
+lib/freeswitch/mod/mod_spandsp.la
+lib/freeswitch/mod/mod_spandsp.so
+lib/freeswitch/mod/mod_speex.la
+lib/freeswitch/mod/mod_speex.so
+lib/freeswitch/mod/mod_spidermonkey.la
+lib/freeswitch/mod/mod_spidermonkey.so
+lib/freeswitch/mod/mod_spidermonkey_core_db.la
+lib/freeswitch/mod/mod_spidermonkey_core_db.so
+lib/freeswitch/mod/mod_spidermonkey_curl.la
+lib/freeswitch/mod/mod_spidermonkey_curl.so
+lib/freeswitch/mod/mod_spidermonkey_odbc.la
+lib/freeswitch/mod/mod_spidermonkey_odbc.so
+lib/freeswitch/mod/mod_spidermonkey_socket.la
+lib/freeswitch/mod/mod_spidermonkey_socket.so
+lib/freeswitch/mod/mod_spidermonkey_teletone.la
+lib/freeswitch/mod/mod_spidermonkey_teletone.so
+%%MODSPY%%lib/freeswitch/mod/mod_spy.la
+%%MODSPY%%lib/freeswitch/mod/mod_spy.so
+lib/freeswitch/mod/mod_syslog.la
+lib/freeswitch/mod/mod_syslog.so
+lib/freeswitch/mod/mod_tone_stream.la
+lib/freeswitch/mod/mod_tone_stream.so
+%%MODTTSCMDLINE%%lib/freeswitch/mod/mod_tts_commandline.la
+%%MODTTSCMDLINE%%lib/freeswitch/mod/mod_tts_commandline.so
+%%MODUNIMRCP%%lib/freeswitch/mod/mod_unimrcp.la
+%%MODUNIMRCP%%lib/freeswitch/mod/mod_unimrcp.so
+lib/freeswitch/mod/mod_valet_parking.la
+lib/freeswitch/mod/mod_valet_parking.so
+%%MODVLC%%lib/freeswitch/mod_vlc.la
+%%MODVLC%%lib/freeswitch/mod_vlc.so
+%%MODVMD%%lib/freeswitch/mod/mod_vmd.la
+%%MODVMD%%lib/freeswitch/mod/mod_vmd.so
+lib/freeswitch/mod/mod_voicemail.la
+lib/freeswitch/mod/mod_voicemail.so
+%%MODVOICEMAILIVR%%lib/freeswitch/mod/mod_voicemail_ivr.la
+%%MODVOICEMAILIVR%%lib/freeswitch/mod/mod_voicemail_ivr.so
+lib/freeswitch/mod/mod_xml_cdr.la
+lib/freeswitch/mod/mod_xml_cdr.so
+%%MODXMLCURL%%lib/freeswitch/mod/mod_xml_curl.la
+%%MODXMLCURL%%lib/freeswitch/mod/mod_xml_curl.so
+lib/freeswitch/mod/mod_xml_rpc.la
+lib/freeswitch/mod/mod_xml_rpc.so
+%%MODPYTHON%%lib/python2.7/site-packages/freeswitch.py
+libdata/pkgconfig/freeswitch.pc
+%%MODFREETDM%%libdata/pkgconfig/freetdm.pc
+%%MODPERL%%perl/freeswitch.la
+%%MODPERL%%perl/freeswitch.pm
+%%MODPERL%%perl/freeswitch.so
+www/freeswitch/htdocs/license.txt.sample
+www/freeswitch/htdocs/slim.swf.sample
+www/freeswitch/htdocs/slimtest.htm.sample
+@dirrm www/freeswitch/htdocs
+@dirrm www/freeswitch
+@dirrmtry share/freeswitch/sounds
+@dirrmtry share/freeswitch
+%%MODPERL%%@dirrm perl
+@dirrm lib/freeswitch/mod
+@dirrm lib/freeswitch/lib
+@dirrm lib/freeswitch
+@dirrm include/freeswitch
+@dirrm %%ETCDIR%%/scripts
+%%MODPOCKETSPHINX%%@dirrm %%ETCDIR%%/grammar/model/communicator
+%%MODPOCKETSPHINX%%@dirrm %%ETCDIR%%/grammar/model
+@dirrm %%ETCDIR%%/grammar
+@dirrmtry %%ETCDIR%%/conf/directory/default
+@dirrmtry %%ETCDIR%%/conf/directory/
+@dirrmtry %%ETCDIR%%/conf/autoload_configs
+@dirrmtry %%ETCDIR%%/conf
+@dirrmtry %%ETCDIR%%
+@cwd /var
+@dirrmtry log/freeswitch/xml_cdr
+@dirrmtry log/freeswitch
+@dirrmtry freeswitch/recordings
+@dirrmtry freeswitch
+@dirrmtry db/freeswitch