[Freeswitch-svn] [commit] r8926 - in freeswitch/trunk/debian: . default monit

Freeswitch SVN ctrix at freeswitch.org
Tue Jul 8 05:49:54 EDT 2008


Author: ctrix
Date: Tue Jul  8 05:49:53 2008
New Revision: 8926

Added:
   freeswitch/trunk/debian/freeswitch-lang-es.install
   freeswitch/trunk/debian/freeswitch-lang-nl.install
   freeswitch/trunk/debian/freeswitch-sounds-en-us-callie-16000.install
   freeswitch/trunk/debian/freeswitch-sounds-en-us-callie-32000.install
   freeswitch/trunk/debian/freeswitch-sounds-en-us-callie-8000.install
   freeswitch/trunk/debian/freeswitch-sounds-music-8000.install
   freeswitch/trunk/debian/freeswitch.default
Removed:
   freeswitch/trunk/debian/default/
Modified:
   freeswitch/trunk/debian/changelog
   freeswitch/trunk/debian/control
   freeswitch/trunk/debian/freeswitch.init
   freeswitch/trunk/debian/freeswitch.install
   freeswitch/trunk/debian/monit/freeswitch.monitrc
   freeswitch/trunk/debian/rules

Log:
Debian build scripts updates.

   * Updated revision number
   * Fixed init problem reported by Jay Binks (FSSCRIPTS-1)
   * Added a patch to the debian build system add more features (thanks to Hadley Rich) (FSBUILD-45)
     - Added en-us-callie sounds and music on hold packages
     - Added recommends and suggests
     - Added mod_say_es and mod_say_nl
     - Updated descriptions
     - Added mod_cdr_csv
   * Fixed typos and some errors in the previus patch.
   * Modified monit script. Now it should work.
   * The debian build system now bootstrap automagically if it's necessary and all scripts are in place.



Modified: freeswitch/trunk/debian/changelog
==============================================================================
--- freeswitch/trunk/debian/changelog	(original)
+++ freeswitch/trunk/debian/changelog	Tue Jul  8 05:49:53 2008
@@ -1,3 +1,19 @@
+freeswitch (1.0.1~trunk) unstable; urgency=low
+
+   * Updated revision number
+   * Fixed init problem reported by Jay Binks (FSSCRIPTS-1)
+   * Added a patch to the debian build system add more features (thanks to Hadley Rich) (FSBUILD-45)
+     - Added en-us-callie sounds and music on hold packages
+     - Added recommends and suggests
+     - Added mod_say_es and mod_say_nl
+     - Updated descriptions
+     - Added mod_cdr_csv
+   * Fixed typos and some errors in the previus patch.
+   * Modified monit script. Now it should work.
+   * The debian build system now bootstrap automagically if it's necessary and all scripts are in place.
+
+ -- Massimo Cetra <devel at navynet.it>  Sun, 6 Jul 2008 16:30:00 +0100
+
 freeswitch (1.0.0-1) unstable; urgency=low
 
    * Enhanced sofia sip nat handling

Modified: freeswitch/trunk/debian/control
==============================================================================
--- freeswitch/trunk/debian/control	(original)
+++ freeswitch/trunk/debian/control	Tue Jul  8 05:49:53 2008
@@ -2,14 +2,15 @@
 Maintainer: Michal Bielicki <michal.bielicki at voiceworks.pl>
 Section: net
 Priority: extra
-Build-Depends: debhelper (>= 5), automake1.9, autoconf, libtool, unixodbc-dev, libasound2-dev, libcurl3-dev|libcurl4-openssl-dev, libssl-dev, ncurses-dev, libogg-dev, libvorbis-dev, libperl-dev, libgdbm-dev, libdb4.4-dev, libgnutls-dev
-Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5), fakeroot, automake1.9, autoconf, libtool, unixodbc-dev, libasound2-dev, libcurl3-dev|libcurl4-openssl-dev, libssl-dev, ncurses-dev, libogg-dev, libvorbis-dev, libperl-dev, libgdbm-dev, libdb-dev, libgnutls-dev
+Standards-Version: 3.7.3
 
 Package: freeswitch
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, unixodbc, libasound2, libcurl3, openssl, libncurses5
-Suggests: monit
-Description: A telephony platform that really kicks some ass...
+Recommends: freeswitch-lang-en
+Suggests: freeswitch-spidermonkey, freeswitch-lua, freeswitch-perl, freeswitch-sounds-music-8000, monit 
+Description: The FreeSWITCH open source telephony platform
  FreeSWITCH is an open source telephony platform designed to facilitate the
  creation of voice and chat driven products scaling from a soft-phone up to
  a soft-switch.  It can be used as a simple switching engine, a media gateway
