freeswitch-core: Add CONF_FILES framework (WIP).

This commit is contained in:
Angel M. Adames 2018-01-04 14:09:39 +00:00
parent 1bdfa68621
commit 722171d206
2 changed files with 39 additions and 10 deletions

View File

@ -3,21 +3,25 @@ $NetBSD$
* There are many modules that are not enabled by default. If they are
required, please manually enable them in ${WRKSRC}/modules.conf file.
As for now, some required by wip/fusionpbx (GUI interface) were included.
(You should deinstall, enable the modules, update your PLIST or use
CHECK-FILES=no and then install again)
As for now, some commonly used were included.
* The local_ip_v4 variable is used by sofia-sip module. However, automatic
detection of this value might fail after install. The workaround is
to manually set the local_ip_v4 value in vars.xml, usually located at:
(You should deinstall, enable the modules, update your PLIST or use
CHECK-FILES=no and then install FreeSWITCH again, if new modules
were enabled.)
* The 'local_ip_v4' variable is used by sofia-sip module.
However, automatic detection of this value might fail. The workaround
is to manually set the local_ip_v4 value in vars.xml, usually located at:
${PREFIX}/etc/freeswitch/vars.xml.
Example:
<X-PRE-PROCESS cmd="set" data="local_ip_v4=[yo.ur.i.p]"/>
<X-PRE-PROCESS cmd="set" data="local_ip_v4=yo.ur.i.p"/>
Replace "yo.ur.i.p" with a proper value.
* The event_socket_module by default has an IPv6 configuration, therefore,
it is unable to load properly. Please set your IP address or '0.0.0.0' in
it is unable to load properly. Please set your binding IP address in
the event_socket.conf.xml file inside conf_dir/autoload-configs/
* If you are willing to spend some time installing a GUI interface, you
might want to check wip/fusionpbx. Highly recommended.
* FreeSWITCH doesn't come with a GUI. If you have the time, take a look to:
wip/fusionpbx package.
===========================================================================

View File

@ -166,6 +166,31 @@ OWN_DIRS_PERMS+= ${PREFIX}/share/freeswitch ${FS_USER} ${FS_GROUP} 0755
PKG_SYSCONFSUBDIR= freeswitch
PKG_SYSCONFDIR_PERMS= ${FS_USER} ${FS_GROUP} 0755
#############################################################
# WIP: Use of CONF_FILES according to pkgsrc best practices #
#############################################################
#EGDIR= ${PREFIX}/share/examples/freeswitch
#CONF_FILES+= ${EGDIR}/extensions.conf ${PKG_SYSCONFDIR}/extensions.conf
#CONF_FILES+= ${EGDIR}/freetdm.conf ${PKG_SYSCONFDIR}/freetdm.conf
#.for a in alsa blacklist callcenter cdr_mongodb cdr_pg_csv cdr_sqlite \
# cepstral cidlookup conference.conf console db dialplan_directory \
# dingaling directory distributor easyroute enum erlang_event \
# event_multicast event_socket fax fifo freetdm hash httapi http_cache \
# ivr java json_cdr lcr local_stream logfile lua memcache modules mongo \
# nibblebill opal osp perl pocketsphinx portaudio post_load_modules \
# presence_map python redis rss rtmp sangoma_codec shout skinny sofia \
# spandsp spidermonkey switch syslog timezones translate tts_commandline \
# unicall unimrcp verto voicemail voicemail_ivr xml_cdr xml_curl \
# xml_rpc zeroconf
#CONF_FILES+= ${EGDIR}/autoload_configs/${a}.conf.xml \
# ${PKG_SYSCONFDIR}/autoload_configs/${a}.conf.xml
#.endfor
#CONF_FILES+= ${EGDIR}/magic ${PKG_SYSCONFDIR}/magic
#CONF_FILES+= ${EGDIR}/mime.types ${PKG_SYSCONFDIR}/mime.types
#############################################################
BUILDLINK_TRANSFORM+= rm:-Werror
CFLAGS+= -Wno-c11-extensions -Wno-deprecated-declarations \
-Wno-zero-length-array -Wno-incompatible-pointer-types