ports/148440: update for freeswitch-core

Richard Neese r.neese at gmail.com
Wed Jul 7 22:40:02 UTC 2010


>Number:         148440
>Category:       ports
>Synopsis:       update for freeswitch-core
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 07 22:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Richard Neese
>Release:        8.1-rc1
>Organization:
>Environment:
FreeBSD daemonswitch.homeip.net 8.1-RC1 FreeBSD 8.1-RC1 #0: Mon Jun 21 13:32:58 EDT 2010     richard at daemonswitch.homeip.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
new port update of freeswitch-core to try and pass pointyhat tb.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: distinfo
===================================================================
--- distinfo	(revision 313)
+++ distinfo	(working copy)
@@ -1,3 +1,39 @@
 MD5 (freeswitch-1.0.6.tar.gz) = 388effee587887a81fe7f411b7350590
 SHA256 (freeswitch-1.0.6.tar.gz) = 5610f478307b5c06d38e1ea4029298142c2960e426c3297378857d8734770215
 SIZE (freeswitch-1.0.6.tar.gz) = 36400963
+MD5 (celt-0.7.1.tar.gz) = c7f6b8346e132b1a48dae0eff77ea9f0
+SHA256 (celt-0.7.1.tar.gz) = 93f0e2dfb59021b19e69dc0dee855eb89f19397db1dea0d0d6f9329cff933066
+SIZE (celt-0.7.1.tar.gz) = 425092
+MD5 (flite-1.3.99-latest.tar.gz) = 365b60881715c5e13c0d8bc37d9be6ff
+SHA256 (flite-1.3.99-latest.tar.gz) = ac5832c7b654c5adf9ec3df0e8a7c817d2105233e11ce5aa7e97a8c6c8e14e13
+SIZE (flite-1.3.99-latest.tar.gz) = 17440698
+MD5 (json-c-0.9.tar.gz) = 3a13d264528dcbaf3931b0cede24abae
+SHA256 (json-c-0.9.tar.gz) = 702a486c9bf8e19137d484ab5c49b4ad314eb5e1fe37062a72c0a0fa39439475
+SIZE (json-c-0.9.tar.gz) = 340953
+MD5 (lame-3.97.tar.gz) = 90a4acbb730d150dfe80de145126eef7
+SHA256 (lame-3.97.tar.gz) = 0a2334a6d11085298a9a3c46d5d310cca012f2e61d6efae90840a76a364dbe17
+SIZE (lame-3.97.tar.gz) = 1328058
+MD5 (libmemcached-0.32.tar.gz) = 2f06059803737b6bf6135edfc86db4b3
+SHA256 (libmemcached-0.32.tar.gz) = cf1be20af93163d6ab25b511f79c515778ebced54806875561ebef46011f2a9b
+SIZE (libmemcached-0.32.tar.gz) = 512586
+MD5 (libshout-2.2.2.tar.gz) = e409b006b5dad6d8668c3e429bf20159
+SHA256 (libshout-2.2.2.tar.gz) = 38701125cb0e0349f4394dd3254d6037eeb8af0747c0942ff433ffbcd48d2367
+SIZE (libshout-2.2.2.tar.gz) = 478582
+MD5 (mpg123.tar.gz) = 5af8730df15a50b3814bcb4686f3a8ff
+SHA256 (mpg123.tar.gz) = 408fed3b37d83ab2396bcf6253d62e75e573ba96b7c4497f0faddd557763b97b
+SIZE (mpg123.tar.gz) = 1253597
+MD5 (openldap-2.4.11.tar.gz) = 920fedbbb5bc61c2ca52c56edeef770a
+SHA256 (openldap-2.4.11.tar.gz) = 76e57147a2373015f306f2e72128330e51d5c0f1056b4713283234dfd16c1c9c
+SIZE (openldap-2.4.11.tar.gz) = 4941654
+MD5 (pocketsphinx-0.5.99-20091212.tar.gz) = 9162b0008213bbd3e8b046f6ab576d12
+SHA256 (pocketsphinx-0.5.99-20091212.tar.gz) = ad2318103ae16bd1740b0e8658bc6d5fa8964e8eb79de128f7c106d3401f2f48
+SIZE (pocketsphinx-0.5.99-20091212.tar.gz) = 11703230
+MD5 (soundtouch-1.3.1.tar.gz) = 86979af5a2dde55d58967600476b8c23
+SHA256 (soundtouch-1.3.1.tar.gz) = ff5ff8dfe4a078ced7478a71f0d4715ee27743424f5c06db19829e2fee06b2b5
+SIZE (soundtouch-1.3.1.tar.gz) = 407740
+MD5 (sphinxbase-0.4.99-20091212.tar.gz) = 0a6e3e726d8900961ec998dd1ba6c128
+SHA256 (sphinxbase-0.4.99-20091212.tar.gz) = a1e359aa92934414bc4fe1dcbb93edad11bf7b5f625c94bdebe85d6dfe3618f0
+SIZE (sphinxbase-0.4.99-20091212.tar.gz) = 2150613
+MD5 (communicator_semi_6000_20080321.tar.gz) = 504941aa35924af84cee1bf61914d923
+SHA256 (communicator_semi_6000_20080321.tar.gz) = dbb5e9fb85000a7cb97d6958a3ef8d77532dc55fc730ac6979705e8645cb0c18
+SIZE (communicator_semi_6000_20080321.tar.gz) = 5595694
Index: files/patch-Makefile.am
===================================================================
--- files/patch-Makefile.am	(revision 313)
+++ files/patch-Makefile.am	(working copy)
@@ -1,13 +1,23 @@
---- 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 \
+--- Makefile.am	2010-06-22 17:19:37.000000000 -0400
++++ Makefile.am	2010-07-02 11:45:29.000000000 -0400
+@@ -426,7 +426,7 @@
+ 		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 644 $(switch_srcdir)/conf/$$dir/$$filename $(DESTDIR)$(sysconfdir)$$dir/$$filename.sample; \
+ 	done
+ 
+ samples-htdocs: 
+@@ -444,8 +444,9 @@
+ 	$(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) $(voicemaildir) ; 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:
+ 	 done
+ 	test -d $(DESTDIR)$(sysconfdir) || $(MAKE) samples-conf
Index: files/freeswitch.in
===================================================================
--- files/freeswitch.in	(revision 313)
+++ files/freeswitch.in	(working copy)
@@ -18,15 +18,15 @@
 freeswitch_enable=${freeswitch_enable:-"NO"}
 freeswitch_user=${freeswitch_user:-"freeswitch"}
 freeswitch_group=${freeswitch_group:-"freeswitch"}
