pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

freeswitch-core: Add CONF_FILES framework (WIP).



Module Name:	pkgsrc-wip
Committed By:	Angel M. Adames <angelmadames%gmail.com@localhost>
Pushed By:	angelmadames
Date:		Thu Jan 4 14:09:39 2018 +0000
Changeset:	722171d206b70e717fcacd194d3b035dd8e90ffd

Modified Files:
	freeswitch-core/MESSAGE
	freeswitch-core/Makefile

Log Message:
freeswitch-core: Add CONF_FILES framework (WIP).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=722171d206b70e717fcacd194d3b035dd8e90ffd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 freeswitch-core/MESSAGE  | 22 +++++++++++++---------
 freeswitch-core/Makefile | 25 +++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 9 deletions(-)

diffs:
diff --git a/freeswitch-core/MESSAGE b/freeswitch-core/MESSAGE
index d2a8529859..ed390180c0 100644
--- a/freeswitch-core/MESSAGE
+++ b/freeswitch-core/MESSAGE
@@ -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.
+  As for now, some commonly used were included.
+
   (You should deinstall, enable the modules, update your PLIST or use
-  CHECK-FILES=no and then install again)
+  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 after install. The workaround is
-  to manually set the local_ip_v4 value in vars.xml, usually located at:
+* 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.
 ===========================================================================
diff --git a/freeswitch-core/Makefile b/freeswitch-core/Makefile
index 2e90840c50..6f635c15d7 100644
--- a/freeswitch-core/Makefile
+++ b/freeswitch-core/Makefile
@@ -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


Home | Main Index | Thread Index | Old Index