Looks like a pretty complete debian packaging done :)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6474 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michal Bielicki 2007-12-02 23:50:45 +00:00
parent b093ec1e53
commit 7db7234fe4
16 changed files with 116 additions and 33 deletions

2
debian/compat vendored
View File

@ -1 +1 @@
5 4

25
debian/control vendored
View File

@ -1,5 +1,5 @@
Source: freeswitch Source: freeswitch
Maintainer: Michael Jerris <mike@jerris.com> Maintainer: Michal Bielicki <michal.bielicki@voiceworks.pl>
Section: net Section: net
Priority: extra Priority: extra
Build-Depends: debhelper (>= 5), automake1.9, autoconf, libtool, unixodbc-dev, libasound2-dev, libcurl3-dev, libssl-dev, ncurses-dev Build-Depends: debhelper (>= 5), automake1.9, autoconf, libtool, unixodbc-dev, libasound2-dev, libcurl3-dev, libssl-dev, ncurses-dev
@ -15,7 +15,6 @@ Description: A telephony platform that really kicks some ass...
a soft-switch. It can be used as a simple switching engine, a media gateway a soft-switch. It can be used as a simple switching engine, a media gateway
or a media server to host IVR applications using simple scripts or XML to or a media server to host IVR applications using simple scripts or XML to
control the callflow. control the callflow.
.
Homepage: http://www.freeswitch.org/ Homepage: http://www.freeswitch.org/
Package: freeswitch-spidermonkey Package: freeswitch-spidermonkey
@ -26,11 +25,11 @@ Homepage: http://www.freeswitch.org/
Package: freeswitch-dev Package: freeswitch-dev
Architecture: any Architecture: any
Depends: ${shlibs:Depends} freswitch 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
Homepage: http://www.freeswitch.org/ Homepage: http://www.freeswitch.org/
Package: freeswitch-codec-passthru-g723_1 Package: freeswitch-codec-passthru-g7231
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
Description: Pass through g723.1 Codec support for the FreeSWITCH open source telephony platform Description: Pass through g723.1 Codec support for the FreeSWITCH open source telephony platform
@ -47,3 +46,21 @@ Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
Description: Pass through g729 Codec support for the FreeSWITCH open source telephony platform Description: Pass through g729 Codec support for the FreeSWITCH open source telephony platform
Homepage: http://www.freeswitch.org/ Homepage: http://www.freeswitch.org/
Package: freeswitch-lang-en
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
Description: English language files for the FreeSWITCH open source telephony platform
Homepage: http://www.freeswitch.org/
Package: freeswitch-lang-de
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
Description: German language files for the FreeSWITCH open source telephony platform
Homepage: http://www.freeswitch.org/
Package: freeswitch-lang-fr
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
Description: Frencch language files for the FreeSWITCH open source telephony platform
Homepage: http://www.freeswitch.org/

3
debian/freeswitch-lang-de.conffiles vendored Normal file
View File

@ -0,0 +1,3 @@
/opt/freeswitch/conf/lang/de/de.xml
/opt/freeswitch/conf/lang/de/demo/demo.xml
/opt/freeswitch/conf/lang/de/vm/tts.xml

4
debian/freeswitch-lang-de.install vendored Normal file
View File