-freeswitch_flags=${freeswitch_flags:-""}
+freeswitch_flags=${freeswitch_flags:-"-nc"}
 
 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/"
+command_args="${freeswitch_flags} ${freeswitch_user} -g ${freeswitch_group}"
 
-pidfile=${freeswitch_pidfile:-"/var/run/freeswitch.pid"}
+pidfile=${freeswitch_pidfile:-"/var/run/freeswitch/freeswitch.pid"}
 
 start_cmd="freeswitch_start"
 stop_precmd="freeswitch_stop"
Index: files/patch-libs-openzap-mod_openzap-Makefile.in
===================================================================
--- files/patch-libs-openzap-mod_openzap-Makefile.in	(revision 313)
+++ files/patch-libs-openzap-mod_openzap-Makefile.in	(working copy)
@@ -1,14 +1,11 @@
---- libs/openzap/mod_openzap/Makefile.in.orig	2010-05-29 10:53:12.000000000 -0400
-+++ libs/openzap/mod_openzap/Makefile.in	2010-05-29 10:56:04.000000000 -0400
-@@ -13,9 +13,9 @@
- $(OZLA): $(OZ_DIR)/.update
- 	cd $(OZ_DIR) && $(MAKE)
+--- libs/openzap/mod_openzap/Makefile.in	2010-06-22 17:19:26.000000000 -0400
++++ libs/openzap/mod_openzap/Makefile.in	2010-06-25 12:31:28.000000000 -0400
+@@ -15,7 +15,7 @@
  
--local_install:
-+#local_install:
+ local_install:
  	cd $(OZ_DIR) && $(MAKE) install
 -	[ -f $(DESTDIR)@confdir@/autoload_configs/openzap.conf.xml ] || cp -f $(OZ_DIR)/conf/openzap.conf.xml  $(DESTDIR)@confdir@/autoload_configs