@@ -19,22 +20,22 @@
 Package: freeswitch-dev
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
-Description: Development Package for the FreeSwitch open source telephony platform
+Description: Development Package for the FreeSWITCH open source telephony platform
 
 Package: freeswitch-spidermonkey
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
-Description: A Javascript engine for freeswitch
+Description: A Javascript engine for FreeSWITCH
 
 Package: freeswitch-perl
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
-Description: A perl engine for freeswitch
+Description: A perl engine for FreeSWITCH
 
 Package: freeswitch-lua
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
-Description: A lua engine for freeswitch
+Description: A lua engine for FreeSWITCH
 
 Package: freeswitch-codec-passthru-g7231
 Architecture: any
@@ -54,8 +55,30 @@
 Package: freeswitch-lang-en
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Recommends: freeswitch-sounds-en-us-callie-8000
+Suggests: freeswitch-sounds-en-us-callie-16000, freeswitch-sounds-en-us-callie-32000
 Description: English language files for the FreeSWITCH open source telephony platform
 
+Package: freeswitch-sounds-en-us-callie-8000
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Description: English language files for the FreeSWITCH open source telephony platform
+
+Package: freeswitch-sounds-en-us-callie-16000
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Description: English language files for the FreeSWITCH open source telephony platform (16000)
+
+Package: freeswitch-sounds-en-us-callie-32000
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Description: English language files for the FreeSWITCH open source telephony platform (32000)
+
+Package: freeswitch-sounds-music-8000
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Description: Music on hold files for the FreeSWITCH open source telephony platform
+
 Package: freeswitch-lang-de
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
@@ -70,3 +93,13 @@
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
 Description: Italian language files for the FreeSWITCH open source telephony platform
+
+Package: freeswitch-lang-es
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Description: Spanish language files for the FreeSWITCH open source telephony platform
+
+Package: freeswitch-lang-nl
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Description: Dutch language files for the FreeSWITCH open source telephony platform

Added: freeswitch/trunk/debian/freeswitch-lang-es.install
==============================================================================
--- (empty file)
+++ freeswitch/trunk/debian/freeswitch-lang-es.install	Tue Jul  8 05:49:53 2008
@@ -0,0 +1 @@
+opt/freeswitch/mod/mod_say_es.so*

Added: freeswitch/trunk/debian/freeswitch-lang-nl.install
==============================================================================
--- (empty file)
+++ freeswitch/trunk/debian/freeswitch-lang-nl.install	Tue Jul  8 05:49:53 2008
@@ -0,0 +1 @@
+opt/freeswitch/mod/mod_say_nl.so*

