From 49783c4b57f74ee16aa97456fbff2e85a227e61c Mon Sep 17 00:00:00 2001 From: Michal Bielicki Date: Fri, 30 Nov 2007 14:12:23 +0000 Subject: [PATCH] Half ready multipackage debianisation commit Just a test, please don't use yet git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6446 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- debian/changelog | 5 ++- debian/control | 34 ++++++++++++++++-- debian/freeswitch-codec-passthru-amr.install | 1 + .../freeswitch-codec-passthru-g723_1.install | 1 + debian/freeswitch-codec-passthru-g729.install | 1 + debian/freeswitch-dev.install | 5 +++ debian/freeswitch-spidermonkey.install | 5 +++ debian/{conffiles => freeswitch.conffiles} | 0 debian/{dirs => freeswitch.dirs} | 0 debian/freeswitch.install | 36 +++++++++++++++++++ debian/{ => man/man1}/freeswitch.1 | 0 debian/{ => monit}/freeswitch.monitrc | 0 debian/rules | 13 +++---- 13 files changed, 92 insertions(+), 9 deletions(-) create mode 100644 debian/freeswitch-codec-passthru-amr.install create mode 100644 debian/freeswitch-codec-passthru-g723_1.install create mode 100644 debian/freeswitch-codec-passthru-g729.install create mode 100644 debian/freeswitch-dev.install create mode 100644 debian/freeswitch-spidermonkey.install rename debian/{conffiles => freeswitch.conffiles} (100%) rename debian/{dirs => freeswitch.dirs} (100%) create mode 100644 debian/freeswitch.install rename debian/{ => man/man1}/freeswitch.1 (100%) rename debian/{ => monit}/freeswitch.monitrc (100%) diff --git a/debian/changelog b/debian/changelog index 8f472c6010..6cf1660a5e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -freeswitch (1.0~beta2-2) unstable; urgency=low +freeswitch (1.0~beta3-1) unstable; urgency=low * Additional scripts for changing the user to freeswitch Added Startup Scripts @@ -7,6 +7,9 @@ freeswitch (1.0~beta2-2) unstable; urgency=low init.d file added user freeswitch to own and run all off freeswitch cleaned up config file control + new upstream release + split off codec pakcages + split off spidermonkey packages -- Michal Bielicki Tue, 27 Nov 2007 13:20:21 +0100 diff --git a/debian/control b/debian/control index 5d4b160a92..9e77aaa77a 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Standards-Version: 3.7.2 Package: freeswitch Architecture: any -Depends: ${shlibs:Depends}, unixodbc, libasound2, libcurl3, openssl, libncurses5 +Depends: ${shlibs:Depends}, ${misc:Depends}, unixodbc, libasound2, libcurl3, openssl, libncurses5 Suggests: monit Description: A telephony platform that really kicks some ass... FreeSWITCH is an open source telephony platform designed to facilitate the @@ -16,4 +16,34 @@ Description: A telephony platform that really kicks some ass... or a media server to host IVR applications using simple scripts or XML to control the callflow. . - Homepage: http://some-project.some-place.org/ +Homepage: http://www.freeswitch.org/ + +Package: freeswitch-spidermonkey +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch +Description: A Javascript engine for freeswitch +Homepage: http://www.freeswitch.org/ + +Package: freeswitch-dev +Architecture: any +Depends: ${shlibs:Depends} freswitch +Description: Development Package for the FreeSwitch open source telephony platform +Homepage: http://www.freeswitch.org/ + +Package: freeswitch-codec-passthru-g723_1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch +Description: Pass through g723.1 Codec support for the FreeSWITCH open source telephony platform +Homepage: http://www.freeswitch.org/ + +Package: freeswitch-codec-passthru-amr +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch +Description: Pass through AMR Codec support for the FreeSWITCH open source telephony platform +Homepage: http://www.freeswitch.org/ + +Package: freeswitch-codec-passthru-g729 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch +Description: Pass through g729 Codec support for the FreeSWITCH open source telephony platform +Homepage: http://www.freeswitch.org/ diff --git a/debian/freeswitch-codec-passthru-amr.install b/debian/freeswitch-codec-passthru-amr.install new file mode 100644 index 0000000000..c66668b30f --- /dev/null +++ b/debian/freeswitch-codec-passthru-amr.install @@ -0,0 +1 @@ +opt/freeswitch/mod/mod_amr.so* diff --git a/debian/freeswitch-codec-passthru-g723_1.install b/debian/freeswitch-codec-passthru-g723_1.install new file mode 100644 index 0000000000..496a5625c2 --- /dev/null +++ b/debian/freeswitch-codec-passthru-g723_1.install @@ -0,0 +1 @@ +opt/freeswitch/od/mod_g723_1.so* diff --git a/debian/freeswitch-codec-passthru-g729.install b/debian/freeswitch-codec-passthru-g729.install new file mode 100644 index 0000000000..0f94112f39 --- /dev/null +++ b/debian/freeswitch-codec-passthru-g729.install @@ -0,0 +1 @@ +opt/freeswitch/mod/mod_g729.so* diff --git a/debian/freeswitch-dev.install b/debian/freeswitch-dev.install new file mode 100644 index 0000000000..c879951711 --- /dev/null +++ b/debian/freeswitch-dev.install @@ -0,0 +1,5 @@ +opt/freeswitch/lib/*.a +opt/freeswitch/lib/*.la +opt/freeswitch/mod/*.a +opt/freeswitch/mod/*.la +opt/freeswitch/include/*.h diff --git a/debian/freeswitch-spidermonkey.install b/debian/freeswitch-spidermonkey.install new file mode 100644 index 0000000000..ffe9a3edaa --- /dev/null +++ b/debian/freeswitch-spidermonkey.install @@ -0,0 +1,5 @@ +opt/freeswitch/mod/mod_spidermonkey*so* +opt/freeswitch/lib/libnspr4.so* +opt/freeswitch/lib/libjs.so* +opt/freeswitch/lib/libplds4.so* +opt/freeswitch/lib/libplc4.so* diff --git a/debian/conffiles b/debian/freeswitch.conffiles similarity index 100% rename from debian/conffiles rename to debian/freeswitch.conffiles diff --git a/debian/dirs b/debian/freeswitch.dirs similarity index 100% rename from debian/dirs rename to debian/freeswitch.dirs diff --git a/debian/freeswitch.install b/debian/freeswitch.install new file mode 100644 index 0000000000..c75e875274 --- /dev/null +++ b/debian/freeswitch.install @@ -0,0 +1,36 @@ +opt/freeswitch/htdocs/* +opt/freeswitch/bin/freeswitch +opt/freeswitch/lib/libfreeswitch*.so* +etc/init.d/freeswitch +etc/monit/freeswitch.monitrc +etc/default/freeswitch +opt/freeswitch/man/man1/freeswitch.1 +opt/freeswitch/mod/mod_console.so* +opt/freeswitch/mod/mod_syslog.so* +opt/freeswitch/mod/mod_commands.so* +opt/freeswitch/mod/mod_conference.so* +opt/freeswitch/mod/mod_dptools.so* +opt/freeswitch/mod/mod_enum.so* +opt/freeswitch/mod/mod_fifo.so* +opt/freeswitch/mod/mod_openmrcp.so* +# Codecs +opt/freeswitch/mod/mod_g711.so* +opt/freeswitch/mod/mod_g722.so* +opt/freeswitch/mod/mod_g726.so* +opt/freeswutch/mod/mod_speex.so* +# Dialplan +opt/freeswitch/mod/mod_dialplan*.so* +# Endpoints +opt/freeswitch/mod/mod_dingaling.so* +opt/freeswitch/mod/mod_iax.so* +opt/freeswitch/mod/mod_portaudio.so* +opt/freeswitch/mod/mod_sofia.so* +opt/freeswitch/mod/mod_woomera.so* +opt/freeswitch/mod/mod_openzap.so +# event engines +opt/freeswitch/mod/mod_event_*.so* +opt/freeswitch/mod/mod_native_file.so* +opt/freeswitch/mod/mod_sndfile.so* +opt/freeswitch/mod/mod_local_stream.so* +opt/freeswitch/mod/mod_xml_*.so* +opt/freeswitch/mod/mod_say_*.so* diff --git a/debian/freeswitch.1 b/debian/man/man1/freeswitch.1 similarity index 100% rename from debian/freeswitch.1 rename to debian/man/man1/freeswitch.1 diff --git a/debian/freeswitch.monitrc b/debian/monit/freeswitch.monitrc similarity index 100% rename from debian/freeswitch.monitrc rename to debian/monit/freeswitch.monitrc diff --git a/debian/rules b/debian/rules index 31b410f729..32ec45490d 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,7 @@ # This file is public domain software, originally written by Joey Hess. # Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 +export DH_VERBOSE=1 export MODULES ?= mod_console mod_syslog mod_commands mod_conference mod_dptools mod_enum mod_fifo mod_openmrcp mod_amr mod_g711 mod_g722 mod_g723_1 mod_g726 mod_g729 mod_gsm mod_ilbc mod_l16 mod_speex mod_dialplan_directory mod_dialplan_xml mod_dialplan_asterisk mod_dingaling mod_iax mod_portaudio mod_sofia mod_woomera mod_openzap mod_event_multicast mod_event_socket mod_native_file mod_sndfile mod_local_stream mod_spidermonkey mod_spidermonkey_teletone mod_spidermonkey_core_db mod_spidermonkey_odbc mod_xml_rpc mod_xml_curl mod_xml_cdr mod_say_en mod_say_fr mod_say_de ifndef AUTOCONF @@ -67,7 +67,7 @@ install: build dh_clean -k dh_installdirs - $(MAKE) DESTDIR=$(CURDIR)/debian/freeswitch install + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install # Build architecture-independent files here. @@ -94,10 +94,11 @@ binary-arch: build install # dh_installinfo # dh_undocumented # dh_installman - dh_install debian/freeswitch.monitrc etc/monit - dh_install debian/default/freeswitch etc/default - dh_install debian/freeswitch.1 opt/man - dh_link opt/freeswitch/conf etc/opt/freeswitch + dh_install --sourcedir=debian/tmp --autodest debian/monit/freeswitch.monitrc + dh_install --sourcedir=debian/tmp --autodest debian/default/freeswitch + dh_install --sourcedir=/debian/tmp --autodest debian/man/man1/freeswitch.1 + dh_link --sourcedir=debian/tmp opt/freeswitch/conf etc/opt/freeswitch + dh_install --sourcedir=debian/tmp dh_strip dh_compress dh_fixperms --exclude /opt/freeswitch/conf