@ -0,0 +1,4 @@
opt/freeswitch/conf/lang/de/*.xml
opt/freeswitch/conf/lang/de/demo/*.xml
opt/freeswitch/conf/lang/de/vm/*.xml
opt/freeswitch/mod/mod_say_de.so*

4
debian/freeswitch-lang-en.conffiles vendored Normal file
View File

@ -0,0 +1,4 @@
/opt/freeswitch/conf/lang/en/en.xml
/opt/freeswitch/conf/lang/en/demo/demo.xml
/opt/freeswitch/conf/lang/en/vm/sounds.xml
/opt/freeswitch/conf/lang/en/vm/tts.xml

4
debian/freeswitch-lang-en.install vendored Normal file
View File

@ -0,0 +1,4 @@
opt/freeswitch/conf/lang/en/*.xml
opt/freeswitch/conf/lang/en/demo/*.xml
opt/freeswitch/conf/lang/en/vm/*.xml
opt/freeswitch/mod/mod_say_en.so*

3
debian/freeswitch-lang-fr.conffiles vendored Normal file
View File

@ -0,0 +1,3 @@
/opt/freeswitch/conf/lang/fr/fr.xml
/opt/freeswitch/conf/lang/fr/demo/demo.xml
/opt/freeswitch/conf/lang/fr/vm/sounds.xml

4
debian/freeswitch-lang-fr.install vendored Normal file
View File

@ -0,0 +1,4 @@
opt/freeswitch/conf/lang/fr/*.xml
opt/freeswitch/conf/lang/fr/demo/*.xml
opt/freeswitch/conf/lang/fr/vm/*.xml
opt/freeswitch/mod/mod_say_fr.so*

View File

@ -0,0 +1 @@
/opt/freeswitch/conf/autoload_configs/spidermonkey.conf.xml

View File

@ -3,3 +3,4 @@ opt/freeswitch/lib/libnspr4.so*
opt/freeswitch/lib/libjs.so* opt/freeswitch/lib/libjs.so*
opt/freeswitch/lib/libplds4.so* opt/freeswitch/lib/libplds4.so*
opt/freeswitch/lib/libplc4.so* opt/freeswitch/lib/libplc4.so*
opt/freeswitch/conf/autoload_configs/spidermonkey.conf.xml

View File

@ -23,7 +23,6 @@
/opt/freeswitch/conf/autoload_configs/post_load_modules.conf.xml /opt/freeswitch/conf/autoload_configs/post_load_modules.conf.xml
/opt/freeswitch/conf/autoload_configs/rss.conf.xml /opt/freeswitch/conf/autoload_configs/rss.conf.xml
/opt/freeswitch/conf/autoload_configs/sofia.conf.xml /opt/freeswitch/conf/autoload_configs/sofia.conf.xml
/opt/freeswitch/conf/autoload_configs/spidermonkey.conf.xml
/opt/freeswitch/conf/autoload_configs/switch.conf.xml /opt/freeswitch/conf/autoload_configs/switch.conf.xml
/opt/freeswitch/conf/autoload_configs/syslog.conf.xml /opt/freeswitch/conf/autoload_configs/syslog.conf.xml
/opt/freeswitch/conf/autoload_configs/voicemail.conf.xml /opt/freeswitch/conf/autoload_configs/voicemail.conf.xml
@ -36,15 +35,5 @@
/opt/freeswitch/conf/dialplan/default.xml /opt/freeswitch/conf/dialplan/default.xml
/opt/freeswitch/conf/dialplan/US.conf.xml /opt/freeswitch/conf/dialplan/US.conf.xml
/opt/freeswitch/conf/directory/default.xml /opt/freeswitch/conf/directory/default.xml
/opt/freeswitch/conf/lang/de/de.xml
/opt/freeswitch/conf/lang/de/demo/demo.xml
/opt/freeswitch/conf/lang/de/vm/tts.xml
/opt/freeswitch/conf/lang/en/en.xml
/opt/freeswitch/conf/lang/en/demo/demo.xml
/opt/freeswitch/conf/lang/en/vm/sounds.xml
/opt/freeswitch/conf/lang/en/vm/tts.xml
/opt/freeswitch/conf/lang/fr/fr.xml
/opt/freeswitch/conf/lang/fr/demo/demo.xml
/opt/freeswitch/conf/lang/fr/vm/sounds.xml
/opt/freeswitch/conf/sip_profiles/default.xml /opt/freeswitch/conf/sip_profiles/default.xml
/opt/freeswitch/conf/sip_profiles/nat.xml /opt/freeswitch/conf/sip_profiles/nat.xml

View File

@ -1,10 +1,6 @@
opt/freeswitch/htdocs/* opt/freeswitch/htdocs/*
opt/freeswitch/bin/freeswitch opt/freeswitch/bin/freeswitch
opt/freeswitch/lib/libfreeswitch*.so* 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_console.so*
opt/freeswitch/mod/mod_syslog.so* opt/freeswitch/mod/mod_syslog.so*
opt/freeswitch/mod/mod_commands.so* opt/freeswitch/mod/mod_commands.so*
@ -13,24 +9,58 @@ opt/freeswitch/mod/mod_dptools.so*
opt/freeswitch/mod/mod_enum.so* opt/freeswitch/mod/mod_enum.so*
opt/freeswitch/mod/mod_fifo.so* opt/freeswitch/mod/mod_fifo.so*
opt/freeswitch/mod/mod_openmrcp.so* opt/freeswitch/mod/mod_openmrcp.so*
# Codecs
opt/freeswitch/mod/mod_g711.so* opt/freeswitch/mod/mod_g711.so*
opt/freeswitch/mod/mod_g722.so* opt/freeswitch/mod/mod_g722.so*
opt/freeswitch/mod/mod_g726.so* opt/freeswitch/mod/mod_g726.so*
opt/freeswutch/mod/mod_speex.so* opt/freeswutch/mod/mod_speex.so*
# Dialplan
opt/freeswitch/mod/mod_dialplan*.so* opt/freeswitch/mod/mod_dialplan*.so*
# Endpoints
opt/freeswitch/mod/mod_dingaling.so* opt/freeswitch/mod/mod_dingaling.so*
opt/freeswitch/mod/mod_iax.so* opt/freeswitch/mod/mod_iax.so*
opt/freeswitch/mod/mod_portaudio.so* opt/freeswitch/mod/mod_portaudio.so*
opt/freeswitch/mod/mod_sofia.so* opt/freeswitch/mod/mod_sofia.so*
opt/freeswitch/mod/mod_woomera.so* opt/freeswitch/mod/mod_woomera.so*
opt/freeswitch/mod/mod_openzap.so opt/freeswitch/mod/mod_openzap.so
# event engines
opt/freeswitch/mod/mod_event_*.so* opt/freeswitch/mod/mod_event_*.so*
opt/freeswitch/mod/mod_native_file.so* opt/freeswitch/mod/mod_native_file.so*
opt/freeswitch/mod/mod_sndfile.so* opt/freeswitch/mod/mod_sndfile.so*
opt/freeswitch/mod/mod_local_stream.so* opt/freeswitch/mod/mod_local_stream.so*
opt/freeswitch/mod/mod_xml_*.so* opt/freeswitch/mod/mod_xml_*.so*
opt/freeswitch/mod/mod_say_*.so* opt/freeswitch/conf/default_context_old.xml
opt/freeswitch/conf/extensions.conf
opt/freeswitch/conf/freeswitch.xml
opt/freeswitch/conf/mime.types
opt/freeswitch/conf/vars.xml
opt/freeswitch/conf/autoload_configs/alsa.conf.xml
opt/freeswitch/conf/autoload_configs/cdr.conf.xml
opt/freeswitch/conf/autoload_configs/conference.conf.xml
opt/freeswitch/conf/autoload_configs/console.conf.xml
opt/freeswitch/conf/autoload_configs/dialplan_directory.conf.xml
opt/freeswitch/conf/autoload_configs/dingaling.conf.xml
opt/freeswitch/conf/autoload_configs/enum.conf.xml
opt/freeswitch/conf/autoload_configs/event_multicast.conf.xml
opt/freeswitch/conf/autoload_configs/event_socket.conf.xml
opt/freeswitch/conf/autoload_configs/iax.conf.xml
opt/freeswitch/conf/autoload_configs/ivr.conf.xml
opt/freeswitch/conf/autoload_configs/java.conf.xml
opt/freeswitch/conf/autoload_configs/limit.conf.xml
opt/freeswitch/conf/autoload_configs/local_stream.conf.xml
opt/freeswitch/conf/autoload_configs/modules.conf.xml
opt/freeswitch/conf/autoload_configs/openmrcp.conf.xml
opt/freeswitch/conf/autoload_configs/portaudio.conf.xml
opt/freeswitch/conf/autoload_configs/post_load_modules.conf.xml
opt/freeswitch/conf/autoload_configs/rss.conf.xml
opt/freeswitch/conf/autoload_configs/sofia.conf.xml
opt/freeswitch/conf/autoload_configs/switch.conf.xml
opt/freeswitch/conf/autoload_configs/syslog.conf.xml
opt/freeswitch/conf/autoload_configs/voicemail.conf.xml
opt/freeswitch/conf/autoload_configs/wanpipe.conf.xml
opt/freeswitch/conf/autoload_configs/woomera.conf.xml
opt/freeswitch/conf/autoload_configs/xml_cdr.conf.xml
opt/freeswitch/conf/autoload_configs/xml_curl.conf.xml
opt/freeswitch/conf/autoload_configs/xml_rpc.conf.xml
opt/freeswitch/conf/autoload_configs/zeroconf.conf.xml
opt/freeswitch/conf/dialplan/default.xml
opt/freeswitch/conf/dialplan/US.conf.xml
opt/freeswitch/conf/directory/default.xml
opt/freeswitch/conf/sip_profiles/default.xml
opt/freeswitch/conf/sip_profiles/nat.xml

39
debian/rules vendored
View File

@ -3,9 +3,30 @@
# This file is public domain software, originally written by Joey Hess. # This file is public domain software, originally written by Joey Hess.
# Uncomment this to turn on verbose mode. # Uncomment this to turn on verbose mode.
export DH_VERBOSE=1 # export DH_VERBOSE=1
export DH_OPTIONS
export DH_COMPAT=4
export DEB_DH_INSTALL_SOURCEDIR=debian/tmp
export PASSTHRU_CODEC_MODULES=codecs/mod_g729 codecs/mod_g723_1 codecs/mod_amr
export SPIDERMONKEY_MODULES=languages/mod_spidermonkey languages/mod_spidermonkey_core_db languages/mod_spidermonkey_odbc languages/mod_spidermonkey_socket languages/mod_spidermonkey_teletone
export APPLICATIONS_MODULES=applications/mod_commands applications/mod_conference applications/mod_dptools applications/mod_enum applications/mod_esf applications/mod_expr applications/mod_fifo applications/mod_limit applications/mod_rss applications/mod_voicemail
export ASR_TTS_MODULES=asr_tts/mod_openmrcp
export CODECS_MODULES=codecs/mod_g711 codecs/mod_g722 codecs/mod_g726 codecs/mod_gsm codecs/mod_ilbc codecs/mod_h26x codecs/mod_l16 codecs/mod_speex
export DIALPLANS_MODULES=dialplans/mod_dialplan_asterisk dialplans/mod_dialplan_directory dialplans/mod_dialplan_xml
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 FORMATS_MODULES=formats/mod_local_stream formats/mod_native_file formats/mod_sndfile
export LANGUAGES_MODULES=
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
export TIMERS_MODULES=
export DISABLED_MODULES=applications/mod_sountouch 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 formats/mod_shout say/mod_say_it say/mod_say_es say/mod_say_nl
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)
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 ifndef AUTOCONF
AUTOCONFS := $(wildcard /usr/bin/autoconf*) AUTOCONFS := $(wildcard /usr/bin/autoconf*)
AUTOCONF = $(shell which autoconf) AUTOCONF = $(shell which autoconf)
@ -28,6 +49,10 @@ endif
config.status: configure config.status: configure
dh_testdir dh_testdir
rm modules.conf
touch modules.conf
echo $(MODULES)
for i in $(MODULES); do echo $$i >> modules.conf; done
./configure --prefix=/opt/freeswitch \ ./configure --prefix=/opt/freeswitch \
--host=$(DEB_HOST_GNU_TYPE) \ --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \
@ -65,7 +90,7 @@ install: build
dh_testdir dh_testdir
dh_testroot dh_testroot
dh_clean -k dh_clean -k
dh_installdirs dh_installdirs -A --sourcedir=debian/tmp
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
@ -89,15 +114,13 @@ binary-arch: build install
# dh_installcatalogs # dh_installcatalogs
# dh_installpam # dh_installpam
# dh_installmime # dh_installmime
dh_installinit dh_installinit --sourcedir=debian/tmp
# dh_installcron # dh_installcron
# dh_installinfo # dh_installinfo
# dh_undocumented # dh_undocumented
# dh_installman # dh_installman
dh_install --sourcedir=debian/tmp --autodest debian/monit/freeswitch.monitrc cp debian/monit/freeswitch.monitrc debian/freeswitch/etc/monit/freswitch.monitrc
dh_install --sourcedir=debian/tmp --autodest debian/default/freeswitch cp debian/default/freeswitch debian/freeswitch/etc/default
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_install --sourcedir=debian/tmp
dh_strip dh_strip
dh_compress dh_compress