Add net/freeswitch-core, part of a revamp to the freeswitch ports

PR:	ports/145369
Submitted by:	Eric F Crist <ecrist@secure-computing.net>
Approved by:	itetcu@ (mentor)
This commit is contained in:
Josh Paetzel 2010-06-11 22:26:45 +00:00
parent 5d8bca0e74
commit eff58e2192
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=256414
13 changed files with 1047 additions and 0 deletions

1
GIDs
View file

@ -133,6 +133,7 @@ polkit:*:562:
pulse:*:563:
pulse-access:*:564:
_xsi:*:600:
freeswitch:*:610:
bnetd:*:700:
bopm:*:717:
openxpki:*:777:

1
UIDs
View file

@ -142,6 +142,7 @@ distcc:*:561:561::0:0:Distcc user:/nonexistent:/usr/sbin/nologin
polkit:*:562:562::0:0:PolicyKit User:/nonexistent:/usr/sbin/nologin
pulse:*:563:563::0:0:PulseAudio System User:/nonexistent:/usr/sbin/nologin
_xsi:*:600:600::0:0:XMLSysInfo User:/nonexistent:/usr/sbin/nologin
freeswitch:*:610:610:Freeswitch user:/nonexistant:/usr/sbin/nologin
_pla:*:636:80::0:0:phpLDAPAdmin Owner:/nonexistent:/usr/sbin/nologin
bnetd:*:700:700::0:0:Bnetd user:/nonexistent:/usr/sbin/nologin
bopm:*:717:717::0:0:Blitzed Open Proxy Monitor:/nonexistent:/bin/sh

View file

@ -158,6 +158,7 @@
SUBDIR += freeradius-mysql
SUBDIR += freeradius2
SUBDIR += freeswitch
SUBDIR += freeswitch-core
SUBDIR += freevrrpd
SUBDIR += freewais-sf
SUBDIR += frickin

View file