Added: freeswitch/trunk/debian/freeswitch-sounds-en-us-callie-16000.install
==============================================================================
--- (empty file)
+++ freeswitch/trunk/debian/freeswitch-sounds-en-us-callie-16000.install	Tue Jul  8 05:49:53 2008
@@ -0,0 +1,2 @@
+opt/freeswitch/sounds/en/us/callie/*/16000/*
+

Added: freeswitch/trunk/debian/freeswitch-sounds-en-us-callie-32000.install
==============================================================================
--- (empty file)
+++ freeswitch/trunk/debian/freeswitch-sounds-en-us-callie-32000.install	Tue Jul  8 05:49:53 2008
@@ -0,0 +1,2 @@
+opt/freeswitch/sounds/en/us/callie/*/32000/*
+

Added: freeswitch/trunk/debian/freeswitch-sounds-en-us-callie-8000.install
==============================================================================
--- (empty file)
+++ freeswitch/trunk/debian/freeswitch-sounds-en-us-callie-8000.install	Tue Jul  8 05:49:53 2008
@@ -0,0 +1,2 @@
+opt/freeswitch/sounds/en/us/callie/*/8000/*
+

Added: freeswitch/trunk/debian/freeswitch-sounds-music-8000.install
==============================================================================
--- (empty file)
+++ freeswitch/trunk/debian/freeswitch-sounds-music-8000.install	Tue Jul  8 05:49:53 2008
@@ -0,0 +1,2 @@
+opt/freeswitch/sounds/music/8000/*
+

Added: freeswitch/trunk/debian/freeswitch.default
==============================================================================
--- (empty file)
+++ freeswitch/trunk/debian/freeswitch.default	Tue Jul  8 05:49:53 2008
@@ -0,0 +1,11 @@
+# Startup settings for FreeSWITCH
+
+# Enable initd (let init handle start and stop of freeswitch). 
+# Set to "true" (lowercase) to enable.
+
+FREESWITCH_ENABLED="false"
+
+# The parameters Freeswitch should be started with
+
+FREESWITCH_PARAMS="-nc"
+

Modified: freeswitch/trunk/debian/freeswitch.init
==============================================================================
--- freeswitch/trunk/debian/freeswitch.init	(original)
+++ freeswitch/trunk/debian/freeswitch.init	Tue Jul  8 05:49:53 2008
@@ -19,26 +19,20 @@
 DESC="FreeSwitch Voice Switching System"
 NAME=freeswitch
 DAEMON=/opt/freeswitch/bin/$NAME
-DAEMON_ARGS="-nc"
 USER=freeswitch
 PIDFILE=/opt/freeswitch/log/$NAME.pid
 SCRIPTNAME=/etc/init.d/$NAME
 
 # Check if we are being executed by init
 
-. /etc/default/$NAME
 CALLEDSCRIPT=`basename $0`
-echo $CALLEDSCRIPT
-case "$CALLEDSCRIPT" in
-	freeswitch)
-	;;
-	*)
-	  if [ "$USE_INIT" != "TRUE" ]; then 
-	    echo "FreeSwitch disabled" ; 
-	    exit 0 ;
-	  fi
-	;;
-esac
+
+if [ -r /etc/default/$NAME ]; then . /etc/default/$NAME; fi                                           
+
+if [ "$FREESWITCH_ENABLED" != "true" ]; then 
+    echo "$DESC not enabled yet. Edit /etc/default/$NAME first."
+    exit 0 ;
+fi
 
 # Exit if the package is not installed
 # [ -x "$DAEMON" ] || exit 0
@@ -65,7 +59,7 @@
 	start-stop-daemon -c $USER --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
 		|| return 1
 	start-stop-daemon -c $USER --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
-		$DAEMON_ARGS \
+		$FREESWITCH_PARAMS \
 		|| return 2
 	# Add code here, if necessary, that waits for the process to be ready
 	# to handle requests from services started subsequently which depend

Modified: freeswitch/trunk/debian/freeswitch.install
==============================================================================
--- freeswitch/trunk/debian/freeswitch.install	(original)
+++ freeswitch/trunk/debian/freeswitch.install	Tue Jul  8 05:49:53 2008
@@ -3,6 +3,7 @@
 opt/freeswitch/bin/scripts/*
 opt/freeswitch/lib/libfreeswitch*.so*
 opt/freeswitch/mod/mod_shout*
+opt/freeswitch/mod/mod_cdr_csv.so*
 opt/freeswitch/mod/mod_console.so*
 opt/freeswitch/mod/mod_expr.so*
 opt/freeswitch/mod/mod_rss.so*

Modified: freeswitch/trunk/debian/monit/freeswitch.monitrc
==============================================================================
--- freeswitch/trunk/debian/monit/freeswitch.monitrc	(original)
+++ freeswitch/trunk/debian/monit/freeswitch.monitrc	Tue Jul  8 05:49:53 2008
@@ -2,7 +2,10 @@
    group voice
    start program = "/etc/init.d/freeswitch start"
    stop  program = "/etc/init.d/freeswitch stop"
-   if failed port 5060 type UDP then restart
+# Checks sip port on localhost, not wlways suitable
+#   if failed port 5060 type UDP then restart
+# Checks mod_event_socket on localhost. Maybe more suitable
+   if failed port 8021 type TCP then restart
    if 5 restarts within 5 cycles then timeout
    depends on freeswitch_bin
    depends on freeswitch_rc
@@ -10,9 +13,9 @@
  check file freeswitch_bin with path /opt/freeswitch/bin/freeswitch
    group voice
    if failed checksum then unmonitor
-   if failed permission 755 then unmonitor
+   if failed permission 750 then unmonitor
    if failed uid freeswitch then unmonitor
-   if failed gid daemon then unmonitor
+#   if failed gid daemon then unmonitor
 
  check file freeswitch_rc with path /etc/init.d/freeswitch
    group voice

Modified: freeswitch/trunk/debian/rules
==============================================================================
--- freeswitch/trunk/debian/rules	(original)
+++ freeswitch/trunk/debian/rules	Tue Jul  8 05:49:53 2008
@@ -16,13 +16,13 @@
 export DIRECTORIES_MODULES=
 export DOTNET_MODULES=
 export ENDPOINTS_MODULES=endpoints/mod_dingaling endpoints/mod_iax endpoints/mod_portaudio endpoints/mod_sofia endpoints/mod_woomera ../../libs/openzap/mod_openzap
-export EVENT_HANDLERS_MODULES=event_handlers/mod_event_multicast event_handlers/mod_event_socket
+export EVENT_HANDLERS_MODULES=event_handlers/mod_event_multicast event_handlers/mod_event_socket event_handlers/mod_cdr_csv
 export FORMATS_MODULES=formats/mod_local_stream formats/mod_native_file formats/mod_sndfile formats/mod_tone_stream formats/mod_shout
 export LANGUAGES_MODULES=languages/mod_perl languages/mod_lua
 export LOGGERS_MODULES=loggers/mod_console loggers/mod_logfile loggers/mod_syslog
-export SAY_MODULES=say/mod_say_de say/mod_say_en say/mod_say_fr say/mod_say_it
+export SAY_MODULES=say/mod_say_en say/mod_say_it say/mod_say_de say/mod_say_fr say/mod_say_es say/mod_say_nl
 export TIMERS_MODULES=
-export DISABLED_MODULES=applications/mod_soundtouch directories/mod_ldap languages/mod_java languages/mod_python languages/mod_spidermonkey_skel ast_tts/mod_cepstral asr_tts/mod_lumenvox endpoints/mod_wanpipe event_handlers/mod_event_test event_handlers/mod_radius_cdr event_handlers/mod_zeroconf say/mod_say_es say/mod_say_nl
+export DISABLED_MODULES=applications/mod_soundtouch directories/mod_ldap languages/mod_java languages/mod_python languages/mod_spidermonkey_skel ast_tts/mod_cepstral asr_tts/mod_lumenvox endpoints/mod_wanpipe event_handlers/mod_event_test event_handlers/mod_radius_cdr event_handlers/mod_zeroconf
 export XML_INT_MODULES=xml_int/mod_xml_rpc  xml_int/mod_xml_curl xml_int/mod_xml_cdr
 export MYMODULES=$(PASSTHRU_CODEC_MODULES) $(SPIDERMONKEY_MODULES) $(APPLICATIONS_MODULES) $(ASR_TTS_MODULES) $(CODECS_MODULES) $(DIALPLANS_MODULES) $(DIRECTORIES_MODULES) $(DOTNET_MODULES) $(ENDPOINTS_MODULES) $(EVENT_HANDLERS_MODULES) $(FORMATS_MODULES) $(LANGUAGES_MODULES) $(LOGGERS_MODULES) $(SAY_MODULES) $(TIMERS_MODULES) $(XML_INT_MODULES)
 export MODULES=$(MYMODULES)
@@ -49,14 +49,21 @@
 
 config.status: configure
 	dh_testdir
-	rm modules.conf
+	rm -f modules.conf
 	touch modules.conf
 	echo $(MODULES)
 	for i in $(MODULES); do echo $$i >> modules.conf; done
 	./configure --prefix=/opt/freeswitch --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) ${FEATURES}
 
-configure: bootstrap.sh
-	AUTOCONF=${AUTOCONF} ./bootstrap.sh
+configure:
+	if test ! -f Makefile.in ;  then \
+	    if test -f ./bootstrap.sh ; then \
+		AUTOCONF=${AUTOCONF} ./bootstrap.sh ; \
+	    else \
+		echo "No Makefile.in and no known way to bootstrap." ; \
+		exit 1; \
+	    fi; \
+	fi;
 
 build: build-stamp
 build-stamp:  config.status
@@ -89,7 +96,7 @@
 	dh_clean -k 
 	dh_installdirs -A --sourcedir=debian/tmp
 
-	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install uhd-sounds-install moh-install
 
 
 # Build architecture-independent files here.
@@ -116,8 +123,7 @@
 #	dh_installinfo
 #	dh_undocumented
 #	dh_installman
-	cp debian/monit/freeswitch.monitrc debian/freeswitch/etc/monit/freswitch.monitrc
-	cp debian/default/freeswitch debian/freeswitch/etc/default
+	cp debian/monit/freeswitch.monitrc debian/freeswitch/etc/monit/freeswitch.monitrc
 	dh_install --sourcedir=debian/tmp
 	dh_strip
 	dh_compress



More information about the Freeswitch-svn mailing list