-+#	[ -f $(DESTDIR)@confdir@/autoload_configs/openzap.conf.xml ] || cp -f $(OZ_DIR)/conf/openzap.conf.xml  $(DESTDIR)@confdir@/autoload_configs
++	@for i in $(OZ_DIR)/conf/*.xml; do cp $$i $$i.sample; done; cp  -f $(OZ_DIR)/conf/*.xml.sample $(DESTDIR)@confdir@/autoload_configs
  
  local_clean:
  	cd $(OZ_DIR) && $(MAKE) clean
Index: files/pkg-install.in
===================================================================
--- files/pkg-install.in	(revision 313)
+++ files/pkg-install.in	(working copy)
@@ -1,35 +1,32 @@
 #!/bin/sh
-# $FreeBSD:  Exp $
 #
+# $FreeBSD:$
+#
 
-if [ "$2" != "PRE-INSTALL" ]; then
-	exit 0
-fi
+PATH=/bin:/usr/bin:/usr/sbin
 
-FREESWITCHUSER=freeswitch
-FREESWITCHGROUP=${FREESWITCHUSER}
-FREESWITCHUID=610
-FREESWITCHGID=${FREESWITCHUID}
+case $2 in
 
-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
+PRE-INSTALL)
+  echo "---> Starting pre-install script:"
 
-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
+  if pw showgroup "freeswitch" 2>/dev/null; then
+    echo "---> Using existing group \"freeswitch\""
+  else
+    echo "---> Adding group \"freeswitch\""
+    pw addgroup freeswitch -h - || exit 1
+  fi
 
-exit 0
+
+  # Create user if required
+  if pw showuser "freeswitch" 2>/dev/null; then
+    echo "---> Using existing user \"freeswitch\""
+  else
+    echo "---> Adding user \"freeswitch\""
+    pw adduser freeswitch -g freeswitch -h - \
+      -d "/nonexistent" -s "/sbin/nologin" -c "freeswitch User" || exit 1
+  fi
+
+  ;;
+
+esac
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 313)
+++ pkg-plist	(working copy)
@@ -1,3 +1,4 @@
+ at 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_ivrd
@@ -3,8 +4,170 @@
 bin/fsxs
 bin/gentls_cert
-%%WITH_MODOPENZAP%%%%ETCDIR%%/conf/autoload_configs
+%%ETCDIR%%/conf/autoload_configs/acl.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/alsa.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/cdr_csv.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/cdr_pg_csv.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/cidlookup.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/conference.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/console.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/dialplan_directory.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/dingaling.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/directory.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/distributor.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/easyroute.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/enum.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/erlang_event.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/event_multicast.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/event_socket.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/fax.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/fifo.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/ivr.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/java.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/lcr.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/limit.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/local_stream.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/logfile.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/lua.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/memcache.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/modules.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/nibblebill.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/opal.conf.xml.sample
+%%WITH_MODOPENZAP%%%%ETCDIR%%/conf/autoload_configs/openzap.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/perl.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/pocketsphinx.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/portaudio.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/post_load_modules.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/python.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/rss.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/sangoma_codec.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/shout.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/skinny.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/sofia.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/spidermonkey.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/switch.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/syslog.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/timezones.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/tts_commandline.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/unicall.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/unimrcp.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/voicemail.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/xml_cdr.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/xml_curl.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/xml_rpc.conf.xml.sample
+%%ETCDIR%%/conf/autoload_configs/zeroconf.conf.xml.sample
+%%ETCDIR%%/conf/dialplan/default.xml.sample
+%%ETCDIR%%/conf/dialplan/default/00_pizza_demo.xml.sample
+%%ETCDIR%%/conf/dialplan/default/01_example.com.xml.sample
+%%ETCDIR%%/conf/dialplan/default/99999_enum.xml.sample
+%%ETCDIR%%/conf/dialplan/features.xml.sample
+%%ETCDIR%%/conf/dialplan/public.xml.sample
+%%ETCDIR%%/conf/dialplan/public/00_inbound_did.xml.sample
+%%ETCDIR%%/conf/directory/default.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1000.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1001.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1002.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1003.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1004.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1005.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1006.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1007.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1008.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1009.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1010.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1011.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1012.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1013.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1014.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1015.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1016.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1017.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1018.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/1019.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/brian.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/default.xml.sample
+%%WITH_EXTENSIONS%%%%ETCDIR%%/conf/directory/default/example.com.xml.sample
+%%ETCDIR%%/conf/extensions.conf.sample
+%%ETCDIR%%/conf/freeswitch.xml.sample
+%%ETCDIR%%/conf/fur_elise.ttml.sample
+%%ETCDIR%%/conf/ivr_menus/demo_ivr.xml.sample
+%%ETCDIR%%/conf/jingle_profiles/client.xml.sample
+%%ETCDIR%%/conf/jingle_profiles/server.xml.sample
+%%ETCDIR%%/conf/lang/de/de.xml.sample
+%%ETCDIR%%/conf/lang/de/demo/demo.xml.sample
+%%ETCDIR%%/conf/lang/de/vm/tts.xml.sample
+%%ETCDIR%%/conf/lang/en/demo/demo-ivr.xml.sample
+%%ETCDIR%%/conf/lang/en/demo/demo.xml.sample
+%%ETCDIR%%/conf/lang/en/dir/sounds.xml.sample
+%%ETCDIR%%/conf/lang/en/dir/tts.xml.sample
+%%ETCDIR%%/conf/lang/en/en.xml.sample
+%%ETCDIR%%/conf/lang/en/vm/sounds.xml.sample
+%%ETCDIR%%/conf/lang/en/vm/tts.xml.sample
+%%ETCDIR%%/conf/lang/fr/demo/demo.xml.sample
+%%ETCDIR%%/conf/lang/fr/dir/sounds.xml.sample
+%%ETCDIR%%/conf/lang/fr/dir/tts.xml.sample
+%%ETCDIR%%/conf/lang/fr/fr.xml.sample
+%%ETCDIR%%/conf/lang/fr/vm/sounds.xml.sample
+%%ETCDIR%%/conf/lang/ru/demo/demo-ivr.xml.sample
+%%ETCDIR%%/conf/lang/ru/demo/demo.xml.sample
+%%ETCDIR%%/conf/lang/ru/dir/sounds.xml.sample
+%%ETCDIR%%/conf/lang/ru/dir/tts.xml.sample
+%%ETCDIR%%/conf/lang/ru/ru.xml.sample
+%%ETCDIR%%/conf/lang/ru/vm/sounds.xml.sample
+%%ETCDIR%%/conf/lang/ru/vm/tts.xml.sample
+%%WITH_MODOPENZAP%%%%ETCDIR%%/conf/m3ua.conf.sample
+%%ETCDIR%%/conf/mime.types.sample
+%%ETCDIR%%/conf/mrcp_profiles/loquendo-7-mrcp-v2.xml.sample
+%%ETCDIR%%/conf/mrcp_profiles/nuance-1.0.0-mrcp-v1.xml.sample
+%%ETCDIR%%/conf/mrcp_profiles/nuance-5.0-mrcp-v1.xml.sample
+%%ETCDIR%%/conf/mrcp_profiles/nuance-5.0-mrcp-v2.xml.sample
+%%ETCDIR%%/conf/mrcp_profiles/unimrcpserver-mrcp-v1.xml.sample
+%%ETCDIR%%/conf/mrcp_profiles/voxeo-prophecy-8.0-mrcp-v1.xml.sample
+%%ETCDIR%%/conf/notify-voicemail.tpl.sample
+%%WITH_MODOPENZAP%%%%ETCDIR%%/conf/openzap.conf.sample
+%%WITH_MODOPENZAP%%%%ETCDIR%%/conf/pika.conf.sample
+%%ETCDIR%%/conf/sip_profiles/external.xml.sample
+%%ETCDIR%%/conf/sip_profiles/external/example.xml.sample
+%%ETCDIR%%/conf/sip_profiles/internal-ipv6.xml.sample
+%%ETCDIR%%/conf/sip_profiles/internal.xml.sample
+%%ETCDIR%%/conf/sip_profiles/internal/example.xml.sample
+%%ETCDIR%%/conf/skinny_profiles/internal.xml.sample
+%%ETCDIR%%/conf/tetris.ttml.sample
+%%WITH_MODOPENZAP%%%%ETCDIR%%/conf/tones.conf.sample
+%%ETCDIR%%/conf/vars.xml.sample
+%%ETCDIR%%/conf/voicemail.tpl.sample
+%%WITH_MODOPENZAP%%%%ETCDIR%%/conf/wanpipe.conf.sample
+%%ETCDIR%%/conf/web-vm.tpl.sample
+%%WITH_MODOPENZAP%%%%ETCDIR%%/conf/zt.conf.sample
+ at exec for i in $(find %D/etc/freeswitch/conf/ -type f -name *.sample); do if [ ! -f ${i%.sample} ]; then cp $i ${i%.sample}; fi; done
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/default.dic
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/COPYING
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/feat.params
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/mdef
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/means
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/noisedict
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/sendump
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/transition_matrices
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/communicator/variances
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/wsj1/Makefile
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/wsj1/Makefile.am
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/wsj1/Makefile.in
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/wsj1/feat.params
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/wsj1/kdtrees
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/wsj1/mdef
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/wsj1/means
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/wsj1/noisedict
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/wsj1/sendump
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/wsj1/transition_matrices
+%%WITH_MODPOCKETSPHINX%%%%ETCDIR%%/grammar/model/wsj1/variances
+%%WITH_MODOPENZAP%%include/freeswitch/fsk.h
+%%WITH_MODOPENZAP%%include/freeswitch/g711.h
+%%WITH_MODOPENZAP%%include/freeswitch/hashtable.h
+%%WITH_MODOPENZAP%%include/freeswitch/hashtable_itr.h
+%%WITH_MODOPENZAP%%include/freeswitch/hashtable_private.h
 include/freeswitch/libteletone.h
 include/freeswitch/libteletone_detect.h
 include/freeswitch/libteletone_generate.h
+%%WITH_MODOPENZAP%%include/freeswitch/openzap.h
+%%WITH_MODOPENZAP%%include/freeswitch/sangoma_tdm_api.h
 include/freeswitch/switch.h
 include/freeswitch/switch_am_config.h
@@ -39,23 +202,13 @@
 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
+%%WITH_MODOPENZAP%%include/freeswitch/uart.h
+%%WITH_MODOPENZAP%%include/freeswitch/zap_buffer.h
+%%WITH_MODOPENZAP%%include/freeswitch/zap_config.h
+%%WITH_MODOPENZAP%%include/freeswitch/zap_cpu_monitor.h
+%%WITH_MODOPENZAP%%include/freeswitch/zap_dso.h
+%%WITH_MODOPENZAP%%include/freeswitch/zap_threadmutex.h
+%%WITH_MODOPENZAP%%include/freeswitch/zap_types.h
 lib/freeswitch/lib/libfreeswitch.a
 lib/freeswitch/lib/libfreeswitch.la
 lib/freeswitch/lib/libfreeswitch.so
@@ -222,8 +375,8 @@
 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_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
@@ -244,14 +397,6 @@
 %%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
@@ -273,247 +418,77 @@
 %%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
- at rmtry %%DATADIR%%/storage
- at rmtry %%DATADIR%%/scripts
- at rmtry %%DATADIR%%/recordings
- at rmtry %%DATADIR%%/log
-%%WITH_MODOPENZAP%%@dirrm %%DATADIR%%/include
- at dirrm %%DATADIR%%/htdocs
-%%WITH_MODPOCKETSPHINX%%@dirrm %%DATADIR%%/grammar/model/wsj1
-%%WITH_MODPOCKETSPHINX%%@dirrm %%DATADIR%%/grammar/model/communicator
-%%WITH_MODPOCKETSPHINX%%@dirrm %%DATADIR%%/grammar/model
- at dirrm %%DATADIR%%/grammar
- at rmtry %%DATADIR%%/db
- at 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%%
+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_MODPERL%%perl/freeswitch.la
+%%WITH_MODPERL%%perl/freeswitch.pm
+%%WITH_MODPERL%%perl/freeswitch.so
+%%WWWDIR%%/htdocs/license.txt
+%%WWWDIR%%/htdocs/slim.swf
+%%WWWDIR%%/htdocs/slimtest.htm
+ at dirrm %%WWWDIR%%/htdocs
+ at dirrm %%WWWDIR%%
+ at dirrm %%DATADIR%%/sounds
+ at dirrm %%DATADIR%%
+%%WITH_MODPERL%%@dirrm perl
 @dirrm lib/freeswitch/mod
 @dirrm lib/freeswitch/lib
 @dirrm lib/freeswitch
 @dirrm include/freeswitch
- at dirrmtry %%ETCDIR%%/conf
- at dirrmtry %%ETCDIR%%
- at exec mkdir -p %D/%%DATADIR%%/grammar
+ at dirrm %%ETCDIR%%/scripts
+%%WITH_MODPOCKETSPHINX%%@dirrm %%ETCDIR%%/grammar/model/wsj1
+%%WITH_MODPOCKETSPHINX%%@dirrm %%ETCDIR%%/grammar/model/communicator
+%%WITH_MODPOCKETSPHINX%%@dirrm %%ETCDIR%%/grammar/model
+ at dirrm %%ETCDIR%%/grammar
+ at dirrm %%ETCDIR%%/conf/skinny_profiles
+ at dirrm %%ETCDIR%%/conf/sip_profiles/internal
+ at dirrm %%ETCDIR%%/conf/sip_profiles/external
+ at dirrm %%ETCDIR%%/conf/sip_profiles
+ at dirrm %%ETCDIR%%/conf/mrcp_profiles
+ at dirrm %%ETCDIR%%/conf/lang/ru/vm
+ at dirrm %%ETCDIR%%/conf/lang/ru/dir
+ at dirrm %%ETCDIR%%/conf/lang/ru/demo
+ at dirrm %%ETCDIR%%/conf/lang/ru
+ at dirrm %%ETCDIR%%/conf/lang/fr/vm
+ at dirrm %%ETCDIR%%/conf/lang/fr/dir
+ at dirrm %%ETCDIR%%/conf/lang/fr/demo
+ at dirrm %%ETCDIR%%/conf/lang/fr
+ at dirrm %%ETCDIR%%/conf/lang/en/vm
+ at dirrm %%ETCDIR%%/conf/lang/en/dir
+ at dirrm %%ETCDIR%%/conf/lang/en/demo
+ at dirrm %%ETCDIR%%/conf/lang/en
+ at dirrm %%ETCDIR%%/conf/lang/de/vm
+ at dirrm %%ETCDIR%%/conf/lang/de/demo
+ at dirrm %%ETCDIR%%/conf/lang/de
+ at dirrm %%ETCDIR%%/conf/lang
+ at dirrm %%ETCDIR%%/conf/jingle_profiles
+ at dirrm %%ETCDIR%%/conf/ivr_menus
+ at dirrm %%ETCDIR%%/conf/directory/default
+ at dirrm %%ETCDIR%%/conf/directory
+ at dirrm %%ETCDIR%%/conf/dialplan/public
+ at dirrm %%ETCDIR%%/conf/dialplan/default
+ at dirrm %%ETCDIR%%/conf/dialplan
+ at dirrm %%ETCDIR%%/conf/autoload_configs
+ at dirrm %%ETCDIR%%/conf
+ at dirrm %%ETCDIR%%
+ at exec mkdir -p %D/%%ETCDIR%%/scripts
+ at exec mkdir -p %D/%%DATADDIR%%/sounds
 @cwd /var/
- at dirrmtry spool/voicemail
- at dirrmtry log/freeswitch/xml_cdr
- at dirrmtry log/freeswitch
- at dirrmtry freeswitch/storage
- at dirrmtry freeswitch/recordings
- at dirrmtry freeswitch
- at dirrmtry db/freeswitch
- at exec mkdir -p %D/freeswitch/storage
- at exec chmod 775 %D/freeswitch/storage
- at exec ln -Ffs %D/freeswitch/storage %%DATADIR%%/storage
- at exec chmod 775 %%DATADIR%%/storage
- at exec rm -rf %%DATADIR%%/recordings
+ at dirrm spool/freeswitch/voicemail
+ at dirrm log/freeswitch/xml_cdr
+ at dirrm log/freeswitch
+ at dirrm freeswitch/recordings
+ at dirrm freeswitch
+ at dirrm db/freeswitch
+ at exec mkdir -p %D/spool/freeswitch/voicemail
+ at exec mkdir -p %D/log/freeswitch/
+ at exec mkdir -p %D/log/freeswitch/xml_cdr
+ at exec mkdir -p %D/freeswitch
 @exec mkdir -p %D/freeswitch/recordings
- at exec chmod 775 %D/freeswitch/recordings
- at exec ln -Ffs %D/freeswitch/recordings %%DATADIR%%/recordings
- at exec chmod 775 %%DATADIR%%/recordings
- at exec rm -rf %%DATADIR%%/log
- at exec mkdir -p %D/log/freeswitch/cdr-csv
- at exec chmod -R 775 /log/freeswitch
- at exec ln -Ffs %D/log/freeswitch %%DATADIR%%/log
 @exec mkdir -p %D/db/freeswitch
- at exec ln -Ffs %D/db/freeswitch %%DATADIR%%/db
- at exec chmod 775 %%DATADIR%%/db
Index: Makefile
===================================================================
--- Makefile	(revision 313)
+++ Makefile	(working copy)
@@ -1,20 +1,33 @@
 # Ports collection makefile for: freeswitch-core
 # Date created: May 11, 2010
-# Whom: Richard Neese <r.neese at gmail.com>
+# Whom: Richard Neese <r.neese at gmail.com>>
 #
-# $FreeBSD$
+# $FreeBSD: ports/net/freeswitch-core/Makefile,v 1.3 2010/06/16 17:26:09 jpaetzel Exp $
 #
 
 PORTNAME=	freeswitch
 PORTVERSION=	1.0.6
+PORTREVISION=	2
 CATEGORIES=	net
-MASTER_SITES=	http://files.freeswitch.org/ \
-		ftp://ftp.secure-computing.net/pub/freeswitch/ \
-		ftp://ftp2.secure-computing.net/pub/freeswitch/
+MASTER_SITES=	http://files.freeswitch.org/:1 \
+		http://files.freeswitch.org/downloads/libs/:2
 PKGNAMESUFFIX=	-core
-DISTNAME=	${PORTNAME}-${PORTVERSION}
+DISTFILES=	${PORTNAME}-${PORTVERSION}.tar.gz:1 \
+		celt-0.7.1.tar.gz:2 \
+		flite-1.3.99-latest.tar.gz:2 \
+		json-c-0.9.tar.gz \
+		lame-3.97.tar.gz:2 \
+		libmemcached-0.32.tar.gz \
+		libshout-2.2.2.tar.gz:2 \
+		mpg123.tar.gz:2 \
+		openldap-2.4.11.tar.gz:2 \
+		pocketsphinx-0.5.99-20091212.tar.gz:2 \
+		soundtouch-1.3.1.tar.gz:2 \
+		sphinxbase-0.4.99-20091212.tar.gz:2 \
+		communicator_semi_6000_20080321.tar.gz:2
+EXTRACT_ONLY=   ${PORTNAME}-${PORTVERSION}.tar.gz
 
-MAINTAINER=	ecrist at secure-computing.net
+MAINTAINER=	r.neese at gmail.com
 COMMENT=	FreeSwitch SoftSwitch Port
 
 BUILD_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkg-config
@@ -35,13 +48,13 @@
 USE_RC_SUBR=	freeswitch
 HAS_CONFIGURE=	yes
 VARBASE?=	/var
-CONFIGURE_ARGS=	--prefix=${PREFIX}/share/${PORTNAME} \
+CONFIGURE_ARGS=	--prefix=${PREFIX} \
 		--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-rundir=${VARBASE}/run/freeswitch \
 		--with-libgnutls-prefix=${LOCALBASE} \
 		--with-ogg=${LOCALBASE} \
 		--with-ogg-libraries=${LOCALBASE}/lib \
@@ -52,6 +65,11 @@
 USE_LDCONFIG=	yes
 CPPFLAGS+=	-I${PREFIX}/include
 
+FREESWITCH_USER=        freeswitch
+FREESWITCH_GROUP=       ${FREESWITCH_USER}
+
+SUB_LIST=       FREESWITCH_USER=${FREESWITCH_USER} FREESWITCH_GROUP=${FREESWITCH_GROUP}
+
 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 \
@@ -81,7 +99,6 @@
 		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 \
@@ -97,19 +114,20 @@
 		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
+		MODSAYZH	"Enable mod_say_zh (Chinese support)" off \
+		EXTENSIONS	"Include Default User Extensions" 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
+	MODSILK MODUNIMRCP MODTTSCMDLINE MODDISTRIBUTOR MODSNAPSHOT MODSKINNY EXTENSIONS
 .if !defined(WITH_${i})
 PLIST_SUB+=     WITH_${i}="@comment "
 .else
@@ -157,19 +175,19 @@
 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
+	@${REINPLACE_CMD} -e 's|base=http://files.freeswitch.org/downloads/libs/|base=file:///usr/ports/distfiles/|g' ${WRKSRC}/build/getlib.sh.in
 
+.if defined(WITH_VOICEMAILPATCH)
+	@${REINPLACE_CMD} -e 's|${storage_dir}/|${voicemail_dir}|g' ${WRKSRC}/src/mod/applications/mod_voicemail/mod_voicemail.c
+	@${REINPLACE_CMD} -e 's|<!--<param name="storage-dir" value="/tmp"/>-->|<!--<param name="voicemail-dir" value="/var/spool/freeswitch/voicemail"/>-->|g' ${WRKSRC}/conf/autoload_configs/voicemail.conf.xml
+.endif
+
 post-configure:
 .for i in mod_unimrcp mod_flite mod_pocketsphinx
 .if defined(WITH_${i:C/_//g:U})
@@ -209,9 +227,6 @@
 	@${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
@@ -232,55 +247,35 @@
 .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:freeswitch ${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:freeswitch ${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:freeswitch ${VARBASE}/spool/voicemail
-	@${CHMOD} -R 774 ${VARBASE}/spool/voicemail
-	@${CHOWN} -R freeswitch:freeswitch ${VARBASE}/${PORTNAME}
-	@${CHMOD} -R 774 ${VARBASE}/${PORTNAME}
-	@${CHOWN} -R freeswitch:freeswitch ${PREFIX}/share/${PORTNAME}
-	@${CHMOD} -R 774 ${PREFIX}/share/${PORTNAME}
-	@${CHOWN} -R freeswitch:freeswitch ${PREFIX}/etc/${PORTNAME}
-	@${CHMOD} -R 774 ${PREFIX}/etc/${PORTNAME}
+.if !defined(WITH_EXTENSIONS)
+	@${RM} ${WRKSRC}/conf/directory/default/*
+.endif
 
 post-install:
-	@${MKDIR} ${EXAMPLESDIR}/conf
-	(cd ${WRKSRC}/conf/ && \
-		${COPYTREE_SHARE} \* ${EXAMPLESDIR}/conf)
-.if defined(WITH_MODOPENZAP)
-	(cd ${WRKSRC}/libs/openzap/conf/ && \
-		${CP} *.conf ${EXAMPLESDIR}/conf && \
-		${CP} openzap.conf.xml ${EXAMPLESDIR}/conf/autoload_configs)
+.if !defined(WITH_EXTENSIONS)
+	@${MKDIR} ${PREFIX}/etc/${PORTNAME}/conf/directory/default
 .endif
+	@${MKDIR} -p ${PREFIX}/share/${PORTNAME}/sounds
+	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/etc/${PORTNAME}
+	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} ${PREFIX}/share/${PORTNAME}
+	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} /var/db/${PORTNAME}
+	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} /var/log/${PORTNAME}
+	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} /var/${PORTNAME}
+	@${CHOWN} -R ${FREESWITCH_USER}:${FREESWITCH_GROUP} /var/spool/${PORTNAME}
+	@for i in $$(${FIND} ${PREFIX}/etc/${PORTNAME}/conf/ -type f -name '*.sample'); do if [ ! -f $${i%.sample} ]; then ${CP} -p $$i $${i%.sample}; fi; done
 	@${CAT} ${PKGMESSAGE}
 
 .if ${OSVERSION} < 700000
 IGNORE=		freeswitch is only supported on FreeBSD 7 or newer
 .endif
 
+	@${ECHO_MSG} "This port chown -R various directories ${FREESWITCH_USER}:${FREESWITCH_GROUP} "
+	@${ECHO_MSG} "this is for port security . in the event something should stop working."
+	@${ECHO_MSG} "Please take the time to check chownership of the dir's"
+	@${ECHO_MSG} "/var/db/${PORTNAME} /var/log/${PORTNAME} /var/${PORTNAME} ${PREFIX}/etc/${PORTNAME}"
+
 .include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list