@ -0,0 +1,294 @@
# Ports collection makefile for: freeswitch-core
# Date created: May 11, 2010
# Whom: Eric F Crist <ecrist@secure-computing.net>
#
# $FreeBSD$
#
PORTNAME= freeswitch
PORTVERSION= 1.0.6
CATEGORIES= net
MASTER_SITES= http://files.freeswitch.org/ \
ftp://ftp.secure-computing.net/pub/freeswitch/ \
ftp://ftp2.secure-computing.net/pub/freeswitch/
PKGNAMESUFFIX= -core
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= ecrist@secure-computing.net
COMMENT= FreeSwitch SoftSwitch Port
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
gnutls:${PORTSDIR}/security/gnutls \
odbc:${PORTSDIR}/databases/unixODBC
WRKSRC= ${WRKDIR}/freeswitch-${PORTVERSION}
ONLY_FOR_ARCHS= i386 amd64
USE_AUTOTOOLS= autoconf:262:env automake:110:env libtool:22:env
USE_PERL5_BUILD=yes
USE_GMAKE= yes
SUB_FILES= pkg-install pkg-message
USE_RC_SUBR= freeswitch
HAS_CONFIGURE= yes
VARBASE?= /var
CONFIGURE_ARGS= --prefix=${PREFIX}/share/${PORTNAME} \
--bindir=${PREFIX}/bin \
--sysconfdir=${PREFIX}/etc/${PORTNAME}/conf \
--includedir=${PREFIX}/include/${PORTNAME} \
--libdir=${PREFIX}/lib/${PORTNAME}/lib \
--with-modinstdir=${PREFIX}/lib/${PORTNAME}/mod \
--with-rundir=${VARBASE}/run \
--with-libgnutls-prefix=${LOCALBASE} \
--with-ogg=${LOCALBASE} \
--with-ogg-libraries=${LOCALBASE}/lib \
--with-ogg-includes=${LOCALBASE}/include
CONFIGURE_ENV+= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_LDCONFIG= yes
CPPFLAGS+= -I${PREFIX}/include
FREESWITCH_USER= freeswitch
FREESWITCH_GROUP= ${FREESWITCH_USER}
UID= 610
GID= ${UID}
SUB_LIST= FREESWITCH_USER=${FREESWITCH_USER} FREESWITCH_GROUP=${FREESWITCH_GROUP} UID=${UID} GID=${GID}
OPTIONS= MODSHOUT "Enable mod_shout (streaming audio/mp3)" on \
MODFLITE "Enable mod_flite (Text to Speech)" on \
MODUNIMRCP "Enable mod_unimrcp tts (new testing)" off \
MODTTSCMDLINE "Enable mod_tts_commandline (testing)" off \
MODPOCKETSPHINX "Enable mod_pockectsphinx (voice control)" on \
MODCIDLOOKUP "Enable mod_cidlookup" on \
MODDPDIRECTORY "Enable mod_dialplan_directory" off \
MODDIRECTORY "Enable mod_directory" on \
MODDINGALING "Enable mod_dingaling(google talk)" on \
MODEASYROUTE "Enable mod_easyroute(routeing tool)" on \
MODERLANGEVENT "Enable mod_erlang_event (Call Center Dist)" off \
MODFAX "Enable mod_fax" on \
MODLCR "Enable mod_lcr (least cost routing)" on \
MODSOUNDTOUCH "Enable mod_soundtouch" on \
MODRSS "Enable mod_rss (rss feed reader)" on \
MODSNOM "Enable mod_snom (snom control)" off \
MODVMD "Enable mod_vmd (voice mail detection)" on \
MODSPY "Enable mod_spy" on \
MODAMRWB "Enable mod_amrwb (amrwb codec)" on \
MODCELT "Enable mod_celt (celt codec)" on \
MODSILK "Enable mod_silk (New Silk Codec)" on \
MODOPENZAP "Enable mod_openzap dahdi support" off \
MODSKINNY "Enable mod_skinny Skinny Support (Beta)" off \
MODMEMCACHE "Enable mod_memcache" on \
MODMULTICAST "Enable mod_event_multicast" on \
MODNIBBLEBILL "Enable mod_nibblebill(billing)" on \
MODPORTAUDIO "Enable mod_portaudio" on \
MODPASTREAM "Enable mod_portaudio_stream (new)" on \
MODSHELLSTREAM "Enable mod_SHELL_stream (New)" on \
MODSPDRMNKYODBC "Enable mod_spidermonkey_odbc (req odbc)" on \
MODPERL "Enable mod_perl (perl support)" off \
MODPYTHON "Enable mod_python (python lang)" off \
MODCURL "Enable mod_curl" off \
MODXMLCURL "Enable mod_xml_curl" off \
MODDISTRIBUTOR "Enable mod_distributor (testing)" off \
MODSNAPSHOT "Enable mod_snapshot (testing)" off \
MODSAYDE "Enable mod_say_de (German support)" off \
MODSAYES "Enable mod_say_se (Spanish support)" off \
MODSAYEN "Enable mod_say_en (English support)" on \
MODSAYHU "Enable mod_say_hu (Hungarian support(new)" off \
MODSAYFR "Enable mod_say_fr (French support)" off \
MODSAYIT "Enable mod_say_it (Italian support)" off \
MODSAYNL "Enable mod_say_nl (Dutch support)" off \
MODSAYRU "Enable mod_say_ru (Russian support)" on \
MODSAYTH "Enable mod_say_th (Thi support(new)" off \
MODSAYZH "Enable mod_say_zh (Chinese support)" off
.include <bsd.port.options.mk>
.if ${ARCH} == "amd64"
CFLAGS+= -fPIC
CONFIGURE_ARGS+= --enable-64
.endif
.for i in MODFLITE MODPOCKETSPHINX MODCIDLOOKUP MODDPDIRECTORY MODEASYROUTE MODLCR MODSOUNDTOUCH \
MODRSS MODSNOM MODVMD MODSPY MODAMRWB MODCELT MODMULTICAST MODPORTAUDIO MODCURL MODXMLCURL \
MODSAYDE MODSAYEN MODSAYES MODSAYFR MODSAYHU MODSAYIT MODSAYNL MODSAYRU MODSAYTH MODSAYZH \
MODNIBBLEBILL MODDINGALING MODDIRECTORY MODMEMCACHE MODPYTHON MODPASTREAM MODSHELLSTREAM \
MODSILK MODSPDRMNKYODBC MODUNIMRCP MODTTSCMDLINE MODDISTRIBUTOR MODSNAPSHOT MODSKINNY
.if !defined(WITH_${i})
PLIST_SUB+= WITH_${i}="@comment "
.else
PLIST_SUB+= WITH_${i}=""
.endif
.endfor
.if !defined(WITH_MODOPENZAP)
PLIST_SUB+= WITH_MODOPENZAP="@comment "
.else
PLIST_SUB+= WITH_MODOPENZAP=""
CONFIGURE_ARGS+= --with-libpri
BUILD_DEPENDS+= libpri>=1.2.0:${PORTSDIR}/misc/libpri \
${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
.if !defined(WITH_MODSHOUT)
PLIST_SUB+= WITH_MODSHOUT="@comment "
.else
PLIST_SUB+= WITH_MODSHOUT=""
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis
.endif
.if !defined(WITH_MODPERL)
PLIST_SUB+= WITH_MODPERL="@comment "
.else
PLIST_SUB+= WITH_MODPERL=""
LIB_DEPENDS+= gdbm:${PORTSDIR}/databases/gdbm \
db:${PORTSDIR}/databases/db42
.endif
.if !defined(WITH_MODFAX)
PLIST_SUB+= WITH_MODFAX="@comment "
.else
PLIST_SUB+= WITH_MODFAX=""
LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
.endif
.if !defined(WITH_MODERLANGEVENT)
PLIST_SUB+= WITH_MODERLANGEVENT="@comment "
.else
PLIST_SUB+= WITH_MODERLANGEVENT=""
BUILD_DEPENDS+= ${LOCALBASE}/lib/erlang/usr/include/erl_driver.h:${PORTSDIR}/lang/erlang-lite
.endif
.if !defined(WITH_MODSKINNY)
PLIST_SUB+= WITH_MODSKINNY="@comment "
.else
PLIST_SUB+= WITH_MODSKINNY=""
.endif
pre-configure:
cd ${WRKSRC} && ./rebootstrap.sh
@${REINPLACE_CMD} -e 's|pkgconfigdir = $$(libdir)/pkgconfig|pkgconfigdir = $(libdir)data/libdata/pkgconfig|g' ${WRKSRC}/libs/*/Makefile.am
@${REINPLACE_CMD} -e 's|pkgconfigdir = $$(libdir)/pkgconfig|pkgconfigdir = $(libdir)data/libdata/pkgconfig|g' ${WRKSRC}/libs/*/Makefile.in
@${REINPLACE_CMD} -e 's|pkgconfigdir = $$(libdir)/pkgconfig|pkgconfigdir = $(libdir)data/libdata/pkgconfig|g' ${WRKSRC}/Makefile.am
@${REINPLACE_CMD} -e 's|pkgconfigdir = $$(libdir)/pkgconfig|pkgconfigdir = $(libdir)data/libdata/pkgconfig|g' ${WRKSRC}/Makefile.in
post-configure:
.for i in mod_unimrcp mod_flite mod_pocketsphinx
.if defined(WITH_${i:C/_//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_fax mod_lcr mod_soundtouch mod_rss mod_snom \
mod_vmd mod_spy mod_curl mod_nibblebill mod_memcache mod_directory mod_distributor \
mod_snapshot
.if defined(WITH_${i:C/_//g:U})
@${REINPLACE_CMD} -e 's|#\(applications/${i}\)|\1|g' ${WRKSRC}/modules.conf
.endif
.endfor
.for i in mod_amrwb mod_celt mod_silk
.if defined(WITH_${i:C/_//g:U})
@${REINPLACE_CMD} -e 's|#\(codecs/${i}\)|\1|g' ${WRKSRC}/modules.conf
.endif
.endfor
.for i in mod_shell_stream mod_shout
.if defined(WITH_${i:C/_//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_hu mod_say_it mod_say_nl mod_say_ru mod_say_th mod_say_zh
.if defined(WITH_${i:C/_//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:C/_//g:U})
@${REINPLACE_CMD} -e 's|#\(languages/${i}\)|\1|g' ${WRKSRC}/modules.conf
.endif
.endfor
.if defined(WITH_MODSPDRMNKYODBC)
@${REINPLACE_CMD} -e 's|#languages/mod_spidermonkey_odbc|languages/mod_spidermonkey_odbc|g' ${WRKSRC}/modules.conf
.endif
.for i in mod_skinny mod_portaudio mod_dingaling
.if defined(WITH_${i:C/_//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_MODOPENZAP)
@${REINPLACE_CMD} -e 's|#../../libs/openzap/mod_openzap|../../libs/openzap/mod_openzap|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_MODXMLCURL)
@${REINPLACE_CMD} -e 's|#xml_int/mod_xml_curl|xml_int/mod_xml_curl|g' ${WRKSRC}/modules.conf
.endif
.if defined(WITH_MODSKINNY)
@${REINPLACE_CMD} -e 's|#endpoints/mod_skinny|endpoints/mod_skinny|g' ${WRKSRC}/modules.conf
.endif
pre-install:
@${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
do-install:
cd ${WRKSRC} && ${GMAKE} ${INSTALL}
@${MKDIR} ${VARBASE}/db/${PORTNAME}
@${RM} -rf ${PREFIX}/share/${PORTNAME}/db
@${LN} -F -s ${VARBASE}/db/${PORTNAME}/ ${PREFIX}/share/${PORTNAME}/db
@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${VARBASE}/db/${PORTNAME}
@${CHMOD} -R 774 ${VARBASE}/db/${PORTNAME}
@${MKDIR} ${VARBASE}/${PORTNAME}/recordings
@${RM} -rf ${PREFIX}/share/${PORTNAME}/recordings
@${LN} -F -s ${VARBASE}/${PORTNAME}/recordings ${PREFIX}/share/${PORTNAME}/recordings
@${MKDIR} ${VARBASE}/${PORTNAME}/scripts
@${RM} -rf ${PREFIX}/share/${PORTNAME}/scripts
@${LN} -F -s ${VARBASE}/${PORTNAME}/scripts ${PREFIX}/share/${PORTNAME}/scripts
@${MKDIR} ${VARBASE}/log/${PORTNAME}/xml_cdr
@${RM} -rf ${PREFIX}/share/${PORTNAME}/log
@${LN} -F -s ${VARBASE}/log/${PORTNAME}/ ${PREFIX}/share/${PORTNAME}/log
@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${VARBASE}/log/${PORTNAME}
@${CHMOD} -R 774 ${VARBASE}/log/${PORTNAME}
@${MKDIR} ${VARBASE}/spool/voicemail
@${LN} -F -s ${VARBASE}/spool/voicemail ${PREFIX}/share/${PORTNAME}/storage
@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${VARBASE}/spool/voicemail
@${CHMOD} -R 774 ${VARBASE}/spool/voicemail
@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${VARBASE}/${PORTNAME}
@${CHMOD} -R 774 ${VARBASE}/${PORTNAME}
@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/share/${PORTNAME}
@${CHMOD} -R 774 ${PREFIX}/share/${PORTNAME}
@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/etc/${PORTNAME}
@${CHMOD} -R 774 ${PREFIX}/etc/${PORTNAME}
post-install:
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}/conf
(cd ${WRKSRC}/conf/ && \
${COPYTREE_SHARE} \* ${EXAMPLESDIR}/conf)
.endif
.if defined(WITH_MODOPENZAP)
(cd ${WRKSRC}/libs/openzap/conf/ && \
${CP} *.conf ${EXAMPLESDIR}/conf && \
${CP} openzap.conf.xml ${EXAMPLESDIR}/conf/autoload_configs)
.endif
@${CAT} ${PKGMESSAGE}
.if ${OSVERSION} < 700000
IGNORE= freeswitch is only supported on FreeBSD 7 or newer
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (freeswitch-1.0.6.tar.gz) = 388effee587887a81fe7f411b7350590
SHA256 (freeswitch-1.0.6.tar.gz) = 5610f478307b5c06d38e1ea4029298142c2960e426c3297378857d8734770215
SIZE (freeswitch-1.0.6.tar.gz) = 36400963

View file

@ -0,0 +1,70 @@
#!/bin/sh
# PROVIDE: freeswitch
# REQUIRE: DAEMON
# BEFORE: 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
freeswitch_enable=${freeswitch_enable:-"NO"}
freeswitch_user=${freeswitch_user:-"freeswitch"}
freeswitch_group=${freeswitch_group:-"freeswitch"}
freeswitch_flags=${freeswitch_flags:-""}
name=freeswitch
rcvar=`set_rcvar`
command=%%PREFIX%%/bin/freeswitch
command_args="-nc -u ${freeswitch_user} -g ${freeswitch_group} ${freeswitch_flags} -db /var/db/freeswitch -log /var/log/freeswitch/"
pidfile=${freeswitch_pidfile:-"/var/run/freeswitch.pid"}
start_cmd="freeswitch_start"
stop_precmd="freeswitch_stop"
restart_cmd="freeswitch_restart"
sig_stop=KILL
load_rc_config $name
freeswitch_stop () {
echo "Stopping FreeSWITCH."
%%PREFIX%%/bin/freeswitch -stop
sleep 1
return 0
}
freeswitch_start () {
echo "Starting FreeSWITCH."
$command $command_args
sleep 1
return
}
freeswitch_restart () {
echo "Restarting FreeSwitch."
freeswitch_stop
if [ $? -eq 0 ];
then
status=$?
freeswitch_start
sleep 1
return 0
else
echo "Problem stoping FreeSWITCH: $status"
sleep 1
return 1
fi
}
run_rc_command "$1"

View file

@ -0,0 +1,13 @@
--- Makefile.am.orig 2010-05-11 15:58:08.000000000 -0700
+++ Makefile.am 2010-05-12 20:01:14.000000000 -0700
@@ -450,8 +450,8 @@
@echo Installing $(NAME)
@for x in $(modulesdir) $(runtimedir) $(dbdir) $(logfiledir) $(logfiledir)/xml_cdr $(bindir) $(scriptdir) $(recordingsdir) $(grammardir); do \
$(mkinstalldirs) $(DESTDIR)$$x ; \
- done
- test -d $(DESTDIR)$(sysconfdir) || $(MAKE) samples-conf
+ done
+ test -d $(DESTDIR)$(sysconfdir) || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
test -d $(DESTDIR)$(htdocsdir) || $(MAKE) samples-htdocs
is-scm:

View file

@ -0,0 +1,73 @@
--- libs/openzap/src/ozmod/ozmod_zt/ozmod_zt.c.orig 2010-04-26 14:17:55.000000000 -0700
+++ libs/openzap/src/ozmod/ozmod_zt/ozmod_zt.c 2010-04-26 14:22:56.000000000 -0700
@@ -52,38 +52,38 @@
* \brief General IOCTL codes
*/
struct ioctl_codes {
- int GET_BLOCKSIZE;
- int SET_BLOCKSIZE;
- int FLUSH;
- int SYNC;
- int GET_PARAMS;
- int SET_PARAMS;
- int HOOK;
- int GETEVENT;
- int IOMUX;
- int SPANSTAT;
- int MAINT;
- int GETCONF;
- int SETCONF;
- int CONFLINK;
- int CONFDIAG;
- int GETGAINS;
- int SETGAINS;
- int SPANCONFIG;
- int CHANCONFIG;
- int SET_BUFINFO;
- int GET_BUFINFO;
- int AUDIOMODE;
- int ECHOCANCEL;
- int HDLCRAWMODE;
- int HDLCFCSMODE;
- int SPECIFY;
- int SETLAW;
- int SETLINEAR;
- int GETCONFMUTE;
- int ECHOTRAIN;
- int SETTXBITS;
- int GETRXBITS;
+ long GET_BLOCKSIZE;
+ long SET_BLOCKSIZE;
+ long FLUSH;
+ long SYNC;
+ long GET_PARAMS;
+ long SET_PARAMS;
+ long HOOK;
+ long GETEVENT;
+ long IOMUX;
+ long SPANSTAT;
+ long MAINT;
+ long GETCONF;
+ long SETCONF;
+ long CONFLINK;
+ long CONFDIAG;
+ long GETGAINS;
+ long SETGAINS;
+ long SPANCONFIG;
+ long CHANCONFIG;
+ long SET_BUFINFO;
+ long GET_BUFINFO;
+ long AUDIOMODE;
+ long ECHOCANCEL;
+ long HDLCRAWMODE;
+ long HDLCFCSMODE;
+ long SPECIFY;
+ long SETLAW;
+ long SETLINEAR;
+ long GETCONFMUTE;
+ long ECHOTRAIN;
+ long SETTXBITS;
+ long GETRXBITS;
};
/**

View file

@ -0,0 +1,14 @@
--- src/switch.c.orig 2010-05-11 23:58:27.000000000 -0700
+++ src/switch.c 2010-05-12 00:19:56.000000000 -0700
@@ -661,11 +661,6 @@
return 255;
}
- if (alt_dirs && alt_dirs != 3) {
- fprintf(stderr, "You must specify all or none of -conf, -log, and -db\n");
- return 255;
- }
-
signal(SIGILL, handle_SIGILL);
signal(SIGTERM, handle_SIGILL);

View file

@ -0,0 +1,35 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/net/freeswitch-core/files/pkg-install.in,v 1.1 2010-06-11 22:26:44 jpaetzel Exp $
#
if [ "$2" != "PRE-INSTALL" ]; then
exit 0
fi
FREESWITCHUSER=%%FREESWITCH_USER%%
FREESWITCHGROUP=%%FREESWITCH_GROUP%%
FREESWITCHUID=%%UID%%
FREESWITCHGID=%%GID%%
if ! pw groupshow "${FREESWITCHGROUP}" 2>/dev/null 1>&2; then
if pw groupadd ${FREESWITCHGROUP} -g ${FREESWITCHGID}; then
echo "Added group \"${FREESWITCHGROUP}\"."
else
echo "Adding group \"${FREESWITCHGROUP}\" failed..."
exit 1
fi
fi
if ! pw usershow "${FREESWITCHUSER}" 2>/dev/null 1>&2; then
if pw useradd ${FREESWITCHUSER} -u ${FREESWITCHUID} -g ${FREESWITCHGROUP} -h - \
-s "/sbin/nologin" -d "/nonexistent" \
-c "FREESWITCH Owner"; \
then
echo "Added user \"${FREESWITCHUSER}\"."
else
echo "Adding user \"${FREESWITCHUSER}\" failed..."
exit 1
fi
fi
exit 0

View file

@ -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

View file

@ -0,0 +1,3 @@
FreeSwitch Voip SoftSwitch & OpenSource PBX
WWW: http://www.freeswitch.org/

View file

@ -0,0 +1,519 @@
bin/freeswitch
bin/fs_cli
bin/fs_ivrd
bin/fsxs
bin/gentls_cert
%%WITH_MODOPENZAP%%%%ETCDIR%%/conf/autoload_configs
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_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_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
%%WITH_MODOPENZAP%%%%DATADIR%%/include/fsk.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/g711.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/hashtable.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/hashtable_itr.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/hashtable_private.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/libteletone.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/libteletone_detect.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/libteletone_generate.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/openzap.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/sangoma_tdm_api.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/uart.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/zap_buffer.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/zap_config.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/zap_cpu_monitor.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/zap_dso.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/zap_threadmutex.h
%%WITH_MODOPENZAP%%%%DATADIR%%/include/zap_types.h
lib/freeswitch/lib/libfreeswitch.a
lib/freeswitch/lib/libfreeswitch.la
lib/freeswitch/lib/libfreeswitch.so
lib/freeswitch/lib/libfreeswitch.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
%%WITH_MODOPENZAP%%lib/freeswitch/lib/libopenzap.a
%%WITH_MODOPENZAP%%lib/freeswitch/lib/libopenzap.la
%%WITH_MODOPENZAP%%lib/freeswitch/lib/libopenzap.so
%%WITH_MODOPENZAP%%lib/freeswitch/lib/libopenzap.so.1
lib/freeswitch/lib/libplc4.a
lib/freeswitch/lib/libplc4.so.1
lib/freeswitch/lib/libplds4.a
lib/freeswitch/lib/libplds4.so.1
lib/freeswitch/mod/mod_amr.la
lib/freeswitch/mod/mod_amr.so
%%WITH_MODAMRWB%%lib/freeswitch/mod/mod_amrwb.la
%%WITH_MODAMRWB%%lib/freeswitch/mod/mod_amrwb.so
lib/freeswitch/mod/mod_bv.la
lib/freeswitch/mod/mod_bv.so
lib/freeswitch/mod/mod_cdr_csv.la
lib/freeswitch/mod/mod_cdr_csv.so
%%WITH_MODCELT%%lib/freeswitch/mod/mod_celt.la
%%WITH_MODCELT%%lib/freeswitch/mod/mod_celt.so
%%WITH_MODCIDLOOKUP%%lib/freeswitch/mod/mod_cidlookup.la
%%WITH_MODCIDLOOKUP%%lib/freeswitch/mod/mod_cidlookup.so
lib/freeswitch/mod/mod_cluechoo.la
lib/freeswitch/mod/mod_cluechoo.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
%%WITH_MODCURL%%lib/freeswitch/mod/mod_curl.la
%%WITH_MODCURL%%lib/freeswitch/mod/mod_curl.so
lib/freeswitch/mod/mod_dialplan_asterisk.la
lib/freeswitch/mod/mod_dialplan_asterisk.so
%%WITH_MODDPDIRECTORY%%lib/freeswitch/mod/mod_dialplan_directory.la
%%WITH_MODDPDIRECTORY%%lib/freeswitch/mod/mod_dialplan_directory.so
lib/freeswitch/mod/mod_dialplan_xml.la
lib/freeswitch/mod/mod_dialplan_xml.so
%%WITH_MODDINGALING%%lib/freeswitch/mod/mod_dingaling.la
%%WITH_MODDINGALING%%lib/freeswitch/mod/mod_dingaling.so
%%WITH_MODDIRECTORY%%lib/freeswitch/mod/mod_directory.la
%%WITH_MODDIRECTORY%%lib/freeswitch/mod/mod_directory.so
%%WITH_MODDISTRIBUTOR%%lib/freeswitch/mod/mod_distributor.la
%%WITH_MODDISTRIBUTOR%%lib/freeswitch/mod/mod_distributor.so
lib/freeswitch/mod/mod_dptools.la
lib/freeswitch/mod/mod_dptools.so
%%WITH_MODEASYROUTE%%lib/freeswitch/mod/mod_easyroute.la
%%WITH_MODEASYROUTE%%lib/freeswitch/mod/mod_easyroute.so
lib/freeswitch/mod/mod_enum.la
lib/freeswitch/mod/mod_enum.so
%%WITH_MODERLANGEVENT%%lib/freeswitch/mod/mod_erlang_event.la
%%WITH_MODERLANGEVENT%%lib/freeswitch/mod/mod_erlang_event.so
lib/freeswitch/mod/mod_esf.la
lib/freeswitch/mod/mod_esf.so
%%WITH_MODMULTICAST%%lib/freeswitch/mod/mod_event_multicast.la
%%WITH_MODMULTICAST%%lib/freeswitch/mod/mod_event_multicast.so
lib/freeswitch/mod/mod_event_socket.la
lib/freeswitch/mod/mod_event_socket.so
lib/freeswitch/mod/mod_expr.la
lib/freeswitch/mod/mod_expr.so
%%WITH_MODFAX%%lib/freeswitch/mod/mod_fax.la
%%WITH_MODFAX%%lib/freeswitch/mod/mod_fax.so
lib/freeswitch/mod/mod_fifo.la
lib/freeswitch/mod/mod_fifo.so
lib/freeswitch/mod/mod_file_string.la
lib/freeswitch/mod/mod_file_string.so
%%WITH_MODFLITE%%lib/freeswitch/mod/mod_flite.la
%%WITH_MODFLITE%%lib/freeswitch/mod/mod_flite.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_ilbc.la
lib/freeswitch/mod/mod_ilbc.so
%%WITH_MODLCR%%lib/freeswitch/mod/mod_lcr.la
%%WITH_MODLCR%%lib/freeswitch/mod/mod_lcr.so
lib/freeswitch/mod/mod_limit.la
lib/freeswitch/mod/mod_limit.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
%%WITH_MODMEMCACHE%%lib/freeswitch/mod/mod_memcache.la
%%WITH_MODMEMCACHE%%lib/freeswitch/mod/mod_memcache.so
lib/freeswitch/mod/mod_native_file.la
lib/freeswitch/mod/mod_native_file.so
%%WITH_MODNIBBLEBILL%%lib/freeswitch/mod/mod_nibblebill.la
%%WITH_MODNIBBLEBILL%%lib/freeswitch/mod/mod_nibblebill.so
%%WITH_MODOPENZAP%%lib/freeswitch/mod/mod_openzap.la
%%WITH_MODOPENZAP%%lib/freeswitch/mod/mod_openzap.so
%%WITH_MODPERL%%lib/freeswitch/mod/mod_perl.la
%%WITH_MODPERL%%lib/freeswitch/mod/mod_perl.so
%%WITH_MODPOCKETSPHINX%%lib/freeswitch/mod/mod_pocketsphinx.la
%%WITH_MODPOCKETSPHINX%%lib/freeswitch/mod/mod_pocketsphinx.so
%%WITH_MODPORTAUDIO%%lib/freeswitch/mod/mod_portaudio.la
%%WITH_MODPORTAUDIO%%lib/freeswitch/mod/mod_portaudio.so
%%WITH_MODPASTREAM%%lib/freeswitch/mod/mod_portaudio_stream.la
%%WITH_MODPASTREAM%%lib/freeswitch/mod/mod_portaudio_stream.so
%%WITH_MODPYTHON%%lib/freeswitch/mod/mod_python.la
%%WITH_MODPYTHON%%lib/freeswitch/mod/mod_python.so
%%WITH_MODRSS%%lib/freeswitch/mod/mod_rss.la
%%WITH_MODRSS%%lib/freeswitch/mod/mod_rss.so
%%WITH_MODSAYDE%%lib/freeswitch/mod/mod_say_de.la
%%WITH_MODSAYDE%%lib/freeswitch/mod/mod_say_de.so
%%WITH_MODSAYEN%%lib/freeswitch/mod/mod_say_en.la
%%WITH_MODSAYEN%%lib/freeswitch/mod/mod_say_en.so
%%WITH_MODSAYES%%lib/freeswitch/mod/mod_say_es.la
%%WITH_MODSAYES%%lib/freeswitch/mod/mod_say_es.so
%%WITH_MODSAYFR%%lib/freeswitch/mod/mod_say_fr.la
%%WITH_MODSAYFR%%lib/freeswitch/mod/mod_say_fr.so
%%WITH_MODSAYHU%%lib/freeswitch/mod/mod_say_hu.la
%%WITH_MODSAYHU%%lib/freeswitch/mod/mod_say_hu.so
%%WITH_MODSAYIT%%lib/freeswitch/mod/mod_say_it.la
%%WITH_MODSAYIT%%lib/freeswitch/mod/mod_say_it.so
%%WITH_MODSAYNL%%lib/freeswitch/mod/mod_say_nl.la
%%WITH_MODSAYNL%%lib/freeswitch/mod/mod_say_nl.so
%%WITH_MODSAYRU%%lib/freeswitch/mod/mod_say_ru.la
%%WITH_MODSAYRU%%lib/freeswitch/mod/mod_say_ru.so
%%WITH_MODSAYTH%%lib/freeswitch/mod/mod_say_th.la
%%WITH_MODSAYTH%%lib/freeswitch/mod/mod_say_th.so
%%WITH_MODSAYZH%%lib/freeswitch/mod/mod_say_zh.la
%%WITH_MODSAYZH%%lib/freeswitch/mod/mod_say_zh.so
%%WITH_MODSHELLSTREAM%%lib/freeswitch/mod/mod_shell_stream.la
%%WITH_MODSHELLSTREAM%%lib/freeswitch/mod/mod_shell_stream.so
%%WITH_MODSHOUT%%lib/freeswitch/mod/mod_shout.la
%%WITH_MODSHOUT%%lib/freeswitch/mod/mod_shout.so
%%WITH_MODSILK%%lib/freeswitch/mod/mod_silk.la
%%WITH_MODSILK%%lib/freeswitch/mod/mod_silk.so
lib/freeswitch/mod/mod_siren.la
lib/freeswitch/mod/mod_siren.so
%%WITH_MODSKINNY%%lib/freeswitch/mod/mod_skinny.la
%%WITH_MODSKINNY%%lib/freeswitch/mod/mod_skinny.so
%%WITH_MODSNAPSHOT%%lib/freeswitch/mod/mod_snapshot.la
%%WITH_MODSNAPSHOT%%lib/freeswitch/mod/mod_snapshot.so
lib/freeswitch/mod/mod_sndfile.la
lib/freeswitch/mod/mod_sndfile.so
%%WITH_MODSNOM%%lib/freeswitch/mod/mod_snom.la
%%WITH_MODSNOM%%lib/freeswitch/mod/mod_snom.so
lib/freeswitch/mod/mod_sofia.la
lib/freeswitch/mod/mod_sofia.so
%%WITH_MODSOUNDTOUCH%%lib/freeswitch/mod/mod_soundtouch.la
%%WITH_MODSOUNDTOUCH%%lib/freeswitch/mod/mod_soundtouch.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
%%WITH_MODSPDRMNKYODBC%%lib/freeswitch/mod/mod_spidermonkey_odbc.la
%%WITH_MODSPDRMNKYODBC%%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
%%WITH_MODSPY%%lib/freeswitch/mod/mod_spy.la
%%WITH_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
%%WITH_MODTTSCMDLINE%%lib/freeswitch/mod/mod_tts_commandline.la
%%WITH_MODTTSCMDLINE%%lib/freeswitch/mod/mod_tts_commandline.so
%%WITH_MODUNIMRCP%%lib/freeswitch/mod/mod_unimrcp.la
%%WITH_MODUNIMRCP%%lib/freeswitch/mod/mod_unimrcp.so
lib/freeswitch/mod/mod_valet_parking.la
lib/freeswitch/mod/mod_valet_parking.so
%%WITH_MODVMD%%lib/freeswitch/mod/mod_vmd.la
%%WITH_MODVMD%%lib/freeswitch/mod/mod_vmd.so
lib/freeswitch/mod/mod_voicemail.la
lib/freeswitch/mod/mod_voicemail.so
lib/freeswitch/mod/mod_voipcodecs.la
lib/freeswitch/mod/mod_voipcodecs.so
lib/freeswitch/mod/mod_xml_cdr.la
lib/freeswitch/mod/mod_xml_cdr.so
%%WITH_MODXMLCURL%%lib/freeswitch/mod/mod_xml_curl.la
%%WITH_MODXMLCURL%%lib/freeswitch/mod/mod_xml_curl.so
lib/freeswitch/mod/mod_xml_rpc.la
lib/freeswitch/mod/mod_xml_rpc.so
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_analog.a
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_analog.la
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_analog.so
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_analog_em.a
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_analog_em.la
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_analog_em.so
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_isdn.a
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_isdn.la
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_isdn.so
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_libpri.a
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_libpri.la
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_libpri.so
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_sangoma_boost.a
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_sangoma_boost.la
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_sangoma_boost.so
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_skel.a
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_skel.la
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_skel.so
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_zt.a
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_zt.la
%%WITH_MODOPENZAP%%lib/freeswitch/mod/ozmod_zt.so
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/acl.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/alsa.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/cdr_csv.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/cdr_pg_csv.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/cidlookup.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/conference.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/console.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/dialplan_directory.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/dingaling.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/directory.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/distributor.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/easyroute.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/enum.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/erlang_event.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/event_multicast.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/event_socket.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/fax.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/fifo.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/ivr.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/java.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/lcr.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/limit.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/local_stream.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/logfile.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/lua.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/memcache.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/modules.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/nibblebill.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/opal.conf.xml
%%WITH_MODOPENZAP%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/openzap.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/perl.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/pocketsphinx.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/portaudio.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/post_load_modules.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/python.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/rss.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/sangoma_codec.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/shout.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/skinny.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/sofia.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/spidermonkey.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/switch.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/syslog.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/timezones.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/tts_commandline.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/unicall.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/unimrcp.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/voicemail.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/xml_cdr.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/xml_curl.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/xml_rpc.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/autoload_configs/zeroconf.conf.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/dialplan/default.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/dialplan/default/00_pizza_demo.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/dialplan/default/01_example.com.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/dialplan/default/99999_enum.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/dialplan/default/ideasip.com.noload
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/dialplan/default/pulver.com.noload
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/dialplan/default/sipbroker.com.noload
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/dialplan/default/sipphone.com.noload
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/dialplan/default/tollfreegateway.com.noload
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/dialplan/features.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/dialplan/public.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/dialplan/public/00_inbound_did.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1000.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1001.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1002.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1003.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1004.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1005.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1006.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1007.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1008.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1009.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1010.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1011.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1012.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1013.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1014.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1015.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1016.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1017.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1018.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/1019.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/brian.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/default.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/directory/default/example.com.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/extensions.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/freeswitch.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/fur_elise.ttml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/ivr_menus/demo_ivr.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/jingle_profiles/client.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/jingle_profiles/server.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/de/de.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/de/demo/demo.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/de/vm/tts.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/en/demo/demo-ivr.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/en/demo/demo.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/en/dir/sounds.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/en/dir/tts.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/en/en.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/en/vm/sounds.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/en/vm/tts.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/fr/demo/demo.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/fr/dir/sounds.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/fr/dir/tts.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/fr/fr.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/fr/vm/sounds.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/ru/demo/demo-ivr.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/ru/demo/demo.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/ru/dir/sounds.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/ru/dir/tts.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/ru/ru.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/ru/vm/sounds.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/lang/ru/vm/tts.xml
%%WITH_MODOPENZAP%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/m3ua.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/mime.types
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/mrcp_profiles/loquendo-7-mrcp-v2.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/mrcp_profiles/nuance-1.0.0-mrcp-v1.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/mrcp_profiles/nuance-5.0-mrcp-v1.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/mrcp_profiles/nuance-5.0-mrcp-v2.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/mrcp_profiles/unimrcpserver-mrcp-v1.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/mrcp_profiles/voxeo-prophecy-8.0-mrcp-v1.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/notify-voicemail.tpl
%%WITH_MODOPENZAP%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/openzap.conf
%%WITH_MODOPENZAP%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/pika.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/sip_profiles/external.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/sip_profiles/external/example.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/sip_profiles/internal-ipv6.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/sip_profiles/internal.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/sip_profiles/internal/example.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/skinny_profiles/internal.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/tetris.ttml
%%WITH_MODOPENZAP%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/tones.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/vars.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/voicemail.tpl
%%WITH_MODOPENZAP%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/wanpipe.conf
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/web-vm.tpl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/yaml/extensions.yaml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/yaml/mod_yaml.yaml
%%WITH_MODOPENZAP%%%%PORTEXAMPLES%%%%EXAMPLESDIR%%/conf/zt.conf
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/default.dic
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/communicator/COPYING
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/communicator/feat.params
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/communicator/mdef
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/communicator/means
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/communicator/noisedict
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/communicator/sendump
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/communicator/transition_matrices
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/communicator/variances
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/wsj1/Makefile
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/wsj1/Makefile.am
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/wsj1/Makefile.in
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/wsj1/feat.params
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/wsj1/kdtrees
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/wsj1/mdef
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/wsj1/means
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/wsj1/noisedict
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/wsj1/sendump
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/wsj1/transition_matrices
%%WITH_MODPOCKETSPHINX%%%%DATADIR%%/grammar/model/wsj1/variances
%%DATADIR%%/htdocs/license.txt
%%DATADIR%%/htdocs/slim.swf
%%DATADIR%%/htdocs/slimtest.htm
%%WITH_MODPERL%%%%DATADIR%%/perl/freeswitch.la
%%WITH_MODPERL%%%%DATADIR%%/perl/freeswitch.pm
%%WITH_MODPERL%%%%DATADIR%%/perl/freeswitch.so
%%WITH_MODPERL%%@dirrm %%DATADIR%%/perl
@rmtry %%DATADIR%%/storage
@rmtry %%DATADIR%%/scripts
@rmtry %%DATADIR%%/recordings
@rmtry %%DATADIR%%/log
%%WITH_MODOPENZAP%%@dirrm %%DATADIR%%/include
@dirrm %%DATADIR%%/htdocs
%%WITH_MODPOCKETSPHINX%%@dirrm %%DATADIR%%/grammar/model/wsj1
%%WITH_MODPOCKETSPHINX%%@dirrm %%DATADIR%%/grammar/model/communicator
%%WITH_MODPOCKETSPHINX%%@dirrm %%DATADIR%%/grammar/model
@dirrm %%DATADIR%%/grammar
@rmtry %%DATADIR%%/db
@dirrmtry %%DATADIR%%
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/yaml
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/skinny_profiles
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/sip_profiles/internal
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/sip_profiles/external
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/sip_profiles
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/mrcp_profiles
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/ru/vm
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/ru/dir
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/ru/demo
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/ru
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/fr/vm
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/fr/dir
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/fr/demo
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/fr
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/en/vm
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/en/dir
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/en/demo
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/en
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/de/vm
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/de/demo
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang/de
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/lang
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/jingle_profiles
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/ivr_menus
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/directory/default
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/directory
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/dialplan/public
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/dialplan/default
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/dialplan
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf/autoload_configs
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/conf
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm lib/freeswitch/mod
@dirrm lib/freeswitch/lib
@dirrm lib/freeswitch
@dirrm include/freeswitch
@dirrmtry %%ETCDIR%%/conf
@dirrmtry %%ETCDIR%%
@exec mkdir -p %D/%%DATADIR%%/grammar
@cwd /var/
@dirrmtry spool/voicemail
@dirrmtry log/freeswitch/xml_cdr
@dirrmtry log/freeswitch
@dirrmtry freeswitch/storage
@dirrmtry freeswitch/recordings
@dirrmtry freeswitch
@dirrmtry db/freeswitch
@exec mkdir -p %D/freeswitch/storage
@exec chmod 775 %D/freeswitch/storage
@exec ln -Ffs %D/freeswitch/storage %%DATADIR%%/storage
@exec chmod 775 %%DATADIR%%/storage
@exec rm -rf %%DATADIR%%/recordings
@exec mkdir -p %D/freeswitch/recordings
@exec chmod 775 %D/freeswitch/recordings
@exec ln -Ffs %D/freeswitch/recordings %%DATADIR%%/recordings
@exec chmod 775 %%DATADIR%%/recordings
@exec rm -rf %%DATADIR%%/log
@exec mkdir -p %D/log/freeswitch/cdr-csv
@exec chmod -R 775 /log/freeswitch
@exec ln -Ffs %D/log/freeswitch %%DATADIR%%/log
@exec mkdir -p %D/db/freeswitch
@exec ln -Ffs %D/db/freeswitch %%DATADIR%%/db
@exec chmod 775 %%DATADIR%%/db