[Pkg-voip-commits] [kamailio] 01/06: Merge tag 'upstream/4.1.2'

Victor Seva Lopez maniac-guest at moszumanska.debian.org
Mon Mar 10 13:09:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

maniac-guest pushed a commit to branch master
in repository kamailio.

commit db932b9d83a178004446886b6da3a36562749c36
Merge: f285a59 18bf501
Author: Victor Seva <vseva at sipwise.com>
Date:   Mon Mar 10 11:40:26 2014 +0100

    Merge tag 'upstream/4.1.2'
    
    Upstream version 4.1.2

 ChangeLog                                          | 795 +++++++++++++++++++++
 Makefile.defs                                      |   2 +-
 autover.h                                          |   4 +-
 modules/app_java/Makefile                          |  11 +-
 modules/app_perl/lib/perl/Kamailio/Constants.pm    |   8 +-
 modules/async/async_sleep.c                        |   1 +
 modules/call_control/call_control.c                |  42 +-
 modules/db_cassandra/dbcassa_base.cpp              | 235 ++++--
 modules/db_cluster/README                          |   8 +-
 modules/db_cluster/dbcl_data.c                     |   4 +-
 modules/db_cluster/doc/db_cluster_admin.xml        |   8 +-
 modules/db_mysql/my_uri.c                          |   2 +-
 modules/db_postgres/pg_uri.c                       |   2 +-
 modules/dialog/dlg_db_handler.c                    |   2 +-
 modules/dialog/dlg_hash.c                          |   7 +
 modules/dispatcher/README                          |  22 +-
 modules/dispatcher/doc/dispatcher.cfg              |  11 +-
 modules/dispatcher/doc/dispatcher_admin.xml        |  14 +-
 modules/dmq/dmqnode.c                              |  10 +-
 modules/geoip/geoip_pv.c                           |  22 +
 modules/gzcompress/README                          |   2 +-
 modules/gzcompress/doc/gzcompress_admin.xml        |   2 +-
 modules/htable/README                              | 470 ++++++------
 modules/htable/doc/htable.xml                      |   5 +
 modules/htable/doc/htable_admin.xml                | 130 +++-
 modules/htable/ht_db.c                             |   5 +
 modules/ims_auth/authorize.c                       |  36 +-
 modules/ims_registrar_scscf/reply.c                |  91 +--
 modules/kex/pkg_stats.c                            |   2 +-
 modules/mtree/README                               |   5 +-
 modules/mtree/doc/mtree_admin.xml                  |   7 +-
 modules/mtree/mtree_mod.c                          |   4 +
 modules/nat_traversal/README                       |  24 +-
 modules/nat_traversal/doc/nat_traversal_admin.xml  |   6 +-
 modules/nat_traversal/nat_traversal.c              |   3 +-
 modules/nathelper/README                           |  17 +-
 modules/nathelper/doc/nathelper_admin.xml          |  10 +-
 modules/nathelper/nathelper.c                      |   1 +
 modules/presence/README                            |  82 ++-
 modules/presence/doc/presence_admin.xml            |  28 +
 modules/presence/notify.c                          |   6 +-
 modules/presence/presence.c                        |  17 +-
 modules/presence/presence.h                        |   2 +
 modules/presence/presentity.c                      |   4 +-
 modules/presence/subscribe.c                       |   4 +-
 modules/rls/rls.c                                  |   2 +-
 modules/sipt/ss7_parser.c                          |  10 +-
 modules/sl/sl.c                                    |   2 +-
 modules/snmpstats/Makefile                         |   4 +-
 modules/sqlops/sql_api.c                           |  16 +-
 modules/tm/dlg.c                                   |   3 +
 modules/tm/doc/functions.xml                       |   2 +-
 modules/tm/t_lookup.c                              |   1 +
 modules/tm/t_reply.c                               | 102 +--
 modules/tm/t_suspend.c                             |  89 +--
 modules/topoh/topoh_mod.c                          |  15 +
 modules/uac_redirect/rd_funcs.c                    |  12 +-
 modules/usrloc/dlist.c                             |   3 +-
 modules/utils/functions.c                          |  10 +-
 modules/xhttp/xhttp_trans.c                        |   2 +-
 modules/xhttp_rpc/xhttp_rpc_fnc.c                  |  13 +-
 parser/digest/digest_parser.c                      |   8 +
 parser/parse_addr_spec.c                           |  14 +-
 parser/parse_fline.c                               |   3 +-
 parser/parse_methods.c                             |   2 +-
 parser/parse_option_tags.h                         |  60 +-
 pkg/kamailio/deb/debian/backports/jessie           |  19 +
 pkg/kamailio/deb/debian/backports/precise          |  29 +
 pkg/kamailio/deb/debian/backports/squeeze          |  74 ++
 pkg/kamailio/deb/debian/backports/wheezy           |  35 +
 pkg/kamailio/deb/debian/changelog                  |   6 +
 pkg/kamailio/deb/debian/compat                     |   2 +-
 pkg/kamailio/deb/debian/control                    | 579 ++++++++-------
 pkg/kamailio/deb/debian/copyright                  | 362 +++++++++-
 .../kamailio-autheph-modules.lintian-overrides     |   1 +
 pkg/kamailio/deb/debian/kamailio-berkeley-bin.dirs |   1 +
 .../kamailio-dnssec-modules.lintian-overrides      |   1 +
 .../kamailio-outbound-modules.lintian-overrides    |   1 +
 .../debian/kamailio-tls-modules.lintian-overrides  |   1 +
 .../kamailio-websocket-modules.lintian-overrides   |   1 +
 pkg/kamailio/deb/debian/kamailio.README.Debian     |   7 +-
 pkg/kamailio/deb/debian/kamailio.default           |  29 +-
 pkg/kamailio/deb/debian/kamailio.dirs              |   2 -
 pkg/kamailio/deb/debian/kamailio.init              | 270 +++----
 pkg/kamailio/deb/debian/kamailio.lintian-overrides |   2 +
 pkg/kamailio/deb/debian/kamailio.postinst          |  28 +-
 pkg/kamailio/deb/debian/rules                      | 142 ++--
 pkg/kamailio/deb/debian/source.lintian-overrides   |   1 +
 pkg/kamailio/deb/debian/source/format              |   1 +
 pkg/kamailio/deb/debian/watch                      |   3 +
 pkg/kamailio/deb/jessie/changelog                  |   6 +
 pkg/kamailio/deb/jessie/compat                     |   2 +-
 pkg/kamailio/deb/jessie/control                    | 578 ++++++++-------
 pkg/kamailio/deb/jessie/copyright                  | 362 +++++++++-
 .../kamailio-autheph-modules.lintian-overrides     |   1 +
 pkg/kamailio/deb/jessie/kamailio-berkeley-bin.dirs |   1 +
 .../kamailio-dnssec-modules.lintian-overrides      |   1 +
 .../kamailio-outbound-modules.lintian-overrides    |   1 +
 .../jessie/kamailio-tls-modules.lintian-overrides  |   1 +
 .../kamailio-websocket-modules.lintian-overrides   |   1 +
 pkg/kamailio/deb/jessie/kamailio.README.Debian     |   7 +-
 pkg/kamailio/deb/jessie/kamailio.default           |  29 +-
 pkg/kamailio/deb/jessie/kamailio.dirs              |   2 -
 pkg/kamailio/deb/jessie/kamailio.init              | 270 +++----
 pkg/kamailio/deb/jessie/kamailio.lintian-overrides |   2 +
 pkg/kamailio/deb/jessie/kamailio.postinst          |  28 +-
 pkg/kamailio/deb/jessie/rules                      | 144 ++--
 pkg/kamailio/deb/jessie/source.lintian-overrides   |   1 +
 pkg/kamailio/deb/jessie/source/format              |   1 +
 pkg/kamailio/deb/jessie/watch                      |   3 +
 pkg/kamailio/deb/lucid/changelog                   |  94 ---
 pkg/kamailio/deb/lucid/compat                      |   1 -
 pkg/kamailio/deb/lucid/control                     | 459 ------------
 pkg/kamailio/deb/lucid/copyright                   |  27 -
 pkg/kamailio/deb/lucid/kamailio.README.Debian      |  38 -
 pkg/kamailio/deb/lucid/kamailio.default            |  33 -
 pkg/kamailio/deb/lucid/kamailio.dirs               |   2 -
 pkg/kamailio/deb/lucid/kamailio.examples           |   2 -
 pkg/kamailio/deb/lucid/kamailio.init               | 240 -------
 pkg/kamailio/deb/lucid/kamailio.postinst           |  48 --
 pkg/kamailio/deb/lucid/rules                       | 228 ------
 pkg/kamailio/deb/precise/changelog                 |  12 +-
 pkg/kamailio/deb/precise/compat                    |   2 +-
 pkg/kamailio/deb/precise/control                   | 537 ++++++++------
 pkg/kamailio/deb/precise/copyright                 | 362 +++++++++-
 .../kamailio-autheph-modules.lintian-overrides     |   1 +
 .../deb/precise/kamailio-berkeley-bin.dirs         |   1 +
 .../kamailio-dnssec-modules.lintian-overrides      |   1 +
 .../kamailio-outbound-modules.lintian-overrides    |   1 +
 .../precise/kamailio-tls-modules.lintian-overrides |   1 +
 .../kamailio-websocket-modules.lintian-overrides   |   1 +
 pkg/kamailio/deb/precise/kamailio.README.Debian    |   7 +-
 pkg/kamailio/deb/precise/kamailio.default          |  29 +-
 pkg/kamailio/deb/precise/kamailio.dirs             |   2 -
 pkg/kamailio/deb/precise/kamailio.init             | 270 +++----
 .../deb/precise/kamailio.lintian-overrides         |   2 +
 pkg/kamailio/deb/precise/kamailio.postinst         |  28 +-
 pkg/kamailio/deb/precise/rules                     | 143 ++--
 pkg/kamailio/deb/precise/source.lintian-overrides  |   1 +
 pkg/kamailio/deb/precise/source/format             |   1 +
 pkg/kamailio/deb/precise/watch                     |   3 +
 pkg/kamailio/deb/squeeze/changelog                 |   6 +
 pkg/kamailio/deb/squeeze/compat                    |   2 +-
 pkg/kamailio/deb/squeeze/control                   | 429 ++++++-----
 pkg/kamailio/deb/squeeze/copyright                 | 362 +++++++++-
 .../kamailio-autheph-modules.lintian-overrides     |   1 +
 .../deb/squeeze/kamailio-berkeley-bin.dirs         |   1 +
 .../kamailio-dnssec-modules.lintian-overrides      |   1 +
 .../kamailio-outbound-modules.lintian-overrides    |   1 +
 .../squeeze/kamailio-tls-modules.lintian-overrides |   1 +
 .../kamailio-websocket-modules.lintian-overrides   |   1 +
 pkg/kamailio/deb/squeeze/kamailio.README.Debian    |   7 +-
 pkg/kamailio/deb/squeeze/kamailio.default          |  29 +-
 pkg/kamailio/deb/squeeze/kamailio.dirs             |   2 -
 pkg/kamailio/deb/squeeze/kamailio.init             | 270 +++----
 .../deb/squeeze/kamailio.lintian-overrides         |   2 +
 pkg/kamailio/deb/squeeze/kamailio.postinst         |  28 +-
 pkg/kamailio/deb/squeeze/rules                     | 139 ++--
 pkg/kamailio/deb/squeeze/source.lintian-overrides  |   1 +
 pkg/kamailio/deb/squeeze/source/format             |   1 +
 pkg/kamailio/deb/squeeze/watch                     |   3 +
 pkg/kamailio/deb/wheezy/changelog                  |   6 +
 pkg/kamailio/deb/wheezy/compat                     |   2 +-
 pkg/kamailio/deb/wheezy/control                    | 538 +++++++-------
 pkg/kamailio/deb/wheezy/copyright                  | 362 +++++++++-
 .../kamailio-autheph-modules.lintian-overrides     |   1 +
 pkg/kamailio/deb/wheezy/kamailio-berkeley-bin.dirs |   1 +
 .../kamailio-dnssec-modules.lintian-overrides      |   1 +
 .../kamailio-outbound-modules.lintian-overrides    |   1 +
 .../wheezy/kamailio-tls-modules.lintian-overrides  |   1 +
 .../kamailio-websocket-modules.lintian-overrides   |   1 +
 pkg/kamailio/deb/wheezy/kamailio.README.Debian     |   7 +-
 pkg/kamailio/deb/wheezy/kamailio.default           |  29 +-
 pkg/kamailio/deb/wheezy/kamailio.dirs              |   2 -
 pkg/kamailio/deb/wheezy/kamailio.init              | 270 +++----
 pkg/kamailio/deb/wheezy/kamailio.lintian-overrides |   2 +
 pkg/kamailio/deb/wheezy/kamailio.postinst          |  28 +-
 pkg/kamailio/deb/wheezy/rules                      | 143 ++--
 pkg/kamailio/deb/wheezy/source.lintian-overrides   |   1 +
 pkg/kamailio/deb/wheezy/source/format              |   1 +
 pkg/kamailio/deb/wheezy/watch                      |   3 +
 pkg/kamailio/rpm/kamailio.spec-4.1                 |   2 +-
 pkg/kamailio/rpm/kamailio.spec.CenOS               |   2 +-
 pkg/kamailio/rpm/kamailio.spec.SuSE                |   2 +-
 script_cb.c                                        |   6 +-
 select.c                                           |   2 +-
 tcp_main.c                                         |   2 +-
 utils/db_berkeley/kambdb_recover.c                 |   2 +
 utils/kamctl/kamctl.fifo                           |   8 +
 utils/sercmd/sercmd.c                              |   2 +-
 190 files changed, 6178 insertions(+), 4698 deletions(-)

diff --cc pkg/kamailio/deb/debian/backports/jessie
index 0000000,0000000..80cd6a6
new file mode 100755
--- /dev/null
+++ b/pkg/kamailio/deb/debian/backports/jessie
@@@ -1,0 -1,0 +1,19 @@@
++#!/bin/bash
++#
++# Hook for automatic backports at buildserver.net
++#
++# Target dist: Debian Jessie
++DIST=jessie
++
++rm -rf ${DIST}
++cp -r debian ${DIST}
++
++# No mi_xmlrpc module
++sed -i -e '/libxmlrpc-c3-dev/d' -e '/^Package: kamailio-xmlrpc-modules/,/^$/d' \
++	${DIST}/control
++sed -i -e 's/ mi_xmlrpc[ ,$]*/ /' ${DIST}/rules
++sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mi_xmlrpc/' ${DIST}/rules
++
++# clean backports scripts
++rm -rf ${DIST}/backports
++exit 0
diff --cc pkg/kamailio/deb/debian/backports/precise
index 0000000,0000000..c2ece7e
new file mode 100755
--- /dev/null
+++ b/pkg/kamailio/deb/debian/backports/precise
@@@ -1,0 -1,0 +1,29 @@@
++#!/bin/bash
++#
++# Hook for automatic backports at buildserver.net
++#
++# Target dist: Debian Squeeze
++DIST=precise
++
++rm -rf ${DIST}
++cp -r debian ${DIST}
++
++# No mi_xmlrpc module
++sed -i -e '/libxmlrpc-c3-dev/d' -e '/^Package: kamailio-xmlrpc-modules/,/^$/d' \
++	${DIST}/control
++sed -i -e 's/ mi_xmlrpc[ ,$]*/ /' ${DIST}/rules
++sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mi_xmlrpc/' ${DIST}/rules
++
++# No dnssec module:
++sed -i -e '/libval-dev/d' -e '/^Package: kamailio-dnssec-modules/,/^$/d' \
++	${DIST}/control
++sed -i -e 's/ dnssec[ ,$]*/ /' ${DIST}/rules
++sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ dnssec/' ${DIST}/rules
++
++# use old radius-client-ng
++sed -i 's/libfreeradius-client-dev/libradiusclient-ng-dev/' ${DIST}/control
++sed -i -e '/FREERADIUS/d' ${DIST}/rules
++
++# clean backports scripts
++rm -rf ${DIST}/backports
++exit 0
diff --cc pkg/kamailio/deb/debian/backports/squeeze
index 0000000,0000000..d589dda
new file mode 100755
--- /dev/null
+++ b/pkg/kamailio/deb/debian/backports/squeeze
@@@ -1,0 -1,0 +1,74 @@@
++#!/bin/bash
++#
++# Hook for automatic backports at buildserver.net
++#
++# Target dist: Debian Squeeze
++DIST=squeeze
++
++rm -rf ${DIST}
++cp -r debian ${DIST}
++
++# remove Multi-arch
++sed -i -e 's#^DEB_HOST_MULTIARCH.*$##' -e 's#^LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)#LIBDIR ?= lib#' ${DIST}/rules
++if [ -e ${DIST}/patches/series ]; then
++  sed -i -e 's#multiarch_support.patch#no_lib64_on_64_bits.patch#' ${DIST}/patches/series
++fi
++sed -i -e '/^Multi-Arch: .*/d' ${DIST}/control
++
++# Downgrade to debhelper 8 compat
++sed -i -e  's#debhelper[^,$]*[\ ,$]\+\(.*\)$#debhelper (>= 8), \1#' ${DIST}/control
++echo 8 > ${DIST}/compat
++
++# Hardening flags
++sed -i -e '/dpkg-dev/d' ${DIST}/control
++sed -i -e '/^include.*buildflags.mk/d' -e '/.*dpkg-buildflags --export=configure.*/d' ${DIST}/rules
++if [ -e ${DIST}/patches/series ]; then
++  sed -i -e '/hardening_flags.patch/d' ${DIST}/patches/series
++fi
++
++# No java module:
++sed -i -e '/libgcj12-dev/d' -e '/^Package: kamailio-java-modules/,/^$/d' \
++	${DIST}/control
++sed -i -e 's/ java[ ,$]*/ /' ${DIST}/rules
++sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ java/' ${DIST}/rules
++
++# No dnssec module:
++sed -i -e '/libval-dev/d' -e '/^Package: kamailio-dnssec-modules/,/^$/d' \
++	${DIST}/control
++sed -i -e 's/ dnssec[ ,$]*/ /' ${DIST}/rules
++sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ dnssec/' ${DIST}/rules
++
++# No sctp module:
++sed -i -e '/libsctp-dev/d' -e '/^Package: kamailio-sctp-modules/,/^$/d' \
++	${DIST}/control
++sed -i -e 's/ sctp[ ,$]*/ /' ${DIST}/rules
++sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ sctp/' ${DIST}/rules
++
++# No purple module:
++sed -i -e '/libpurple-dev/d' -e '/^Package: kamailio-purple-modules/,/^$/d' \
++	${DIST}/control
++sed -i -e 's/ purple[ ,$]*/ /' ${DIST}/rules
++sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ purple/' ${DIST}/rules
++
++# No libhiredis:
++sed -i -e '/libhiredis-dev/d' -e '/^Package: kamailio-redis-modules/,/^$/d' \
++	${DIST}/control
++sed -i -e 's/ redis[ ,$]*/ /' ${DIST}/rules
++sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ redis/' ${DIST}/rules
++
++# No mono module
++sed -i -e '/libmono-2.0-dev/d' -e '/^Package: kamailio-mono-modules/,/^$/d' \
++	${DIST}/control
++sed -i -e 's/ mono[ ,$]*/ /' ${DIST}/rules
++sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mono/' ${DIST}/rules
++
++# db-util version
++sed -i -e 's/db-util/db4.8-util/' ${DIST}/control
++
++# use old radius-client-ng
++sed -i 's/libfreeradius-client-dev/libradiusclient-ng-dev/' ${DIST}/control
++sed -i -e '/FREERADIUS/d' ${DIST}/rules
++
++# clean backports scripts
++rm -rf ${DIST}/backports
++exit 0
diff --cc pkg/kamailio/deb/debian/backports/wheezy
index 0000000,0000000..df43929
new file mode 100755
--- /dev/null
+++ b/pkg/kamailio/deb/debian/backports/wheezy
@@@ -1,0 -1,0 +1,35 @@@
++#!/bin/bash
++#
++# Hook for automatic backports at buildserver.net
++#
++# Target dist: Debian Wheezy
++DIST=wheezy
++
++rm -rf ${DIST}
++cp -r debian ${DIST}
++
++# No purple module:
++sed -i -e '/libpurple-dev/d' -e '/^Package: kamailio-purple-modules/,/^$/d' \
++	${DIST}/control
++sed -i -e 's/ purple[ ,$]*/ /' ${DIST}/rules
++sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ purple/' ${DIST}/rules
++
++# No mi_xmlrpc module
++sed -i -e '/libxmlrpc-c3-dev/d' -e '/^Package: kamailio-xmlrpc-modules/,/^$/d' \
++	${DIST}/control
++sed -i -e 's/ mi_xmlrpc[ ,$]*/ /' ${DIST}/rules
++sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mi_xmlrpc/' ${DIST}/rules
++
++# No dnssec module:
++sed -i -e '/libval-dev/d' -e '/^Package: kamailio-dnssec-modules/,/^$/d' \
++	${DIST}/control
++sed -i -e 's/ dnssec[ ,$]*/ /' ${DIST}/rules
++sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ dnssec/' ${DIST}/rules
++
++# use old radius-client-ng
++sed -i 's/libfreeradius-client-dev/libradiusclient-ng-dev/' ${DIST}/control
++sed -i -e '/FREERADIUS/d' ${DIST}/rules
++
++# clean backports scripts
++rm -rf ${DIST}/backports
++exit 0
diff --cc pkg/kamailio/deb/debian/changelog
index fcf832b,0000000..6a44d80
mode 100644,000000..100644
--- a/pkg/kamailio/deb/debian/changelog
+++ b/pkg/kamailio/deb/debian/changelog
@@@ -1,94 -1,0 +1,100 @@@
++kamailio (4.1.2) unstable; urgency=low
++
++  * update to 4.1.2 from upstream
++
++ -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 06 Mar 2014 15:25:35 +0100
++
 +kamailio (4.1.1) unstable; urgency=low
 +
 +  * update to 4.1.1 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 09 Jan 2014 15:45:35 +0100
 +
 +kamailio (4.1.0) unstable; urgency=low
 +
 +  * update to 4.1.0
 +
 + -- Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 04 Dec 2013 11:42:27 +0100
 +
 +kamailio (4.0.0) unstable; urgency=low
 +
 +  * update to 4.0.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 11 Mar 2013 10:40:30 +0100
 +
 +kamailio (3.4.0~dev0) unstable; urgency=low
 +
 +  * update version to 3.4.0~dev0
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Wed, 15 Jun 2012 03:15:00 +0100
 +
 +kamailio (3.2.0) unstable; urgency=low
 +
 +  * update to 3.2.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Fri, 29 Apr 2011 12:25:30 +0100
 +
 +kamailio (3.1.1) unstable; urgency=low
 +
 +  * update to 3.1.1 from upstream
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Fri, 3 Dec 2010 16:30:00 +0100
 +
 +kamailio (3.1.0) unstable; urgency=low
 +
 +  * update to 3.1.0 from upstream
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Wed, 6 Oct 2010 17:24:00 +0100
 +
 +kamailio (3.0.2.99) unstable; urgency=low
 +
 +  * update to 3.0.2.99 for development version builds
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Fri, 28 May 2010 22:26:00 +0100
 +
 +kamailio (3.0.2) unstable; urgency=low
 +
 +  * update to 3.0.2 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 27 May 2010 10:27:36 +0100
 +
 +kamailio (3.0.1) unstable; urgency=low
 +
 +  * update to 3.0.1 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 08 Mar 2010 20:30:48 +0100
 +
 +kamailio (3.0.0) unstable; urgency=low
 +
 +  * update to 3.0.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 11 Jan 2010 18:30:42 +0100
 +
 +kamailio (3.0.0-rc3) unstable; urgency=low
 +
 +  * update to 3.0.0-rc3 from upstream
 +  * updated debian/rules to work with the SIP Router style module packaging
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Fri, 10 Dec 2009 12:10:02 +0100
 +
 +kamailio (3.0.0-rc2) unstable; urgency=low
 +
 +  * update to 3.0.0-rc2 from upstream
 +  * updated debian/rules to work with the new style module packaging
 +
 + -- Jonas Bergler <jonas.bergler at staff.snap.net.nz>  Wed, 18 Nov 2009 12:30:02 +1300
 +
 +kamailio (1.5.0-svn1) unstable; urgency=low
 +
 +  * increment debian packaging for trunk
 +
 + -- Henning Westerholt <henning.westerholt at 1und1.de>  Mon, 02 Mar 2009 17:40:02 +0100
 +
 +kamailio (1.4.0-svn1) unstable; urgency=low
 +
 +  [ Klaus Darilion ]
 +  * first release of Kamailio (after renaming from Openser)
 +
 + -- Julien BLACHE <jblache at debian.org>  Wed, 12 Dec 2007 17:25:31 +0100
 +
 +
diff --cc pkg/kamailio/deb/debian/compat
index 7ed6ff8,0000000..ec63514
mode 100644,000000..100644
--- a/pkg/kamailio/deb/debian/compat
+++ b/pkg/kamailio/deb/debian/compat
@@@ -1,1 -1,0 +1,1 @@@
- 5
++9
diff --cc pkg/kamailio/deb/debian/control
index 8271807,0000000..26c4750
mode 100644,000000..100644
--- a/pkg/kamailio/deb/debian/control
+++ b/pkg/kamailio/deb/debian/control
@@@ -1,516 -1,0 +1,557 @@@
 +Source: kamailio
 +Section: net
 +Priority: optional
- Maintainer: Jon Bonilla <manwe at aholab.ehu.es>
++Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
++Uploaders: Victor Seva <linuxmaniac at torreviejawireless.org>,
++           Tzafrir Cohen <tzafrir at debian.org>
 +Build-Depends: bison,
-                debhelper (>= 5),
-                default-jdk,
++               debhelper (>= 9),
 +               docbook-xml,
-                dpatch,
-                dpkg-dev (>= 1.13.19),
++               dpkg-dev (>= 1.16.1.1),
 +               flex,
 +               libconfuse-dev,
-                libcurl3-openssl-dev,
++               libcurl4-openssl-dev,
 +               libdb-dev (>= 4.6.19),
 +               libevent-dev,
 +               libexpat1-dev,
++               libgcj12-dev,
 +               libgeoip-dev (>= 1.4.5),
 +               libhiredis-dev (>= 0.10.0),
 +               libjson0-dev,
 +               libldap2-dev,
 +               liblua5.1-0-dev,
 +               libmemcached-dev,
 +               libmono-2.0-dev,
 +               libmysqlclient-dev,
 +               libncurses5-dev,
 +               libpcre3-dev,
 +               libperl-dev,
 +               libpq-dev,
 +               libpurple-dev,
-                libradiusclient-ng-dev,
++               libfreeradius-client-dev,
 +               libreadline-dev,
 +               libsasl2-dev,
 +               libsctp-dev,
 +               libsnmp-dev,
 +               libsqlite3-dev,
-                libssl-dev,
-                libxml2-dev,
-                libxmlrpc-c3-dev,
 +               libunistring-dev,
 +               libval-dev,
++               libxml2-dev,
++               libxmlrpc-c3-dev,
++               openssl,
 +               python,
 +               python-dev,
 +               unixodbc-dev,
-                xsltproc,
-                zlib1g-dev
- Standards-Version: 3.9.3
++               xsltproc
++Standards-Version: 3.9.5
 +Homepage: http://www.kamailio.org/
++Vcs-git: git://anonscm.debian.org/pkg-voip/kamailio.git
++Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-voip/kamailio.git
 +
 +Package: kamailio
- Architecture: any
- Depends: adduser,
-          ${misc:Depends},
-          ${shlibs:Depends}
- Conflicts: kamailio-regex-modules
- Suggests: kamailio-autheph-modules,
-           kamailio-berkeley-modules,
++Architecture: linux-any
++Multi-Arch: foreign
++Pre-Depends: ${misc:Pre-Depends}
++Depends: adduser, python, ${misc:Depends}, ${shlibs:Depends}
++Suggests: kamailio-berkeley-modules,
 +          kamailio-carrierroute-modules,
 +          kamailio-cpl-modules,
 +          kamailio-dbg,
-           kamailio-dnssec-modules,
-           kamailio-java-modules,
 +          kamailio-ldap-modules,
 +          kamailio-lua-modules,
-           kamailio-mono-modules,
 +          kamailio-mysql-modules,
 +          kamailio-perl-modules,
 +          kamailio-postgres-modules,
 +          kamailio-presence-modules,
 +          kamailio-python-modules,
 +          kamailio-radius-modules,
-           kamailio-sctp-modules,
 +          kamailio-snmpstats-modules,
 +          kamailio-tls-modules,
 +          kamailio-unixodbc-modules,
 +          kamailio-xml-modules,
 +          kamailio-xmpp-modules
 +Description: very fast and configurable SIP proxy
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + C Shell-like scripting language provides full control over the server's
 + behaviour. Its modular architecture allows only required functionality to be
 + loaded.
 + .
-  Among others, the following modules are available: Digest Authentication, CPL
-  scripts, Instant Messaging, MySQL support, Presence Agent, Radius
-  Authentication, Record Routing, SMS Gateway, Jabber/XMPP Gateway, Transaction
-  Module, Registrar and User Location, XMLRPC Interface.
++ Among others, the following modules are available: digest authentication, CPL
++ scripts, instant messaging, MySQL support, presence agent, RADIUS
++ authentication, record routing, SMS gateway, Jabber/XMPP gateway, transaction
++ module, registrar and user location, XML-RPC interface.
 + .
 + This package contains the main Kamailio binary along with the principal modules
 + and support binaries.
 +
 +Package: kamailio-dbg
- Architecture: any
++Priority: extra
++Section: debug
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}
++Description: very fast and configurable SIP proxy [debug symbols]
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package contains the debugging symbols for the Kamailio binaries and
++ modules. You only need to install it if you need to debug Kamailio.
++
++Package: kamailio-geoip-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the geoip module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the geoip module, an extension allowing to
++ use GeoIP API within configuration file.
++
++Package: kamailio-sqlite-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Recommends: sqlite3
++Description: SQLite database connectivity module for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the SQLite database driver for Kamailio.
++
++Package: kamailio-json-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Json parser and jsonrpc modules for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides json parser for Kamailio's configuration file
++ and the JSON-RPC client over netstrings.
++
++Package: kamailio-memcached-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Replaces: kamailio-memcached-module
++Description: Provides the memcached module, an interface to the memcached server
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the memcached module, an interface to the memcached
++ server, a high-performance, distributed memory object caching system.
++
++Package: kamailio-lua-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the app_lua module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the app_lua module, an extension allowing to
++ execute embedded Lua applications within configuration file.
++
++Package: kamailio-mono-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the app_mono module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the app_mono module, an extension allowing to
++ execute embedded Mono applications within configuration file.
++
++Package: kamailio-python-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
++         python-dev,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Description: Debugging symbols for Kamailio SIP proxy
++Description: contains the app_python module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the app_python module, an extension allowing to
++ execute embedded Python applications within configuration file.
++
++Package: kamailio-redis-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Redis database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides gdb debugging symbols  for Kamailio
++ This package provides the Redis NOSQL database driver for Kamailio.
 +
 +Package: kamailio-mysql-modules
- Architecture: any
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         mysql-client,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-mysql-module
 +Description: MySQL database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the MySQL database driver for Kamailio.
 +
 +Package: kamailio-postgres-modules
- Architecture: any
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         postgresql-client,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-postgres-module
 +Description: PostgreSQL database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the PostgreSQL database driver for Kamailio.
 +
 +Package: kamailio-cpl-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-cpl-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: CPL module (CPL interpreter engine) for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides a CPL (Call Processing Language) interpreter for
 + Kamailio, turning Kamailio into a CPL server (storage and interpreter).
 +
 +Package: kamailio-radius-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: radius modules for Kamailio
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: RADIUS modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides a set of Radius modules for Kamailio, for
-  authentication, peering, group membership and messages URIs checking
-  against a Radius Server.
++ This package provides a set of RADIUS modules for Kamailio, for
++ authentication, peering, group membership and messages URIs checking against a
++ RADIUS server.
 +
 +Package: kamailio-unixodbc-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-unixodbc-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: unixODBC database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the unixODBC database driver for Kamailio.
 +
 +Package: kamailio-presence-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: SIMPLE presence modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides several Kamailio modules for implementing presence
 + server and presence user agent for RICH presence, registrar-based presence,
 + external triggered presence and XCAP support.
 +
- Package: kamailio-xml-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-xml-module,
-           kamailio-xmlrpc-module
- Provides: kamailio-xmlrpc-modules
- Description: XML based extensions for Kamailio's Management Interface
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides:
-  - the XMLRPC transport implementations for Kamailio's
-  Management and Control Interface.
-  - xmlops module for XPath operations in configuration file
- 
- Package: kamailio-xmlrpc-modules
- Architecture: any
- Depends: kamailio-xml-modules (= ${binary:Version})
- Description: Transitional package for kamailio-xml-modules
-  Dummy package for transition handling
- 
 +Package: kamailio-perl-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-perl-module
- Conflicts: kamailio-perl-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: Perl extensions and database driver for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides an interface for Kamailio to write Perl extensions and
 + the perlvdb database driver for Kamailio.
 +
 +Package: kamailio-snmpstats-modules
- Architecture: any
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         snmpd,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-snmpstats-module
 +Description: SNMP AgentX subagent module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the snmpstats module for Kamailio. This module acts
 + as an AgentX subagent which connects to a master agent.
 +
++Package: kamailio-purple-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Provides the purple module, a multi-protocol IM gateway
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the purple module, a multi-protocol instant
++ messaging gateway module.
++
 +Package: kamailio-xmpp-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-xmpp-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: XMPP gateway module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the SIP to XMPP IM translator module for Kamailio.
 +
++Package: kamailio-xml-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Replaces: kamailio-xml-module, kamailio-xmlrpc-module
++Provides: kamailio-xmlrpc-modules
++Description: XML based extensions for Kamailio's Management Interface
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides:
++ - the XMLRPC transport implementations for Kamailio's
++ Management and Control Interface.
++ - xmlops module for XPath operations in configuration file
++
 +Package: kamailio-carrierroute-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-carrierroute-module
- Description: Carrierroute module for Kamailio
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: carrierroute module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the carrierroute module for Kamailio, an integrated
 + solution for routing, balancing and blacklisting.
 +
 +Package: kamailio-berkeley-modules
- Architecture: any
- Depends: db4.6-util,
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: db5.1-util,
 +         kamailio (= ${binary:Version}),
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-berkeley-module
- Description: Berkeley Database module for Kamailio
++Description: Berkeley database module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the berkeley database module for Kamailio, a
++ This package provides the Berkeley database module for Kamailio, a
 + high-performance embedded DB kernel. All database tables are stored
 + in files, no additional server is necessary.
 +
++Package: kamailio-berkeley-bin
++Architecture: linux-any
++Multi-Arch: foreign
++Pre-Depends: ${misc:Pre-Depends}
++Depends: ${misc:Depends}, ${shlibs:Depends}
++Description: Berkeley database module for Kamailio - helper program
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides helper modules for the Berkeley database module for
++ Kamailio, a high-performance embedded DB kernel. You should normally
++ install kamailio-berkeley-modules and not this package directly.
++
 +Package: kamailio-ldap-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: LDAP modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the ldap and h350 modules for Kamailio, enabling LDAP
 + queries from the Kamailio config and storage of SIP account data in an LDAP
 + directory.
 +
++Package: kamailio-ims-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: IMS module for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package contains various Diameter interfaces and modules for Kamailio
++ to run as an IMS core.
++
 +Package: kamailio-utils-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-utils-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: Provides a set utility functions for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + Provides a set of utility functions for Kamailio, which are not related
 + to the server configuration.
 +
- Package: kamailio-purple-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-purple-module
- Description: Provides the purple module, a multi-protocol IM gateway
++Package: kamailio-sctp-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: sctp module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the purple module, a multi-protocol instant
-  messaging gateway module.
++ This package provides the sctp module for Kamailio.
 +
- Package: kamailio-memcached-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
++Package: kamailio-java-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: gcj-jre,
++         kamailio (= ${binary:Version}),
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-memcached-module
- Description: Provides the memcached module, an interface to the memcached server
++Description: contains the app_java module
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the memcached module, an interface to the memcached
-  server, a high-performance, distributed memory object caching system.
++ This package provides the app_java module, an extension allowing to
++ execute embedded Java applications within configuration file.
 +
 +Package: kamailio-tls-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: contains the TLS kamailio transport module
-  This has been split out of the main kamailio package, so that kamailio will not
-  depend on openssl. This module will enable you to use the TLS transport.
- 
- Package: kamailio-lua-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_lua module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_lua module, an extension allowing to
-  execute embedded Lua applications within configuration file.
- 
- Package: kamailio-mono-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_mono module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_mono module, an extension allowing to
-  execute embedded Mono applications within configuration file.
++ This has been split out of the main kamailio package, so that kamailio will
++ not depend on openssl. This module will enable you to use the TLS transport.
 +
- Package: kamailio-python-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_python module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_python module, an extension allowing to
-  execute embedded Python applications within configuration file.
- 
- Package: kamailio-geoip-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the geoip module
++Package: kamailio-outbound-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Outbound module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the geoip module, an extension allowing to
-  use GeoIP API within configuration file.
++ This package contains the module implementing SIP outbound extension.
 +
- Package: kamailio-redis-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libhiredis0.10,
-          ${shlibs:Depends}
- Description: Redis database connectivity module for Kamailio
++Package: kamailio-websocket-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Websocket module for kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the Redis NOSQL database driver for Kamailio.
++ This package contains the module implementing WebSocket transport layer.
 +
- Package: kamailio-sqlite-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libsqlite3-0,
-          ${shlibs:Depends}
- Description: SQLite database connectivity module for Kamailio
++Package: kamailio-dnssec-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the dnssec module
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the SQLite database driver for Kamailio.
++ This package provides the dnssec module for Kamailio.
 +
- Package: kamailio-json-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libevent-1.4-2,
-          libjson0,
-          ${shlibs:Depends}
- Description: Json parser and jsonrpc modules for Kamailio
++Package: kamailio-autheph-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: authentication using ephemeral credentials module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides json parser for Kamailio's configuration file
-  and the JSON-RPC client over netstrings.
++ This package provides the ephemeral module for Kamailio.
 +
 +Package: kamailio-nth
 +Architecture: any
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: binutils,
 +         bison,
 +         bvi,
 +         flex,
 +         gcc,
 +         gdb,
 +         iftop,
 +         lsof,
 +         mc,
 +         most,
 +         ngrep,
 +         psmisc,
 +         screen,
 +         sipsak,
 +         tcpdump,
-          vim
++         vim,
++         ${misc:Depends}
 +Description: Kamailio - package for "nice to have" installation
-  This is a meta-package for easy installation various useful tools that may be
++ This is a metapackage for easy installation various useful tools that may be
 + handy on server with Kamailio installed.
- 
- Package: kamailio-ims-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - IMS Modules
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains various Diameter interfaces and modules for Kamailio
-  to run as an IMS core.
- 
- Package: kamailio-outbound-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - Outbound Module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains the module implementing SIP outbound extension.
- 
- Package: kamailio-websocket-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - Websocket Module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains the module implementing WebSocket transport layer.
- 
- Package: kamailio-autheph-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: authentication using ephemeral credentials module for Kamailio
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the ephemeral module for Kamailio.
- 
- Package: kamailio-sctp-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: authentication using ephemeral credentials module for Kamailio
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the sctp module for Kamailio.
- 
- Package: kamailio-java-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          default-jre,
-          ${shlibs:Depends}
- Description: contains the app_java module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_java module, an extension allowing to
-  execute embedded Java applications within configuration file.
- 
- Package: kamailio-dnssec-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the dnssec module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the dnssec module for Kamailio.
diff --cc pkg/kamailio/deb/debian/copyright
index 801eac4,0000000..ff31338
mode 100644,000000..100644
--- a/pkg/kamailio/deb/debian/copyright
+++ b/pkg/kamailio/deb/debian/copyright
@@@ -1,27 -1,0 +1,335 @@@
- This package was debianized by Andrei Pelinescu-Onciul
- <pelinescu-onciul at fokus.fraunhofer.de> on Tue, 16 Jul 2002 15:41:31 +0200.
- This package was debianized by Julien BLACHE <jblache at debian.org>
- on Thu, 29 Jun 2006 09:55:24 +0200, based on Andrei's work.
- 
- It was downloaded from: http://kamailio.org
- 
- Upstream Authors:
-        Andrei Pelinescu-Onciul <pelinescu-onciul at fokus.fraunhofer.de>
-        Bogdan-Andrei Iancu <bogdan at voice-system.ro>
-        Daniel-Constantin Mierla <miconda at gmail.com>
-        Jan Janak <jan at iptel.org>
-        Jiri Kuthan <jiri at iptel.org>
-        Juha Heinanen
-        Ramona-Elena Modroiu
-        Maxim Sobolev
-        Miklos Tirpak
-        Nils Ohlmeier
-        and others ; see the AUTHORS file in the source code tree for details
- 
- This software is copyright (c) 2002-2003 by FhG Fokus
- 
- You are free to distribute this software under the terms of
- the GNU General Public License.
- 
- On Debian systems, the complete text of the GNU General Public
- License can be found in the file `/usr/share/common-licenses/GPL.
++Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: Kamailio
++Upstream-Contact: sr-dev at lists.sip-router.org
++Source: http://www.kamailio.org/pub/kamailio/
++
++Files: *
++Copyright:
++ 2001-2003 FhG Fokus
++ 2006-2010 iptelorg GmbH
++ Various others (see AUTHORS file)
++License: GPL-2.0+
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++
++Files: debian/*
++Copyright: 2012, 2013, 2014 Victor Seva <linuxmaniac at torreviejawireless.org>
++           2009, 2010, 2011, Daniel-Constantin Mierla <miconda at gmail.com>
++           2010, Jon Bonilla <manwe at aholab.ehu.es>
++           2009, Jonas Bergler <jonas.bergler at staff.snap.net.nz>
++           2009, Henning Westerholt <henning.westerholt at 1und1.de>
++           2007, Julien BLACHE <jblache at debian.org>
++License: GPL-2+
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++
++
++Files: atomic/* atomic_ops.* basex.* bit_*.c char_msg_val.h compiler_opt.h
++ core_stats.h counters.* endianness.* futexlock.h hashes.h io_wait.*
++ kstats_types.h lib/kcore/kstats_wrapper.* lock_ops.c lock_ops_init.h
++ lvalue.* mem/ll_malloc.* mem/memdbg.h mem/sf_malloc.* mi/*.h mod_fix.*
++ modules/tm/rpc_uac.* modules/counters/counters.c modules/tls/sbufq.h
++ modules/tls/tls_bio.* modules/tls/tls_cfg.* modules/tls/tls_cfg.h
++ modules/tls/tls_ct_wrq.* modules/tls/tls_ct_q.h modules/tls/tls_domain.*
++ modules/tls/tls_server.h modules/tls/tls_locking.* modules/tls/tls_rpc.*
++ modules/tls/tls_server.c modules/malloc_test/malloc_test.c modules/blst/blst.c
++ parser/case_p_* parser/case_reas.h pvapi.h pv_core.* rand/fastrand.* raw_*
++ rpc_lookup.* rvalue.* sctp_* ser_time.h shm_init.* sip_msg_clone.* sock_ut.*
++ sr_compat.* str_hash.h switch.* tcp_ev.h tcp_int_send.h tcp_options.*
++ tcp_read.h tcp_stats.* timer_proc.* tls_hooks.* tls_hooks_init.h ver.*
++Copyright: 2006-2010 iptelorg GmbH
++License: ISC
++
++Files: modules/tls/tls_select.* modules/tls/tls_dump_vf.*
++Copyright: 2005-2010 iptelorg GmbH
++License: GPL-2 + OpenSSL exception
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++ * Exception: permission to copy, modify, propagate, and distribute a work
++ * formed by combining OpenSSL toolkit software and the code in this file,
++ * such as linking with software components and libraries released under
++ * OpenSSL project license.
++
++Files: modules/websocket/* modules/outbound/* modules/auth_ephemeral/*
++Copyright: 2012-2013 Crocodile RCS Ltd
++License: GPL-2 + OpenSSL exception
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++ * Exception: permission to copy, modify, propagate, and distribute a work
++ * formed by combining OpenSSL toolkit software and the code in this file,
++ * such as linking with software components and libraries released under
++ * OpenSSL project license.
++
++Files: daemonize.* fastlock.h lock_ops.h mem/mem.* mem/f_malloc.h
++ mem/meminfo.h mem/memtest.c mem/shm_mem.c mem/q_malloc.h mem/q_malloc.c
++ mem/shm_mem.h mem/f_malloc.c modules/tls/tls_rpc.c modules/tls/tls_server.c
++ modules/tls/tls_domain.c modules/tls/tls_domain.h modules/tls/tls_server.h
++ modules/tls/tls_rpc.h pt.c pt.h sched_yield.h ut.c ut.h
++Copyright: 2001-2003 FhG Fokus
++License: ISC
++
++Files: events.* modules/topoh/*
++Copyright: 2009 SIP-Router.org
++License: ISC
++
++Files: modules/mi_rpc/mi_rpc_mod.c modules/pv/pv_xavp.*
++ modules/usrloc/ul_rpc.* ppcfg.* xavp.*
++Copyright: 2009-2010 Daniel-Constantin Mierla (asipto.com)
++License: ISC
++
++Files: obsolete/jabber_k/tree234.*
++Copyright: 1999, 2000, 2001, Simon Tatham
++License: Expat
++ Permission is hereby granted, free of charge, to any person
++ obtaining a copy of this software and associated documentation
++ files (the "Software"), to deal in the Software without
++ restriction, including without limitation the rights to use,
++ copy, modify, merge, publish, distribute, sublicense, and/or
++ sell copies of the Software, and to permit persons to whom the
++ Software is furnished to do so, subject to the following
++ conditions:
++ .
++ The above copyright notice and this permission notice shall be
++ included in all copies or substantial portions of the Software.
++ .
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
++ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++ NONINFRINGEMENT.  IN NO EVENT SHALL SIMON TATHAM BE LIABLE FOR
++ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
++ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
++ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
++ SOFTWARE.
++
++Files: modules/xmpp/xsnprintf.c obsolete/jabber_s/xsnprintf.c obsolete/jabber_k/xsnprintf.c
++Copyright: 1995-1998, The Apache Group
++License: Apache-1.0
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ .
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ .
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in
++    the documentation and/or other materials provided with the
++    distribution.
++ .
++ 3. All advertising materials mentioning features or use of this
++    software must display the following acknowledgment:
++    "This product includes software developed by the Apache Group
++    for use in the Apache HTTP server project (http://www.apache.org/)."
++ .
++ 4. The names "Apache Server" and "Apache Group" must not be used to
++    endorse or promote products derived from this software without
++    prior written permission.
++ .
++ 5. Redistributions of any form whatsoever must retain the following
++    acknowledgment:
++    "This product includes software developed by the Apache Group
++    for use in the Apache HTTP server project (http://www.apache.org/)."
++ .
++ THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY
++ EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE APACHE GROUP OR
++ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ OF THE POSSIBILITY OF SUCH DAMAGE.
++
++Files: modules/mi_xmlrpc/abyss*
++Copyright: 2000, Moez Mahfoudh <mmoez at bigfoot.com>
++License: BSD-3-clause
++
++Files: list.h
++Copyright: 1991, 1993 The Regents of the University of California
++License: BSD-3-clause
++
++Files: modules/tm/t_serial.*
++Copyright: 2008 Juha Heinanen
++License: BSD-2-clause
++
++Files: parser/sdp/sdp.* parser/sdp/sdp_helpr_funcs.* parser/sdp/sdp_cloner.h
++Copyright:
++ 2008-2009 SOMA Networks, INC.
++ 2010 VoIP Embedded, Inc
++License: BSD-2-clause
++
++Files: modules/tls/fixed_c_zlib.h
++Copyright:1998-2005 The OpenSSL Project
++Comment: file copied from OpenSSL 0.9.8, refers to OpenSSL License. Note that
++ this code will not build by default in the Debian packaging.
++License: OpenSSL
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ .
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ .
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in
++    the documentation and/or other materials provided with the
++    distribution.
++ .
++ 3. All advertising materials mentioning features or use of this
++    software must display the following acknowledgment:
++    "This product includes software developed by the OpenSSL Project
++    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
++ .
++ 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
++    endorse or promote products derived from this software without
++    prior written permission. For written permission, please contact
++    openssl-core at openssl.org.
++ .
++ 5. Products derived from this software may not be called "OpenSSL"
++    nor may "OpenSSL" appear in their names without prior written
++    permission of the OpenSSL Project.
++ .
++ 6. Redistributions of any form whatsoever must retain the following
++    acknowledgment:
++    "This product includes software developed by the OpenSSL Project
++    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
++ .
++ THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
++ EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
++ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ OF THE POSSIBILITY OF SUCH DAMAGE.
++
++Files: md5.* md5utils.c
++Copyright: 1991-2, RSA Data Security, Inc
++Comment: Note that md5.c and md5.h have been replaced in the patches
++ plum_md5*.patch .
++ .
++ As for md5utils.c, according to a mail from Upstream (Daniel-Constantin
++ Mierla): while the initial commit log for it states that it is derived
++ from mddriver.c of RFC 1321, it seems that it was, in fact, written from
++ scratch by Jiri Kuthan (a core developer of SER at that time, working for
++ FhG Fokus Institute). As you can see it's rather trivial and uses a data
++ type of SER ("str").  I didn't reimplement it as it's too trivial and
++ looks like there's no other way to implement it.
++License: RSA-MD5
++ License to copy and use this software is granted provided that it
++ is identified as the "RSA Data Security, Inc. MD5 Message-Digest
++ Algorithm" in all material mentioning or referencing this software
++ or this function.
++ .
++ License is also granted to make and use derivative works provided
++ that such works are identified as "derived from the RSA Data
++ Security, Inc. MD5 Message-Digest Algorithm" in all material
++ mentioning or referencing the derived work.
++ .
++ RSA Data Security, Inc. makes no representations concerning either
++ the merchantability of this software or the suitability of this
++ software for any particular purpose. It is provided "as is"
++ without express or implied warranty of any kind.
++ .
++ These notices must be retained in any copies of any part of this
++ documentation and/or software.
++
++Files: mem/dl_*
++Copyright: n/a
++License: public-domain
++ This is a version (aka dlmalloc) of malloc/free/realloc written by
++ Doug Lea and released to the public domain, as explained at
++ http://creativecommons.org/licenses/publicdomain.  Send questions,
++ comments, complaints, performance data, etc to dl at cs.oswego.edu
++
++Files: rand/isaac/*
++Copyright: n/a
++License: public-domain
++ By Bob Jenkins.  My random number generator, ISAAC.  Public Domain.
++
++License: ISC
++ Permission to use, copy, modify, and distribute this software for any
++ purpose with or without fee is hereby granted, provided that the above
++ copyright notice and this permission notice appear in all copies.
++ .
++ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
++ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
++ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
++ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
++ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
++ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
++ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
++
++Files: lib/srutils/srjson.*
++Copyright: 2009 Dave Gamble
++License: MIT
++ Permission is hereby granted, free of charge, to any person obtaining a copy
++ of this software and associated documentation files (the "Software"), to deal
++ in the Software without restriction, including without limitation the rights
++ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
++ copies of the Software, and to permit persons to whom the Software is
++ furnished to do so, subject to the following conditions:
++ .
++ The above copyright notice and this permission notice shall be included in
++ all copies or substantial portions of the Software.
++ ,
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
++ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
++ THE SOFTWARE.
++
++License: BSD-3-clause
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in the
++    documentation and/or other materials provided with the distribution.
++ 4. Neither the name of the University nor the names of its contributors
++    may be used to endorse or promote products derived from this software
++    without specific prior written permission.
++ .
++ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
++ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
++ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
++ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
++ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
++ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
++ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
++ SUCH DAMAGE.
++
++License: BSD-2-clause
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions are met:
++ .
++  1. Redistributions of source code must retain the above copyright notice,
++     this list of conditions and the following disclaimer.
++  2. Redistributions in binary form must reproduce the above copyright
++     notice, this list of conditions and the following disclaimer in the
++     documentation and/or other materials provided with the distribution.
++ .
++ THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS OR
++ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
++ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
++ EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
++ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
++ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
++ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
++ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
++ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --cc pkg/kamailio/deb/debian/kamailio-autheph-modules.lintian-overrides
index 0000000,0000000..dcb3d18
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/debian/kamailio-autheph-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-autheph-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/debian/kamailio-berkeley-bin.dirs
index 0000000,0000000..236670a
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/debian/kamailio-berkeley-bin.dirs
@@@ -1,0 -1,0 +1,1 @@@
++usr/sbin
diff --cc pkg/kamailio/deb/debian/kamailio-dnssec-modules.lintian-overrides
index 0000000,0000000..10165fe
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/debian/kamailio-dnssec-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-dnssec-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/debian/kamailio-outbound-modules.lintian-overrides
index 0000000,0000000..3050cfe
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/debian/kamailio-outbound-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-outbound-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/debian/kamailio-tls-modules.lintian-overrides
index 0000000,0000000..bbe0d37
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/debian/kamailio-tls-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-tls-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/debian/kamailio-websocket-modules.lintian-overrides
index 0000000,0000000..8f384fb
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/debian/kamailio-websocket-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-websocket-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/debian/kamailio.README.Debian
index 4eaf90b,0000000..d25769a
mode 100644,000000..100644
--- a/pkg/kamailio/deb/debian/kamailio.README.Debian
+++ b/pkg/kamailio/deb/debian/kamailio.README.Debian
@@@ -1,38 -1,0 +1,39 @@@
 +Kamailio for Debian
- ------------------
++-------------------
 +
 +* init script check for fork=no
 +-------------------------------
 +
 +The Kamailio init script will not start Kamailio on boot if fork=no is
 +specified in the config file. The check in the initscript will match
 +any occurrence of fork=no in the file, even inside C-style comments.
 +
 +You can disable this check in the init script if you wish; just comment
 +out the calls to the check_fork function in the script. Your changes to
 +the init script will be preserved upon upgrade, as the file is tagged
 +as a conffile.
 +
 +
 +* Kamailio setup
- ---------------
++----------------
 +
 +To setup Kamailio, you need to:
 + - configure Kamailio properly to suit your needs
 + - edit /etc/default/kamailio, adjust the MEMORY parameter and set
 +   RUN_KAMAILIO to "yes"
 +
 +If you are building an HA cluster using heartbeat or similar, you'll want
 +to disable the init script by running:
 +
 +  update-rc.d kamailio remove
 +
 +so that Kamailio will not be launched at system startup. You still need
 +to set RUN_KAMAILIO to "yes" if you want to use the /etc/init.d/kamailio init
 +script.
 +
 +Set the DUMP_CORE parameter in /etc/default/kamailio to "yes" if you want to
 +get a core dump in case Kamailio crashes. The debug symbols for Kamailio are
 +provided by the kamailio-dbg package.
 +
- -- Julien BLACHE <jblache at debian.org>, Fri, 08 Sep 2006 14:43:21 +0200
++
++ -- Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 11 Dec 2013 16:07:11 +0100
diff --cc pkg/kamailio/deb/debian/kamailio.default
index 3221104,0000000..0cfc8c8
mode 100644,000000..100644
--- a/pkg/kamailio/deb/debian/kamailio.default
+++ b/pkg/kamailio/deb/debian/kamailio.default
@@@ -1,33 -1,0 +1,28 @@@
 +#
 +# Kamailio startup options
 +#
 +
 +# Set to yes to enable kamailio, once configured properly.
- RUN_KAMAILIO=no
++#RUN_KAMAILIO=yes
 +
 +# User to run as
- USER=kamailio
++#USER=kamailio
 +
 +# Group to run as
- GROUP=kamailio
++#GROUP=kamailio
 +
- # Amount of shared memory to allocate for the running Kamailio server (in Mb)
- SHM_MEMORY=64
++# Amount of shared and private memory to allocate
++# for the running Kamailio server (in Mb)
++#SHM_MEMORY=64
++#PKG_MEMORY=4
 +
- # Amount of private memory for each Kamailio process (in Mb)
- PKG_MEMORY=4
- 
- # Switch to USER and GROUP by start-stop-daemon or by kamailio itself
- # - with recent kernels, changing user ID inside applicaton prevents
- #   dumping core files. If the value is 'yes', the suid is done by
- #   start-stop-daemon, otherwise it is done by kamailio itself
- SSD_SUID=no
++# Config file
++#CFGFILE=/etc/kamailio/kamailio.cfg
 +
 +# Enable the server to leave a core file when it crashes.
 +# Set this to 'yes' to enable Kamailio to leave a core file when it crashes
 +# or 'no' to disable this feature. This option is case sensitive and only
 +# accepts 'yes' and 'no' and only in lowercase letters.
- # On some systems (e.g. Ubuntu 6.10, Debian 4.0) it is necessary to specify
- # a directory for the core files to get a dump. Look into the kamailio
- # init file for an example configuration.
- DUMP_CORE=no
++# On some systems it is necessary to specify a directory for the core files
++# to get a dump. Look into the kamailio init file for an example configuration.
++#DUMP_CORE=yes
diff --cc pkg/kamailio/deb/debian/kamailio.init
index 6b0a1ee,0000000..1f8f796
mode 100644,000000..100644
--- a/pkg/kamailio/deb/debian/kamailio.init
+++ b/pkg/kamailio/deb/debian/kamailio.init
@@@ -1,240 -1,0 +1,162 @@@
 +#! /bin/sh
 +#
 +### BEGIN INIT INFO
 +# Provides:          kamailio
 +# Required-Start:    $syslog $network $local_fs $remote_fs $time
++# Should-Start:      $named slapd mysql postgresql snmpd radiusd
++# Should-Stop:       $named slapd mysql postgresql snmpd radiusd
 +# Required-Stop:     $syslog $network $local_fs $remote_fs
 +# Default-Start:     2 3 4 5
 +# Default-Stop:      0 1 6
- # Should-Start:      postgresql mysql radius
- # Should-Stop:       postgresql mysql radius
 +# Short-Description: Start the Kamailio SIP proxy server
 +# Description:       Start the Kamailio SIP proxy server
 +### END INIT INFO
 +
++. /lib/lsb/init-functions
 +
 +PATH=/sbin:/bin:/usr/sbin:/usr/bin
 +DAEMON=/usr/sbin/kamailio
 +NAME=kamailio
- DESC=Kamailio
++DESC="Kamailio SIP server"
 +HOMEDIR=/var/run/kamailio
 +PIDFILE=$HOMEDIR/$NAME.pid
 +DEFAULTS=/etc/default/kamailio
 +CFGFILE=/etc/kamailio/kamailio.cfg
 +RUN_KAMAILIO=no
- 
++USER=kamailio
++GROUP=kamailio
++# Amount of shared and private memory to allocate
++# for the running Kamailio server (in Mb)
++SHM_MEMORY=64
++PKG_MEMORY=4
++DUMP_CORE=no
 +
 +# Do not start kamailio if fork=no is set in the config file
- # otherwise the boot process will just stop.
++# otherwise the boot process will just stop
 +check_fork ()
 +{
-   if grep -q "^[[:space:]]*fork[[:space:]]*=[[:space:]]*no.*" $CFGFILE; then
-     echo "Not starting $DESC: fork=no specified in config file. Run /etc/init.d/kamailio debug instead."
-     exit 1
-   fi
++    if grep -q "^[[:space:]]*fork[[:space:]]*=[[:space:]]*no.*" $CFGFILE; then
++	log_failure_msg "Not starting $DESC: fork=no specified in config file; run /etc/init.d/kamailio debug instead"
++	exit 0
++    fi
 +}
 +
- 
 +check_kamailio_config ()
 +{
-   # Check if kamailio configuration is valid before starting the server.
-   set +e
-   out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
-   retcode=$?
-   set -e
-   if [ "$retcode" != '0' ]; then
-     echo "Not starting $DESC: invalid configuration file!"
-     echo -e "\n$out\n"
-     exit 1
-   fi
- }
- 
- 
- check_homedir ()
- {
-   # Create HOMEDIR directory in case it doesn't exist.
-   # Useful in Ubuntu as /var/run/ content is deleted in shutdown.
-   if [ ! -d $HOMEDIR ]; then
-     mkdir $HOMEDIR
-   fi
- 
-   # Set the appropiate owner and group
-   chown ${USER}:${GROUP} $HOMEDIR
++	# Check if kamailio configuration is valid before starting the server
++	set +e
++	out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
++	retcode=$?
++	set -e
++	if [ "$retcode" != '0' ]; then
++	    log_failure_msg "Not starting $DESC: invalid configuration file!"
++	    log_failure_msg
++	    log_failure_msg "$out"
++	    log_faiulre_msg
++	    exit 1
++	fi
 +}
 +
- 
 +create_radius_seqfile ()
 +{
-   # Create a radius sequence file to be used by the radius client if
-   # radius accounting is enabled. This is needed to avoid any issue
-   # with the file not being writable if kamailio first starts as user
-   # root because DUMP_CORE is enabled and creates this file as user
-   # root and then later it switches back to user kamailio and cannot
-   # write to the file. If the file exists before kamailio starts, it
-   # won't change it's ownership and will be writable for both root
-   # and kamailio, no matter what options are chosen at install time
-   RADIUS_SEQ_FILE=$HOMEDIR/kamailio_radius.seq
- 
-   if [ ! -f $RADIUS_SEQ_FILE ]; then
-       touch $RADIUS_SEQ_FILE
-   fi
- 
-   chown ${USER}:${GROUP} $RADIUS_SEQ_FILE
-   chmod 660 $RADIUS_SEQ_FILE
++    # Create a radius sequence file to be used by the radius client if
++    # radius accounting is enabled. This is needed to avoid any issue
++    # with the file not being writable if kamailio first starts as user
++    # root because DUMP_CORE is enabled and creates this file as user
++    # root and then later it switches back to user kamailio and cannot
++    # write to the file. If the file exists before kamailio starts, it
++    # won't change it's ownership and will be writable for both root
++    # and kamailio, no matter what options are chosen at install time
++    RADIUS_SEQ_FILE=/var/run/kamailio/kamailio_radius.seq
++    if [ -d /var/run/kamailio ]; then
++	chown ${USER}:${GROUP} /var/run/kamailio
++
++	if [ ! -f $RADIUS_SEQ_FILE ]; then
++	    touch $RADIUS_SEQ_FILE
++	fi
++
++	chown ${USER}:${GROUP} $RADIUS_SEQ_FILE
++	chmod 660 $RADIUS_SEQ_FILE
++    fi
 +}
 +
++test -f $DAEMON || exit 0
 +
- if [ ! -f $DAEMON ]; then
-   echo "No $DESC daemon at $DAEMON."
-   case "$1" in
-   status)
-     # LSB - 4: program or service status is unknown.
-     exit 4
-     ;;
-   *)
-     # LSB - 5: program is not installed.
-     exit 5
-     ;;
-   esac
- fi
- 
- 
- # Load startup options if available.
++# Load startup options if available
 +if [ -f $DEFAULTS ]; then
-   . $DEFAULTS || true
++   . $DEFAULTS || true
 +fi
 +
- 
 +if [ "$RUN_KAMAILIO" != "yes" ]; then
-   echo "$DESC not yet configured. Edit $DEFAULTS first."
-   exit 0
++    log_failure_msg "Kamailio not yet configured. Edit /etc/default/kamailio first."
++    exit 0
 +fi
 +
- 
 +set -e
 +
- 
 +SHM_MEMORY=$((`echo $SHM_MEMORY | sed -e 's/[^0-9]//g'`))
 +PKG_MEMORY=$((`echo $PKG_MEMORY | sed -e 's/[^0-9]//g'`))
- [ $SHM_MEMORY -le 0 ] && SHM_MEMORY=64
- [ $PKG_MEMORY -le 0 ] && PKG_MEMORY=4
 +[ -z "$USER" ]  && USER=kamailio
 +[ -z "$GROUP" ] && GROUP=kamailio
- 
++[ $SHM_MEMORY -le 0 ] && SHM_MEMORY=64
++[ $PKG_MEMORY -le 0 ] && PKG_MEMORY=4
 +
 +if test "$DUMP_CORE" = "yes" ; then
-   # set proper ulimit.
-   ulimit -c unlimited
- 
-   # directory for the core dump files.
-   # COREDIR=/tmp/corefiles
-   # [ -d $COREDIR ] || mkdir $COREDIR
-   # chmod 777 $COREDIR
-   # echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
++    # set proper ulimit
++    ulimit -c unlimited
++
++    # directory for the core dump files
++    # COREDIR=/home/corefiles
++    # [ -d $COREDIR ] || mkdir $COREDIR
++    # chmod 777 $COREDIR
++    # echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
 +fi
 +
- 
- if [ "$SSD_SUID" != "yes" ]; then
-   OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
-   SSDOPTS=""
- else
-   OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY"
-   SSDOPTS="--chuid $USER:$GROUP"
++# /var/run can be a tmpfs
++if [ ! -d $HOMEDIR ]; then
++    mkdir -p $HOMEDIR
 +fi
 +
- 
- start_kamailio_daemon ()
- {
-   start-stop-daemon --start --quiet --pidfile $PIDFILE $SSDOPTS \
-     --exec $DAEMON -- $OPTIONS
-   res=$?
- 
-   echo -n "$NAME "
-   if [ $res -eq 0 ] ; then
-     echo "started."
-     exit 0
-   else
-     if [ ! -r "$PIDFILE" ]; then
-       echo "error, failed to start."
-       exit 1
-     elif read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
-       echo "already running."
-       exit 0
-     else
-       echo "error, failed to start ($PIDFILE exists)."
-       exit 1
-     fi
-   fi
- }
- 
++OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
 +
 +case "$1" in
 +  start|debug)
-     check_kamailio_config
-     check_homedir
-     create_radius_seqfile
- 
-     if [ "$1" != "debug" ]; then
-       check_fork
-     fi
- 
-     echo "Starting $DESC:"
-     set +e
-     start_kamailio_daemon
-     ;;
- 
++	check_kamailio_config
++	create_radius_seqfile
++
++	if [ "$1" != "debug" ]; then
++	    check_fork
++	fi
++
++	log_daemon_msg "Starting $DESC: $NAME"
++	start-stop-daemon --start --quiet --pidfile $PIDFILE \
++		--exec $DAEMON -- $OPTIONS || log_failure_msg " already running"
++	log_end_msg 0
++	;;
 +  stop)
-     echo -n "Stopping $DESC: $NAME "
-     set +e
-     start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
-       --exec $DAEMON
- 
-     if [ $? -eq 0 ] ; then
-       echo "stopped."
-       exit 0
-     else
-       echo "failed to stop."
-       exit 1
-     fi
-     ;;
-     
++	log_daemon_msg "Stopping $DESC: $NAME"
++	start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
++		--exec $DAEMON
++	log_end_msg 0
++	;;
 +  restart|force-reload)
-     check_kamailio_config
-     check_homedir
-     create_radius_seqfile
- 
-     echo "Restarting $DESC:"
-     set +e
-     start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE --retry=5 \
-       --exec $DAEMON
-     if [ $? -ne 0 ] ; then
-       echo "$NAME failed to stop."
-       exit 1
-     fi
-     start_kamailio_daemon
-     ;;
++	check_kamailio_config
++	create_radius_seqfile
 +
++	$0 stop
++	sleep 1
++	$0 start
++	;;
 +  status)
-     echo -n "Status of $DESC: $NAME "
-     if [ ! -r "$PIDFILE" ]; then
-       echo "is not running."
-       exit 3
-     fi
-     if read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
-       echo "is running."
-       exit 0
-     else
-       echo "is not running but $PIDFILE exists."
-       exit 1
-     fi
-     ;;
++	log_daemon_msg "Status of $DESC: "
 +
++	status_of_proc -p"$PIDFILE" $NAME $NAME
++	;;
 +  *)
-     N=/etc/init.d/$NAME
-     echo "Usage: $N {start|stop|restart|force-reload|debug|status}" >&2
-     exit 1
-     ;;
++	N=/etc/init.d/$NAME
++	echo "Usage: $N {start|stop|restart|force-reload|status|debug}" >&2
++	exit 1
++	;;
 +esac
 +
- 
 +exit 0
diff --cc pkg/kamailio/deb/debian/kamailio.lintian-overrides
index 0000000,0000000..18152ed
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/debian/kamailio.lintian-overrides
@@@ -1,0 -1,0 +1,2 @@@
++kamailio binary: example-interpreter-not-absolute usr/share/doc/kamailio/examples/outbound/edge.cfg #!KAMAILIO
++kamailio binary: example-interpreter-not-absolute usr/share/doc/kamailio/examples/outbound/registrar.cfg #!KAMAILIO
diff --cc pkg/kamailio/deb/debian/kamailio.postinst
index fc7e4a8,0000000..4ee38ec
mode 100644,000000..100644
--- a/pkg/kamailio/deb/debian/kamailio.postinst
+++ b/pkg/kamailio/deb/debian/kamailio.postinst
@@@ -1,48 -1,0 +1,24 @@@
 +#! /bin/sh
- #
- # $Id$
- 
- PKG=kamailio
- DEFAULTS=/etc/default/kamailio
- HOMEDIR=/var/run/kamailio
 +
 +set -e
 +
- # summary of how this script can be called:
- #        * <postinst> `configure' <most-recently-configured-version>
- #        * <old-postinst> `abort-upgrade' <new version>
- #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
- #          <new-version>
- #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
- #          <failed-install-package> <version> `removing'
- #          <conflicting-package> <version>
- # for details, see http://www.debian.org/doc/debian-policy/ or
- # the debian-policy package
- #
- # quoting from the policy:
- #     Any necessary prompting should almost always be confined to the
- #     post-installation script, and should be protected with a conditional
- #     so that unnecessary prompting doesn't happen if a package's
- #     installation fails and the `postinst' is called with `abort-upgrade',
- #     `abort-remove' or `abort-deconfigure'.
- 
 +case "$1" in
 +    configure)
 +        adduser --quiet --system --group --disabled-password \
-                 --shell /bin/false --gecos "Kamailio" \
-                 --home $HOMEDIR kamailio || true
++                --shell /bin/false --gecos "Kamailio SIP Server" \
++                --home /var/run/kamailio kamailio || true
 +
 +        ;;
 +
 +    abort-upgrade|abort-remove|abort-deconfigure)
 +
 +        ;;
 +
 +    *)
 +        echo "postinst called with unknown argument \`$1'" >&2
 +        exit 1
 +        ;;
 +esac
 +
 +#DEBHELPER#
 +
diff --cc pkg/kamailio/deb/debian/rules
index 25b9656,0000000..1790eee
mode 100755,000000..100755
--- a/pkg/kamailio/deb/debian/rules
+++ b/pkg/kamailio/deb/debian/rules
@@@ -1,228 -1,0 +1,202 @@@
 +#!/usr/bin/make -f
 +# Sample debian/rules that uses debhelper.
 +# GNU copyright 1997 to 1999 by Joey Hess.
- #
- # $Id$
- #
- # History:
- # --------
- #  2009-07-08  updated for sip-router (andrei)
- #  2009-12-10  updated for kamailio 3.0 (daniel)
 +
++DEBVERSION:=$(shell head -n 1 debian/changelog \
++                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
++UPVERSION:=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
++
++FILENAME := kamailio_$(UPVERSION).orig.tar.gz
++URL := http://www.kamailio.org/pub/kamailio/$(UPVERSION)/src/kamailio-$(UPVERSION)_src.tar.gz
++
++DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
++
++export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++DPKG_EXPORT_BUILDFLAGS = 1
++include /usr/share/dpkg/buildflags.mk
 +
 +# Uncomment this to turn on verbose mode.
 +#export DH_VERBOSE=1
 +
- # This is the debhelper compatibility version to use.
- # export DH_COMPAT=4
- #  -- already set in compat
- export DEB_BUILD_OPTIONS:="$(DEB_BUILD_OPTIONS) debug"
++# java stuff using libgcj12
++export JAVA_HOME=/usr/lib/jvm/java-gcj-4.6
++
++# choose freeradius
++export FREERADIUS=1
 +
 +# modules not in the "main" kamailio package
- EXCLUDED_MODULES= 
++EXCLUDED_MODULES=
 +
 +# extra modules to skip, because they are not compilable now
 +# - regardless if they go to the main kamailio package or to some module package,
 +# they will be excluded from compile and install of all
 +EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy
- #EXTRA_EXCLUDED_MODULES=
- 
- # possible module directories that can appear in MODULES_SP
- # (only used for deducing a module name)
- MDIRS=modules
- 
- # modules packaged in separate packages (complete with full modules_* path)
- # with the package name: kamailio-$(module_name)-module
- MODULES_SP=
 +
 +# module groups that are packaged in seperate packages
 +# (with the name kamailio-$(group_name)-modules)
 +# Note: the order is important (should be in dependency order, the one
 +# on which other depend first)
 +PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
- 			   ldap xml perl utils purple memcached tls \
- 			   snmpstats carrierroute xmpp cpl lua python geoip \
- 			   redis sqlite json mono ims outbound websocket \
- 			   autheph sctp java dnssec
++			   ldap xml perl utils lua memcached \
++			   snmpstats carrierroute xmpp cpl redis python geoip\
++			   sqlite json mono ims sctp java \
++			   purple tls outbound websocket autheph dnssec
 +
 +# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
- LIBDIR ?= lib
++LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
 +
 +# directories with possible duplicate libraries (that should be deleted
 +# from current module* packages)
 +DUP_LIBS_DIRS=$(CURDIR)/debian/kamailio/usr/$(LIBDIR)/kamailio \
 +			$(CURDIR)/debian/kamailio-db-modules/usr/$(LIBDIR)/kamailio
 +
- # modules names out of modules sp
- MODULES_SP_NAMES=$(filter-out $(MDIRS),$(subst /, ,$(MODULES_SP)))
- 
 +# "function" to get package short name out of a dir/module_name
 +# it also transforms db_foo into foo
 +mod_name=$(subst db_,,$(lastword $(subst /, ,$(1))))
 +
 +define PACKAGE_GRP_BUILD_template
 +	# package all the modules in PACKAGE_GROUPS in separate packages
 +	$(foreach grp,$(PACKAGE_GROUPS),\
 +		$(MAKE) every-module group_include="k$(grp)"
 +	)
 +endef
 +
 +
- define PACKAGE_MODULE_BUILD_template
- 	# package all the modules MODULES_SP in separate packages
- 	$(foreach mod,$(MODULES_SP),\
- 		$(MAKE) modules modules="$(mod)"
- 	)
- endef
- 
- 
 +define PACKAGE_GRP_INSTALL_template
 +	$(foreach grp,$(PACKAGE_GROUPS),\
- 		$(MAKE) install-modules-all group_include="k$(grp)" \
++		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
 +		basedir=$(CURDIR)/debian/kamailio-$(grp)-modules \
 +		cfg_prefix=$(CURDIR)/debian/kamailio-$(grp)-modules \
 +		doc-dir=share/doc/kamailio-$(grp)-modules
 +		# eliminate duplicate libs
 +		-for d in $(DUP_LIBS_DIRS); do \
 +			test "$$d" != "$(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio" &&\
- 			for r in $$d/lib*; do \
- 				if [ "$$r" != "$$d/lib*" ]; then \
- 					echo "removing $(grp) lib `basename $$r` present also in $$d";\
- 					rm -f $(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
- 				fi \
++			for r in `find $$d -name 'lib*'|xargs`; do \
++				echo "removing $(grp) lib `basename $$r` present also in $$d";\
++				rm -f $(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
 +			done ; \
 +		done
++		find $(CURDIR)/debian/kamailio-$(grp)-modules -depth -empty -type d -exec rmdir {} \;
 +	)
 +endef
 +
 +
- define PACKAGE_MODULE_INSTALL_template
- 	$(foreach mod,$(MODULES_SP),
- 		$(MAKE) install-modules-all modules="$(mod)" \
- 				modules_s="" modules_k="" \
- 				basedir=$(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module \
- 				doc-dir=share/doc/kamailio-$(call mod_name,$(mod))-module
- 		# eliminate duplicate libs
- 		-for d in $(DUP_LIBS_DIRS); do \
- 			test "$$d" != "$(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module/usr/$(LIBDIR)/kamailio" &&\
- 			for r in $$d/lib*; do \
- 				if [ "$$r" != "$$d/lib*" ]; then \
- 					echo "removing $(call mod_name, $(mod)) lib `basename $$r` present also in $$d";\
- 					rm -f $(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
- 				fi \
- 			done ; \
- 		done
- 	)
- endef
- 
 +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 +	CFLAGS += -g
 +endif
 +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 +	INSTALL_PROGRAM += -s
 +endif
 +
++# CFLAGS + CPPFLAGS -> CC_EXTRA_OPTS
++# LDFLAGS -> LD_EXTRA_OPTS
++CUSTOM_BUILDFLAGS:=$(shell dpkg-buildflags --export=configure| \
++sed -e 's/" CPPFLAGS="/ /' -e 's/CFLAGS/CC_EXTRA_OPTS/g' -e 's/LDFLAGS/LD_EXTRA_OPTS/g')
++
 +configure: configure-stamp
 +configure-stamp:
 +	dh_testdir
 +	# Add here commands to configure the package.
 +	$(MAKE) FLAVOUR=kamailio cfg prefix=/usr cfg_prefix=$(CURDIR)/debian/kamailio \
 +			cfg_target=/etc/kamailio/ \
 +			basedir=$(CURDIR)/debian/kamailio \
 +			skip_modules="$(EXCLUDED_MODULES) $(EXTRA_EXCLUDED_MODULES)" \
++			$(CUSTOM_BUILDFLAGS) \
 +			group_include="kstandard"
 +
 +	touch configure-stamp
 +
 +
 +build: build-stamp
- 
- build-stamp: configure-stamp 
++build-arch: build-stamp
++build-indep: build-stamp
++build-stamp: configure-stamp
 +	dh_testdir
 +	# Add here commands to compile the package.
 +	$(MAKE) all
 +	# make groups
 +	$(call PACKAGE_GRP_BUILD_template)
 +	# make single-module packages
 +	$(call PACKAGE_MODULE_BUILD_template)
 +	touch build-stamp
 +
 +clean:
 +	dh_testdir
 +	dh_testroot
 +	rm -f build-stamp configure-stamp
 +	# Add here commands to clean up after the build process.
- 	-$(MAKE) maintainer-clean
++	$(MAKE) maintainer-clean
 +	dh_clean
 +
 +install: build
 +	dh_testdir
 +	dh_testroot
- 	dh_clean -k
++	dh_prep
 +	dh_installdirs
 +	# Add here commands to install the package into debian/kamailio
- 	$(MAKE) install group_include="kstandard"
- 	# fix etc/kamailio dir location -- not needed -- andrei
- 	# mv -f $(CURDIR)/debian/kamailio/usr/etc $(CURDIR)/debian/kamailio
++	$(MAKE) install LIBDIR=$(LIBDIR) group_include="kstandard"
 +	# make group packages
 +	$(call PACKAGE_GRP_INSTALL_template)
- 	# make single module packages
- 	$(call PACKAGE_MODULE_INSTALL_template)
++	mv $(CURDIR)/debian/kamailio-berkeley-modules/usr/sbin/kambdb_recover \
++		$(CURDIR)/debian/kamailio-berkeley-bin/usr/sbin/kambdb_recover
 +	# install /etc/default/kamailio file
 +	mkdir -p $(CURDIR)/debian/kamailio/etc/default
 +	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
- 	#dh_movefiles
- 
 +
 +
 +# This single target is used to build all the packages, all at once, or
 +# one at a time. So keep in mind: any options passed to commands here will
 +# affect _all_ packages. Anything you want to only affect one package
 +# should be put in another target, such as the install target.
- binary-common: 
++binary-common:
 +	dh_testdir
 +	dh_testroot
- 	dh_installdebconf	
++	dh_installdebconf
 +	dh_installdocs
 +	dh_installexamples
 +	dh_installmenu
- #	dh_installlogrotate
- #	dh_installemacsen
- #	dh_installpam
- #	dh_installmime
- 	dh_installinit  -- defaults 23
++	dh_installinit -pkamailio -- defaults 23
 +	dh_installcron
 +	dh_installman
 +	dh_installinfo
- #	dh_undocumented
- 	dh_installchangelogs ChangeLog 
++	dh_lintian
++	dh_installchangelogs ChangeLog
 +	dh_link
 +	dh_strip --dbg-package=kamailio-dbg
- 	dh_compress 
++	dh_compress
 +	dh_fixperms
 +	dh_makeshlibs
 +	dh_installdeb
- #	dh_perl
 +	dh_shlibdeps
 +	dh_gencontrol
 +	dh_md5sums
 +	dh_builddeb
 +
 +# Build architecture-independent packages using the common target
 +binary-indep: build install
 +# (Uncomment this next line if you have such packages.)
 +#        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
 +# We have nothing to do by default.
 +
 +
 +# Build architecture-dependent packages using the common target
 +binary-arch: build install
 +	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
 +
 +# Any other binary targets build just one binary package at a time.
 +binary-%: build install
 +	$(MAKE) -f debian/rules binary-common DH_OPTIONS=-p$*
 +
++print-version:
++	@@echo "Debian version:          $(DEBVERSION)"
++	@@echo "Upstream version:        $(UPVERSION)"
++
++get-orig-source:
++	@@dh_testdir
++	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
++	@@echo Downloading $(FILENAME) from $(URL) ...
++	@@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
++
 +binary: binary-indep binary-arch
 +.PHONY: build clean binary-indep binary-arch binary install configure
 +
diff --cc pkg/kamailio/deb/debian/source.lintian-overrides
index 0000000,0000000..620d9ff
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/debian/source.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio source: debian-watch-file-in-native-package
diff --cc pkg/kamailio/deb/debian/source/format
index 0000000,0000000..89ae9db
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/debian/source/format
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (native)
diff --cc pkg/kamailio/deb/debian/watch
index 0000000,0000000..c50f31f
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/debian/watch
@@@ -1,0 -1,0 +1,3 @@@
++version=3
++opts=dversionmangle=s/\~svn([\d]+)//; \
++http://www.kamailio.org/pub/kamailio/([\d.]+)/src/kamailio-([\d.]+)_src\.tar\.gz
diff --cc pkg/kamailio/deb/jessie/changelog
index fcf832b,0000000..6a44d80
mode 100644,000000..100644
--- a/pkg/kamailio/deb/jessie/changelog
+++ b/pkg/kamailio/deb/jessie/changelog
@@@ -1,94 -1,0 +1,100 @@@
++kamailio (4.1.2) unstable; urgency=low
++
++  * update to 4.1.2 from upstream
++
++ -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 06 Mar 2014 15:25:35 +0100
++
 +kamailio (4.1.1) unstable; urgency=low
 +
 +  * update to 4.1.1 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 09 Jan 2014 15:45:35 +0100
 +
 +kamailio (4.1.0) unstable; urgency=low
 +
 +  * update to 4.1.0
 +
 + -- Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 04 Dec 2013 11:42:27 +0100
 +
 +kamailio (4.0.0) unstable; urgency=low
 +
 +  * update to 4.0.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 11 Mar 2013 10:40:30 +0100
 +
 +kamailio (3.4.0~dev0) unstable; urgency=low
 +
 +  * update version to 3.4.0~dev0
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Wed, 15 Jun 2012 03:15:00 +0100
 +
 +kamailio (3.2.0) unstable; urgency=low
 +
 +  * update to 3.2.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Fri, 29 Apr 2011 12:25:30 +0100
 +
 +kamailio (3.1.1) unstable; urgency=low
 +
 +  * update to 3.1.1 from upstream
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Fri, 3 Dec 2010 16:30:00 +0100
 +
 +kamailio (3.1.0) unstable; urgency=low
 +
 +  * update to 3.1.0 from upstream
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Wed, 6 Oct 2010 17:24:00 +0100
 +
 +kamailio (3.0.2.99) unstable; urgency=low
 +
 +  * update to 3.0.2.99 for development version builds
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Fri, 28 May 2010 22:26:00 +0100
 +
 +kamailio (3.0.2) unstable; urgency=low
 +
 +  * update to 3.0.2 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 27 May 2010 10:27:36 +0100
 +
 +kamailio (3.0.1) unstable; urgency=low
 +
 +  * update to 3.0.1 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 08 Mar 2010 20:30:48 +0100
 +
 +kamailio (3.0.0) unstable; urgency=low
 +
 +  * update to 3.0.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 11 Jan 2010 18:30:42 +0100
 +
 +kamailio (3.0.0-rc3) unstable; urgency=low
 +
 +  * update to 3.0.0-rc3 from upstream
 +  * updated debian/rules to work with the SIP Router style module packaging
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Fri, 10 Dec 2009 12:10:02 +0100
 +
 +kamailio (3.0.0-rc2) unstable; urgency=low
 +
 +  * update to 3.0.0-rc2 from upstream
 +  * updated debian/rules to work with the new style module packaging
 +
 + -- Jonas Bergler <jonas.bergler at staff.snap.net.nz>  Wed, 18 Nov 2009 12:30:02 +1300
 +
 +kamailio (1.5.0-svn1) unstable; urgency=low
 +
 +  * increment debian packaging for trunk
 +
 + -- Henning Westerholt <henning.westerholt at 1und1.de>  Mon, 02 Mar 2009 17:40:02 +0100
 +
 +kamailio (1.4.0-svn1) unstable; urgency=low
 +
 +  [ Klaus Darilion ]
 +  * first release of Kamailio (after renaming from Openser)
 +
 + -- Julien BLACHE <jblache at debian.org>  Wed, 12 Dec 2007 17:25:31 +0100
 +
 +
diff --cc pkg/kamailio/deb/jessie/compat
index 7ed6ff8,0000000..ec63514
mode 100644,000000..100644
--- a/pkg/kamailio/deb/jessie/compat
+++ b/pkg/kamailio/deb/jessie/compat
@@@ -1,1 -1,0 +1,1 @@@
- 5
++9
diff --cc pkg/kamailio/deb/jessie/control
index 8271807,0000000..71e7f35
mode 100644,000000..100644
--- a/pkg/kamailio/deb/jessie/control
+++ b/pkg/kamailio/deb/jessie/control
@@@ -1,516 -1,0 +1,556 @@@
 +Source: kamailio
 +Section: net
 +Priority: optional
- Maintainer: Jon Bonilla <manwe at aholab.ehu.es>
++Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
++Uploaders: Victor Seva <linuxmaniac at torreviejawireless.org>,
++           Tzafrir Cohen <tzafrir at debian.org>
 +Build-Depends: bison,
-                debhelper (>= 5),
-                default-jdk,
++               debhelper (>= 9),
 +               docbook-xml,
-                dpatch,
-                dpkg-dev (>= 1.13.19),
++               dpkg-dev (>= 1.16.1.1),
 +               flex,
 +               libconfuse-dev,
-                libcurl3-openssl-dev,
++               libcurl4-openssl-dev,
 +               libdb-dev (>= 4.6.19),
 +               libevent-dev,
 +               libexpat1-dev,
++               libgcj12-dev,
 +               libgeoip-dev (>= 1.4.5),
 +               libhiredis-dev (>= 0.10.0),
 +               libjson0-dev,
 +               libldap2-dev,
 +               liblua5.1-0-dev,
 +               libmemcached-dev,
 +               libmono-2.0-dev,
 +               libmysqlclient-dev,
 +               libncurses5-dev,
 +               libpcre3-dev,
 +               libperl-dev,
 +               libpq-dev,
 +               libpurple-dev,
-                libradiusclient-ng-dev,
++               libfreeradius-client-dev,
 +               libreadline-dev,
 +               libsasl2-dev,
 +               libsctp-dev,
 +               libsnmp-dev,
 +               libsqlite3-dev,
-                libssl-dev,
-                libxml2-dev,
-                libxmlrpc-c3-dev,
 +               libunistring-dev,
 +               libval-dev,
++               libxml2-dev,
++               openssl,
 +               python,
 +               python-dev,
 +               unixodbc-dev,
-                xsltproc,
-                zlib1g-dev
- Standards-Version: 3.9.3
++               xsltproc
++Standards-Version: 3.9.5
 +Homepage: http://www.kamailio.org/
++Vcs-git: git://anonscm.debian.org/pkg-voip/kamailio.git
++Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-voip/kamailio.git
 +
 +Package: kamailio
- Architecture: any
- Depends: adduser,
-          ${misc:Depends},
-          ${shlibs:Depends}
- Conflicts: kamailio-regex-modules
- Suggests: kamailio-autheph-modules,
-           kamailio-berkeley-modules,
++Architecture: linux-any
++Multi-Arch: foreign
++Pre-Depends: ${misc:Pre-Depends}
++Depends: adduser, python, ${misc:Depends}, ${shlibs:Depends}
++Suggests: kamailio-berkeley-modules,
 +          kamailio-carrierroute-modules,
 +          kamailio-cpl-modules,
 +          kamailio-dbg,
-           kamailio-dnssec-modules,
-           kamailio-java-modules,
 +          kamailio-ldap-modules,
 +          kamailio-lua-modules,
-           kamailio-mono-modules,
 +          kamailio-mysql-modules,
 +          kamailio-perl-modules,
 +          kamailio-postgres-modules,
 +          kamailio-presence-modules,
 +          kamailio-python-modules,
 +          kamailio-radius-modules,
-           kamailio-sctp-modules,
 +          kamailio-snmpstats-modules,
 +          kamailio-tls-modules,
 +          kamailio-unixodbc-modules,
 +          kamailio-xml-modules,
 +          kamailio-xmpp-modules
 +Description: very fast and configurable SIP proxy
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + C Shell-like scripting language provides full control over the server's
 + behaviour. Its modular architecture allows only required functionality to be
 + loaded.
 + .
-  Among others, the following modules are available: Digest Authentication, CPL
-  scripts, Instant Messaging, MySQL support, Presence Agent, Radius
-  Authentication, Record Routing, SMS Gateway, Jabber/XMPP Gateway, Transaction
-  Module, Registrar and User Location, XMLRPC Interface.
++ Among others, the following modules are available: digest authentication, CPL
++ scripts, instant messaging, MySQL support, presence agent, RADIUS
++ authentication, record routing, SMS gateway, Jabber/XMPP gateway, transaction
++ module, registrar and user location, XML-RPC interface.
 + .
 + This package contains the main Kamailio binary along with the principal modules
 + and support binaries.
 +
 +Package: kamailio-dbg
- Architecture: any
++Priority: extra
++Section: debug
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}
++Description: very fast and configurable SIP proxy [debug symbols]
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package contains the debugging symbols for the Kamailio binaries and
++ modules. You only need to install it if you need to debug Kamailio.
++
++Package: kamailio-geoip-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the geoip module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the geoip module, an extension allowing to
++ use GeoIP API within configuration file.
++
++Package: kamailio-sqlite-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Recommends: sqlite3
++Description: SQLite database connectivity module for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the SQLite database driver for Kamailio.
++
++Package: kamailio-json-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Json parser and jsonrpc modules for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides json parser for Kamailio's configuration file
++ and the JSON-RPC client over netstrings.
++
++Package: kamailio-memcached-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Replaces: kamailio-memcached-module
++Description: Provides the memcached module, an interface to the memcached server
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the memcached module, an interface to the memcached
++ server, a high-performance, distributed memory object caching system.
++
++Package: kamailio-lua-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the app_lua module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the app_lua module, an extension allowing to
++ execute embedded Lua applications within configuration file.
++
++Package: kamailio-mono-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the app_mono module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the app_mono module, an extension allowing to
++ execute embedded Mono applications within configuration file.
++
++Package: kamailio-python-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
++         python-dev,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Description: Debugging symbols for Kamailio SIP proxy
++Description: contains the app_python module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the app_python module, an extension allowing to
++ execute embedded Python applications within configuration file.
++
++Package: kamailio-redis-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Redis database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides gdb debugging symbols  for Kamailio
++ This package provides the Redis NOSQL database driver for Kamailio.
 +
 +Package: kamailio-mysql-modules
- Architecture: any
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         mysql-client,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-mysql-module
 +Description: MySQL database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the MySQL database driver for Kamailio.
 +
 +Package: kamailio-postgres-modules
- Architecture: any
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         postgresql-client,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-postgres-module
 +Description: PostgreSQL database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the PostgreSQL database driver for Kamailio.
 +
 +Package: kamailio-cpl-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-cpl-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: CPL module (CPL interpreter engine) for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides a CPL (Call Processing Language) interpreter for
 + Kamailio, turning Kamailio into a CPL server (storage and interpreter).
 +
 +Package: kamailio-radius-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: radius modules for Kamailio
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: RADIUS modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides a set of Radius modules for Kamailio, for
-  authentication, peering, group membership and messages URIs checking
-  against a Radius Server.
++ This package provides a set of RADIUS modules for Kamailio, for
++ authentication, peering, group membership and messages URIs checking against a
++ RADIUS server.
 +
 +Package: kamailio-unixodbc-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-unixodbc-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: unixODBC database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the unixODBC database driver for Kamailio.
 +
 +Package: kamailio-presence-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: SIMPLE presence modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides several Kamailio modules for implementing presence
 + server and presence user agent for RICH presence, registrar-based presence,
 + external triggered presence and XCAP support.
 +
- Package: kamailio-xml-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-xml-module,
-           kamailio-xmlrpc-module
- Provides: kamailio-xmlrpc-modules
- Description: XML based extensions for Kamailio's Management Interface
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides:
-  - the XMLRPC transport implementations for Kamailio's
-  Management and Control Interface.
-  - xmlops module for XPath operations in configuration file
- 
- Package: kamailio-xmlrpc-modules
- Architecture: any
- Depends: kamailio-xml-modules (= ${binary:Version})
- Description: Transitional package for kamailio-xml-modules
-  Dummy package for transition handling
- 
 +Package: kamailio-perl-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-perl-module
- Conflicts: kamailio-perl-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: Perl extensions and database driver for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides an interface for Kamailio to write Perl extensions and
 + the perlvdb database driver for Kamailio.
 +
 +Package: kamailio-snmpstats-modules
- Architecture: any
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         snmpd,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-snmpstats-module
 +Description: SNMP AgentX subagent module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the snmpstats module for Kamailio. This module acts
 + as an AgentX subagent which connects to a master agent.
 +
++Package: kamailio-purple-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Provides the purple module, a multi-protocol IM gateway
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the purple module, a multi-protocol instant
++ messaging gateway module.
++
 +Package: kamailio-xmpp-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-xmpp-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: XMPP gateway module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the SIP to XMPP IM translator module for Kamailio.
 +
++Package: kamailio-xml-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Replaces: kamailio-xml-module, kamailio-xmlrpc-module
++Provides: kamailio-xmlrpc-modules
++Description: XML based extensions for Kamailio's Management Interface
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides:
++ - the XMLRPC transport implementations for Kamailio's
++ Management and Control Interface.
++ - xmlops module for XPath operations in configuration file
++
 +Package: kamailio-carrierroute-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-carrierroute-module
- Description: Carrierroute module for Kamailio
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: carrierroute module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the carrierroute module for Kamailio, an integrated
 + solution for routing, balancing and blacklisting.
 +
 +Package: kamailio-berkeley-modules
- Architecture: any
- Depends: db4.6-util,
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: db5.1-util,
 +         kamailio (= ${binary:Version}),
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-berkeley-module
- Description: Berkeley Database module for Kamailio
++Description: Berkeley database module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the berkeley database module for Kamailio, a
++ This package provides the Berkeley database module for Kamailio, a
 + high-performance embedded DB kernel. All database tables are stored
 + in files, no additional server is necessary.
 +
++Package: kamailio-berkeley-bin
++Architecture: linux-any
++Multi-Arch: foreign
++Pre-Depends: ${misc:Pre-Depends}
++Depends: ${misc:Depends}, ${shlibs:Depends}
++Description: Berkeley database module for Kamailio - helper program
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides helper modules for the Berkeley database module for
++ Kamailio, a high-performance embedded DB kernel. You should normally
++ install kamailio-berkeley-modules and not this package directly.
++
 +Package: kamailio-ldap-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: LDAP modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the ldap and h350 modules for Kamailio, enabling LDAP
 + queries from the Kamailio config and storage of SIP account data in an LDAP
 + directory.
 +
++Package: kamailio-ims-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: IMS module for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package contains various Diameter interfaces and modules for Kamailio
++ to run as an IMS core.
++
 +Package: kamailio-utils-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-utils-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: Provides a set utility functions for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + Provides a set of utility functions for Kamailio, which are not related
 + to the server configuration.
 +
- Package: kamailio-purple-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-purple-module
- Description: Provides the purple module, a multi-protocol IM gateway
++Package: kamailio-sctp-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: sctp module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the purple module, a multi-protocol instant
-  messaging gateway module.
++ This package provides the sctp module for Kamailio.
 +
- Package: kamailio-memcached-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
++Package: kamailio-java-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: gcj-jre,
++         kamailio (= ${binary:Version}),
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-memcached-module
- Description: Provides the memcached module, an interface to the memcached server
++Description: contains the app_java module
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the memcached module, an interface to the memcached
-  server, a high-performance, distributed memory object caching system.
++ This package provides the app_java module, an extension allowing to
++ execute embedded Java applications within configuration file.
 +
 +Package: kamailio-tls-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: contains the TLS kamailio transport module
-  This has been split out of the main kamailio package, so that kamailio will not
-  depend on openssl. This module will enable you to use the TLS transport.
- 
- Package: kamailio-lua-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_lua module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_lua module, an extension allowing to
-  execute embedded Lua applications within configuration file.
++ This has been split out of the main kamailio package, so that kamailio will
++ not depend on openssl. This module will enable you to use the TLS transport.
 +
- Package: kamailio-mono-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_mono module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_mono module, an extension allowing to
-  execute embedded Mono applications within configuration file.
- 
- Package: kamailio-python-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_python module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_python module, an extension allowing to
-  execute embedded Python applications within configuration file.
- 
- Package: kamailio-geoip-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the geoip module
++Package: kamailio-outbound-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Outbound module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the geoip module, an extension allowing to
-  use GeoIP API within configuration file.
++ This package contains the module implementing SIP outbound extension.
 +
- Package: kamailio-redis-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libhiredis0.10,
-          ${shlibs:Depends}
- Description: Redis database connectivity module for Kamailio
++Package: kamailio-websocket-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Websocket module for kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the Redis NOSQL database driver for Kamailio.
++ This package contains the module implementing WebSocket transport layer.
 +
- Package: kamailio-sqlite-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libsqlite3-0,
-          ${shlibs:Depends}
- Description: SQLite database connectivity module for Kamailio
++Package: kamailio-dnssec-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the dnssec module
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the SQLite database driver for Kamailio.
++ This package provides the dnssec module for Kamailio.
 +
- Package: kamailio-json-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libevent-1.4-2,
-          libjson0,
-          ${shlibs:Depends}
- Description: Json parser and jsonrpc modules for Kamailio
++Package: kamailio-autheph-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: authentication using ephemeral credentials module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides json parser for Kamailio's configuration file
-  and the JSON-RPC client over netstrings.
++ This package provides the ephemeral module for Kamailio.
 +
 +Package: kamailio-nth
 +Architecture: any
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: binutils,
 +         bison,
 +         bvi,
 +         flex,
 +         gcc,
 +         gdb,
 +         iftop,
 +         lsof,
 +         mc,
 +         most,
 +         ngrep,
 +         psmisc,
 +         screen,
 +         sipsak,
 +         tcpdump,
-          vim
++         vim,
++         ${misc:Depends}
 +Description: Kamailio - package for "nice to have" installation
-  This is a meta-package for easy installation various useful tools that may be
++ This is a metapackage for easy installation various useful tools that may be
 + handy on server with Kamailio installed.
- 
- Package: kamailio-ims-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - IMS Modules
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains various Diameter interfaces and modules for Kamailio
-  to run as an IMS core.
- 
- Package: kamailio-outbound-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - Outbound Module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains the module implementing SIP outbound extension.
- 
- Package: kamailio-websocket-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - Websocket Module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains the module implementing WebSocket transport layer.
- 
- Package: kamailio-autheph-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: authentication using ephemeral credentials module for Kamailio
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the ephemeral module for Kamailio.
- 
- Package: kamailio-sctp-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: authentication using ephemeral credentials module for Kamailio
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the sctp module for Kamailio.
- 
- Package: kamailio-java-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          default-jre,
-          ${shlibs:Depends}
- Description: contains the app_java module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_java module, an extension allowing to
-  execute embedded Java applications within configuration file.
- 
- Package: kamailio-dnssec-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the dnssec module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the dnssec module for Kamailio.
diff --cc pkg/kamailio/deb/jessie/copyright
index 801eac4,0000000..ff31338
mode 100644,000000..100644
--- a/pkg/kamailio/deb/jessie/copyright
+++ b/pkg/kamailio/deb/jessie/copyright
@@@ -1,27 -1,0 +1,335 @@@
- This package was debianized by Andrei Pelinescu-Onciul
- <pelinescu-onciul at fokus.fraunhofer.de> on Tue, 16 Jul 2002 15:41:31 +0200.
- This package was debianized by Julien BLACHE <jblache at debian.org>
- on Thu, 29 Jun 2006 09:55:24 +0200, based on Andrei's work.
- 
- It was downloaded from: http://kamailio.org
- 
- Upstream Authors:
-        Andrei Pelinescu-Onciul <pelinescu-onciul at fokus.fraunhofer.de>
-        Bogdan-Andrei Iancu <bogdan at voice-system.ro>
-        Daniel-Constantin Mierla <miconda at gmail.com>
-        Jan Janak <jan at iptel.org>
-        Jiri Kuthan <jiri at iptel.org>
-        Juha Heinanen
-        Ramona-Elena Modroiu
-        Maxim Sobolev
-        Miklos Tirpak
-        Nils Ohlmeier
-        and others ; see the AUTHORS file in the source code tree for details
- 
- This software is copyright (c) 2002-2003 by FhG Fokus
- 
- You are free to distribute this software under the terms of
- the GNU General Public License.
- 
- On Debian systems, the complete text of the GNU General Public
- License can be found in the file `/usr/share/common-licenses/GPL.
++Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: Kamailio
++Upstream-Contact: sr-dev at lists.sip-router.org
++Source: http://www.kamailio.org/pub/kamailio/
++
++Files: *
++Copyright:
++ 2001-2003 FhG Fokus
++ 2006-2010 iptelorg GmbH
++ Various others (see AUTHORS file)
++License: GPL-2.0+
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++
++Files: debian/*
++Copyright: 2012, 2013, 2014 Victor Seva <linuxmaniac at torreviejawireless.org>
++           2009, 2010, 2011, Daniel-Constantin Mierla <miconda at gmail.com>
++           2010, Jon Bonilla <manwe at aholab.ehu.es>
++           2009, Jonas Bergler <jonas.bergler at staff.snap.net.nz>
++           2009, Henning Westerholt <henning.westerholt at 1und1.de>
++           2007, Julien BLACHE <jblache at debian.org>
++License: GPL-2+
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++
++
++Files: atomic/* atomic_ops.* basex.* bit_*.c char_msg_val.h compiler_opt.h
++ core_stats.h counters.* endianness.* futexlock.h hashes.h io_wait.*
++ kstats_types.h lib/kcore/kstats_wrapper.* lock_ops.c lock_ops_init.h
++ lvalue.* mem/ll_malloc.* mem/memdbg.h mem/sf_malloc.* mi/*.h mod_fix.*
++ modules/tm/rpc_uac.* modules/counters/counters.c modules/tls/sbufq.h
++ modules/tls/tls_bio.* modules/tls/tls_cfg.* modules/tls/tls_cfg.h
++ modules/tls/tls_ct_wrq.* modules/tls/tls_ct_q.h modules/tls/tls_domain.*
++ modules/tls/tls_server.h modules/tls/tls_locking.* modules/tls/tls_rpc.*
++ modules/tls/tls_server.c modules/malloc_test/malloc_test.c modules/blst/blst.c
++ parser/case_p_* parser/case_reas.h pvapi.h pv_core.* rand/fastrand.* raw_*
++ rpc_lookup.* rvalue.* sctp_* ser_time.h shm_init.* sip_msg_clone.* sock_ut.*
++ sr_compat.* str_hash.h switch.* tcp_ev.h tcp_int_send.h tcp_options.*
++ tcp_read.h tcp_stats.* timer_proc.* tls_hooks.* tls_hooks_init.h ver.*
++Copyright: 2006-2010 iptelorg GmbH
++License: ISC
++
++Files: modules/tls/tls_select.* modules/tls/tls_dump_vf.*
++Copyright: 2005-2010 iptelorg GmbH
++License: GPL-2 + OpenSSL exception
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++ * Exception: permission to copy, modify, propagate, and distribute a work
++ * formed by combining OpenSSL toolkit software and the code in this file,
++ * such as linking with software components and libraries released under
++ * OpenSSL project license.
++
++Files: modules/websocket/* modules/outbound/* modules/auth_ephemeral/*
++Copyright: 2012-2013 Crocodile RCS Ltd
++License: GPL-2 + OpenSSL exception
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++ * Exception: permission to copy, modify, propagate, and distribute a work
++ * formed by combining OpenSSL toolkit software and the code in this file,
++ * such as linking with software components and libraries released under
++ * OpenSSL project license.
++
++Files: daemonize.* fastlock.h lock_ops.h mem/mem.* mem/f_malloc.h
++ mem/meminfo.h mem/memtest.c mem/shm_mem.c mem/q_malloc.h mem/q_malloc.c
++ mem/shm_mem.h mem/f_malloc.c modules/tls/tls_rpc.c modules/tls/tls_server.c
++ modules/tls/tls_domain.c modules/tls/tls_domain.h modules/tls/tls_server.h
++ modules/tls/tls_rpc.h pt.c pt.h sched_yield.h ut.c ut.h
++Copyright: 2001-2003 FhG Fokus
++License: ISC
++
++Files: events.* modules/topoh/*
++Copyright: 2009 SIP-Router.org
++License: ISC
++
++Files: modules/mi_rpc/mi_rpc_mod.c modules/pv/pv_xavp.*
++ modules/usrloc/ul_rpc.* ppcfg.* xavp.*
++Copyright: 2009-2010 Daniel-Constantin Mierla (asipto.com)
++License: ISC
++
++Files: obsolete/jabber_k/tree234.*
++Copyright: 1999, 2000, 2001, Simon Tatham
++License: Expat
++ Permission is hereby granted, free of charge, to any person
++ obtaining a copy of this software and associated documentation
++ files (the "Software"), to deal in the Software without
++ restriction, including without limitation the rights to use,
++ copy, modify, merge, publish, distribute, sublicense, and/or
++ sell copies of the Software, and to permit persons to whom the
++ Software is furnished to do so, subject to the following
++ conditions:
++ .
++ The above copyright notice and this permission notice shall be
++ included in all copies or substantial portions of the Software.
++ .
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
++ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++ NONINFRINGEMENT.  IN NO EVENT SHALL SIMON TATHAM BE LIABLE FOR
++ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
++ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
++ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
++ SOFTWARE.
++
++Files: modules/xmpp/xsnprintf.c obsolete/jabber_s/xsnprintf.c obsolete/jabber_k/xsnprintf.c
++Copyright: 1995-1998, The Apache Group
++License: Apache-1.0
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ .
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ .
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in
++    the documentation and/or other materials provided with the
++    distribution.
++ .
++ 3. All advertising materials mentioning features or use of this
++    software must display the following acknowledgment:
++    "This product includes software developed by the Apache Group
++    for use in the Apache HTTP server project (http://www.apache.org/)."
++ .
++ 4. The names "Apache Server" and "Apache Group" must not be used to
++    endorse or promote products derived from this software without
++    prior written permission.
++ .
++ 5. Redistributions of any form whatsoever must retain the following
++    acknowledgment:
++    "This product includes software developed by the Apache Group
++    for use in the Apache HTTP server project (http://www.apache.org/)."
++ .
++ THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY
++ EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE APACHE GROUP OR
++ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ OF THE POSSIBILITY OF SUCH DAMAGE.
++
++Files: modules/mi_xmlrpc/abyss*
++Copyright: 2000, Moez Mahfoudh <mmoez at bigfoot.com>
++License: BSD-3-clause
++
++Files: list.h
++Copyright: 1991, 1993 The Regents of the University of California
++License: BSD-3-clause
++
++Files: modules/tm/t_serial.*
++Copyright: 2008 Juha Heinanen
++License: BSD-2-clause
++
++Files: parser/sdp/sdp.* parser/sdp/sdp_helpr_funcs.* parser/sdp/sdp_cloner.h
++Copyright:
++ 2008-2009 SOMA Networks, INC.
++ 2010 VoIP Embedded, Inc
++License: BSD-2-clause
++
++Files: modules/tls/fixed_c_zlib.h
++Copyright:1998-2005 The OpenSSL Project
++Comment: file copied from OpenSSL 0.9.8, refers to OpenSSL License. Note that
++ this code will not build by default in the Debian packaging.
++License: OpenSSL
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ .
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ .
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in
++    the documentation and/or other materials provided with the
++    distribution.
++ .
++ 3. All advertising materials mentioning features or use of this
++    software must display the following acknowledgment:
++    "This product includes software developed by the OpenSSL Project
++    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
++ .
++ 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
++    endorse or promote products derived from this software without
++    prior written permission. For written permission, please contact
++    openssl-core at openssl.org.
++ .
++ 5. Products derived from this software may not be called "OpenSSL"
++    nor may "OpenSSL" appear in their names without prior written
++    permission of the OpenSSL Project.
++ .
++ 6. Redistributions of any form whatsoever must retain the following
++    acknowledgment:
++    "This product includes software developed by the OpenSSL Project
++    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
++ .
++ THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
++ EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
++ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ OF THE POSSIBILITY OF SUCH DAMAGE.
++
++Files: md5.* md5utils.c
++Copyright: 1991-2, RSA Data Security, Inc
++Comment: Note that md5.c and md5.h have been replaced in the patches
++ plum_md5*.patch .
++ .
++ As for md5utils.c, according to a mail from Upstream (Daniel-Constantin
++ Mierla): while the initial commit log for it states that it is derived
++ from mddriver.c of RFC 1321, it seems that it was, in fact, written from
++ scratch by Jiri Kuthan (a core developer of SER at that time, working for
++ FhG Fokus Institute). As you can see it's rather trivial and uses a data
++ type of SER ("str").  I didn't reimplement it as it's too trivial and
++ looks like there's no other way to implement it.
++License: RSA-MD5
++ License to copy and use this software is granted provided that it
++ is identified as the "RSA Data Security, Inc. MD5 Message-Digest
++ Algorithm" in all material mentioning or referencing this software
++ or this function.
++ .
++ License is also granted to make and use derivative works provided
++ that such works are identified as "derived from the RSA Data
++ Security, Inc. MD5 Message-Digest Algorithm" in all material
++ mentioning or referencing the derived work.
++ .
++ RSA Data Security, Inc. makes no representations concerning either
++ the merchantability of this software or the suitability of this
++ software for any particular purpose. It is provided "as is"
++ without express or implied warranty of any kind.
++ .
++ These notices must be retained in any copies of any part of this
++ documentation and/or software.
++
++Files: mem/dl_*
++Copyright: n/a
++License: public-domain
++ This is a version (aka dlmalloc) of malloc/free/realloc written by
++ Doug Lea and released to the public domain, as explained at
++ http://creativecommons.org/licenses/publicdomain.  Send questions,
++ comments, complaints, performance data, etc to dl at cs.oswego.edu
++
++Files: rand/isaac/*
++Copyright: n/a
++License: public-domain
++ By Bob Jenkins.  My random number generator, ISAAC.  Public Domain.
++
++License: ISC
++ Permission to use, copy, modify, and distribute this software for any
++ purpose with or without fee is hereby granted, provided that the above
++ copyright notice and this permission notice appear in all copies.
++ .
++ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
++ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
++ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
++ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
++ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
++ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
++ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
++
++Files: lib/srutils/srjson.*
++Copyright: 2009 Dave Gamble
++License: MIT
++ Permission is hereby granted, free of charge, to any person obtaining a copy
++ of this software and associated documentation files (the "Software"), to deal
++ in the Software without restriction, including without limitation the rights
++ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
++ copies of the Software, and to permit persons to whom the Software is
++ furnished to do so, subject to the following conditions:
++ .
++ The above copyright notice and this permission notice shall be included in
++ all copies or substantial portions of the Software.
++ ,
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
++ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
++ THE SOFTWARE.
++
++License: BSD-3-clause
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in the
++    documentation and/or other materials provided with the distribution.
++ 4. Neither the name of the University nor the names of its contributors
++    may be used to endorse or promote products derived from this software
++    without specific prior written permission.
++ .
++ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
++ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
++ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
++ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
++ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
++ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
++ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
++ SUCH DAMAGE.
++
++License: BSD-2-clause
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions are met:
++ .
++  1. Redistributions of source code must retain the above copyright notice,
++     this list of conditions and the following disclaimer.
++  2. Redistributions in binary form must reproduce the above copyright
++     notice, this list of conditions and the following disclaimer in the
++     documentation and/or other materials provided with the distribution.
++ .
++ THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS OR
++ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
++ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
++ EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
++ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
++ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
++ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
++ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
++ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --cc pkg/kamailio/deb/jessie/kamailio-autheph-modules.lintian-overrides
index 0000000,0000000..dcb3d18
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/jessie/kamailio-autheph-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-autheph-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/jessie/kamailio-berkeley-bin.dirs
index 0000000,0000000..236670a
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/jessie/kamailio-berkeley-bin.dirs
@@@ -1,0 -1,0 +1,1 @@@
++usr/sbin
diff --cc pkg/kamailio/deb/jessie/kamailio-dnssec-modules.lintian-overrides
index 0000000,0000000..10165fe
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/jessie/kamailio-dnssec-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-dnssec-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/jessie/kamailio-outbound-modules.lintian-overrides
index 0000000,0000000..3050cfe
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/jessie/kamailio-outbound-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-outbound-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/jessie/kamailio-tls-modules.lintian-overrides
index 0000000,0000000..bbe0d37
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/jessie/kamailio-tls-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-tls-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/jessie/kamailio-websocket-modules.lintian-overrides
index 0000000,0000000..8f384fb
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/jessie/kamailio-websocket-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-websocket-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/jessie/kamailio.README.Debian
index 4eaf90b,0000000..d25769a
mode 100644,000000..100644
--- a/pkg/kamailio/deb/jessie/kamailio.README.Debian
+++ b/pkg/kamailio/deb/jessie/kamailio.README.Debian
@@@ -1,38 -1,0 +1,39 @@@
 +Kamailio for Debian
- ------------------
++-------------------
 +
 +* init script check for fork=no
 +-------------------------------
 +
 +The Kamailio init script will not start Kamailio on boot if fork=no is
 +specified in the config file. The check in the initscript will match
 +any occurrence of fork=no in the file, even inside C-style comments.
 +
 +You can disable this check in the init script if you wish; just comment
 +out the calls to the check_fork function in the script. Your changes to
 +the init script will be preserved upon upgrade, as the file is tagged
 +as a conffile.
 +
 +
 +* Kamailio setup
- ---------------
++----------------
 +
 +To setup Kamailio, you need to:
 + - configure Kamailio properly to suit your needs
 + - edit /etc/default/kamailio, adjust the MEMORY parameter and set
 +   RUN_KAMAILIO to "yes"
 +
 +If you are building an HA cluster using heartbeat or similar, you'll want
 +to disable the init script by running:
 +
 +  update-rc.d kamailio remove
 +
 +so that Kamailio will not be launched at system startup. You still need
 +to set RUN_KAMAILIO to "yes" if you want to use the /etc/init.d/kamailio init
 +script.
 +
 +Set the DUMP_CORE parameter in /etc/default/kamailio to "yes" if you want to
 +get a core dump in case Kamailio crashes. The debug symbols for Kamailio are
 +provided by the kamailio-dbg package.
 +
- -- Julien BLACHE <jblache at debian.org>, Fri, 08 Sep 2006 14:43:21 +0200
++
++ -- Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 11 Dec 2013 16:07:11 +0100
diff --cc pkg/kamailio/deb/jessie/kamailio.default
index 3221104,0000000..0cfc8c8
mode 100644,000000..100644
--- a/pkg/kamailio/deb/jessie/kamailio.default
+++ b/pkg/kamailio/deb/jessie/kamailio.default
@@@ -1,33 -1,0 +1,28 @@@
 +#
 +# Kamailio startup options
 +#
 +
 +# Set to yes to enable kamailio, once configured properly.
- RUN_KAMAILIO=no
++#RUN_KAMAILIO=yes
 +
 +# User to run as
- USER=kamailio
++#USER=kamailio
 +
 +# Group to run as
- GROUP=kamailio
++#GROUP=kamailio
 +
- # Amount of shared memory to allocate for the running Kamailio server (in Mb)
- SHM_MEMORY=64
++# Amount of shared and private memory to allocate
++# for the running Kamailio server (in Mb)
++#SHM_MEMORY=64
++#PKG_MEMORY=4
 +
- # Amount of private memory for each Kamailio process (in Mb)
- PKG_MEMORY=4
- 
- # Switch to USER and GROUP by start-stop-daemon or by kamailio itself
- # - with recent kernels, changing user ID inside applicaton prevents
- #   dumping core files. If the value is 'yes', the suid is done by
- #   start-stop-daemon, otherwise it is done by kamailio itself
- SSD_SUID=no
++# Config file
++#CFGFILE=/etc/kamailio/kamailio.cfg
 +
 +# Enable the server to leave a core file when it crashes.
 +# Set this to 'yes' to enable Kamailio to leave a core file when it crashes
 +# or 'no' to disable this feature. This option is case sensitive and only
 +# accepts 'yes' and 'no' and only in lowercase letters.
- # On some systems (e.g. Ubuntu 6.10, Debian 4.0) it is necessary to specify
- # a directory for the core files to get a dump. Look into the kamailio
- # init file for an example configuration.
- DUMP_CORE=no
++# On some systems it is necessary to specify a directory for the core files
++# to get a dump. Look into the kamailio init file for an example configuration.
++#DUMP_CORE=yes
diff --cc pkg/kamailio/deb/jessie/kamailio.init
index 6b0a1ee,0000000..1f8f796
mode 100644,000000..100644
--- a/pkg/kamailio/deb/jessie/kamailio.init
+++ b/pkg/kamailio/deb/jessie/kamailio.init
@@@ -1,240 -1,0 +1,162 @@@
 +#! /bin/sh
 +#
 +### BEGIN INIT INFO
 +# Provides:          kamailio
 +# Required-Start:    $syslog $network $local_fs $remote_fs $time
++# Should-Start:      $named slapd mysql postgresql snmpd radiusd
++# Should-Stop:       $named slapd mysql postgresql snmpd radiusd
 +# Required-Stop:     $syslog $network $local_fs $remote_fs
 +# Default-Start:     2 3 4 5
 +# Default-Stop:      0 1 6
- # Should-Start:      postgresql mysql radius
- # Should-Stop:       postgresql mysql radius
 +# Short-Description: Start the Kamailio SIP proxy server
 +# Description:       Start the Kamailio SIP proxy server
 +### END INIT INFO
 +
++. /lib/lsb/init-functions
 +
 +PATH=/sbin:/bin:/usr/sbin:/usr/bin
 +DAEMON=/usr/sbin/kamailio
 +NAME=kamailio
- DESC=Kamailio
++DESC="Kamailio SIP server"
 +HOMEDIR=/var/run/kamailio
 +PIDFILE=$HOMEDIR/$NAME.pid
 +DEFAULTS=/etc/default/kamailio
 +CFGFILE=/etc/kamailio/kamailio.cfg
 +RUN_KAMAILIO=no
- 
++USER=kamailio
++GROUP=kamailio
++# Amount of shared and private memory to allocate
++# for the running Kamailio server (in Mb)
++SHM_MEMORY=64
++PKG_MEMORY=4
++DUMP_CORE=no
 +
 +# Do not start kamailio if fork=no is set in the config file
- # otherwise the boot process will just stop.
++# otherwise the boot process will just stop
 +check_fork ()
 +{
-   if grep -q "^[[:space:]]*fork[[:space:]]*=[[:space:]]*no.*" $CFGFILE; then
-     echo "Not starting $DESC: fork=no specified in config file. Run /etc/init.d/kamailio debug instead."
-     exit 1
-   fi
++    if grep -q "^[[:space:]]*fork[[:space:]]*=[[:space:]]*no.*" $CFGFILE; then
++	log_failure_msg "Not starting $DESC: fork=no specified in config file; run /etc/init.d/kamailio debug instead"
++	exit 0
++    fi
 +}
 +
- 
 +check_kamailio_config ()
 +{
-   # Check if kamailio configuration is valid before starting the server.
-   set +e
-   out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
-   retcode=$?
-   set -e
-   if [ "$retcode" != '0' ]; then
-     echo "Not starting $DESC: invalid configuration file!"
-     echo -e "\n$out\n"
-     exit 1
-   fi
- }
- 
- 
- check_homedir ()
- {
-   # Create HOMEDIR directory in case it doesn't exist.
-   # Useful in Ubuntu as /var/run/ content is deleted in shutdown.
-   if [ ! -d $HOMEDIR ]; then
-     mkdir $HOMEDIR
-   fi
- 
-   # Set the appropiate owner and group
-   chown ${USER}:${GROUP} $HOMEDIR
++	# Check if kamailio configuration is valid before starting the server
++	set +e
++	out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
++	retcode=$?
++	set -e
++	if [ "$retcode" != '0' ]; then
++	    log_failure_msg "Not starting $DESC: invalid configuration file!"
++	    log_failure_msg
++	    log_failure_msg "$out"
++	    log_faiulre_msg
++	    exit 1
++	fi
 +}
 +
- 
 +create_radius_seqfile ()
 +{
-   # Create a radius sequence file to be used by the radius client if
-   # radius accounting is enabled. This is needed to avoid any issue
-   # with the file not being writable if kamailio first starts as user
-   # root because DUMP_CORE is enabled and creates this file as user
-   # root and then later it switches back to user kamailio and cannot
-   # write to the file. If the file exists before kamailio starts, it
-   # won't change it's ownership and will be writable for both root
-   # and kamailio, no matter what options are chosen at install time
-   RADIUS_SEQ_FILE=$HOMEDIR/kamailio_radius.seq
- 
-   if [ ! -f $RADIUS_SEQ_FILE ]; then
-       touch $RADIUS_SEQ_FILE
-   fi
- 
-   chown ${USER}:${GROUP} $RADIUS_SEQ_FILE
-   chmod 660 $RADIUS_SEQ_FILE
++    # Create a radius sequence file to be used by the radius client if
++    # radius accounting is enabled. This is needed to avoid any issue
++    # with the file not being writable if kamailio first starts as user
++    # root because DUMP_CORE is enabled and creates this file as user
++    # root and then later it switches back to user kamailio and cannot
++    # write to the file. If the file exists before kamailio starts, it
++    # won't change it's ownership and will be writable for both root
++    # and kamailio, no matter what options are chosen at install time
++    RADIUS_SEQ_FILE=/var/run/kamailio/kamailio_radius.seq
++    if [ -d /var/run/kamailio ]; then
++	chown ${USER}:${GROUP} /var/run/kamailio
++
++	if [ ! -f $RADIUS_SEQ_FILE ]; then
++	    touch $RADIUS_SEQ_FILE
++	fi
++
++	chown ${USER}:${GROUP} $RADIUS_SEQ_FILE
++	chmod 660 $RADIUS_SEQ_FILE
++    fi
 +}
 +
++test -f $DAEMON || exit 0
 +
- if [ ! -f $DAEMON ]; then
-   echo "No $DESC daemon at $DAEMON."
-   case "$1" in
-   status)
-     # LSB - 4: program or service status is unknown.
-     exit 4
-     ;;
-   *)
-     # LSB - 5: program is not installed.
-     exit 5
-     ;;
-   esac
- fi
- 
- 
- # Load startup options if available.
++# Load startup options if available
 +if [ -f $DEFAULTS ]; then
-   . $DEFAULTS || true
++   . $DEFAULTS || true
 +fi
 +
- 
 +if [ "$RUN_KAMAILIO" != "yes" ]; then
-   echo "$DESC not yet configured. Edit $DEFAULTS first."
-   exit 0
++    log_failure_msg "Kamailio not yet configured. Edit /etc/default/kamailio first."
++    exit 0
 +fi
 +
- 
 +set -e
 +
- 
 +SHM_MEMORY=$((`echo $SHM_MEMORY | sed -e 's/[^0-9]//g'`))
 +PKG_MEMORY=$((`echo $PKG_MEMORY | sed -e 's/[^0-9]//g'`))
- [ $SHM_MEMORY -le 0 ] && SHM_MEMORY=64
- [ $PKG_MEMORY -le 0 ] && PKG_MEMORY=4
 +[ -z "$USER" ]  && USER=kamailio
 +[ -z "$GROUP" ] && GROUP=kamailio
- 
++[ $SHM_MEMORY -le 0 ] && SHM_MEMORY=64
++[ $PKG_MEMORY -le 0 ] && PKG_MEMORY=4
 +
 +if test "$DUMP_CORE" = "yes" ; then
-   # set proper ulimit.
-   ulimit -c unlimited
- 
-   # directory for the core dump files.
-   # COREDIR=/tmp/corefiles
-   # [ -d $COREDIR ] || mkdir $COREDIR
-   # chmod 777 $COREDIR
-   # echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
++    # set proper ulimit
++    ulimit -c unlimited
++
++    # directory for the core dump files
++    # COREDIR=/home/corefiles
++    # [ -d $COREDIR ] || mkdir $COREDIR
++    # chmod 777 $COREDIR
++    # echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
 +fi
 +
- 
- if [ "$SSD_SUID" != "yes" ]; then
-   OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
-   SSDOPTS=""
- else
-   OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY"
-   SSDOPTS="--chuid $USER:$GROUP"
++# /var/run can be a tmpfs
++if [ ! -d $HOMEDIR ]; then
++    mkdir -p $HOMEDIR
 +fi
 +
- 
- start_kamailio_daemon ()
- {
-   start-stop-daemon --start --quiet --pidfile $PIDFILE $SSDOPTS \
-     --exec $DAEMON -- $OPTIONS
-   res=$?
- 
-   echo -n "$NAME "
-   if [ $res -eq 0 ] ; then
-     echo "started."
-     exit 0
-   else
-     if [ ! -r "$PIDFILE" ]; then
-       echo "error, failed to start."
-       exit 1
-     elif read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
-       echo "already running."
-       exit 0
-     else
-       echo "error, failed to start ($PIDFILE exists)."
-       exit 1
-     fi
-   fi
- }
- 
++OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
 +
 +case "$1" in
 +  start|debug)
-     check_kamailio_config
-     check_homedir
-     create_radius_seqfile
- 
-     if [ "$1" != "debug" ]; then
-       check_fork
-     fi
- 
-     echo "Starting $DESC:"
-     set +e
-     start_kamailio_daemon
-     ;;
- 
++	check_kamailio_config
++	create_radius_seqfile
++
++	if [ "$1" != "debug" ]; then
++	    check_fork
++	fi
++
++	log_daemon_msg "Starting $DESC: $NAME"
++	start-stop-daemon --start --quiet --pidfile $PIDFILE \
++		--exec $DAEMON -- $OPTIONS || log_failure_msg " already running"
++	log_end_msg 0
++	;;
 +  stop)
-     echo -n "Stopping $DESC: $NAME "
-     set +e
-     start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
-       --exec $DAEMON
- 
-     if [ $? -eq 0 ] ; then
-       echo "stopped."
-       exit 0
-     else
-       echo "failed to stop."
-       exit 1
-     fi
-     ;;
-     
++	log_daemon_msg "Stopping $DESC: $NAME"
++	start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
++		--exec $DAEMON
++	log_end_msg 0
++	;;
 +  restart|force-reload)
-     check_kamailio_config
-     check_homedir
-     create_radius_seqfile
- 
-     echo "Restarting $DESC:"
-     set +e
-     start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE --retry=5 \
-       --exec $DAEMON
-     if [ $? -ne 0 ] ; then
-       echo "$NAME failed to stop."
-       exit 1
-     fi
-     start_kamailio_daemon
-     ;;
++	check_kamailio_config
++	create_radius_seqfile
 +
++	$0 stop
++	sleep 1
++	$0 start
++	;;
 +  status)
-     echo -n "Status of $DESC: $NAME "
-     if [ ! -r "$PIDFILE" ]; then
-       echo "is not running."
-       exit 3
-     fi
-     if read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
-       echo "is running."
-       exit 0
-     else
-       echo "is not running but $PIDFILE exists."
-       exit 1
-     fi
-     ;;
++	log_daemon_msg "Status of $DESC: "
 +
++	status_of_proc -p"$PIDFILE" $NAME $NAME
++	;;
 +  *)
-     N=/etc/init.d/$NAME
-     echo "Usage: $N {start|stop|restart|force-reload|debug|status}" >&2
-     exit 1
-     ;;
++	N=/etc/init.d/$NAME
++	echo "Usage: $N {start|stop|restart|force-reload|status|debug}" >&2
++	exit 1
++	;;
 +esac
 +
- 
 +exit 0
diff --cc pkg/kamailio/deb/jessie/kamailio.lintian-overrides
index 0000000,0000000..18152ed
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/jessie/kamailio.lintian-overrides
@@@ -1,0 -1,0 +1,2 @@@
++kamailio binary: example-interpreter-not-absolute usr/share/doc/kamailio/examples/outbound/edge.cfg #!KAMAILIO
++kamailio binary: example-interpreter-not-absolute usr/share/doc/kamailio/examples/outbound/registrar.cfg #!KAMAILIO
diff --cc pkg/kamailio/deb/jessie/kamailio.postinst
index fc7e4a8,0000000..4ee38ec
mode 100644,000000..100644
--- a/pkg/kamailio/deb/jessie/kamailio.postinst
+++ b/pkg/kamailio/deb/jessie/kamailio.postinst
@@@ -1,48 -1,0 +1,24 @@@
 +#! /bin/sh
- #
- # $Id$
- 
- PKG=kamailio
- DEFAULTS=/etc/default/kamailio
- HOMEDIR=/var/run/kamailio
 +
 +set -e
 +
- # summary of how this script can be called:
- #        * <postinst> `configure' <most-recently-configured-version>
- #        * <old-postinst> `abort-upgrade' <new version>
- #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
- #          <new-version>
- #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
- #          <failed-install-package> <version> `removing'
- #          <conflicting-package> <version>
- # for details, see http://www.debian.org/doc/debian-policy/ or
- # the debian-policy package
- #
- # quoting from the policy:
- #     Any necessary prompting should almost always be confined to the
- #     post-installation script, and should be protected with a conditional
- #     so that unnecessary prompting doesn't happen if a package's
- #     installation fails and the `postinst' is called with `abort-upgrade',
- #     `abort-remove' or `abort-deconfigure'.
- 
 +case "$1" in
 +    configure)
 +        adduser --quiet --system --group --disabled-password \
-                 --shell /bin/false --gecos "Kamailio" \
-                 --home $HOMEDIR kamailio || true
++                --shell /bin/false --gecos "Kamailio SIP Server" \
++                --home /var/run/kamailio kamailio || true
 +
 +        ;;
 +
 +    abort-upgrade|abort-remove|abort-deconfigure)
 +
 +        ;;
 +
 +    *)
 +        echo "postinst called with unknown argument \`$1'" >&2
 +        exit 1
 +        ;;
 +esac
 +
 +#DEBHELPER#
 +
diff --cc pkg/kamailio/deb/jessie/rules
index 25b9656,0000000..f1381b7
mode 100755,000000..100755
--- a/pkg/kamailio/deb/jessie/rules
+++ b/pkg/kamailio/deb/jessie/rules
@@@ -1,228 -1,0 +1,202 @@@
 +#!/usr/bin/make -f
 +# Sample debian/rules that uses debhelper.
 +# GNU copyright 1997 to 1999 by Joey Hess.
- #
- # $Id$
- #
- # History:
- # --------
- #  2009-07-08  updated for sip-router (andrei)
- #  2009-12-10  updated for kamailio 3.0 (daniel)
 +
++DEBVERSION:=$(shell head -n 1 debian/changelog \
++                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
++UPVERSION:=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
++
++FILENAME := kamailio_$(UPVERSION).orig.tar.gz
++URL := http://www.kamailio.org/pub/kamailio/$(UPVERSION)/src/kamailio-$(UPVERSION)_src.tar.gz
++
++DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
++
++export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++DPKG_EXPORT_BUILDFLAGS = 1
++include /usr/share/dpkg/buildflags.mk
 +
 +# Uncomment this to turn on verbose mode.
 +#export DH_VERBOSE=1
 +
- # This is the debhelper compatibility version to use.
- # export DH_COMPAT=4
- #  -- already set in compat
- export DEB_BUILD_OPTIONS:="$(DEB_BUILD_OPTIONS) debug"
++# java stuff using libgcj12
++export JAVA_HOME=/usr/lib/jvm/java-gcj-4.6
++
++# choose freeradius
++export FREERADIUS=1
 +
 +# modules not in the "main" kamailio package
- EXCLUDED_MODULES= 
++EXCLUDED_MODULES=
 +
 +# extra modules to skip, because they are not compilable now
 +# - regardless if they go to the main kamailio package or to some module package,
 +# they will be excluded from compile and install of all
- EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy
- #EXTRA_EXCLUDED_MODULES=
- 
- # possible module directories that can appear in MODULES_SP
- # (only used for deducing a module name)
- MDIRS=modules
- 
- # modules packaged in separate packages (complete with full modules_* path)
- # with the package name: kamailio-$(module_name)-module
- MODULES_SP=
++EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc
 +
 +# module groups that are packaged in seperate packages
 +# (with the name kamailio-$(group_name)-modules)
 +# Note: the order is important (should be in dependency order, the one
 +# on which other depend first)
 +PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
- 			   ldap xml perl utils purple memcached tls \
- 			   snmpstats carrierroute xmpp cpl lua python geoip \
- 			   redis sqlite json mono ims outbound websocket \
- 			   autheph sctp java dnssec
++			   ldap xml perl utils lua memcached \
++			   snmpstats carrierroute xmpp cpl redis python geoip\
++			   sqlite json mono ims sctp java \
++			   purple tls outbound websocket autheph dnssec
 +
 +# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
- LIBDIR ?= lib
++LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
 +
 +# directories with possible duplicate libraries (that should be deleted
 +# from current module* packages)
 +DUP_LIBS_DIRS=$(CURDIR)/debian/kamailio/usr/$(LIBDIR)/kamailio \
 +			$(CURDIR)/debian/kamailio-db-modules/usr/$(LIBDIR)/kamailio
 +
- # modules names out of modules sp
- MODULES_SP_NAMES=$(filter-out $(MDIRS),$(subst /, ,$(MODULES_SP)))
- 
 +# "function" to get package short name out of a dir/module_name
 +# it also transforms db_foo into foo
 +mod_name=$(subst db_,,$(lastword $(subst /, ,$(1))))
 +
 +define PACKAGE_GRP_BUILD_template
 +	# package all the modules in PACKAGE_GROUPS in separate packages
 +	$(foreach grp,$(PACKAGE_GROUPS),\
 +		$(MAKE) every-module group_include="k$(grp)"
 +	)
 +endef
 +
 +
- define PACKAGE_MODULE_BUILD_template
- 	# package all the modules MODULES_SP in separate packages
- 	$(foreach mod,$(MODULES_SP),\
- 		$(MAKE) modules modules="$(mod)"
- 	)
- endef
- 
- 
 +define PACKAGE_GRP_INSTALL_template
 +	$(foreach grp,$(PACKAGE_GROUPS),\
- 		$(MAKE) install-modules-all group_include="k$(grp)" \
++		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
 +		basedir=$(CURDIR)/debian/kamailio-$(grp)-modules \
 +		cfg_prefix=$(CURDIR)/debian/kamailio-$(grp)-modules \
 +		doc-dir=share/doc/kamailio-$(grp)-modules
 +		# eliminate duplicate libs
 +		-for d in $(DUP_LIBS_DIRS); do \
 +			test "$$d" != "$(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio" &&\
- 			for r in $$d/lib*; do \
- 				if [ "$$r" != "$$d/lib*" ]; then \
- 					echo "removing $(grp) lib `basename $$r` present also in $$d";\
- 					rm -f $(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
- 				fi \
++			for r in `find $$d -name 'lib*'|xargs`; do \
++				echo "removing $(grp) lib `basename $$r` present also in $$d";\
++				rm -f $(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
 +			done ; \
 +		done
++		find $(CURDIR)/debian/kamailio-$(grp)-modules -depth -empty -type d -exec rmdir {} \;
 +	)
 +endef
 +
 +
- define PACKAGE_MODULE_INSTALL_template
- 	$(foreach mod,$(MODULES_SP),
- 		$(MAKE) install-modules-all modules="$(mod)" \
- 				modules_s="" modules_k="" \
- 				basedir=$(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module \
- 				doc-dir=share/doc/kamailio-$(call mod_name,$(mod))-module
- 		# eliminate duplicate libs
- 		-for d in $(DUP_LIBS_DIRS); do \
- 			test "$$d" != "$(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module/usr/$(LIBDIR)/kamailio" &&\
- 			for r in $$d/lib*; do \
- 				if [ "$$r" != "$$d/lib*" ]; then \
- 					echo "removing $(call mod_name, $(mod)) lib `basename $$r` present also in $$d";\
- 					rm -f $(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
- 				fi \
- 			done ; \
- 		done
- 	)
- endef
- 
 +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 +	CFLAGS += -g
 +endif
 +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 +	INSTALL_PROGRAM += -s
 +endif
 +
++# CFLAGS + CPPFLAGS -> CC_EXTRA_OPTS
++# LDFLAGS -> LD_EXTRA_OPTS
++CUSTOM_BUILDFLAGS:=$(shell dpkg-buildflags --export=configure| \
++sed -e 's/" CPPFLAGS="/ /' -e 's/CFLAGS/CC_EXTRA_OPTS/g' -e 's/LDFLAGS/LD_EXTRA_OPTS/g')
++
 +configure: configure-stamp
 +configure-stamp:
 +	dh_testdir
 +	# Add here commands to configure the package.
 +	$(MAKE) FLAVOUR=kamailio cfg prefix=/usr cfg_prefix=$(CURDIR)/debian/kamailio \
 +			cfg_target=/etc/kamailio/ \
 +			basedir=$(CURDIR)/debian/kamailio \
 +			skip_modules="$(EXCLUDED_MODULES) $(EXTRA_EXCLUDED_MODULES)" \
++			$(CUSTOM_BUILDFLAGS) \
 +			group_include="kstandard"
 +
 +	touch configure-stamp
 +
 +
 +build: build-stamp
- 
- build-stamp: configure-stamp 
++build-arch: build-stamp
++build-indep: build-stamp
++build-stamp: configure-stamp
 +	dh_testdir
 +	# Add here commands to compile the package.
 +	$(MAKE) all
 +	# make groups
 +	$(call PACKAGE_GRP_BUILD_template)
 +	# make single-module packages
 +	$(call PACKAGE_MODULE_BUILD_template)
 +	touch build-stamp
 +
 +clean:
 +	dh_testdir
 +	dh_testroot
 +	rm -f build-stamp configure-stamp
 +	# Add here commands to clean up after the build process.
- 	-$(MAKE) maintainer-clean
++	$(MAKE) maintainer-clean
 +	dh_clean
 +
 +install: build
 +	dh_testdir
 +	dh_testroot
- 	dh_clean -k
++	dh_prep
 +	dh_installdirs
 +	# Add here commands to install the package into debian/kamailio
- 	$(MAKE) install group_include="kstandard"
- 	# fix etc/kamailio dir location -- not needed -- andrei
- 	# mv -f $(CURDIR)/debian/kamailio/usr/etc $(CURDIR)/debian/kamailio
++	$(MAKE) install LIBDIR=$(LIBDIR) group_include="kstandard"
 +	# make group packages
 +	$(call PACKAGE_GRP_INSTALL_template)
- 	# make single module packages
- 	$(call PACKAGE_MODULE_INSTALL_template)
++	mv $(CURDIR)/debian/kamailio-berkeley-modules/usr/sbin/kambdb_recover \
++		$(CURDIR)/debian/kamailio-berkeley-bin/usr/sbin/kambdb_recover
 +	# install /etc/default/kamailio file
 +	mkdir -p $(CURDIR)/debian/kamailio/etc/default
 +	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
- 	#dh_movefiles
- 
 +
 +
 +# This single target is used to build all the packages, all at once, or
 +# one at a time. So keep in mind: any options passed to commands here will
 +# affect _all_ packages. Anything you want to only affect one package
 +# should be put in another target, such as the install target.
- binary-common: 
++binary-common:
 +	dh_testdir
 +	dh_testroot
- 	dh_installdebconf	
++	dh_installdebconf
 +	dh_installdocs
 +	dh_installexamples
 +	dh_installmenu
- #	dh_installlogrotate
- #	dh_installemacsen
- #	dh_installpam
- #	dh_installmime
- 	dh_installinit  -- defaults 23
++	dh_installinit -pkamailio -- defaults 23
 +	dh_installcron
 +	dh_installman
 +	dh_installinfo
- #	dh_undocumented
- 	dh_installchangelogs ChangeLog 
++	dh_lintian
++	dh_installchangelogs ChangeLog
 +	dh_link
 +	dh_strip --dbg-package=kamailio-dbg
- 	dh_compress 
++	dh_compress
 +	dh_fixperms
 +	dh_makeshlibs
 +	dh_installdeb
- #	dh_perl
 +	dh_shlibdeps
 +	dh_gencontrol
 +	dh_md5sums
 +	dh_builddeb
 +
 +# Build architecture-independent packages using the common target
 +binary-indep: build install
 +# (Uncomment this next line if you have such packages.)
 +#        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
 +# We have nothing to do by default.
 +
 +
 +# Build architecture-dependent packages using the common target
 +binary-arch: build install
 +	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
 +
 +# Any other binary targets build just one binary package at a time.
 +binary-%: build install
 +	$(MAKE) -f debian/rules binary-common DH_OPTIONS=-p$*
 +
++print-version:
++	@@echo "Debian version:          $(DEBVERSION)"
++	@@echo "Upstream version:        $(UPVERSION)"
++
++get-orig-source:
++	@@dh_testdir
++	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
++	@@echo Downloading $(FILENAME) from $(URL) ...
++	@@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
++
 +binary: binary-indep binary-arch
 +.PHONY: build clean binary-indep binary-arch binary install configure
 +
diff --cc pkg/kamailio/deb/jessie/source.lintian-overrides
index 0000000,0000000..620d9ff
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/jessie/source.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio source: debian-watch-file-in-native-package
diff --cc pkg/kamailio/deb/jessie/source/format
index 0000000,0000000..89ae9db
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/jessie/source/format
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (native)
diff --cc pkg/kamailio/deb/jessie/watch
index 0000000,0000000..c50f31f
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/jessie/watch
@@@ -1,0 -1,0 +1,3 @@@
++version=3
++opts=dversionmangle=s/\~svn([\d]+)//; \
++http://www.kamailio.org/pub/kamailio/([\d.]+)/src/kamailio-([\d.]+)_src\.tar\.gz
diff --cc pkg/kamailio/deb/precise/changelog
index 753f2af,0000000..6a44d80
mode 100644,000000..100644
--- a/pkg/kamailio/deb/precise/changelog
+++ b/pkg/kamailio/deb/precise/changelog
@@@ -1,100 -1,0 +1,100 @@@
++kamailio (4.1.2) unstable; urgency=low
++
++  * update to 4.1.2 from upstream
++
++ -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 06 Mar 2014 15:25:35 +0100
++
 +kamailio (4.1.1) unstable; urgency=low
 +
 +  * update to 4.1.1 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 09 Jan 2014 15:45:35 +0100
 +
 +kamailio (4.1.0) unstable; urgency=low
 +
 +  * update to 4.1.0
 +
 + -- Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 04 Dec 2013 11:42:27 +0100
 +
 +kamailio (4.0.0) unstable; urgency=low
 +
 +  * update to 4.0.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 11 Mar 2013 10:40:30 +0100
 +
 +kamailio (3.4.0~dev0) unstable; urgency=low
 +
 +  * update version to 3.4.0~dev0
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Wed, 15 Jun 2012 03:15:00 +0100
 +
- kamailio (3.3-dev) unstable; urgency=low
- 
-   * Set version to 3.3-dev for dev builds
- 
-  -- Jon Bonilla <manwe at aholab.ehu.es>  Wed, 19 Oct 2011 17:24:00 +0100
- 
 +kamailio (3.2.0) unstable; urgency=low
 +
 +  * update to 3.2.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Fri, 29 Apr 2011 12:25:30 +0100
 +
 +kamailio (3.1.1) unstable; urgency=low
 +
 +  * update to 3.1.1 from upstream
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Fri, 3 Dec 2010 16:30:00 +0100
 +
 +kamailio (3.1.0) unstable; urgency=low
 +
 +  * update to 3.1.0 from upstream
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Wed, 6 Oct 2010 17:24:00 +0100
 +
 +kamailio (3.0.2.99) unstable; urgency=low
 +
 +  * update to 3.0.2.99 for development version builds
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Fri, 28 May 2010 22:26:00 +0100
 +
 +kamailio (3.0.2) unstable; urgency=low
 +
 +  * update to 3.0.2 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 27 May 2010 10:27:36 +0100
 +
 +kamailio (3.0.1) unstable; urgency=low
 +
 +  * update to 3.0.1 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 08 Mar 2010 20:30:48 +0100
 +
 +kamailio (3.0.0) unstable; urgency=low
 +
 +  * update to 3.0.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 11 Jan 2010 18:30:42 +0100
 +
 +kamailio (3.0.0-rc3) unstable; urgency=low
 +
 +  * update to 3.0.0-rc3 from upstream
 +  * updated debian/rules to work with the SIP Router style module packaging
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Fri, 10 Dec 2009 12:10:02 +0100
 +
 +kamailio (3.0.0-rc2) unstable; urgency=low
 +
 +  * update to 3.0.0-rc2 from upstream
 +  * updated debian/rules to work with the new style module packaging
 +
 + -- Jonas Bergler <jonas.bergler at staff.snap.net.nz>  Wed, 18 Nov 2009 12:30:02 +1300
 +
 +kamailio (1.5.0-svn1) unstable; urgency=low
 +
 +  * increment debian packaging for trunk
 +
 + -- Henning Westerholt <henning.westerholt at 1und1.de>  Mon, 02 Mar 2009 17:40:02 +0100
 +
 +kamailio (1.4.0-svn1) unstable; urgency=low
 +
 +  [ Klaus Darilion ]
 +  * first release of Kamailio (after renaming from Openser)
 +
 + -- Julien BLACHE <jblache at debian.org>  Wed, 12 Dec 2007 17:25:31 +0100
 +
 +
diff --cc pkg/kamailio/deb/precise/compat
index 7ed6ff8,0000000..ec63514
mode 100644,000000..100644
--- a/pkg/kamailio/deb/precise/compat
+++ b/pkg/kamailio/deb/precise/compat
@@@ -1,1 -1,0 +1,1 @@@
- 5
++9
diff --cc pkg/kamailio/deb/precise/control
index 03ec249,0000000..7f2e53c
mode 100644,000000..100644
--- a/pkg/kamailio/deb/precise/control
+++ b/pkg/kamailio/deb/precise/control
@@@ -1,480 -1,0 +1,543 @@@
 +Source: kamailio
 +Section: net
 +Priority: optional
- Maintainer: Jon Bonilla <manwe at aholab.ehu.es>
++Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
++Uploaders: Victor Seva <linuxmaniac at torreviejawireless.org>,
++           Tzafrir Cohen <tzafrir at debian.org>
 +Build-Depends: bison,
-                debhelper (>= 5),
++               debhelper (>= 9),
 +               docbook-xml,
-                dpatch,
-                dpkg-dev (>= 1.13.19),
++               dpkg-dev (>= 1.16.1.1),
 +               flex,
 +               libconfuse-dev,
-                libcurl3-openssl-dev,
++               libcurl4-openssl-dev,
 +               libdb-dev (>= 4.6.19),
 +               libevent-dev,
 +               libexpat1-dev,
++               libgcj12-dev,
 +               libgeoip-dev (>= 1.4.5),
 +               libhiredis-dev (>= 0.10.0),
 +               libjson0-dev,
 +               libldap2-dev,
 +               liblua5.1-0-dev,
 +               libmemcached-dev,
 +               libmono-2.0-dev,
 +               libmysqlclient-dev,
 +               libncurses5-dev,
 +               libpcre3-dev,
 +               libperl-dev,
 +               libpq-dev,
 +               libpurple-dev,
 +               libradiusclient-ng-dev,
 +               libreadline-dev,
 +               libsasl2-dev,
 +               libsctp-dev,
 +               libsnmp-dev,
 +               libsqlite3-dev,
-                libssl-dev,
-                libxml2-dev,
-                libxmlrpc-c3-dev,
 +               libunistring-dev,
++               libxml2-dev,
++               openssl,
 +               python,
 +               python-dev,
 +               unixodbc-dev,
-                xsltproc,
-                zlib1g-dev
- Standards-Version: 3.9.3
++               xsltproc
++Standards-Version: 3.9.5
 +Homepage: http://www.kamailio.org/
++Vcs-git: git://anonscm.debian.org/pkg-voip/kamailio.git
++Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-voip/kamailio.git
 +
 +Package: kamailio
- Architecture: any
- Depends: adduser,
-          ${misc:Depends},
-          ${shlibs:Depends}
- Conflicts: kamailio-regex-modules
++Architecture: linux-any
++Multi-Arch: foreign
++Pre-Depends: ${misc:Pre-Depends}
++Depends: adduser, python, ${misc:Depends}, ${shlibs:Depends}
 +Suggests: kamailio-berkeley-modules,
 +          kamailio-carrierroute-modules,
 +          kamailio-cpl-modules,
 +          kamailio-dbg,
 +          kamailio-ldap-modules,
 +          kamailio-lua-modules,
-           kamailio-mono-modules,
 +          kamailio-mysql-modules,
 +          kamailio-perl-modules,
 +          kamailio-postgres-modules,
 +          kamailio-presence-modules,
 +          kamailio-python-modules,
 +          kamailio-radius-modules,
 +          kamailio-snmpstats-modules,
 +          kamailio-tls-modules,
 +          kamailio-unixodbc-modules,
 +          kamailio-xml-modules,
 +          kamailio-xmpp-modules
 +Description: very fast and configurable SIP proxy
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + C Shell-like scripting language provides full control over the server's
 + behaviour. Its modular architecture allows only required functionality to be
 + loaded.
 + .
-  Among others, the following modules are available: Digest Authentication, CPL
-  scripts, Instant Messaging, MySQL support, Presence Agent, Radius
-  Authentication, Record Routing, SMS Gateway, Jabber/XMPP Gateway, Transaction
-  Module, Registrar and User Location, XMLRPC Interface.
++ Among others, the following modules are available: digest authentication, CPL
++ scripts, instant messaging, MySQL support, presence agent, RADIUS
++ authentication, record routing, SMS gateway, Jabber/XMPP gateway, transaction
++ module, registrar and user location, XML-RPC interface.
 + .
 + This package contains the main Kamailio binary along with the principal modules
 + and support binaries.
 +
 +Package: kamailio-dbg
- Architecture: any
++Priority: extra
++Section: debug
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}
++Description: very fast and configurable SIP proxy [debug symbols]
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package contains the debugging symbols for the Kamailio binaries and
++ modules. You only need to install it if you need to debug Kamailio.
++
++Package: kamailio-geoip-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the geoip module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the geoip module, an extension allowing to
++ use GeoIP API within configuration file.
++
++Package: kamailio-sqlite-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Recommends: sqlite3
++Description: SQLite database connectivity module for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the SQLite database driver for Kamailio.
++
++Package: kamailio-json-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Json parser and jsonrpc modules for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides json parser for Kamailio's configuration file
++ and the JSON-RPC client over netstrings.
++
++Package: kamailio-memcached-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Replaces: kamailio-memcached-module
++Description: Provides the memcached module, an interface to the memcached server
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the memcached module, an interface to the memcached
++ server, a high-performance, distributed memory object caching system.
++
++Package: kamailio-lua-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the app_lua module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the app_lua module, an extension allowing to
++ execute embedded Lua applications within configuration file.
++
++Package: kamailio-mono-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the app_mono module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the app_mono module, an extension allowing to
++ execute embedded Mono applications within configuration file.
++
++Package: kamailio-python-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
++         python-dev,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Description: Debugging symbols for Kamailio SIP proxy
++Description: contains the app_python module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the app_python module, an extension allowing to
++ execute embedded Python applications within configuration file.
++
++Package: kamailio-redis-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Redis database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides gdb debugging symbols for Kamailio
++ This package provides the Redis NOSQL database driver for Kamailio.
 +
 +Package: kamailio-mysql-modules
- Architecture: any
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         mysql-client,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-mysql-module
 +Description: MySQL database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the MySQL database driver for Kamailio.
 +
 +Package: kamailio-postgres-modules
- Architecture: any
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         postgresql-client,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-postgres-module
 +Description: PostgreSQL database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the PostgreSQL database driver for Kamailio.
 +
 +Package: kamailio-cpl-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-cpl-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: CPL module (CPL interpreter engine) for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides a CPL (Call Processing Language) interpreter for
 + Kamailio, turning Kamailio into a CPL server (storage and interpreter).
 +
 +Package: kamailio-radius-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: radius modules for Kamailio
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: RADIUS modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides a set of Radius modules for Kamailio, for
-  authentication, peering, group membership and messages URIs checking
-  against a Radius Server.
++ This package provides a set of RADIUS modules for Kamailio, for
++ authentication, peering, group membership and messages URIs checking against a
++ RADIUS server.
 +
 +Package: kamailio-unixodbc-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-unixodbc-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: unixODBC database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the unixODBC database driver for Kamailio.
 +
 +Package: kamailio-presence-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: SIMPLE presence modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides several Kamailio modules for implementing presence
 + server and presence user agent for RICH presence, registrar-based presence,
 + external triggered presence and XCAP support.
 +
- Package: kamailio-xml-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-xml-module,
-           kamailio-xmlrpc-module
- Provides: kamailio-xmlrpc-modules
- Description: XML based extensions for Kamailio's Management Interface
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides:
-  - the XMLRPC transport implementations for Kamailio's
-  Management and Control Interface.
-  - xmlops module for XPath operations in configuration file
- 
 +Package: kamailio-perl-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-perl-module
- Conflicts: kamailio-perl-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: Perl extensions and database driver for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides an interface for Kamailio to write Perl extensions and
 + the perlvdb database driver for Kamailio.
 +
 +Package: kamailio-snmpstats-modules
- Architecture: any
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         snmpd,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-snmpstats-module
 +Description: SNMP AgentX subagent module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the snmpstats module for Kamailio. This module acts
 + as an AgentX subagent which connects to a master agent.
 +
++Package: kamailio-purple-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Provides the purple module, a multi-protocol IM gateway
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the purple module, a multi-protocol instant
++ messaging gateway module.
++
 +Package: kamailio-xmpp-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-xmpp-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: XMPP gateway module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the SIP to XMPP IM translator module for Kamailio.
 +
++Package: kamailio-xml-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Replaces: kamailio-xml-module, kamailio-xmlrpc-module
++Provides: kamailio-xmlrpc-modules
++Description: XML based extensions for Kamailio's Management Interface
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides:
++ - the XMLRPC transport implementations for Kamailio's
++ Management and Control Interface.
++ - xmlops module for XPath operations in configuration file
++
 +Package: kamailio-carrierroute-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-carrierroute-module
- Description: Carrierroute module for Kamailio
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: carrierroute module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the carrierroute module for Kamailio, an integrated
 + solution for routing, balancing and blacklisting.
 +
 +Package: kamailio-berkeley-modules
- Architecture: any
- Depends: db4.6-util,
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: db5.1-util,
 +         kamailio (= ${binary:Version}),
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-berkeley-module
- Description: Berkeley Database module for Kamailio
++Description: Berkeley database module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the berkeley database module for Kamailio, a
++ This package provides the Berkeley database module for Kamailio, a
 + high-performance embedded DB kernel. All database tables are stored
 + in files, no additional server is necessary.
 +
++Package: kamailio-berkeley-bin
++Architecture: linux-any
++Multi-Arch: foreign
++Pre-Depends: ${misc:Pre-Depends}
++Depends: ${misc:Depends}, ${shlibs:Depends}
++Description: Berkeley database module for Kamailio - helper program
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides helper modules for the Berkeley database module for
++ Kamailio, a high-performance embedded DB kernel. You should normally
++ install kamailio-berkeley-modules and not this package directly.
++
 +Package: kamailio-ldap-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: LDAP modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the ldap and h350 modules for Kamailio, enabling LDAP
 + queries from the Kamailio config and storage of SIP account data in an LDAP
 + directory.
 +
++Package: kamailio-ims-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: IMS module for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package contains various Diameter interfaces and modules for Kamailio
++ to run as an IMS core.
++
 +Package: kamailio-utils-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-utils-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: Provides a set utility functions for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + Provides a set of utility functions for Kamailio, which are not related
 + to the server configuration.
 +
- Package: kamailio-purple-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-purple-module
- Description: Provides the purple module, a multi-protocol IM gateway
++Package: kamailio-sctp-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: sctp module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the purple module, a multi-protocol instant
-  messaging gateway module.
++ This package provides the sctp module for Kamailio.
 +
- Package: kamailio-memcached-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
++Package: kamailio-java-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: gcj-jre,
++         kamailio (= ${binary:Version}),
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-memcached-module
- Description: Provides the memcached module, an interface to the memcached server
++Description: contains the app_java module
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the memcached module, an interface to the memcached
-  server, a high-performance, distributed memory object caching system.
++ This package provides the app_java module, an extension allowing to
++ execute embedded Java applications within configuration file.
 +
 +Package: kamailio-tls-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: contains the TLS kamailio transport module
-  This has been split out of the main kamailio package, so that kamailio will not
-  depend on openssl. This module will enable you to use the TLS transport.
++ This has been split out of the main kamailio package, so that kamailio will
++ not depend on openssl. This module will enable you to use the TLS transport.
 +
- Package: kamailio-lua-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_lua module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_lua module, an extension allowing to
-  execute embedded Lua applications within configuration file.
- 
- Package: kamailio-mono-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_mono module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_mono module, an extension allowing to
-  execute embedded Mono applications within configuration file.
- 
- Package: kamailio-python-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_python module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_python module, an extension allowing to
-  execute embedded Python applications within configuration file.
- 
- Package: kamailio-geoip-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the geoip module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the geoip module, an extension allowing to
-  use GeoIP API within configuration file.
- 
- Package: kamailio-redis-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libhiredis0.10,
-          ${shlibs:Depends}
- Description: Redis database connectivity module for Kamailio
++Package: kamailio-outbound-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Outbound module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the Redis NOSQL database driver for Kamailio.
++ This package contains the module implementing SIP outbound extension.
 +
- Package: kamailio-sqlite-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libsqlite3-0,
-          ${shlibs:Depends}
- Description: SQLite database connectivity module for Kamailio
++Package: kamailio-websocket-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Websocket module for kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the SQLite database driver for Kamailio.
++ This package contains the module implementing WebSocket transport layer.
 +
- Package: kamailio-json-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libevent-1.4-2,
-          libjson0,
-          ${shlibs:Depends}
- Description: Json parser and jsonrpc modules for Kamailio
++Package: kamailio-autheph-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: authentication using ephemeral credentials module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides json parser for Kamailio's configuration file
-  and the JSON-RPC client over netstrings.
++ This package provides the ephemeral module for Kamailio.
 +
 +Package: kamailio-nth
 +Architecture: any
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: binutils,
 +         bison,
 +         bvi,
 +         flex,
 +         gcc,
 +         gdb,
 +         iftop,
 +         lsof,
 +         mc,
 +         most,
 +         ngrep,
 +         psmisc,
 +         screen,
 +         sipsak,
 +         tcpdump,
-          vim
++         vim,
++         ${misc:Depends}
 +Description: Kamailio - package for "nice to have" installation
-  This is a meta-package for easy installation various useful tools that may be
++ This is a metapackage for easy installation various useful tools that may be
 + handy on server with Kamailio installed.
- 
- Package: kamailio-ims-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - IMS Modules
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains various Diameter interfaces and modules for Kamailio
-  to run as an IMS core.
- 
- Package: kamailio-outbound-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - Outbound Module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains the module implementing SIP outbound extension.
- 
- Package: kamailio-websocket-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - Websocket Module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains the module implementing WebSocket transport layer.
- 
- Package: kamailio-autheph-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: authentication using ephemeral credentials module for Kamailio
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the ephemeral module for Kamailio.
- 
- Package: kamailio-sctp-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: authentication using ephemeral credentials module for Kamailio
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the sctp module for Kamailio.
diff --cc pkg/kamailio/deb/precise/copyright
index 801eac4,0000000..ff31338
mode 100644,000000..100644
--- a/pkg/kamailio/deb/precise/copyright
+++ b/pkg/kamailio/deb/precise/copyright
@@@ -1,27 -1,0 +1,335 @@@
- This package was debianized by Andrei Pelinescu-Onciul
- <pelinescu-onciul at fokus.fraunhofer.de> on Tue, 16 Jul 2002 15:41:31 +0200.
- This package was debianized by Julien BLACHE <jblache at debian.org>
- on Thu, 29 Jun 2006 09:55:24 +0200, based on Andrei's work.
- 
- It was downloaded from: http://kamailio.org
- 
- Upstream Authors:
-        Andrei Pelinescu-Onciul <pelinescu-onciul at fokus.fraunhofer.de>
-        Bogdan-Andrei Iancu <bogdan at voice-system.ro>
-        Daniel-Constantin Mierla <miconda at gmail.com>
-        Jan Janak <jan at iptel.org>
-        Jiri Kuthan <jiri at iptel.org>
-        Juha Heinanen
-        Ramona-Elena Modroiu
-        Maxim Sobolev
-        Miklos Tirpak
-        Nils Ohlmeier
-        and others ; see the AUTHORS file in the source code tree for details
- 
- This software is copyright (c) 2002-2003 by FhG Fokus
- 
- You are free to distribute this software under the terms of
- the GNU General Public License.
- 
- On Debian systems, the complete text of the GNU General Public
- License can be found in the file `/usr/share/common-licenses/GPL.
++Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: Kamailio
++Upstream-Contact: sr-dev at lists.sip-router.org
++Source: http://www.kamailio.org/pub/kamailio/
++
++Files: *
++Copyright:
++ 2001-2003 FhG Fokus
++ 2006-2010 iptelorg GmbH
++ Various others (see AUTHORS file)
++License: GPL-2.0+
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++
++Files: debian/*
++Copyright: 2012, 2013, 2014 Victor Seva <linuxmaniac at torreviejawireless.org>
++           2009, 2010, 2011, Daniel-Constantin Mierla <miconda at gmail.com>
++           2010, Jon Bonilla <manwe at aholab.ehu.es>
++           2009, Jonas Bergler <jonas.bergler at staff.snap.net.nz>
++           2009, Henning Westerholt <henning.westerholt at 1und1.de>
++           2007, Julien BLACHE <jblache at debian.org>
++License: GPL-2+
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++
++
++Files: atomic/* atomic_ops.* basex.* bit_*.c char_msg_val.h compiler_opt.h
++ core_stats.h counters.* endianness.* futexlock.h hashes.h io_wait.*
++ kstats_types.h lib/kcore/kstats_wrapper.* lock_ops.c lock_ops_init.h
++ lvalue.* mem/ll_malloc.* mem/memdbg.h mem/sf_malloc.* mi/*.h mod_fix.*
++ modules/tm/rpc_uac.* modules/counters/counters.c modules/tls/sbufq.h
++ modules/tls/tls_bio.* modules/tls/tls_cfg.* modules/tls/tls_cfg.h
++ modules/tls/tls_ct_wrq.* modules/tls/tls_ct_q.h modules/tls/tls_domain.*
++ modules/tls/tls_server.h modules/tls/tls_locking.* modules/tls/tls_rpc.*
++ modules/tls/tls_server.c modules/malloc_test/malloc_test.c modules/blst/blst.c
++ parser/case_p_* parser/case_reas.h pvapi.h pv_core.* rand/fastrand.* raw_*
++ rpc_lookup.* rvalue.* sctp_* ser_time.h shm_init.* sip_msg_clone.* sock_ut.*
++ sr_compat.* str_hash.h switch.* tcp_ev.h tcp_int_send.h tcp_options.*
++ tcp_read.h tcp_stats.* timer_proc.* tls_hooks.* tls_hooks_init.h ver.*
++Copyright: 2006-2010 iptelorg GmbH
++License: ISC
++
++Files: modules/tls/tls_select.* modules/tls/tls_dump_vf.*
++Copyright: 2005-2010 iptelorg GmbH
++License: GPL-2 + OpenSSL exception
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++ * Exception: permission to copy, modify, propagate, and distribute a work
++ * formed by combining OpenSSL toolkit software and the code in this file,
++ * such as linking with software components and libraries released under
++ * OpenSSL project license.
++
++Files: modules/websocket/* modules/outbound/* modules/auth_ephemeral/*
++Copyright: 2012-2013 Crocodile RCS Ltd
++License: GPL-2 + OpenSSL exception
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++ * Exception: permission to copy, modify, propagate, and distribute a work
++ * formed by combining OpenSSL toolkit software and the code in this file,
++ * such as linking with software components and libraries released under
++ * OpenSSL project license.
++
++Files: daemonize.* fastlock.h lock_ops.h mem/mem.* mem/f_malloc.h
++ mem/meminfo.h mem/memtest.c mem/shm_mem.c mem/q_malloc.h mem/q_malloc.c
++ mem/shm_mem.h mem/f_malloc.c modules/tls/tls_rpc.c modules/tls/tls_server.c
++ modules/tls/tls_domain.c modules/tls/tls_domain.h modules/tls/tls_server.h
++ modules/tls/tls_rpc.h pt.c pt.h sched_yield.h ut.c ut.h
++Copyright: 2001-2003 FhG Fokus
++License: ISC
++
++Files: events.* modules/topoh/*
++Copyright: 2009 SIP-Router.org
++License: ISC
++
++Files: modules/mi_rpc/mi_rpc_mod.c modules/pv/pv_xavp.*
++ modules/usrloc/ul_rpc.* ppcfg.* xavp.*
++Copyright: 2009-2010 Daniel-Constantin Mierla (asipto.com)
++License: ISC
++
++Files: obsolete/jabber_k/tree234.*
++Copyright: 1999, 2000, 2001, Simon Tatham
++License: Expat
++ Permission is hereby granted, free of charge, to any person
++ obtaining a copy of this software and associated documentation
++ files (the "Software"), to deal in the Software without
++ restriction, including without limitation the rights to use,
++ copy, modify, merge, publish, distribute, sublicense, and/or
++ sell copies of the Software, and to permit persons to whom the
++ Software is furnished to do so, subject to the following
++ conditions:
++ .
++ The above copyright notice and this permission notice shall be
++ included in all copies or substantial portions of the Software.
++ .
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
++ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++ NONINFRINGEMENT.  IN NO EVENT SHALL SIMON TATHAM BE LIABLE FOR
++ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
++ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
++ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
++ SOFTWARE.
++
++Files: modules/xmpp/xsnprintf.c obsolete/jabber_s/xsnprintf.c obsolete/jabber_k/xsnprintf.c
++Copyright: 1995-1998, The Apache Group
++License: Apache-1.0
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ .
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ .
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in
++    the documentation and/or other materials provided with the
++    distribution.
++ .
++ 3. All advertising materials mentioning features or use of this
++    software must display the following acknowledgment:
++    "This product includes software developed by the Apache Group
++    for use in the Apache HTTP server project (http://www.apache.org/)."
++ .
++ 4. The names "Apache Server" and "Apache Group" must not be used to
++    endorse or promote products derived from this software without
++    prior written permission.
++ .
++ 5. Redistributions of any form whatsoever must retain the following
++    acknowledgment:
++    "This product includes software developed by the Apache Group
++    for use in the Apache HTTP server project (http://www.apache.org/)."
++ .
++ THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY
++ EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE APACHE GROUP OR
++ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ OF THE POSSIBILITY OF SUCH DAMAGE.
++
++Files: modules/mi_xmlrpc/abyss*
++Copyright: 2000, Moez Mahfoudh <mmoez at bigfoot.com>
++License: BSD-3-clause
++
++Files: list.h
++Copyright: 1991, 1993 The Regents of the University of California
++License: BSD-3-clause
++
++Files: modules/tm/t_serial.*
++Copyright: 2008 Juha Heinanen
++License: BSD-2-clause
++
++Files: parser/sdp/sdp.* parser/sdp/sdp_helpr_funcs.* parser/sdp/sdp_cloner.h
++Copyright:
++ 2008-2009 SOMA Networks, INC.
++ 2010 VoIP Embedded, Inc
++License: BSD-2-clause
++
++Files: modules/tls/fixed_c_zlib.h
++Copyright:1998-2005 The OpenSSL Project
++Comment: file copied from OpenSSL 0.9.8, refers to OpenSSL License. Note that
++ this code will not build by default in the Debian packaging.
++License: OpenSSL
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ .
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ .
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in
++    the documentation and/or other materials provided with the
++    distribution.
++ .
++ 3. All advertising materials mentioning features or use of this
++    software must display the following acknowledgment:
++    "This product includes software developed by the OpenSSL Project
++    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
++ .
++ 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
++    endorse or promote products derived from this software without
++    prior written permission. For written permission, please contact
++    openssl-core at openssl.org.
++ .
++ 5. Products derived from this software may not be called "OpenSSL"
++    nor may "OpenSSL" appear in their names without prior written
++    permission of the OpenSSL Project.
++ .
++ 6. Redistributions of any form whatsoever must retain the following
++    acknowledgment:
++    "This product includes software developed by the OpenSSL Project
++    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
++ .
++ THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
++ EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
++ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ OF THE POSSIBILITY OF SUCH DAMAGE.
++
++Files: md5.* md5utils.c
++Copyright: 1991-2, RSA Data Security, Inc
++Comment: Note that md5.c and md5.h have been replaced in the patches
++ plum_md5*.patch .
++ .
++ As for md5utils.c, according to a mail from Upstream (Daniel-Constantin
++ Mierla): while the initial commit log for it states that it is derived
++ from mddriver.c of RFC 1321, it seems that it was, in fact, written from
++ scratch by Jiri Kuthan (a core developer of SER at that time, working for
++ FhG Fokus Institute). As you can see it's rather trivial and uses a data
++ type of SER ("str").  I didn't reimplement it as it's too trivial and
++ looks like there's no other way to implement it.
++License: RSA-MD5
++ License to copy and use this software is granted provided that it
++ is identified as the "RSA Data Security, Inc. MD5 Message-Digest
++ Algorithm" in all material mentioning or referencing this software
++ or this function.
++ .
++ License is also granted to make and use derivative works provided
++ that such works are identified as "derived from the RSA Data
++ Security, Inc. MD5 Message-Digest Algorithm" in all material
++ mentioning or referencing the derived work.
++ .
++ RSA Data Security, Inc. makes no representations concerning either
++ the merchantability of this software or the suitability of this
++ software for any particular purpose. It is provided "as is"
++ without express or implied warranty of any kind.
++ .
++ These notices must be retained in any copies of any part of this
++ documentation and/or software.
++
++Files: mem/dl_*
++Copyright: n/a
++License: public-domain
++ This is a version (aka dlmalloc) of malloc/free/realloc written by
++ Doug Lea and released to the public domain, as explained at
++ http://creativecommons.org/licenses/publicdomain.  Send questions,
++ comments, complaints, performance data, etc to dl at cs.oswego.edu
++
++Files: rand/isaac/*
++Copyright: n/a
++License: public-domain
++ By Bob Jenkins.  My random number generator, ISAAC.  Public Domain.
++
++License: ISC
++ Permission to use, copy, modify, and distribute this software for any
++ purpose with or without fee is hereby granted, provided that the above
++ copyright notice and this permission notice appear in all copies.
++ .
++ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
++ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
++ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
++ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
++ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
++ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
++ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
++
++Files: lib/srutils/srjson.*
++Copyright: 2009 Dave Gamble
++License: MIT
++ Permission is hereby granted, free of charge, to any person obtaining a copy
++ of this software and associated documentation files (the "Software"), to deal
++ in the Software without restriction, including without limitation the rights
++ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
++ copies of the Software, and to permit persons to whom the Software is
++ furnished to do so, subject to the following conditions:
++ .
++ The above copyright notice and this permission notice shall be included in
++ all copies or substantial portions of the Software.
++ ,
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
++ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
++ THE SOFTWARE.
++
++License: BSD-3-clause
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in the
++    documentation and/or other materials provided with the distribution.
++ 4. Neither the name of the University nor the names of its contributors
++    may be used to endorse or promote products derived from this software
++    without specific prior written permission.
++ .
++ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
++ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
++ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
++ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
++ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
++ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
++ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
++ SUCH DAMAGE.
++
++License: BSD-2-clause
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions are met:
++ .
++  1. Redistributions of source code must retain the above copyright notice,
++     this list of conditions and the following disclaimer.
++  2. Redistributions in binary form must reproduce the above copyright
++     notice, this list of conditions and the following disclaimer in the
++     documentation and/or other materials provided with the distribution.
++ .
++ THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS OR
++ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
++ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
++ EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
++ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
++ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
++ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
++ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
++ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --cc pkg/kamailio/deb/precise/kamailio-autheph-modules.lintian-overrides
index 0000000,0000000..dcb3d18
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/precise/kamailio-autheph-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-autheph-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/precise/kamailio-berkeley-bin.dirs
index 0000000,0000000..236670a
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/precise/kamailio-berkeley-bin.dirs
@@@ -1,0 -1,0 +1,1 @@@
++usr/sbin
diff --cc pkg/kamailio/deb/precise/kamailio-dnssec-modules.lintian-overrides
index 0000000,0000000..10165fe
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/precise/kamailio-dnssec-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-dnssec-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/precise/kamailio-outbound-modules.lintian-overrides
index 0000000,0000000..3050cfe
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/precise/kamailio-outbound-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-outbound-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/precise/kamailio-tls-modules.lintian-overrides
index 0000000,0000000..bbe0d37
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/precise/kamailio-tls-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-tls-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/precise/kamailio-websocket-modules.lintian-overrides
index 0000000,0000000..8f384fb
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/precise/kamailio-websocket-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-websocket-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/precise/kamailio.README.Debian
index 4eaf90b,0000000..d25769a
mode 100644,000000..100644
--- a/pkg/kamailio/deb/precise/kamailio.README.Debian
+++ b/pkg/kamailio/deb/precise/kamailio.README.Debian
@@@ -1,38 -1,0 +1,39 @@@
 +Kamailio for Debian
- ------------------
++-------------------
 +
 +* init script check for fork=no
 +-------------------------------
 +
 +The Kamailio init script will not start Kamailio on boot if fork=no is
 +specified in the config file. The check in the initscript will match
 +any occurrence of fork=no in the file, even inside C-style comments.
 +
 +You can disable this check in the init script if you wish; just comment
 +out the calls to the check_fork function in the script. Your changes to
 +the init script will be preserved upon upgrade, as the file is tagged
 +as a conffile.
 +
 +
 +* Kamailio setup
- ---------------
++----------------
 +
 +To setup Kamailio, you need to:
 + - configure Kamailio properly to suit your needs
 + - edit /etc/default/kamailio, adjust the MEMORY parameter and set
 +   RUN_KAMAILIO to "yes"
 +
 +If you are building an HA cluster using heartbeat or similar, you'll want
 +to disable the init script by running:
 +
 +  update-rc.d kamailio remove
 +
 +so that Kamailio will not be launched at system startup. You still need
 +to set RUN_KAMAILIO to "yes" if you want to use the /etc/init.d/kamailio init
 +script.
 +
 +Set the DUMP_CORE parameter in /etc/default/kamailio to "yes" if you want to
 +get a core dump in case Kamailio crashes. The debug symbols for Kamailio are
 +provided by the kamailio-dbg package.
 +
- -- Julien BLACHE <jblache at debian.org>, Fri, 08 Sep 2006 14:43:21 +0200
++
++ -- Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 11 Dec 2013 16:07:11 +0100
diff --cc pkg/kamailio/deb/precise/kamailio.default
index 3221104,0000000..0cfc8c8
mode 100644,000000..100644
--- a/pkg/kamailio/deb/precise/kamailio.default
+++ b/pkg/kamailio/deb/precise/kamailio.default
@@@ -1,33 -1,0 +1,28 @@@
 +#
 +# Kamailio startup options
 +#
 +
 +# Set to yes to enable kamailio, once configured properly.
- RUN_KAMAILIO=no
++#RUN_KAMAILIO=yes
 +
 +# User to run as
- USER=kamailio
++#USER=kamailio
 +
 +# Group to run as
- GROUP=kamailio
++#GROUP=kamailio
 +
- # Amount of shared memory to allocate for the running Kamailio server (in Mb)
- SHM_MEMORY=64
++# Amount of shared and private memory to allocate
++# for the running Kamailio server (in Mb)
++#SHM_MEMORY=64
++#PKG_MEMORY=4
 +
- # Amount of private memory for each Kamailio process (in Mb)
- PKG_MEMORY=4
- 
- # Switch to USER and GROUP by start-stop-daemon or by kamailio itself
- # - with recent kernels, changing user ID inside applicaton prevents
- #   dumping core files. If the value is 'yes', the suid is done by
- #   start-stop-daemon, otherwise it is done by kamailio itself
- SSD_SUID=no
++# Config file
++#CFGFILE=/etc/kamailio/kamailio.cfg
 +
 +# Enable the server to leave a core file when it crashes.
 +# Set this to 'yes' to enable Kamailio to leave a core file when it crashes
 +# or 'no' to disable this feature. This option is case sensitive and only
 +# accepts 'yes' and 'no' and only in lowercase letters.
- # On some systems (e.g. Ubuntu 6.10, Debian 4.0) it is necessary to specify
- # a directory for the core files to get a dump. Look into the kamailio
- # init file for an example configuration.
- DUMP_CORE=no
++# On some systems it is necessary to specify a directory for the core files
++# to get a dump. Look into the kamailio init file for an example configuration.
++#DUMP_CORE=yes
diff --cc pkg/kamailio/deb/precise/kamailio.init
index 6b0a1ee,0000000..1f8f796
mode 100644,000000..100644
--- a/pkg/kamailio/deb/precise/kamailio.init
+++ b/pkg/kamailio/deb/precise/kamailio.init
@@@ -1,240 -1,0 +1,162 @@@
 +#! /bin/sh
 +#
 +### BEGIN INIT INFO
 +# Provides:          kamailio
 +# Required-Start:    $syslog $network $local_fs $remote_fs $time
++# Should-Start:      $named slapd mysql postgresql snmpd radiusd
++# Should-Stop:       $named slapd mysql postgresql snmpd radiusd
 +# Required-Stop:     $syslog $network $local_fs $remote_fs
 +# Default-Start:     2 3 4 5
 +# Default-Stop:      0 1 6
- # Should-Start:      postgresql mysql radius
- # Should-Stop:       postgresql mysql radius
 +# Short-Description: Start the Kamailio SIP proxy server
 +# Description:       Start the Kamailio SIP proxy server
 +### END INIT INFO
 +
++. /lib/lsb/init-functions
 +
 +PATH=/sbin:/bin:/usr/sbin:/usr/bin
 +DAEMON=/usr/sbin/kamailio
 +NAME=kamailio
- DESC=Kamailio
++DESC="Kamailio SIP server"
 +HOMEDIR=/var/run/kamailio
 +PIDFILE=$HOMEDIR/$NAME.pid
 +DEFAULTS=/etc/default/kamailio
 +CFGFILE=/etc/kamailio/kamailio.cfg
 +RUN_KAMAILIO=no
- 
++USER=kamailio
++GROUP=kamailio
++# Amount of shared and private memory to allocate
++# for the running Kamailio server (in Mb)
++SHM_MEMORY=64
++PKG_MEMORY=4
++DUMP_CORE=no
 +
 +# Do not start kamailio if fork=no is set in the config file
- # otherwise the boot process will just stop.
++# otherwise the boot process will just stop
 +check_fork ()
 +{
-   if grep -q "^[[:space:]]*fork[[:space:]]*=[[:space:]]*no.*" $CFGFILE; then
-     echo "Not starting $DESC: fork=no specified in config file. Run /etc/init.d/kamailio debug instead."
-     exit 1
-   fi
++    if grep -q "^[[:space:]]*fork[[:space:]]*=[[:space:]]*no.*" $CFGFILE; then
++	log_failure_msg "Not starting $DESC: fork=no specified in config file; run /etc/init.d/kamailio debug instead"
++	exit 0
++    fi
 +}
 +
- 
 +check_kamailio_config ()
 +{
-   # Check if kamailio configuration is valid before starting the server.
-   set +e
-   out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
-   retcode=$?
-   set -e
-   if [ "$retcode" != '0' ]; then
-     echo "Not starting $DESC: invalid configuration file!"
-     echo -e "\n$out\n"
-     exit 1
-   fi
- }
- 
- 
- check_homedir ()
- {
-   # Create HOMEDIR directory in case it doesn't exist.
-   # Useful in Ubuntu as /var/run/ content is deleted in shutdown.
-   if [ ! -d $HOMEDIR ]; then
-     mkdir $HOMEDIR
-   fi
- 
-   # Set the appropiate owner and group
-   chown ${USER}:${GROUP} $HOMEDIR
++	# Check if kamailio configuration is valid before starting the server
++	set +e
++	out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
++	retcode=$?
++	set -e
++	if [ "$retcode" != '0' ]; then
++	    log_failure_msg "Not starting $DESC: invalid configuration file!"
++	    log_failure_msg
++	    log_failure_msg "$out"
++	    log_faiulre_msg
++	    exit 1
++	fi
 +}
 +
- 
 +create_radius_seqfile ()
 +{
-   # Create a radius sequence file to be used by the radius client if
-   # radius accounting is enabled. This is needed to avoid any issue
-   # with the file not being writable if kamailio first starts as user
-   # root because DUMP_CORE is enabled and creates this file as user
-   # root and then later it switches back to user kamailio and cannot
-   # write to the file. If the file exists before kamailio starts, it
-   # won't change it's ownership and will be writable for both root
-   # and kamailio, no matter what options are chosen at install time
-   RADIUS_SEQ_FILE=$HOMEDIR/kamailio_radius.seq
- 
-   if [ ! -f $RADIUS_SEQ_FILE ]; then
-       touch $RADIUS_SEQ_FILE
-   fi
- 
-   chown ${USER}:${GROUP} $RADIUS_SEQ_FILE
-   chmod 660 $RADIUS_SEQ_FILE
++    # Create a radius sequence file to be used by the radius client if
++    # radius accounting is enabled. This is needed to avoid any issue
++    # with the file not being writable if kamailio first starts as user
++    # root because DUMP_CORE is enabled and creates this file as user
++    # root and then later it switches back to user kamailio and cannot
++    # write to the file. If the file exists before kamailio starts, it
++    # won't change it's ownership and will be writable for both root
++    # and kamailio, no matter what options are chosen at install time
++    RADIUS_SEQ_FILE=/var/run/kamailio/kamailio_radius.seq
++    if [ -d /var/run/kamailio ]; then
++	chown ${USER}:${GROUP} /var/run/kamailio
++
++	if [ ! -f $RADIUS_SEQ_FILE ]; then
++	    touch $RADIUS_SEQ_FILE
++	fi
++
++	chown ${USER}:${GROUP} $RADIUS_SEQ_FILE
++	chmod 660 $RADIUS_SEQ_FILE
++    fi
 +}
 +
++test -f $DAEMON || exit 0
 +
- if [ ! -f $DAEMON ]; then
-   echo "No $DESC daemon at $DAEMON."
-   case "$1" in
-   status)
-     # LSB - 4: program or service status is unknown.
-     exit 4
-     ;;
-   *)
-     # LSB - 5: program is not installed.
-     exit 5
-     ;;
-   esac
- fi
- 
- 
- # Load startup options if available.
++# Load startup options if available
 +if [ -f $DEFAULTS ]; then
-   . $DEFAULTS || true
++   . $DEFAULTS || true
 +fi
 +
- 
 +if [ "$RUN_KAMAILIO" != "yes" ]; then
-   echo "$DESC not yet configured. Edit $DEFAULTS first."
-   exit 0
++    log_failure_msg "Kamailio not yet configured. Edit /etc/default/kamailio first."
++    exit 0
 +fi
 +
- 
 +set -e
 +
- 
 +SHM_MEMORY=$((`echo $SHM_MEMORY | sed -e 's/[^0-9]//g'`))
 +PKG_MEMORY=$((`echo $PKG_MEMORY | sed -e 's/[^0-9]//g'`))
- [ $SHM_MEMORY -le 0 ] && SHM_MEMORY=64
- [ $PKG_MEMORY -le 0 ] && PKG_MEMORY=4
 +[ -z "$USER" ]  && USER=kamailio
 +[ -z "$GROUP" ] && GROUP=kamailio
- 
++[ $SHM_MEMORY -le 0 ] && SHM_MEMORY=64
++[ $PKG_MEMORY -le 0 ] && PKG_MEMORY=4
 +
 +if test "$DUMP_CORE" = "yes" ; then
-   # set proper ulimit.
-   ulimit -c unlimited
- 
-   # directory for the core dump files.
-   # COREDIR=/tmp/corefiles
-   # [ -d $COREDIR ] || mkdir $COREDIR
-   # chmod 777 $COREDIR
-   # echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
++    # set proper ulimit
++    ulimit -c unlimited
++
++    # directory for the core dump files
++    # COREDIR=/home/corefiles
++    # [ -d $COREDIR ] || mkdir $COREDIR
++    # chmod 777 $COREDIR
++    # echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
 +fi
 +
- 
- if [ "$SSD_SUID" != "yes" ]; then
-   OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
-   SSDOPTS=""
- else
-   OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY"
-   SSDOPTS="--chuid $USER:$GROUP"
++# /var/run can be a tmpfs
++if [ ! -d $HOMEDIR ]; then
++    mkdir -p $HOMEDIR
 +fi
 +
- 
- start_kamailio_daemon ()
- {
-   start-stop-daemon --start --quiet --pidfile $PIDFILE $SSDOPTS \
-     --exec $DAEMON -- $OPTIONS
-   res=$?
- 
-   echo -n "$NAME "
-   if [ $res -eq 0 ] ; then
-     echo "started."
-     exit 0
-   else
-     if [ ! -r "$PIDFILE" ]; then
-       echo "error, failed to start."
-       exit 1
-     elif read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
-       echo "already running."
-       exit 0
-     else
-       echo "error, failed to start ($PIDFILE exists)."
-       exit 1
-     fi
-   fi
- }
- 
++OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
 +
 +case "$1" in
 +  start|debug)
-     check_kamailio_config
-     check_homedir
-     create_radius_seqfile
- 
-     if [ "$1" != "debug" ]; then
-       check_fork
-     fi
- 
-     echo "Starting $DESC:"
-     set +e
-     start_kamailio_daemon
-     ;;
- 
++	check_kamailio_config
++	create_radius_seqfile
++
++	if [ "$1" != "debug" ]; then
++	    check_fork
++	fi
++
++	log_daemon_msg "Starting $DESC: $NAME"
++	start-stop-daemon --start --quiet --pidfile $PIDFILE \
++		--exec $DAEMON -- $OPTIONS || log_failure_msg " already running"
++	log_end_msg 0
++	;;
 +  stop)
-     echo -n "Stopping $DESC: $NAME "
-     set +e
-     start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
-       --exec $DAEMON
- 
-     if [ $? -eq 0 ] ; then
-       echo "stopped."
-       exit 0
-     else
-       echo "failed to stop."
-       exit 1
-     fi
-     ;;
-     
++	log_daemon_msg "Stopping $DESC: $NAME"
++	start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
++		--exec $DAEMON
++	log_end_msg 0
++	;;
 +  restart|force-reload)
-     check_kamailio_config
-     check_homedir
-     create_radius_seqfile
- 
-     echo "Restarting $DESC:"
-     set +e
-     start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE --retry=5 \
-       --exec $DAEMON
-     if [ $? -ne 0 ] ; then
-       echo "$NAME failed to stop."
-       exit 1
-     fi
-     start_kamailio_daemon
-     ;;
++	check_kamailio_config
++	create_radius_seqfile
 +
++	$0 stop
++	sleep 1
++	$0 start
++	;;
 +  status)
-     echo -n "Status of $DESC: $NAME "
-     if [ ! -r "$PIDFILE" ]; then
-       echo "is not running."
-       exit 3
-     fi
-     if read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
-       echo "is running."
-       exit 0
-     else
-       echo "is not running but $PIDFILE exists."
-       exit 1
-     fi
-     ;;
++	log_daemon_msg "Status of $DESC: "
 +
++	status_of_proc -p"$PIDFILE" $NAME $NAME
++	;;
 +  *)
-     N=/etc/init.d/$NAME
-     echo "Usage: $N {start|stop|restart|force-reload|debug|status}" >&2
-     exit 1
-     ;;
++	N=/etc/init.d/$NAME
++	echo "Usage: $N {start|stop|restart|force-reload|status|debug}" >&2
++	exit 1
++	;;
 +esac
 +
- 
 +exit 0
diff --cc pkg/kamailio/deb/precise/kamailio.lintian-overrides
index 0000000,0000000..18152ed
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/precise/kamailio.lintian-overrides
@@@ -1,0 -1,0 +1,2 @@@
++kamailio binary: example-interpreter-not-absolute usr/share/doc/kamailio/examples/outbound/edge.cfg #!KAMAILIO
++kamailio binary: example-interpreter-not-absolute usr/share/doc/kamailio/examples/outbound/registrar.cfg #!KAMAILIO
diff --cc pkg/kamailio/deb/precise/kamailio.postinst
index fc7e4a8,0000000..4ee38ec
mode 100644,000000..100644
--- a/pkg/kamailio/deb/precise/kamailio.postinst
+++ b/pkg/kamailio/deb/precise/kamailio.postinst
@@@ -1,48 -1,0 +1,24 @@@
 +#! /bin/sh
- #
- # $Id$
- 
- PKG=kamailio
- DEFAULTS=/etc/default/kamailio
- HOMEDIR=/var/run/kamailio
 +
 +set -e
 +
- # summary of how this script can be called:
- #        * <postinst> `configure' <most-recently-configured-version>
- #        * <old-postinst> `abort-upgrade' <new version>
- #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
- #          <new-version>
- #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
- #          <failed-install-package> <version> `removing'
- #          <conflicting-package> <version>
- # for details, see http://www.debian.org/doc/debian-policy/ or
- # the debian-policy package
- #
- # quoting from the policy:
- #     Any necessary prompting should almost always be confined to the
- #     post-installation script, and should be protected with a conditional
- #     so that unnecessary prompting doesn't happen if a package's
- #     installation fails and the `postinst' is called with `abort-upgrade',
- #     `abort-remove' or `abort-deconfigure'.
- 
 +case "$1" in
 +    configure)
 +        adduser --quiet --system --group --disabled-password \
-                 --shell /bin/false --gecos "Kamailio" \
-                 --home $HOMEDIR kamailio || true
++                --shell /bin/false --gecos "Kamailio SIP Server" \
++                --home /var/run/kamailio kamailio || true
 +
 +        ;;
 +
 +    abort-upgrade|abort-remove|abort-deconfigure)
 +
 +        ;;
 +
 +    *)
 +        echo "postinst called with unknown argument \`$1'" >&2
 +        exit 1
 +        ;;
 +esac
 +
 +#DEBHELPER#
 +
diff --cc pkg/kamailio/deb/precise/rules
index 914da59,0000000..2b72cff
mode 100755,000000..100755
--- a/pkg/kamailio/deb/precise/rules
+++ b/pkg/kamailio/deb/precise/rules
@@@ -1,228 -1,0 +1,201 @@@
 +#!/usr/bin/make -f
 +# Sample debian/rules that uses debhelper.
 +# GNU copyright 1997 to 1999 by Joey Hess.
- #
- # $Id$
- #
- # History:
- # --------
- #  2009-07-08  updated for sip-router (andrei)
- #  2009-12-10  updated for kamailio 3.0 (daniel)
 +
++DEBVERSION:=$(shell head -n 1 debian/changelog \
++                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
++UPVERSION:=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
++
++FILENAME := kamailio_$(UPVERSION).orig.tar.gz
++URL := http://www.kamailio.org/pub/kamailio/$(UPVERSION)/src/kamailio-$(UPVERSION)_src.tar.gz
++
++DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
++
++export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++DPKG_EXPORT_BUILDFLAGS = 1
++include /usr/share/dpkg/buildflags.mk
 +
 +# Uncomment this to turn on verbose mode.
 +#export DH_VERBOSE=1
 +
- # This is the debhelper compatibility version to use.
- # export DH_COMPAT=4
- #  -- already set in compat
- export DEB_BUILD_OPTIONS:="$(DEB_BUILD_OPTIONS) debug"
++# java stuff using libgcj12
++export JAVA_HOME=/usr/lib/jvm/java-gcj-4.6
++
++# choose freeradius
 +
 +# modules not in the "main" kamailio package
- EXCLUDED_MODULES= mi_xmlrpc
++EXCLUDED_MODULES=
 +
 +# extra modules to skip, because they are not compilable now
 +# - regardless if they go to the main kamailio package or to some module package,
 +# they will be excluded from compile and install of all
- EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy
- #EXTRA_EXCLUDED_MODULES=
- 
- # possible module directories that can appear in MODULES_SP
- # (only used for deducing a module name)
- MDIRS=modules
- 
- # modules packaged in separate packages (complete with full modules_* path)
- # with the package name: kamailio-$(module_name)-module
- MODULES_SP=
++EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec
 +
 +# module groups that are packaged in seperate packages
 +# (with the name kamailio-$(group_name)-modules)
 +# Note: the order is important (should be in dependency order, the one
 +# on which other depend first)
 +PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
- 			   ldap xml perl utils purple memcached tls \
- 			   snmpstats carrierroute xmpp cpl lua python geoip \
- 			   redis sqlite json mono ims outbound websocket \
- 			   autheph sctp
++			   ldap xml perl utils lua memcached \
++			   snmpstats carrierroute xmpp cpl redis python geoip\
++			   sqlite json mono ims sctp java \
++			   purple tls outbound websocket autheph 
 +
 +# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
- LIBDIR ?= lib
++LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
 +
 +# directories with possible duplicate libraries (that should be deleted
 +# from current module* packages)
 +DUP_LIBS_DIRS=$(CURDIR)/debian/kamailio/usr/$(LIBDIR)/kamailio \
 +			$(CURDIR)/debian/kamailio-db-modules/usr/$(LIBDIR)/kamailio
 +
- # modules names out of modules sp
- MODULES_SP_NAMES=$(filter-out $(MDIRS),$(subst /, ,$(MODULES_SP)))
- 
 +# "function" to get package short name out of a dir/module_name
 +# it also transforms db_foo into foo
 +mod_name=$(subst db_,,$(lastword $(subst /, ,$(1))))
 +
 +define PACKAGE_GRP_BUILD_template
 +	# package all the modules in PACKAGE_GROUPS in separate packages
 +	$(foreach grp,$(PACKAGE_GROUPS),\
 +		$(MAKE) every-module group_include="k$(grp)"
 +	)
 +endef
 +
 +
- define PACKAGE_MODULE_BUILD_template
- 	# package all the modules MODULES_SP in separate packages
- 	$(foreach mod,$(MODULES_SP),\
- 		$(MAKE) modules modules="$(mod)"
- 	)
- endef
- 
- 
 +define PACKAGE_GRP_INSTALL_template
 +	$(foreach grp,$(PACKAGE_GROUPS),\
- 		$(MAKE) install-modules-all group_include="k$(grp)" \
++		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
 +		basedir=$(CURDIR)/debian/kamailio-$(grp)-modules \
 +		cfg_prefix=$(CURDIR)/debian/kamailio-$(grp)-modules \
 +		doc-dir=share/doc/kamailio-$(grp)-modules
 +		# eliminate duplicate libs
 +		-for d in $(DUP_LIBS_DIRS); do \
 +			test "$$d" != "$(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio" &&\
- 			for r in $$d/lib*; do \
- 				if [ "$$r" != "$$d/lib*" ]; then \
- 					echo "removing $(grp) lib `basename $$r` present also in $$d";\
- 					rm -f $(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
- 				fi \
++			for r in `find $$d -name 'lib*'|xargs`; do \
++				echo "removing $(grp) lib `basename $$r` present also in $$d";\
++				rm -f $(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
 +			done ; \
 +		done
++		find $(CURDIR)/debian/kamailio-$(grp)-modules -depth -empty -type d -exec rmdir {} \;
 +	)
 +endef
 +
 +
- define PACKAGE_MODULE_INSTALL_template
- 	$(foreach mod,$(MODULES_SP),
- 		$(MAKE) install-modules-all modules="$(mod)" \
- 				modules_s="" modules_k="" \
- 				basedir=$(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module \
- 				doc-dir=share/doc/kamailio-$(call mod_name,$(mod))-module
- 		# eliminate duplicate libs
- 		-for d in $(DUP_LIBS_DIRS); do \
- 			test "$$d" != "$(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module/usr/$(LIBDIR)/kamailio" &&\
- 			for r in $$d/lib*; do \
- 				if [ "$$r" != "$$d/lib*" ]; then \
- 					echo "removing $(call mod_name, $(mod)) lib `basename $$r` present also in $$d";\
- 					rm -f $(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
- 				fi \
- 			done ; \
- 		done
- 	)
- endef
- 
 +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 +	CFLAGS += -g
 +endif
 +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 +	INSTALL_PROGRAM += -s
 +endif
 +
++# CFLAGS + CPPFLAGS -> CC_EXTRA_OPTS
++# LDFLAGS -> LD_EXTRA_OPTS
++CUSTOM_BUILDFLAGS:=$(shell dpkg-buildflags --export=configure| \
++sed -e 's/" CPPFLAGS="/ /' -e 's/CFLAGS/CC_EXTRA_OPTS/g' -e 's/LDFLAGS/LD_EXTRA_OPTS/g')
++
 +configure: configure-stamp
 +configure-stamp:
 +	dh_testdir
 +	# Add here commands to configure the package.
 +	$(MAKE) FLAVOUR=kamailio cfg prefix=/usr cfg_prefix=$(CURDIR)/debian/kamailio \
 +			cfg_target=/etc/kamailio/ \
 +			basedir=$(CURDIR)/debian/kamailio \
 +			skip_modules="$(EXCLUDED_MODULES) $(EXTRA_EXCLUDED_MODULES)" \
++			$(CUSTOM_BUILDFLAGS) \
 +			group_include="kstandard"
 +
 +	touch configure-stamp
 +
 +
 +build: build-stamp
- 
- build-stamp: configure-stamp 
++build-arch: build-stamp
++build-indep: build-stamp
++build-stamp: configure-stamp
 +	dh_testdir
 +	# Add here commands to compile the package.
 +	$(MAKE) all
 +	# make groups
 +	$(call PACKAGE_GRP_BUILD_template)
 +	# make single-module packages
 +	$(call PACKAGE_MODULE_BUILD_template)
 +	touch build-stamp
 +
 +clean:
 +	dh_testdir
 +	dh_testroot
 +	rm -f build-stamp configure-stamp
 +	# Add here commands to clean up after the build process.
- 	-$(MAKE) maintainer-clean
++	$(MAKE) maintainer-clean
 +	dh_clean
 +
 +install: build
 +	dh_testdir
 +	dh_testroot
- 	dh_clean -k
++	dh_prep
 +	dh_installdirs
 +	# Add here commands to install the package into debian/kamailio
- 	$(MAKE) install group_include="kstandard"
- 	# fix etc/kamailio dir location -- not needed -- andrei
- 	# mv -f $(CURDIR)/debian/kamailio/usr/etc $(CURDIR)/debian/kamailio
++	$(MAKE) install LIBDIR=$(LIBDIR) group_include="kstandard"
 +	# make group packages
 +	$(call PACKAGE_GRP_INSTALL_template)
- 	# make single module packages
- 	$(call PACKAGE_MODULE_INSTALL_template)
++	mv $(CURDIR)/debian/kamailio-berkeley-modules/usr/sbin/kambdb_recover \
++		$(CURDIR)/debian/kamailio-berkeley-bin/usr/sbin/kambdb_recover
 +	# install /etc/default/kamailio file
 +	mkdir -p $(CURDIR)/debian/kamailio/etc/default
 +	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
- 	#dh_movefiles
- 
 +
 +
 +# This single target is used to build all the packages, all at once, or
 +# one at a time. So keep in mind: any options passed to commands here will
 +# affect _all_ packages. Anything you want to only affect one package
 +# should be put in another target, such as the install target.
- binary-common: 
++binary-common:
 +	dh_testdir
 +	dh_testroot
- 	dh_installdebconf	
++	dh_installdebconf
 +	dh_installdocs
 +	dh_installexamples
 +	dh_installmenu
- #	dh_installlogrotate
- #	dh_installemacsen
- #	dh_installpam
- #	dh_installmime
- 	dh_installinit  -- defaults 23
++	dh_installinit -pkamailio -- defaults 23
 +	dh_installcron
 +	dh_installman
 +	dh_installinfo
- #	dh_undocumented
- 	dh_installchangelogs ChangeLog 
++	dh_lintian
++	dh_installchangelogs ChangeLog
 +	dh_link
 +	dh_strip --dbg-package=kamailio-dbg
- 	dh_compress 
++	dh_compress
 +	dh_fixperms
 +	dh_makeshlibs
 +	dh_installdeb
- #	dh_perl
 +	dh_shlibdeps
 +	dh_gencontrol
 +	dh_md5sums
 +	dh_builddeb
 +
 +# Build architecture-independent packages using the common target
 +binary-indep: build install
 +# (Uncomment this next line if you have such packages.)
 +#        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
 +# We have nothing to do by default.
 +
 +
 +# Build architecture-dependent packages using the common target
 +binary-arch: build install
 +	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
 +
 +# Any other binary targets build just one binary package at a time.
 +binary-%: build install
 +	$(MAKE) -f debian/rules binary-common DH_OPTIONS=-p$*
 +
++print-version:
++	@@echo "Debian version:          $(DEBVERSION)"
++	@@echo "Upstream version:        $(UPVERSION)"
++
++get-orig-source:
++	@@dh_testdir
++	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
++	@@echo Downloading $(FILENAME) from $(URL) ...
++	@@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
++
 +binary: binary-indep binary-arch
 +.PHONY: build clean binary-indep binary-arch binary install configure
 +
diff --cc pkg/kamailio/deb/precise/source.lintian-overrides
index 0000000,0000000..620d9ff
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/precise/source.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio source: debian-watch-file-in-native-package
diff --cc pkg/kamailio/deb/precise/source/format
index 0000000,0000000..89ae9db
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/precise/source/format
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (native)
diff --cc pkg/kamailio/deb/precise/watch
index 0000000,0000000..c50f31f
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/precise/watch
@@@ -1,0 -1,0 +1,3 @@@
++version=3
++opts=dversionmangle=s/\~svn([\d]+)//; \
++http://www.kamailio.org/pub/kamailio/([\d.]+)/src/kamailio-([\d.]+)_src\.tar\.gz
diff --cc pkg/kamailio/deb/squeeze/changelog
index fcf832b,0000000..6a44d80
mode 100644,000000..100644
--- a/pkg/kamailio/deb/squeeze/changelog
+++ b/pkg/kamailio/deb/squeeze/changelog
@@@ -1,94 -1,0 +1,100 @@@
++kamailio (4.1.2) unstable; urgency=low
++
++  * update to 4.1.2 from upstream
++
++ -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 06 Mar 2014 15:25:35 +0100
++
 +kamailio (4.1.1) unstable; urgency=low
 +
 +  * update to 4.1.1 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 09 Jan 2014 15:45:35 +0100
 +
 +kamailio (4.1.0) unstable; urgency=low
 +
 +  * update to 4.1.0
 +
 + -- Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 04 Dec 2013 11:42:27 +0100
 +
 +kamailio (4.0.0) unstable; urgency=low
 +
 +  * update to 4.0.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 11 Mar 2013 10:40:30 +0100
 +
 +kamailio (3.4.0~dev0) unstable; urgency=low
 +
 +  * update version to 3.4.0~dev0
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Wed, 15 Jun 2012 03:15:00 +0100
 +
 +kamailio (3.2.0) unstable; urgency=low
 +
 +  * update to 3.2.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Fri, 29 Apr 2011 12:25:30 +0100
 +
 +kamailio (3.1.1) unstable; urgency=low
 +
 +  * update to 3.1.1 from upstream
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Fri, 3 Dec 2010 16:30:00 +0100
 +
 +kamailio (3.1.0) unstable; urgency=low
 +
 +  * update to 3.1.0 from upstream
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Wed, 6 Oct 2010 17:24:00 +0100
 +
 +kamailio (3.0.2.99) unstable; urgency=low
 +
 +  * update to 3.0.2.99 for development version builds
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Fri, 28 May 2010 22:26:00 +0100
 +
 +kamailio (3.0.2) unstable; urgency=low
 +
 +  * update to 3.0.2 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 27 May 2010 10:27:36 +0100
 +
 +kamailio (3.0.1) unstable; urgency=low
 +
 +  * update to 3.0.1 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 08 Mar 2010 20:30:48 +0100
 +
 +kamailio (3.0.0) unstable; urgency=low
 +
 +  * update to 3.0.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 11 Jan 2010 18:30:42 +0100
 +
 +kamailio (3.0.0-rc3) unstable; urgency=low
 +
 +  * update to 3.0.0-rc3 from upstream
 +  * updated debian/rules to work with the SIP Router style module packaging
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Fri, 10 Dec 2009 12:10:02 +0100
 +
 +kamailio (3.0.0-rc2) unstable; urgency=low
 +
 +  * update to 3.0.0-rc2 from upstream
 +  * updated debian/rules to work with the new style module packaging
 +
 + -- Jonas Bergler <jonas.bergler at staff.snap.net.nz>  Wed, 18 Nov 2009 12:30:02 +1300
 +
 +kamailio (1.5.0-svn1) unstable; urgency=low
 +
 +  * increment debian packaging for trunk
 +
 + -- Henning Westerholt <henning.westerholt at 1und1.de>  Mon, 02 Mar 2009 17:40:02 +0100
 +
 +kamailio (1.4.0-svn1) unstable; urgency=low
 +
 +  [ Klaus Darilion ]
 +  * first release of Kamailio (after renaming from Openser)
 +
 + -- Julien BLACHE <jblache at debian.org>  Wed, 12 Dec 2007 17:25:31 +0100
 +
 +
diff --cc pkg/kamailio/deb/squeeze/compat
index 7ed6ff8,0000000..45a4fb7
mode 100644,000000..100644
--- a/pkg/kamailio/deb/squeeze/compat
+++ b/pkg/kamailio/deb/squeeze/compat
@@@ -1,1 -1,0 +1,1 @@@
- 5
++8
diff --cc pkg/kamailio/deb/squeeze/control
index 6f49d63,0000000..e3ba9f8
mode 100644,000000..100644
--- a/pkg/kamailio/deb/squeeze/control
+++ b/pkg/kamailio/deb/squeeze/control
@@@ -1,445 -1,0 +1,444 @@@
 +Source: kamailio
 +Section: net
 +Priority: optional
- Maintainer: Jon Bonilla <manwe at aholab.ehu.es>
++Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
++Uploaders: Victor Seva <linuxmaniac at torreviejawireless.org>,
++           Tzafrir Cohen <tzafrir at debian.org>
 +Build-Depends: bison,
-                debhelper (>= 5),
++               debhelper (>= 8), 
 +               docbook-xml,
-                dpatch,
-                dpkg-dev (>= 1.13.19),
 +               flex,
 +               libconfuse-dev,
-                libcurl3-openssl-dev,
++               libcurl4-openssl-dev,
 +               libdb-dev (>= 4.6.19),
 +               libevent-dev,
 +               libexpat1-dev,
 +               libgeoip-dev (>= 1.4.5),
 +               libjson0-dev,
 +               libldap2-dev,
 +               liblua5.1-0-dev,
 +               libmemcached-dev,
 +               libmysqlclient-dev,
 +               libncurses5-dev,
 +               libpcre3-dev,
 +               libperl-dev,
 +               libpq-dev,
 +               libradiusclient-ng-dev,
 +               libreadline-dev,
 +               libsasl2-dev,
-                libsctp-dev,
 +               libsnmp-dev,
 +               libsqlite3-dev,
-                libssl-dev,
++               libunistring-dev,
 +               libxml2-dev,
 +               libxmlrpc-c3-dev,
-                libunistring-dev,
++               openssl,
 +               python,
 +               python-dev,
 +               unixodbc-dev,
-                xsltproc,
-                zlib1g-dev
- Standards-Version: 3.9.3
++               xsltproc
++Standards-Version: 3.9.5
 +Homepage: http://www.kamailio.org/
++Vcs-git: git://anonscm.debian.org/pkg-voip/kamailio.git
++Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-voip/kamailio.git
 +
 +Package: kamailio
- Architecture: any
- Depends: adduser,
-          ${misc:Depends},
-          ${shlibs:Depends}
- Conflicts: kamailio-regex-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: adduser, python, ${misc:Depends}, ${shlibs:Depends}
 +Suggests: kamailio-berkeley-modules,
 +          kamailio-carrierroute-modules,
 +          kamailio-cpl-modules,
 +          kamailio-dbg,
 +          kamailio-ldap-modules,
 +          kamailio-lua-modules,
 +          kamailio-mysql-modules,
 +          kamailio-perl-modules,
 +          kamailio-postgres-modules,
 +          kamailio-presence-modules,
 +          kamailio-python-modules,
 +          kamailio-radius-modules,
 +          kamailio-snmpstats-modules,
 +          kamailio-tls-modules,
 +          kamailio-unixodbc-modules,
 +          kamailio-xml-modules,
 +          kamailio-xmpp-modules
 +Description: very fast and configurable SIP proxy
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + C Shell-like scripting language provides full control over the server's
 + behaviour. Its modular architecture allows only required functionality to be
 + loaded.
 + .
-  Among others, the following modules are available: Digest Authentication, CPL
-  scripts, Instant Messaging, MySQL support, Presence Agent, Radius
-  Authentication, Record Routing, SMS Gateway, Jabber/XMPP Gateway, Transaction
-  Module, Registrar and User Location, XMLRPC Interface.
++ Among others, the following modules are available: digest authentication, CPL
++ scripts, instant messaging, MySQL support, presence agent, RADIUS
++ authentication, record routing, SMS gateway, Jabber/XMPP gateway, transaction
++ module, registrar and user location, XML-RPC interface.
 + .
 + This package contains the main Kamailio binary along with the principal modules
 + and support binaries.
 +
 +Package: kamailio-dbg
- Architecture: any
++Priority: extra
++Section: debug
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}
++Description: very fast and configurable SIP proxy [debug symbols]
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package contains the debugging symbols for the Kamailio binaries and
++ modules. You only need to install it if you need to debug Kamailio.
++
++Package: kamailio-geoip-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the geoip module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the geoip module, an extension allowing to
++ use GeoIP API within configuration file.
++
++Package: kamailio-sqlite-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Recommends: sqlite3
++Description: SQLite database connectivity module for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the SQLite database driver for Kamailio.
++
++Package: kamailio-json-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Json parser and jsonrpc modules for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides json parser for Kamailio's configuration file
++ and the JSON-RPC client over netstrings.
++
++Package: kamailio-memcached-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Replaces: kamailio-memcached-module
++Description: Provides the memcached module, an interface to the memcached server
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the memcached module, an interface to the memcached
++ server, a high-performance, distributed memory object caching system.
++
++Package: kamailio-lua-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the app_lua module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the app_lua module, an extension allowing to
++ execute embedded Lua applications within configuration file.
++
++Package: kamailio-python-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
++         python-dev,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Description: Debugging symbols for Kamailio SIP proxy
++Description: contains the app_python module
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides gdb debugging symbols  for Kamailio
++ This package provides the app_python module, an extension allowing to
++ execute embedded Python applications within configuration file.
 +
 +Package: kamailio-mysql-modules
- Architecture: any
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         mysql-client,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-mysql-module
 +Description: MySQL database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the MySQL database driver for Kamailio.
 +
 +Package: kamailio-postgres-modules
- Architecture: any
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         postgresql-client,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-postgres-module
 +Description: PostgreSQL database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the PostgreSQL database driver for Kamailio.
 +
 +Package: kamailio-cpl-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-cpl-module
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: CPL module (CPL interpreter engine) for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides a CPL (Call Processing Language) interpreter for
 + Kamailio, turning Kamailio into a CPL server (storage and interpreter).
 +
 +Package: kamailio-radius-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: radius modules for Kamailio
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: RADIUS modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides a set of Radius modules for Kamailio, for
-  authentication, peering, group membership and messages URIs checking
-  against a Radius Server.
++ This package provides a set of RADIUS modules for Kamailio, for
++ authentication, peering, group membership and messages URIs checking against a
++ RADIUS server.
 +
 +Package: kamailio-unixodbc-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-unixodbc-module
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: unixODBC database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the unixODBC database driver for Kamailio.
 +
 +Package: kamailio-presence-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: SIMPLE presence modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides several Kamailio modules for implementing presence
 + server and presence user agent for RICH presence, registrar-based presence,
 + external triggered presence and XCAP support.
 +
- Package: kamailio-xml-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-xml-module,
-           kamailio-xmlrpc-module
- Provides: kamailio-xmlrpc-modules
- Description: XML based extensions for Kamailio's Management Interface
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides:
-  - the XMLRPC transport implementations for Kamailio's
-  Management and Control Interface.
-  - xmlops module for XPath operations in configuration file
- 
- Package: kamailio-xmlrpc-modules
- Architecture: any
- Depends: kamailio-xml-modules (= ${binary:Version})
- Description: Transitional package for kamailio-xml-modules
-  Dummy package for transition handling
- 
 +Package: kamailio-perl-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-perl-module
- Conflicts: kamailio-perl-module
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: Perl extensions and database driver for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides an interface for Kamailio to write Perl extensions and
 + the perlvdb database driver for Kamailio.
 +
 +Package: kamailio-snmpstats-modules
- Architecture: any
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         snmpd,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-snmpstats-module
 +Description: SNMP AgentX subagent module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the snmpstats module for Kamailio. This module acts
 + as an AgentX subagent which connects to a master agent.
 +
 +Package: kamailio-xmpp-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-xmpp-module
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: XMPP gateway module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the SIP to XMPP IM translator module for Kamailio.
 +
++Package: kamailio-xml-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Replaces: kamailio-xml-module, kamailio-xmlrpc-module
++Provides: kamailio-xmlrpc-modules
++Description: XML based extensions for Kamailio's Management Interface
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides:
++ - the XMLRPC transport implementations for Kamailio's
++ Management and Control Interface.
++ - xmlops module for XPath operations in configuration file
++
 +Package: kamailio-carrierroute-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-carrierroute-module
- Description: Carrierroute module for Kamailio
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: carrierroute module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the carrierroute module for Kamailio, an integrated
 + solution for routing, balancing and blacklisting.
 +
 +Package: kamailio-berkeley-modules
- Architecture: any
- Depends: db4.6-util,
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: db5.1-util,
 +         kamailio (= ${binary:Version}),
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-berkeley-module
- Description: Berkeley Database module for Kamailio
++Description: Berkeley database module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the berkeley database module for Kamailio, a
++ This package provides the Berkeley database module for Kamailio, a
 + high-performance embedded DB kernel. All database tables are stored
 + in files, no additional server is necessary.
 +
++Package: kamailio-berkeley-bin
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: ${misc:Depends}, ${shlibs:Depends}
++Description: Berkeley database module for Kamailio - helper program
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides helper modules for the Berkeley database module for
++ Kamailio, a high-performance embedded DB kernel. You should normally
++ install kamailio-berkeley-modules and not this package directly.
++
 +Package: kamailio-ldap-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: LDAP modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the ldap and h350 modules for Kamailio, enabling LDAP
 + queries from the Kamailio config and storage of SIP account data in an LDAP
 + directory.
 +
- Package: kamailio-utils-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-utils-module
- Description: Provides a set utility functions for Kamailio
++Package: kamailio-ims-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: IMS module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  Provides a set of utility functions for Kamailio, which are not related
-  to the server configuration.
++ This package contains various Diameter interfaces and modules for Kamailio
++ to run as an IMS core.
 +
- Package: kamailio-memcached-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-memcached-module
- Description: Provides the memcached module, an interface to the memcached server
++Package: kamailio-utils-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Provides a set utility functions for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the memcached module, an interface to the memcached
-  server, a high-performance, distributed memory object caching system.
++ Provides a set of utility functions for Kamailio, which are not related
++ to the server configuration.
 +
 +Package: kamailio-tls-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: contains the TLS kamailio transport module
-  This has been split out of the main kamailio package, so that kamailio will not
-  depend on openssl. This module will enable you to use the TLS transport.
++ This has been split out of the main kamailio package, so that kamailio will
++ not depend on openssl. This module will enable you to use the TLS transport.
 +
- Package: kamailio-lua-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_lua module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_lua module, an extension allowing to
-  execute embedded Lua applications within configuration file.
- 
- Package: kamailio-python-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_python module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_python module, an extension allowing to
-  execute embedded Python applications within configuration file.
- 
- Package: kamailio-geoip-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the geoip module
++Package: kamailio-outbound-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Outbound module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the geoip module, an extension allowing to
-  use GeoIP API within configuration file.
++ This package contains the module implementing SIP outbound extension.
 +
- Package: kamailio-sqlite-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libsqlite3-0,
-          ${shlibs:Depends}
- Description: SQLite database connectivity module for Kamailio
++Package: kamailio-websocket-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Websocket module for kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the SQLite database driver for Kamailio.
++ This package contains the module implementing WebSocket transport layer.
 +
- Package: kamailio-json-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libevent-1.4-2,
-          libjson0,
-          ${shlibs:Depends}
- Description: Json parser and jsonrpc modules for Kamailio
++Package: kamailio-autheph-modules
++Architecture: linux-any
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: authentication using ephemeral credentials module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides json parser for Kamailio's configuration file
-  and the JSON-RPC client over netstrings.
++ This package provides the ephemeral module for Kamailio.
 +
 +Package: kamailio-nth
 +Architecture: any
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: binutils,
 +         bison,
 +         bvi,
 +         flex,
 +         gcc,
 +         gdb,
 +         iftop,
 +         lsof,
 +         mc,
 +         most,
 +         ngrep,
 +         psmisc,
 +         screen,
 +         sipsak,
 +         tcpdump,
-          vim
++         vim,
++         ${misc:Depends}
 +Description: Kamailio - package for "nice to have" installation
-  This is a meta-package for easy installation various useful tools that may be
++ This is a metapackage for easy installation various useful tools that may be
 + handy on server with Kamailio installed.
- 
- Package: kamailio-ims-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - IMS Modules
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains various Diameter interfaces and modules for Kamailio
-  to run as an IMS core.
- 
- Package: kamailio-outbound-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - Outbound Module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains the module implementing SIP outbound extension.
- 
- Package: kamailio-websocket-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - Websocket Module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains the module implementing WebSocket transport layer.
- 
- Package: kamailio-autheph-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: authentication using ephemeral credentials module for Kamailio
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the ephemeral module for Kamailio.
- 
- Package: kamailio-sctp-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: authentication using ephemeral credentials module for Kamailio
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the sctp module for Kamailio.
diff --cc pkg/kamailio/deb/squeeze/copyright
index 801eac4,0000000..ff31338
mode 100644,000000..100644
--- a/pkg/kamailio/deb/squeeze/copyright
+++ b/pkg/kamailio/deb/squeeze/copyright
@@@ -1,27 -1,0 +1,335 @@@
- This package was debianized by Andrei Pelinescu-Onciul
- <pelinescu-onciul at fokus.fraunhofer.de> on Tue, 16 Jul 2002 15:41:31 +0200.
- This package was debianized by Julien BLACHE <jblache at debian.org>
- on Thu, 29 Jun 2006 09:55:24 +0200, based on Andrei's work.
- 
- It was downloaded from: http://kamailio.org
- 
- Upstream Authors:
-        Andrei Pelinescu-Onciul <pelinescu-onciul at fokus.fraunhofer.de>
-        Bogdan-Andrei Iancu <bogdan at voice-system.ro>
-        Daniel-Constantin Mierla <miconda at gmail.com>
-        Jan Janak <jan at iptel.org>
-        Jiri Kuthan <jiri at iptel.org>
-        Juha Heinanen
-        Ramona-Elena Modroiu
-        Maxim Sobolev
-        Miklos Tirpak
-        Nils Ohlmeier
-        and others ; see the AUTHORS file in the source code tree for details
- 
- This software is copyright (c) 2002-2003 by FhG Fokus
- 
- You are free to distribute this software under the terms of
- the GNU General Public License.
- 
- On Debian systems, the complete text of the GNU General Public
- License can be found in the file `/usr/share/common-licenses/GPL.
++Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: Kamailio
++Upstream-Contact: sr-dev at lists.sip-router.org
++Source: http://www.kamailio.org/pub/kamailio/
++
++Files: *
++Copyright:
++ 2001-2003 FhG Fokus
++ 2006-2010 iptelorg GmbH
++ Various others (see AUTHORS file)
++License: GPL-2.0+
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++
++Files: debian/*
++Copyright: 2012, 2013, 2014 Victor Seva <linuxmaniac at torreviejawireless.org>
++           2009, 2010, 2011, Daniel-Constantin Mierla <miconda at gmail.com>
++           2010, Jon Bonilla <manwe at aholab.ehu.es>
++           2009, Jonas Bergler <jonas.bergler at staff.snap.net.nz>
++           2009, Henning Westerholt <henning.westerholt at 1und1.de>
++           2007, Julien BLACHE <jblache at debian.org>
++License: GPL-2+
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++
++
++Files: atomic/* atomic_ops.* basex.* bit_*.c char_msg_val.h compiler_opt.h
++ core_stats.h counters.* endianness.* futexlock.h hashes.h io_wait.*
++ kstats_types.h lib/kcore/kstats_wrapper.* lock_ops.c lock_ops_init.h
++ lvalue.* mem/ll_malloc.* mem/memdbg.h mem/sf_malloc.* mi/*.h mod_fix.*
++ modules/tm/rpc_uac.* modules/counters/counters.c modules/tls/sbufq.h
++ modules/tls/tls_bio.* modules/tls/tls_cfg.* modules/tls/tls_cfg.h
++ modules/tls/tls_ct_wrq.* modules/tls/tls_ct_q.h modules/tls/tls_domain.*
++ modules/tls/tls_server.h modules/tls/tls_locking.* modules/tls/tls_rpc.*
++ modules/tls/tls_server.c modules/malloc_test/malloc_test.c modules/blst/blst.c
++ parser/case_p_* parser/case_reas.h pvapi.h pv_core.* rand/fastrand.* raw_*
++ rpc_lookup.* rvalue.* sctp_* ser_time.h shm_init.* sip_msg_clone.* sock_ut.*
++ sr_compat.* str_hash.h switch.* tcp_ev.h tcp_int_send.h tcp_options.*
++ tcp_read.h tcp_stats.* timer_proc.* tls_hooks.* tls_hooks_init.h ver.*
++Copyright: 2006-2010 iptelorg GmbH
++License: ISC
++
++Files: modules/tls/tls_select.* modules/tls/tls_dump_vf.*
++Copyright: 2005-2010 iptelorg GmbH
++License: GPL-2 + OpenSSL exception
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++ * Exception: permission to copy, modify, propagate, and distribute a work
++ * formed by combining OpenSSL toolkit software and the code in this file,
++ * such as linking with software components and libraries released under
++ * OpenSSL project license.
++
++Files: modules/websocket/* modules/outbound/* modules/auth_ephemeral/*
++Copyright: 2012-2013 Crocodile RCS Ltd
++License: GPL-2 + OpenSSL exception
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++ * Exception: permission to copy, modify, propagate, and distribute a work
++ * formed by combining OpenSSL toolkit software and the code in this file,
++ * such as linking with software components and libraries released under
++ * OpenSSL project license.
++
++Files: daemonize.* fastlock.h lock_ops.h mem/mem.* mem/f_malloc.h
++ mem/meminfo.h mem/memtest.c mem/shm_mem.c mem/q_malloc.h mem/q_malloc.c
++ mem/shm_mem.h mem/f_malloc.c modules/tls/tls_rpc.c modules/tls/tls_server.c
++ modules/tls/tls_domain.c modules/tls/tls_domain.h modules/tls/tls_server.h
++ modules/tls/tls_rpc.h pt.c pt.h sched_yield.h ut.c ut.h
++Copyright: 2001-2003 FhG Fokus
++License: ISC
++
++Files: events.* modules/topoh/*
++Copyright: 2009 SIP-Router.org
++License: ISC
++
++Files: modules/mi_rpc/mi_rpc_mod.c modules/pv/pv_xavp.*
++ modules/usrloc/ul_rpc.* ppcfg.* xavp.*
++Copyright: 2009-2010 Daniel-Constantin Mierla (asipto.com)
++License: ISC
++
++Files: obsolete/jabber_k/tree234.*
++Copyright: 1999, 2000, 2001, Simon Tatham
++License: Expat
++ Permission is hereby granted, free of charge, to any person
++ obtaining a copy of this software and associated documentation
++ files (the "Software"), to deal in the Software without
++ restriction, including without limitation the rights to use,
++ copy, modify, merge, publish, distribute, sublicense, and/or
++ sell copies of the Software, and to permit persons to whom the
++ Software is furnished to do so, subject to the following
++ conditions:
++ .
++ The above copyright notice and this permission notice shall be
++ included in all copies or substantial portions of the Software.
++ .
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
++ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++ NONINFRINGEMENT.  IN NO EVENT SHALL SIMON TATHAM BE LIABLE FOR
++ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
++ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
++ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
++ SOFTWARE.
++
++Files: modules/xmpp/xsnprintf.c obsolete/jabber_s/xsnprintf.c obsolete/jabber_k/xsnprintf.c
++Copyright: 1995-1998, The Apache Group
++License: Apache-1.0
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ .
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ .
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in
++    the documentation and/or other materials provided with the
++    distribution.
++ .
++ 3. All advertising materials mentioning features or use of this
++    software must display the following acknowledgment:
++    "This product includes software developed by the Apache Group
++    for use in the Apache HTTP server project (http://www.apache.org/)."
++ .
++ 4. The names "Apache Server" and "Apache Group" must not be used to
++    endorse or promote products derived from this software without
++    prior written permission.
++ .
++ 5. Redistributions of any form whatsoever must retain the following
++    acknowledgment:
++    "This product includes software developed by the Apache Group
++    for use in the Apache HTTP server project (http://www.apache.org/)."
++ .
++ THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY
++ EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE APACHE GROUP OR
++ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ OF THE POSSIBILITY OF SUCH DAMAGE.
++
++Files: modules/mi_xmlrpc/abyss*
++Copyright: 2000, Moez Mahfoudh <mmoez at bigfoot.com>
++License: BSD-3-clause
++
++Files: list.h
++Copyright: 1991, 1993 The Regents of the University of California
++License: BSD-3-clause
++
++Files: modules/tm/t_serial.*
++Copyright: 2008 Juha Heinanen
++License: BSD-2-clause
++
++Files: parser/sdp/sdp.* parser/sdp/sdp_helpr_funcs.* parser/sdp/sdp_cloner.h
++Copyright:
++ 2008-2009 SOMA Networks, INC.
++ 2010 VoIP Embedded, Inc
++License: BSD-2-clause
++
++Files: modules/tls/fixed_c_zlib.h
++Copyright:1998-2005 The OpenSSL Project
++Comment: file copied from OpenSSL 0.9.8, refers to OpenSSL License. Note that
++ this code will not build by default in the Debian packaging.
++License: OpenSSL
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ .
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ .
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in
++    the documentation and/or other materials provided with the
++    distribution.
++ .
++ 3. All advertising materials mentioning features or use of this
++    software must display the following acknowledgment:
++    "This product includes software developed by the OpenSSL Project
++    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
++ .
++ 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
++    endorse or promote products derived from this software without
++    prior written permission. For written permission, please contact
++    openssl-core at openssl.org.
++ .
++ 5. Products derived from this software may not be called "OpenSSL"
++    nor may "OpenSSL" appear in their names without prior written
++    permission of the OpenSSL Project.
++ .
++ 6. Redistributions of any form whatsoever must retain the following
++    acknowledgment:
++    "This product includes software developed by the OpenSSL Project
++    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
++ .
++ THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
++ EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
++ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ OF THE POSSIBILITY OF SUCH DAMAGE.
++
++Files: md5.* md5utils.c
++Copyright: 1991-2, RSA Data Security, Inc
++Comment: Note that md5.c and md5.h have been replaced in the patches
++ plum_md5*.patch .
++ .
++ As for md5utils.c, according to a mail from Upstream (Daniel-Constantin
++ Mierla): while the initial commit log for it states that it is derived
++ from mddriver.c of RFC 1321, it seems that it was, in fact, written from
++ scratch by Jiri Kuthan (a core developer of SER at that time, working for
++ FhG Fokus Institute). As you can see it's rather trivial and uses a data
++ type of SER ("str").  I didn't reimplement it as it's too trivial and
++ looks like there's no other way to implement it.
++License: RSA-MD5
++ License to copy and use this software is granted provided that it
++ is identified as the "RSA Data Security, Inc. MD5 Message-Digest
++ Algorithm" in all material mentioning or referencing this software
++ or this function.
++ .
++ License is also granted to make and use derivative works provided
++ that such works are identified as "derived from the RSA Data
++ Security, Inc. MD5 Message-Digest Algorithm" in all material
++ mentioning or referencing the derived work.
++ .
++ RSA Data Security, Inc. makes no representations concerning either
++ the merchantability of this software or the suitability of this
++ software for any particular purpose. It is provided "as is"
++ without express or implied warranty of any kind.
++ .
++ These notices must be retained in any copies of any part of this
++ documentation and/or software.
++
++Files: mem/dl_*
++Copyright: n/a
++License: public-domain
++ This is a version (aka dlmalloc) of malloc/free/realloc written by
++ Doug Lea and released to the public domain, as explained at
++ http://creativecommons.org/licenses/publicdomain.  Send questions,
++ comments, complaints, performance data, etc to dl at cs.oswego.edu
++
++Files: rand/isaac/*
++Copyright: n/a
++License: public-domain
++ By Bob Jenkins.  My random number generator, ISAAC.  Public Domain.
++
++License: ISC
++ Permission to use, copy, modify, and distribute this software for any
++ purpose with or without fee is hereby granted, provided that the above
++ copyright notice and this permission notice appear in all copies.
++ .
++ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
++ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
++ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
++ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
++ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
++ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
++ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
++
++Files: lib/srutils/srjson.*
++Copyright: 2009 Dave Gamble
++License: MIT
++ Permission is hereby granted, free of charge, to any person obtaining a copy
++ of this software and associated documentation files (the "Software"), to deal
++ in the Software without restriction, including without limitation the rights
++ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
++ copies of the Software, and to permit persons to whom the Software is
++ furnished to do so, subject to the following conditions:
++ .
++ The above copyright notice and this permission notice shall be included in
++ all copies or substantial portions of the Software.
++ ,
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
++ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
++ THE SOFTWARE.
++
++License: BSD-3-clause
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in the
++    documentation and/or other materials provided with the distribution.
++ 4. Neither the name of the University nor the names of its contributors
++    may be used to endorse or promote products derived from this software
++    without specific prior written permission.
++ .
++ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
++ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
++ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
++ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
++ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
++ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
++ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
++ SUCH DAMAGE.
++
++License: BSD-2-clause
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions are met:
++ .
++  1. Redistributions of source code must retain the above copyright notice,
++     this list of conditions and the following disclaimer.
++  2. Redistributions in binary form must reproduce the above copyright
++     notice, this list of conditions and the following disclaimer in the
++     documentation and/or other materials provided with the distribution.
++ .
++ THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS OR
++ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
++ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
++ EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
++ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
++ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
++ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
++ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
++ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --cc pkg/kamailio/deb/squeeze/kamailio-autheph-modules.lintian-overrides
index 0000000,0000000..dcb3d18
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/squeeze/kamailio-autheph-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-autheph-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/squeeze/kamailio-berkeley-bin.dirs
index 0000000,0000000..236670a
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/squeeze/kamailio-berkeley-bin.dirs
@@@ -1,0 -1,0 +1,1 @@@
++usr/sbin
diff --cc pkg/kamailio/deb/squeeze/kamailio-dnssec-modules.lintian-overrides
index 0000000,0000000..10165fe
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/squeeze/kamailio-dnssec-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-dnssec-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/squeeze/kamailio-outbound-modules.lintian-overrides
index 0000000,0000000..3050cfe
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/squeeze/kamailio-outbound-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-outbound-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/squeeze/kamailio-tls-modules.lintian-overrides
index 0000000,0000000..bbe0d37
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/squeeze/kamailio-tls-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-tls-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/squeeze/kamailio-websocket-modules.lintian-overrides
index 0000000,0000000..8f384fb
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/squeeze/kamailio-websocket-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-websocket-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/squeeze/kamailio.README.Debian
index 4eaf90b,0000000..d25769a
mode 100644,000000..100644
--- a/pkg/kamailio/deb/squeeze/kamailio.README.Debian
+++ b/pkg/kamailio/deb/squeeze/kamailio.README.Debian
@@@ -1,38 -1,0 +1,39 @@@
 +Kamailio for Debian
- ------------------
++-------------------
 +
 +* init script check for fork=no
 +-------------------------------
 +
 +The Kamailio init script will not start Kamailio on boot if fork=no is
 +specified in the config file. The check in the initscript will match
 +any occurrence of fork=no in the file, even inside C-style comments.
 +
 +You can disable this check in the init script if you wish; just comment
 +out the calls to the check_fork function in the script. Your changes to
 +the init script will be preserved upon upgrade, as the file is tagged
 +as a conffile.
 +
 +
 +* Kamailio setup
- ---------------
++----------------
 +
 +To setup Kamailio, you need to:
 + - configure Kamailio properly to suit your needs
 + - edit /etc/default/kamailio, adjust the MEMORY parameter and set
 +   RUN_KAMAILIO to "yes"
 +
 +If you are building an HA cluster using heartbeat or similar, you'll want
 +to disable the init script by running:
 +
 +  update-rc.d kamailio remove
 +
 +so that Kamailio will not be launched at system startup. You still need
 +to set RUN_KAMAILIO to "yes" if you want to use the /etc/init.d/kamailio init
 +script.
 +
 +Set the DUMP_CORE parameter in /etc/default/kamailio to "yes" if you want to
 +get a core dump in case Kamailio crashes. The debug symbols for Kamailio are
 +provided by the kamailio-dbg package.
 +
- -- Julien BLACHE <jblache at debian.org>, Fri, 08 Sep 2006 14:43:21 +0200
++
++ -- Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 11 Dec 2013 16:07:11 +0100
diff --cc pkg/kamailio/deb/squeeze/kamailio.default
index 3221104,0000000..0cfc8c8
mode 100644,000000..100644
--- a/pkg/kamailio/deb/squeeze/kamailio.default
+++ b/pkg/kamailio/deb/squeeze/kamailio.default
@@@ -1,33 -1,0 +1,28 @@@
 +#
 +# Kamailio startup options
 +#
 +
 +# Set to yes to enable kamailio, once configured properly.
- RUN_KAMAILIO=no
++#RUN_KAMAILIO=yes
 +
 +# User to run as
- USER=kamailio
++#USER=kamailio
 +
 +# Group to run as
- GROUP=kamailio
++#GROUP=kamailio
 +
- # Amount of shared memory to allocate for the running Kamailio server (in Mb)
- SHM_MEMORY=64
++# Amount of shared and private memory to allocate
++# for the running Kamailio server (in Mb)
++#SHM_MEMORY=64
++#PKG_MEMORY=4
 +
- # Amount of private memory for each Kamailio process (in Mb)
- PKG_MEMORY=4
- 
- # Switch to USER and GROUP by start-stop-daemon or by kamailio itself
- # - with recent kernels, changing user ID inside applicaton prevents
- #   dumping core files. If the value is 'yes', the suid is done by
- #   start-stop-daemon, otherwise it is done by kamailio itself
- SSD_SUID=no
++# Config file
++#CFGFILE=/etc/kamailio/kamailio.cfg
 +
 +# Enable the server to leave a core file when it crashes.
 +# Set this to 'yes' to enable Kamailio to leave a core file when it crashes
 +# or 'no' to disable this feature. This option is case sensitive and only
 +# accepts 'yes' and 'no' and only in lowercase letters.
- # On some systems (e.g. Ubuntu 6.10, Debian 4.0) it is necessary to specify
- # a directory for the core files to get a dump. Look into the kamailio
- # init file for an example configuration.
- DUMP_CORE=no
++# On some systems it is necessary to specify a directory for the core files
++# to get a dump. Look into the kamailio init file for an example configuration.
++#DUMP_CORE=yes
diff --cc pkg/kamailio/deb/squeeze/kamailio.init
index 6b0a1ee,0000000..1f8f796
mode 100644,000000..100644
--- a/pkg/kamailio/deb/squeeze/kamailio.init
+++ b/pkg/kamailio/deb/squeeze/kamailio.init
@@@ -1,240 -1,0 +1,162 @@@
 +#! /bin/sh
 +#
 +### BEGIN INIT INFO
 +# Provides:          kamailio
 +# Required-Start:    $syslog $network $local_fs $remote_fs $time
++# Should-Start:      $named slapd mysql postgresql snmpd radiusd
++# Should-Stop:       $named slapd mysql postgresql snmpd radiusd
 +# Required-Stop:     $syslog $network $local_fs $remote_fs
 +# Default-Start:     2 3 4 5
 +# Default-Stop:      0 1 6
- # Should-Start:      postgresql mysql radius
- # Should-Stop:       postgresql mysql radius
 +# Short-Description: Start the Kamailio SIP proxy server
 +# Description:       Start the Kamailio SIP proxy server
 +### END INIT INFO
 +
++. /lib/lsb/init-functions
 +
 +PATH=/sbin:/bin:/usr/sbin:/usr/bin
 +DAEMON=/usr/sbin/kamailio
 +NAME=kamailio
- DESC=Kamailio
++DESC="Kamailio SIP server"
 +HOMEDIR=/var/run/kamailio
 +PIDFILE=$HOMEDIR/$NAME.pid
 +DEFAULTS=/etc/default/kamailio
 +CFGFILE=/etc/kamailio/kamailio.cfg
 +RUN_KAMAILIO=no
- 
++USER=kamailio
++GROUP=kamailio
++# Amount of shared and private memory to allocate
++# for the running Kamailio server (in Mb)
++SHM_MEMORY=64
++PKG_MEMORY=4
++DUMP_CORE=no
 +
 +# Do not start kamailio if fork=no is set in the config file
- # otherwise the boot process will just stop.
++# otherwise the boot process will just stop
 +check_fork ()
 +{
-   if grep -q "^[[:space:]]*fork[[:space:]]*=[[:space:]]*no.*" $CFGFILE; then
-     echo "Not starting $DESC: fork=no specified in config file. Run /etc/init.d/kamailio debug instead."
-     exit 1
-   fi
++    if grep -q "^[[:space:]]*fork[[:space:]]*=[[:space:]]*no.*" $CFGFILE; then
++	log_failure_msg "Not starting $DESC: fork=no specified in config file; run /etc/init.d/kamailio debug instead"
++	exit 0
++    fi
 +}
 +
- 
 +check_kamailio_config ()
 +{
-   # Check if kamailio configuration is valid before starting the server.
-   set +e
-   out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
-   retcode=$?
-   set -e
-   if [ "$retcode" != '0' ]; then
-     echo "Not starting $DESC: invalid configuration file!"
-     echo -e "\n$out\n"
-     exit 1
-   fi
- }
- 
- 
- check_homedir ()
- {
-   # Create HOMEDIR directory in case it doesn't exist.
-   # Useful in Ubuntu as /var/run/ content is deleted in shutdown.
-   if [ ! -d $HOMEDIR ]; then
-     mkdir $HOMEDIR
-   fi
- 
-   # Set the appropiate owner and group
-   chown ${USER}:${GROUP} $HOMEDIR
++	# Check if kamailio configuration is valid before starting the server
++	set +e
++	out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
++	retcode=$?
++	set -e
++	if [ "$retcode" != '0' ]; then
++	    log_failure_msg "Not starting $DESC: invalid configuration file!"
++	    log_failure_msg
++	    log_failure_msg "$out"
++	    log_faiulre_msg
++	    exit 1
++	fi
 +}
 +
- 
 +create_radius_seqfile ()
 +{
-   # Create a radius sequence file to be used by the radius client if
-   # radius accounting is enabled. This is needed to avoid any issue
-   # with the file not being writable if kamailio first starts as user
-   # root because DUMP_CORE is enabled and creates this file as user
-   # root and then later it switches back to user kamailio and cannot
-   # write to the file. If the file exists before kamailio starts, it
-   # won't change it's ownership and will be writable for both root
-   # and kamailio, no matter what options are chosen at install time
-   RADIUS_SEQ_FILE=$HOMEDIR/kamailio_radius.seq
- 
-   if [ ! -f $RADIUS_SEQ_FILE ]; then
-       touch $RADIUS_SEQ_FILE
-   fi
- 
-   chown ${USER}:${GROUP} $RADIUS_SEQ_FILE
-   chmod 660 $RADIUS_SEQ_FILE
++    # Create a radius sequence file to be used by the radius client if
++    # radius accounting is enabled. This is needed to avoid any issue
++    # with the file not being writable if kamailio first starts as user
++    # root because DUMP_CORE is enabled and creates this file as user
++    # root and then later it switches back to user kamailio and cannot
++    # write to the file. If the file exists before kamailio starts, it
++    # won't change it's ownership and will be writable for both root
++    # and kamailio, no matter what options are chosen at install time
++    RADIUS_SEQ_FILE=/var/run/kamailio/kamailio_radius.seq
++    if [ -d /var/run/kamailio ]; then
++	chown ${USER}:${GROUP} /var/run/kamailio
++
++	if [ ! -f $RADIUS_SEQ_FILE ]; then
++	    touch $RADIUS_SEQ_FILE
++	fi
++
++	chown ${USER}:${GROUP} $RADIUS_SEQ_FILE
++	chmod 660 $RADIUS_SEQ_FILE
++    fi
 +}
 +
++test -f $DAEMON || exit 0
 +
- if [ ! -f $DAEMON ]; then
-   echo "No $DESC daemon at $DAEMON."
-   case "$1" in
-   status)
-     # LSB - 4: program or service status is unknown.
-     exit 4
-     ;;
-   *)
-     # LSB - 5: program is not installed.
-     exit 5
-     ;;
-   esac
- fi
- 
- 
- # Load startup options if available.
++# Load startup options if available
 +if [ -f $DEFAULTS ]; then
-   . $DEFAULTS || true
++   . $DEFAULTS || true
 +fi
 +
- 
 +if [ "$RUN_KAMAILIO" != "yes" ]; then
-   echo "$DESC not yet configured. Edit $DEFAULTS first."
-   exit 0
++    log_failure_msg "Kamailio not yet configured. Edit /etc/default/kamailio first."
++    exit 0
 +fi
 +
- 
 +set -e
 +
- 
 +SHM_MEMORY=$((`echo $SHM_MEMORY | sed -e 's/[^0-9]//g'`))
 +PKG_MEMORY=$((`echo $PKG_MEMORY | sed -e 's/[^0-9]//g'`))
- [ $SHM_MEMORY -le 0 ] && SHM_MEMORY=64
- [ $PKG_MEMORY -le 0 ] && PKG_MEMORY=4
 +[ -z "$USER" ]  && USER=kamailio
 +[ -z "$GROUP" ] && GROUP=kamailio
- 
++[ $SHM_MEMORY -le 0 ] && SHM_MEMORY=64
++[ $PKG_MEMORY -le 0 ] && PKG_MEMORY=4
 +
 +if test "$DUMP_CORE" = "yes" ; then
-   # set proper ulimit.
-   ulimit -c unlimited
- 
-   # directory for the core dump files.
-   # COREDIR=/tmp/corefiles
-   # [ -d $COREDIR ] || mkdir $COREDIR
-   # chmod 777 $COREDIR
-   # echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
++    # set proper ulimit
++    ulimit -c unlimited
++
++    # directory for the core dump files
++    # COREDIR=/home/corefiles
++    # [ -d $COREDIR ] || mkdir $COREDIR
++    # chmod 777 $COREDIR
++    # echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
 +fi
 +
- 
- if [ "$SSD_SUID" != "yes" ]; then
-   OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
-   SSDOPTS=""
- else
-   OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY"
-   SSDOPTS="--chuid $USER:$GROUP"
++# /var/run can be a tmpfs
++if [ ! -d $HOMEDIR ]; then
++    mkdir -p $HOMEDIR
 +fi
 +
- 
- start_kamailio_daemon ()
- {
-   start-stop-daemon --start --quiet --pidfile $PIDFILE $SSDOPTS \
-     --exec $DAEMON -- $OPTIONS
-   res=$?
- 
-   echo -n "$NAME "
-   if [ $res -eq 0 ] ; then
-     echo "started."
-     exit 0
-   else
-     if [ ! -r "$PIDFILE" ]; then
-       echo "error, failed to start."
-       exit 1
-     elif read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
-       echo "already running."
-       exit 0
-     else
-       echo "error, failed to start ($PIDFILE exists)."
-       exit 1
-     fi
-   fi
- }
- 
++OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
 +
 +case "$1" in
 +  start|debug)
-     check_kamailio_config
-     check_homedir
-     create_radius_seqfile
- 
-     if [ "$1" != "debug" ]; then
-       check_fork
-     fi
- 
-     echo "Starting $DESC:"
-     set +e
-     start_kamailio_daemon
-     ;;
- 
++	check_kamailio_config
++	create_radius_seqfile
++
++	if [ "$1" != "debug" ]; then
++	    check_fork
++	fi
++
++	log_daemon_msg "Starting $DESC: $NAME"
++	start-stop-daemon --start --quiet --pidfile $PIDFILE \
++		--exec $DAEMON -- $OPTIONS || log_failure_msg " already running"
++	log_end_msg 0
++	;;
 +  stop)
-     echo -n "Stopping $DESC: $NAME "
-     set +e
-     start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
-       --exec $DAEMON
- 
-     if [ $? -eq 0 ] ; then
-       echo "stopped."
-       exit 0
-     else
-       echo "failed to stop."
-       exit 1
-     fi
-     ;;
-     
++	log_daemon_msg "Stopping $DESC: $NAME"
++	start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
++		--exec $DAEMON
++	log_end_msg 0
++	;;
 +  restart|force-reload)
-     check_kamailio_config
-     check_homedir
-     create_radius_seqfile
- 
-     echo "Restarting $DESC:"
-     set +e
-     start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE --retry=5 \
-       --exec $DAEMON
-     if [ $? -ne 0 ] ; then
-       echo "$NAME failed to stop."
-       exit 1
-     fi
-     start_kamailio_daemon
-     ;;
++	check_kamailio_config
++	create_radius_seqfile
 +
++	$0 stop
++	sleep 1
++	$0 start
++	;;
 +  status)
-     echo -n "Status of $DESC: $NAME "
-     if [ ! -r "$PIDFILE" ]; then
-       echo "is not running."
-       exit 3
-     fi
-     if read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
-       echo "is running."
-       exit 0
-     else
-       echo "is not running but $PIDFILE exists."
-       exit 1
-     fi
-     ;;
++	log_daemon_msg "Status of $DESC: "
 +
++	status_of_proc -p"$PIDFILE" $NAME $NAME
++	;;
 +  *)
-     N=/etc/init.d/$NAME
-     echo "Usage: $N {start|stop|restart|force-reload|debug|status}" >&2
-     exit 1
-     ;;
++	N=/etc/init.d/$NAME
++	echo "Usage: $N {start|stop|restart|force-reload|status|debug}" >&2
++	exit 1
++	;;
 +esac
 +
- 
 +exit 0
diff --cc pkg/kamailio/deb/squeeze/kamailio.lintian-overrides
index 0000000,0000000..18152ed
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/squeeze/kamailio.lintian-overrides
@@@ -1,0 -1,0 +1,2 @@@
++kamailio binary: example-interpreter-not-absolute usr/share/doc/kamailio/examples/outbound/edge.cfg #!KAMAILIO
++kamailio binary: example-interpreter-not-absolute usr/share/doc/kamailio/examples/outbound/registrar.cfg #!KAMAILIO
diff --cc pkg/kamailio/deb/squeeze/kamailio.postinst
index fc7e4a8,0000000..4ee38ec
mode 100644,000000..100644
--- a/pkg/kamailio/deb/squeeze/kamailio.postinst
+++ b/pkg/kamailio/deb/squeeze/kamailio.postinst
@@@ -1,48 -1,0 +1,24 @@@
 +#! /bin/sh
- #
- # $Id$
- 
- PKG=kamailio
- DEFAULTS=/etc/default/kamailio
- HOMEDIR=/var/run/kamailio
 +
 +set -e
 +
- # summary of how this script can be called:
- #        * <postinst> `configure' <most-recently-configured-version>
- #        * <old-postinst> `abort-upgrade' <new version>
- #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
- #          <new-version>
- #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
- #          <failed-install-package> <version> `removing'
- #          <conflicting-package> <version>
- # for details, see http://www.debian.org/doc/debian-policy/ or
- # the debian-policy package
- #
- # quoting from the policy:
- #     Any necessary prompting should almost always be confined to the
- #     post-installation script, and should be protected with a conditional
- #     so that unnecessary prompting doesn't happen if a package's
- #     installation fails and the `postinst' is called with `abort-upgrade',
- #     `abort-remove' or `abort-deconfigure'.
- 
 +case "$1" in
 +    configure)
 +        adduser --quiet --system --group --disabled-password \
-                 --shell /bin/false --gecos "Kamailio" \
-                 --home $HOMEDIR kamailio || true
++                --shell /bin/false --gecos "Kamailio SIP Server" \
++                --home /var/run/kamailio kamailio || true
 +
 +        ;;
 +
 +    abort-upgrade|abort-remove|abort-deconfigure)
 +
 +        ;;
 +
 +    *)
 +        echo "postinst called with unknown argument \`$1'" >&2
 +        exit 1
 +        ;;
 +esac
 +
 +#DEBHELPER#
 +
diff --cc pkg/kamailio/deb/squeeze/rules
index 7f02341,0000000..ba45388
mode 100755,000000..100755
--- a/pkg/kamailio/deb/squeeze/rules
+++ b/pkg/kamailio/deb/squeeze/rules
@@@ -1,228 -1,0 +1,199 @@@
 +#!/usr/bin/make -f
 +# Sample debian/rules that uses debhelper.
 +# GNU copyright 1997 to 1999 by Joey Hess.
- #
- # $Id$
- #
- # History:
- # --------
- #  2009-07-08  updated for sip-router (andrei)
- #  2009-12-10  updated for kamailio 3.0 (daniel)
 +
++DEBVERSION:=$(shell head -n 1 debian/changelog \
++                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
++UPVERSION:=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
++
++FILENAME := kamailio_$(UPVERSION).orig.tar.gz
++URL := http://www.kamailio.org/pub/kamailio/$(UPVERSION)/src/kamailio-$(UPVERSION)_src.tar.gz
++
++
++
++export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++DPKG_EXPORT_BUILDFLAGS = 1
 +
 +# Uncomment this to turn on verbose mode.
 +#export DH_VERBOSE=1
 +
- # This is the debhelper compatibility version to use.
- # export DH_COMPAT=4
- #  -- already set in compat
- export DEB_BUILD_OPTIONS:="$(DEB_BUILD_OPTIONS) debug"
++# stuff using libgcj12
++export JAVA_HOME=/usr/lib/jvm/java-gcj-4.6
++
++# choose freeradius
 +
 +# modules not in the "main" kamailio package
- EXCLUDED_MODULES= purple
++EXCLUDED_MODULES=
 +
 +# extra modules to skip, because they are not compilable now
 +# - regardless if they go to the main kamailio package or to some module package,
 +# they will be excluded from compile and install of all
- EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy
- #EXTRA_EXCLUDED_MODULES=
- 
- # possible module directories that can appear in MODULES_SP
- # (only used for deducing a module name)
- MDIRS=modules
- 
- # modules packaged in separate packages (complete with full modules_* path)
- # with the package name: kamailio-$(module_name)-module
- MODULES_SP=
++EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy java dnssec sctp purple redis mono
 +
 +# module groups that are packaged in seperate packages
 +# (with the name kamailio-$(group_name)-modules)
 +# Note: the order is important (should be in dependency order, the one
 +# on which other depend first)
 +PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
- 			   ldap xml perl utils geoip memcached tls \
- 			   snmpstats carrierroute xmpp cpl lua python \
- 			   sqlite json ims outbound websocket \
- 			   autheph sctp
++			   ldap xml perl utils lua memcached \
++			   snmpstats carrierroute xmpp cpl python geoip\
++			   sqlite json ims \
++			   tls outbound websocket autheph 
 +
 +# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
 +LIBDIR ?= lib
 +
 +# directories with possible duplicate libraries (that should be deleted
 +# from current module* packages)
 +DUP_LIBS_DIRS=$(CURDIR)/debian/kamailio/usr/$(LIBDIR)/kamailio \
 +			$(CURDIR)/debian/kamailio-db-modules/usr/$(LIBDIR)/kamailio
 +
- # modules names out of modules sp
- MODULES_SP_NAMES=$(filter-out $(MDIRS),$(subst /, ,$(MODULES_SP)))
- 
 +# "function" to get package short name out of a dir/module_name
 +# it also transforms db_foo into foo
 +mod_name=$(subst db_,,$(lastword $(subst /, ,$(1))))
 +
 +define PACKAGE_GRP_BUILD_template
 +	# package all the modules in PACKAGE_GROUPS in separate packages
 +	$(foreach grp,$(PACKAGE_GROUPS),\
 +		$(MAKE) every-module group_include="k$(grp)"
 +	)
 +endef
 +
 +
- define PACKAGE_MODULE_BUILD_template
- 	# package all the modules MODULES_SP in separate packages
- 	$(foreach mod,$(MODULES_SP),\
- 		$(MAKE) modules modules="$(mod)"
- 	)
- endef
- 
- 
 +define PACKAGE_GRP_INSTALL_template
 +	$(foreach grp,$(PACKAGE_GROUPS),\
- 		$(MAKE) install-modules-all group_include="k$(grp)" \
++		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
 +		basedir=$(CURDIR)/debian/kamailio-$(grp)-modules \
 +		cfg_prefix=$(CURDIR)/debian/kamailio-$(grp)-modules \
 +		doc-dir=share/doc/kamailio-$(grp)-modules
 +		# eliminate duplicate libs
 +		-for d in $(DUP_LIBS_DIRS); do \
 +			test "$$d" != "$(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio" &&\
- 			for r in $$d/lib*; do \
- 				if [ "$$r" != "$$d/lib*" ]; then \
- 					echo "removing $(grp) lib `basename $$r` present also in $$d";\
- 					rm -f $(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
- 				fi \
++			for r in `find $$d -name 'lib*'|xargs`; do \
++				echo "removing $(grp) lib `basename $$r` present also in $$d";\
++				rm -f $(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
 +			done ; \
 +		done
++		find $(CURDIR)/debian/kamailio-$(grp)-modules -depth -empty -type d -exec rmdir {} \;
 +	)
 +endef
 +
 +
- define PACKAGE_MODULE_INSTALL_template
- 	$(foreach mod,$(MODULES_SP),
- 		$(MAKE) install-modules-all modules="$(mod)" \
- 				modules_s="" modules_k="" \
- 				basedir=$(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module \
- 				doc-dir=share/doc/kamailio-$(call mod_name,$(mod))-module
- 		# eliminate duplicate libs
- 		-for d in $(DUP_LIBS_DIRS); do \
- 			test "$$d" != "$(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module/usr/$(LIBDIR)/kamailio" &&\
- 			for r in $$d/lib*; do \
- 				if [ "$$r" != "$$d/lib*" ]; then \
- 					echo "removing $(call mod_name, $(mod)) lib `basename $$r` present also in $$d";\
- 					rm -f $(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
- 				fi \
- 			done ; \
- 		done
- 	)
- endef
- 
 +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 +	CFLAGS += -g
 +endif
 +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 +	INSTALL_PROGRAM += -s
 +endif
 +
++# CFLAGS + CPPFLAGS -> CC_EXTRA_OPTS
++# LDFLAGS -> LD_EXTRA_OPTS
++sed -e 's/" CPPFLAGS="/ /' -e 's/CFLAGS/CC_EXTRA_OPTS/g' -e 's/LDFLAGS/LD_EXTRA_OPTS/g')
++
 +configure: configure-stamp
 +configure-stamp:
 +	dh_testdir
 +	# Add here commands to configure the package.
 +	$(MAKE) FLAVOUR=kamailio cfg prefix=/usr cfg_prefix=$(CURDIR)/debian/kamailio \
 +			cfg_target=/etc/kamailio/ \
 +			basedir=$(CURDIR)/debian/kamailio \
 +			skip_modules="$(EXCLUDED_MODULES) $(EXTRA_EXCLUDED_MODULES)" \
++			$(CUSTOM_BUILDFLAGS) \
 +			group_include="kstandard"
 +
 +	touch configure-stamp
 +
 +
 +build: build-stamp
- 
- build-stamp: configure-stamp 
++build-arch: build-stamp
++build-indep: build-stamp
++build-stamp: configure-stamp
 +	dh_testdir
 +	# Add here commands to compile the package.
 +	$(MAKE) all
 +	# make groups
 +	$(call PACKAGE_GRP_BUILD_template)
 +	# make single-module packages
 +	$(call PACKAGE_MODULE_BUILD_template)
 +	touch build-stamp
 +
 +clean:
 +	dh_testdir
 +	dh_testroot
 +	rm -f build-stamp configure-stamp
 +	# Add here commands to clean up after the build process.
- 	-$(MAKE) maintainer-clean
++	$(MAKE) maintainer-clean
 +	dh_clean
 +
 +install: build
 +	dh_testdir
 +	dh_testroot
- 	dh_clean -k
++	dh_prep
 +	dh_installdirs
 +	# Add here commands to install the package into debian/kamailio
- 	$(MAKE) install group_include="kstandard"
- 	# fix etc/kamailio dir location -- not needed -- andrei
- 	# mv -f $(CURDIR)/debian/kamailio/usr/etc $(CURDIR)/debian/kamailio
++	$(MAKE) install LIBDIR=$(LIBDIR) group_include="kstandard"
 +	# make group packages
 +	$(call PACKAGE_GRP_INSTALL_template)
- 	# make single module packages
- 	$(call PACKAGE_MODULE_INSTALL_template)
++	mv $(CURDIR)/debian/kamailio-berkeley-modules/usr/sbin/kambdb_recover \
++		$(CURDIR)/debian/kamailio-berkeley-bin/usr/sbin/kambdb_recover
 +	# install /etc/default/kamailio file
 +	mkdir -p $(CURDIR)/debian/kamailio/etc/default
 +	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
- 	#dh_movefiles
- 
 +
 +
 +# This single target is used to build all the packages, all at once, or
 +# one at a time. So keep in mind: any options passed to commands here will
 +# affect _all_ packages. Anything you want to only affect one package
 +# should be put in another target, such as the install target.
- binary-common: 
++binary-common:
 +	dh_testdir
 +	dh_testroot
- 	dh_installdebconf	
++	dh_installdebconf
 +	dh_installdocs
 +	dh_installexamples
 +	dh_installmenu
- #	dh_installlogrotate
- #	dh_installemacsen
- #	dh_installpam
- #	dh_installmime
- 	dh_installinit  -- defaults 23
++	dh_installinit -pkamailio -- defaults 23
 +	dh_installcron
 +	dh_installman
 +	dh_installinfo
- #	dh_undocumented
- 	dh_installchangelogs ChangeLog 
++	dh_lintian
++	dh_installchangelogs ChangeLog
 +	dh_link
 +	dh_strip --dbg-package=kamailio-dbg
- 	dh_compress 
++	dh_compress
 +	dh_fixperms
 +	dh_makeshlibs
 +	dh_installdeb
- #	dh_perl
 +	dh_shlibdeps
 +	dh_gencontrol
 +	dh_md5sums
 +	dh_builddeb
 +
 +# Build architecture-independent packages using the common target
 +binary-indep: build install
 +# (Uncomment this next line if you have such packages.)
 +#        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
 +# We have nothing to do by default.
 +
 +
 +# Build architecture-dependent packages using the common target
 +binary-arch: build install
 +	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
 +
 +# Any other binary targets build just one binary package at a time.
 +binary-%: build install
 +	$(MAKE) -f debian/rules binary-common DH_OPTIONS=-p$*
 +
++print-version:
++	@@echo "Debian version:          $(DEBVERSION)"
++	@@echo "Upstream version:        $(UPVERSION)"
++
++get-orig-source:
++	@@dh_testdir
++	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
++	@@echo Downloading $(FILENAME) from $(URL) ...
++	@@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
++
 +binary: binary-indep binary-arch
 +.PHONY: build clean binary-indep binary-arch binary install configure
 +
diff --cc pkg/kamailio/deb/squeeze/source.lintian-overrides
index 0000000,0000000..620d9ff
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/squeeze/source.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio source: debian-watch-file-in-native-package
diff --cc pkg/kamailio/deb/squeeze/source/format
index 0000000,0000000..89ae9db
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/squeeze/source/format
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (native)
diff --cc pkg/kamailio/deb/squeeze/watch
index 0000000,0000000..c50f31f
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/squeeze/watch
@@@ -1,0 -1,0 +1,3 @@@
++version=3
++opts=dversionmangle=s/\~svn([\d]+)//; \
++http://www.kamailio.org/pub/kamailio/([\d.]+)/src/kamailio-([\d.]+)_src\.tar\.gz
diff --cc pkg/kamailio/deb/wheezy/changelog
index fcf832b,0000000..6a44d80
mode 100644,000000..100644
--- a/pkg/kamailio/deb/wheezy/changelog
+++ b/pkg/kamailio/deb/wheezy/changelog
@@@ -1,94 -1,0 +1,100 @@@
++kamailio (4.1.2) unstable; urgency=low
++
++  * update to 4.1.2 from upstream
++
++ -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 06 Mar 2014 15:25:35 +0100
++
 +kamailio (4.1.1) unstable; urgency=low
 +
 +  * update to 4.1.1 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 09 Jan 2014 15:45:35 +0100
 +
 +kamailio (4.1.0) unstable; urgency=low
 +
 +  * update to 4.1.0
 +
 + -- Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 04 Dec 2013 11:42:27 +0100
 +
 +kamailio (4.0.0) unstable; urgency=low
 +
 +  * update to 4.0.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 11 Mar 2013 10:40:30 +0100
 +
 +kamailio (3.4.0~dev0) unstable; urgency=low
 +
 +  * update version to 3.4.0~dev0
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Wed, 15 Jun 2012 03:15:00 +0100
 +
 +kamailio (3.2.0) unstable; urgency=low
 +
 +  * update to 3.2.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Fri, 29 Apr 2011 12:25:30 +0100
 +
 +kamailio (3.1.1) unstable; urgency=low
 +
 +  * update to 3.1.1 from upstream
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Fri, 3 Dec 2010 16:30:00 +0100
 +
 +kamailio (3.1.0) unstable; urgency=low
 +
 +  * update to 3.1.0 from upstream
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Wed, 6 Oct 2010 17:24:00 +0100
 +
 +kamailio (3.0.2.99) unstable; urgency=low
 +
 +  * update to 3.0.2.99 for development version builds
 +
 + -- Jon Bonilla <manwe at aholab.ehu.es>  Fri, 28 May 2010 22:26:00 +0100
 +
 +kamailio (3.0.2) unstable; urgency=low
 +
 +  * update to 3.0.2 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Thu, 27 May 2010 10:27:36 +0100
 +
 +kamailio (3.0.1) unstable; urgency=low
 +
 +  * update to 3.0.1 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 08 Mar 2010 20:30:48 +0100
 +
 +kamailio (3.0.0) unstable; urgency=low
 +
 +  * update to 3.0.0 from upstream
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Mon, 11 Jan 2010 18:30:42 +0100
 +
 +kamailio (3.0.0-rc3) unstable; urgency=low
 +
 +  * update to 3.0.0-rc3 from upstream
 +  * updated debian/rules to work with the SIP Router style module packaging
 +
 + -- Daniel-Constantin Mierla <miconda at gmail.com>  Fri, 10 Dec 2009 12:10:02 +0100
 +
 +kamailio (3.0.0-rc2) unstable; urgency=low
 +
 +  * update to 3.0.0-rc2 from upstream
 +  * updated debian/rules to work with the new style module packaging
 +
 + -- Jonas Bergler <jonas.bergler at staff.snap.net.nz>  Wed, 18 Nov 2009 12:30:02 +1300
 +
 +kamailio (1.5.0-svn1) unstable; urgency=low
 +
 +  * increment debian packaging for trunk
 +
 + -- Henning Westerholt <henning.westerholt at 1und1.de>  Mon, 02 Mar 2009 17:40:02 +0100
 +
 +kamailio (1.4.0-svn1) unstable; urgency=low
 +
 +  [ Klaus Darilion ]
 +  * first release of Kamailio (after renaming from Openser)
 +
 + -- Julien BLACHE <jblache at debian.org>  Wed, 12 Dec 2007 17:25:31 +0100
 +
 +
diff --cc pkg/kamailio/deb/wheezy/compat
index 7ed6ff8,0000000..ec63514
mode 100644,000000..100644
--- a/pkg/kamailio/deb/wheezy/compat
+++ b/pkg/kamailio/deb/wheezy/compat
@@@ -1,1 -1,0 +1,1 @@@
- 5
++9
diff --cc pkg/kamailio/deb/wheezy/control
index 319dcb3,0000000..198a883
mode 100644,000000..100644
--- a/pkg/kamailio/deb/wheezy/control
+++ b/pkg/kamailio/deb/wheezy/control
@@@ -1,489 -1,0 +1,529 @@@
 +Source: kamailio
 +Section: net
 +Priority: optional
- Maintainer: Jon Bonilla <manwe at aholab.ehu.es>
++Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
++Uploaders: Victor Seva <linuxmaniac at torreviejawireless.org>,
++           Tzafrir Cohen <tzafrir at debian.org>
 +Build-Depends: bison,
-                debhelper (>= 5),
-                default-jdk,
++               debhelper (>= 9),
 +               docbook-xml,
-                dpatch,
-                dpkg-dev (>= 1.13.19),
++               dpkg-dev (>= 1.16.1.1),
 +               flex,
 +               libconfuse-dev,
-                libcurl3-openssl-dev,
++               libcurl4-openssl-dev,
 +               libdb-dev (>= 4.6.19),
 +               libevent-dev,
 +               libexpat1-dev,
++               libgcj12-dev,
 +               libgeoip-dev (>= 1.4.5),
 +               libhiredis-dev (>= 0.10.0),
 +               libjson0-dev,
 +               libldap2-dev,
 +               liblua5.1-0-dev,
 +               libmemcached-dev,
 +               libmono-2.0-dev,
 +               libmysqlclient-dev,
 +               libncurses5-dev,
 +               libpcre3-dev,
 +               libperl-dev,
 +               libpq-dev,
 +               libradiusclient-ng-dev,
 +               libreadline-dev,
 +               libsasl2-dev,
 +               libsctp-dev,
 +               libsnmp-dev,
 +               libsqlite3-dev,
-                libssl-dev,
-                libxml2-dev,
-                libxmlrpc-c3-dev,
 +               libunistring-dev,
++               libxml2-dev,
++               openssl,
 +               python,
 +               python-dev,
 +               unixodbc-dev,
-                xsltproc,
-                zlib1g-dev
- Standards-Version: 3.9.3
++               xsltproc
++Standards-Version: 3.9.5
 +Homepage: http://www.kamailio.org/
++Vcs-git: git://anonscm.debian.org/pkg-voip/kamailio.git
++Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-voip/kamailio.git
 +
 +Package: kamailio
- Architecture: any
- Depends: adduser,
-          ${misc:Depends},
-          ${shlibs:Depends}
- Conflicts: kamailio-regex-modules
- Suggests: kamailio-autheph-modules,
-           kamailio-berkeley-modules,
++Architecture: linux-any
++Multi-Arch: foreign
++Pre-Depends: ${misc:Pre-Depends}
++Depends: adduser, python, ${misc:Depends}, ${shlibs:Depends}
++Suggests: kamailio-berkeley-modules,
 +          kamailio-carrierroute-modules,
 +          kamailio-cpl-modules,
 +          kamailio-dbg,
-           kamailio-java-modules,
 +          kamailio-ldap-modules,
 +          kamailio-lua-modules,
-           kamailio-mono-modules,
 +          kamailio-mysql-modules,
 +          kamailio-perl-modules,
 +          kamailio-postgres-modules,
 +          kamailio-presence-modules,
 +          kamailio-python-modules,
 +          kamailio-radius-modules,
-           kamailio-sctp-modules,
 +          kamailio-snmpstats-modules,
 +          kamailio-tls-modules,
 +          kamailio-unixodbc-modules,
 +          kamailio-xml-modules,
 +          kamailio-xmpp-modules
 +Description: very fast and configurable SIP proxy
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + C Shell-like scripting language provides full control over the server's
 + behaviour. Its modular architecture allows only required functionality to be
 + loaded.
 + .
-  Among others, the following modules are available: Digest Authentication, CPL
-  scripts, Instant Messaging, MySQL support, Presence Agent, Radius
-  Authentication, Record Routing, SMS Gateway, Jabber/XMPP Gateway, Transaction
-  Module, Registrar and User Location, XMLRPC Interface.
++ Among others, the following modules are available: digest authentication, CPL
++ scripts, instant messaging, MySQL support, presence agent, RADIUS
++ authentication, record routing, SMS gateway, Jabber/XMPP gateway, transaction
++ module, registrar and user location, XML-RPC interface.
 + .
 + This package contains the main Kamailio binary along with the principal modules
 + and support binaries.
 +
 +Package: kamailio-dbg
- Architecture: any
++Priority: extra
++Section: debug
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}
++Description: very fast and configurable SIP proxy [debug symbols]
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package contains the debugging symbols for the Kamailio binaries and
++ modules. You only need to install it if you need to debug Kamailio.
++
++Package: kamailio-geoip-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the geoip module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the geoip module, an extension allowing to
++ use GeoIP API within configuration file.
++
++Package: kamailio-sqlite-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Recommends: sqlite3
++Description: SQLite database connectivity module for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the SQLite database driver for Kamailio.
++
++Package: kamailio-json-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Json parser and jsonrpc modules for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides json parser for Kamailio's configuration file
++ and the JSON-RPC client over netstrings.
++
++Package: kamailio-memcached-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Replaces: kamailio-memcached-module
++Description: Provides the memcached module, an interface to the memcached server
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the memcached module, an interface to the memcached
++ server, a high-performance, distributed memory object caching system.
++
++Package: kamailio-lua-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the app_lua module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the app_lua module, an extension allowing to
++ execute embedded Lua applications within configuration file.
++
++Package: kamailio-mono-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the app_mono module
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the app_mono module, an extension allowing to
++ execute embedded Mono applications within configuration file.
++
++Package: kamailio-python-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
++         python-dev,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Description: Debugging symbols for Kamailio SIP proxy
++Description: contains the app_python module
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides gdb debugging symbols  for Kamailio
++ This package provides the app_python module, an extension allowing to
++ execute embedded Python applications within configuration file.
++
++Package: kamailio-redis-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Redis database connectivity module for Kamailio
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides the Redis NOSQL database driver for Kamailio.
 +
 +Package: kamailio-mysql-modules
- Architecture: any
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         mysql-client,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-mysql-module
 +Description: MySQL database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the MySQL database driver for Kamailio.
 +
 +Package: kamailio-postgres-modules
- Architecture: any
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         postgresql-client,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-postgres-module
 +Description: PostgreSQL database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the PostgreSQL database driver for Kamailio.
 +
 +Package: kamailio-cpl-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-cpl-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: CPL module (CPL interpreter engine) for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides a CPL (Call Processing Language) interpreter for
 + Kamailio, turning Kamailio into a CPL server (storage and interpreter).
 +
 +Package: kamailio-radius-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: radius modules for Kamailio
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: RADIUS modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides a set of Radius modules for Kamailio, for
-  authentication, peering, group membership and messages URIs checking
-  against a Radius Server.
++ This package provides a set of RADIUS modules for Kamailio, for
++ authentication, peering, group membership and messages URIs checking against a
++ RADIUS server.
 +
 +Package: kamailio-unixodbc-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-unixodbc-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: unixODBC database connectivity module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the unixODBC database driver for Kamailio.
 +
 +Package: kamailio-presence-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: SIMPLE presence modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides several Kamailio modules for implementing presence
 + server and presence user agent for RICH presence, registrar-based presence,
 + external triggered presence and XCAP support.
 +
- Package: kamailio-xml-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-xml-module,
-           kamailio-xmlrpc-module
- Provides: kamailio-xmlrpc-modules
- Description: XML based extensions for Kamailio's Management Interface
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides:
-  - the XMLRPC transport implementations for Kamailio's
-  Management and Control Interface.
-  - xmlops module for XPath operations in configuration file
- 
- Package: kamailio-xmlrpc-modules
- Architecture: any
- Depends: kamailio-xml-modules (= ${binary:Version})
- Description: Transitional package for kamailio-xml-modules
-  Dummy package for transition handling
- 
 +Package: kamailio-perl-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-perl-module
- Conflicts: kamailio-perl-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: Perl extensions and database driver for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides an interface for Kamailio to write Perl extensions and
 + the perlvdb database driver for Kamailio.
 +
 +Package: kamailio-snmpstats-modules
- Architecture: any
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: kamailio (= ${binary:Version}),
 +         snmpd,
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-snmpstats-module
 +Description: SNMP AgentX subagent module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the snmpstats module for Kamailio. This module acts
 + as an AgentX subagent which connects to a master agent.
 +
 +Package: kamailio-xmpp-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-xmpp-module
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
 +Description: XMPP gateway module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the SIP to XMPP IM translator module for Kamailio.
 +
++Package: kamailio-xml-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Replaces: kamailio-xml-module, kamailio-xmlrpc-module
++Provides: kamailio-xmlrpc-modules
++Description: XML based extensions for Kamailio's Management Interface
++ Kamailio is a very fast and flexible SIP (RFC3261)
++ proxy server. Written entirely in C, Kamailio can handle thousands calls
++ per second even on low-budget hardware.
++ .
++ This package provides:
++ - the XMLRPC transport implementations for Kamailio's
++ Management and Control Interface.
++ - xmlops module for XPath operations in configuration file
++
 +Package: kamailio-carrierroute-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-carrierroute-module
- Description: Carrierroute module for Kamailio
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: carrierroute module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
 + This package provides the carrierroute module for Kamailio, an integrated
 + solution for routing, balancing and blacklisting.
 +
 +Package: kamailio-berkeley-modules
- Architecture: any
- Depends: db4.6-util,
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: db5.1-util,
 +         kamailio (= ${binary:Version}),
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Replaces: kamailio-berkeley-module
- Description: Berkeley Database module for Kamailio
++Description: Berkeley database module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the berkeley database module for Kamailio, a
++ This package provides the Berkeley database module for Kamailio, a
 + high-performance embedded DB kernel. All database tables are stored
 + in files, no additional server is necessary.
 +
- Package: kamailio-ldap-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: LDAP modules for Kamailio
++Package: kamailio-berkeley-bin
++Architecture: linux-any
++Multi-Arch: foreign
++Pre-Depends: ${misc:Pre-Depends}
++Depends: ${misc:Depends}, ${shlibs:Depends}
++Description: Berkeley database module for Kamailio - helper program
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the ldap and h350 modules for Kamailio, enabling LDAP
-  queries from the Kamailio config and storage of SIP account data in an LDAP
-  directory.
++ This package provides helper modules for the Berkeley database module for
++ Kamailio, a high-performance embedded DB kernel. You should normally
++ install kamailio-berkeley-modules and not this package directly.
 +
- Package: kamailio-utils-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-utils-module
- Description: Provides a set utility functions for Kamailio
++Package: kamailio-ldap-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: LDAP modules for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  Provides a set of utility functions for Kamailio, which are not related
-  to the server configuration.
++ This package provides the ldap and h350 modules for Kamailio, enabling LDAP
++ queries from the Kamailio config and storage of SIP account data in an LDAP
++ directory.
 +
- Package: kamailio-memcached-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Replaces: kamailio-memcached-module
- Description: Provides the memcached module, an interface to the memcached server
++Package: kamailio-ims-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: IMS module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the memcached module, an interface to the memcached
-  server, a high-performance, distributed memory object caching system.
- 
- Package: kamailio-tls-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the TLS kamailio transport module
-  This has been split out of the main kamailio package, so that kamailio will not
-  depend on openssl. This module will enable you to use the TLS transport.
++ This package contains various Diameter interfaces and modules for Kamailio
++ to run as an IMS core.
 +
- Package: kamailio-lua-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_lua module
++Package: kamailio-utils-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Provides a set utility functions for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the app_lua module, an extension allowing to
-  execute embedded Lua applications within configuration file.
++ Provides a set of utility functions for Kamailio, which are not related
++ to the server configuration.
 +
- Package: kamailio-mono-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the app_mono module
++Package: kamailio-sctp-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: sctp module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the app_mono module, an extension allowing to
-  execute embedded Mono applications within configuration file.
++ This package provides the sctp module for Kamailio.
 +
- Package: kamailio-python-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
++Package: kamailio-java-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: gcj-jre,
++         kamailio (= ${binary:Version}),
++         ${misc:Depends},
 +         ${shlibs:Depends}
- Description: contains the app_python module
++Description: contains the app_java module
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the app_python module, an extension allowing to
-  execute embedded Python applications within configuration file.
++ This package provides the app_java module, an extension allowing to
++ execute embedded Java applications within configuration file.
 +
- Package: kamailio-geoip-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          ${shlibs:Depends}
- Description: contains the geoip module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the geoip module, an extension allowing to
-  use GeoIP API within configuration file.
++Package: kamailio-tls-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: contains the TLS kamailio transport module
++ This has been split out of the main kamailio package, so that kamailio will
++ not depend on openssl. This module will enable you to use the TLS transport.
 +
- Package: kamailio-redis-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libhiredis0.10,
-          ${shlibs:Depends}
- Description: Redis database connectivity module for Kamailio
++Package: kamailio-outbound-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Outbound module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the Redis NOSQL database driver for Kamailio.
++ This package contains the module implementing SIP outbound extension.
 +
- Package: kamailio-sqlite-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libsqlite3-0,
-          ${shlibs:Depends}
- Description: SQLite database connectivity module for Kamailio
++Package: kamailio-websocket-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: Websocket module for kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides the SQLite database driver for Kamailio.
++ This package contains the module implementing WebSocket transport layer.
 +
- Package: kamailio-json-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          libevent-1.4-2,
-          libjson0,
-          ${shlibs:Depends}
- Description: Json parser and jsonrpc modules for Kamailio
++Package: kamailio-autheph-modules
++Architecture: linux-any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: kamailio (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
++Description: authentication using ephemeral credentials module for Kamailio
 + Kamailio is a very fast and flexible SIP (RFC3261)
 + proxy server. Written entirely in C, Kamailio can handle thousands calls
 + per second even on low-budget hardware.
 + .
-  This package provides json parser for Kamailio's configuration file
-  and the JSON-RPC client over netstrings.
++ This package provides the ephemeral module for Kamailio.
 +
 +Package: kamailio-nth
 +Architecture: any
++Pre-Depends: ${misc:Pre-Depends}
 +Depends: binutils,
 +         bison,
 +         bvi,
 +         flex,
 +         gcc,
 +         gdb,
 +         iftop,
 +         lsof,
 +         mc,
 +         most,
 +         ngrep,
 +         psmisc,
 +         screen,
 +         sipsak,
 +         tcpdump,
-          vim
++         vim,
++         ${misc:Depends}
 +Description: Kamailio - package for "nice to have" installation
-  This is a meta-package for easy installation various useful tools that may be
++ This is a metapackage for easy installation various useful tools that may be
 + handy on server with Kamailio installed.
- 
- Package: kamailio-ims-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - IMS Modules
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains various Diameter interfaces and modules for Kamailio
-  to run as an IMS core.
- 
- Package: kamailio-outbound-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - Outbound Module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains the module implementing SIP outbound extension.
- 
- Package: kamailio-websocket-modules
- Architecture: any
- Depends: ${shlibs:Depends}, kamailio (= ${binary:Version})
- Description: Kamailio - Websocket Module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package contains the module implementing WebSocket transport layer.
- 
- Package: kamailio-autheph-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: authentication using ephemeral credentials module for Kamailio
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the ephemeral module for Kamailio.
- 
- Package: kamailio-sctp-modules
- Architecture: any
- Depends: kamailio (= ${binary:Version}),
-          ${shlibs:Depends}
- Description: authentication using ephemeral credentials module for Kamailio
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the sctp module for Kamailio.
- 
- Package: kamailio-java-modules
- Architecture: any
- Depends: kamailio (= ${Source-Version}),
-          default-jre,
-          ${shlibs:Depends}
- Description: contains the app_java module
-  Kamailio is a very fast and flexible SIP (RFC3261)
-  proxy server. Written entirely in C, Kamailio can handle thousands calls
-  per second even on low-budget hardware.
-  .
-  This package provides the app_java module, an extension allowing to
-  execute embedded Java applications within configuration file.
diff --cc pkg/kamailio/deb/wheezy/copyright
index 801eac4,0000000..ff31338
mode 100644,000000..100644
--- a/pkg/kamailio/deb/wheezy/copyright
+++ b/pkg/kamailio/deb/wheezy/copyright
@@@ -1,27 -1,0 +1,335 @@@
- This package was debianized by Andrei Pelinescu-Onciul
- <pelinescu-onciul at fokus.fraunhofer.de> on Tue, 16 Jul 2002 15:41:31 +0200.
- This package was debianized by Julien BLACHE <jblache at debian.org>
- on Thu, 29 Jun 2006 09:55:24 +0200, based on Andrei's work.
- 
- It was downloaded from: http://kamailio.org
- 
- Upstream Authors:
-        Andrei Pelinescu-Onciul <pelinescu-onciul at fokus.fraunhofer.de>
-        Bogdan-Andrei Iancu <bogdan at voice-system.ro>
-        Daniel-Constantin Mierla <miconda at gmail.com>
-        Jan Janak <jan at iptel.org>
-        Jiri Kuthan <jiri at iptel.org>
-        Juha Heinanen
-        Ramona-Elena Modroiu
-        Maxim Sobolev
-        Miklos Tirpak
-        Nils Ohlmeier
-        and others ; see the AUTHORS file in the source code tree for details
- 
- This software is copyright (c) 2002-2003 by FhG Fokus
- 
- You are free to distribute this software under the terms of
- the GNU General Public License.
- 
- On Debian systems, the complete text of the GNU General Public
- License can be found in the file `/usr/share/common-licenses/GPL.
++Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: Kamailio
++Upstream-Contact: sr-dev at lists.sip-router.org
++Source: http://www.kamailio.org/pub/kamailio/
++
++Files: *
++Copyright:
++ 2001-2003 FhG Fokus
++ 2006-2010 iptelorg GmbH
++ Various others (see AUTHORS file)
++License: GPL-2.0+
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++
++Files: debian/*
++Copyright: 2012, 2013, 2014 Victor Seva <linuxmaniac at torreviejawireless.org>
++           2009, 2010, 2011, Daniel-Constantin Mierla <miconda at gmail.com>
++           2010, Jon Bonilla <manwe at aholab.ehu.es>
++           2009, Jonas Bergler <jonas.bergler at staff.snap.net.nz>
++           2009, Henning Westerholt <henning.westerholt at 1und1.de>
++           2007, Julien BLACHE <jblache at debian.org>
++License: GPL-2+
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++
++
++Files: atomic/* atomic_ops.* basex.* bit_*.c char_msg_val.h compiler_opt.h
++ core_stats.h counters.* endianness.* futexlock.h hashes.h io_wait.*
++ kstats_types.h lib/kcore/kstats_wrapper.* lock_ops.c lock_ops_init.h
++ lvalue.* mem/ll_malloc.* mem/memdbg.h mem/sf_malloc.* mi/*.h mod_fix.*
++ modules/tm/rpc_uac.* modules/counters/counters.c modules/tls/sbufq.h
++ modules/tls/tls_bio.* modules/tls/tls_cfg.* modules/tls/tls_cfg.h
++ modules/tls/tls_ct_wrq.* modules/tls/tls_ct_q.h modules/tls/tls_domain.*
++ modules/tls/tls_server.h modules/tls/tls_locking.* modules/tls/tls_rpc.*
++ modules/tls/tls_server.c modules/malloc_test/malloc_test.c modules/blst/blst.c
++ parser/case_p_* parser/case_reas.h pvapi.h pv_core.* rand/fastrand.* raw_*
++ rpc_lookup.* rvalue.* sctp_* ser_time.h shm_init.* sip_msg_clone.* sock_ut.*
++ sr_compat.* str_hash.h switch.* tcp_ev.h tcp_int_send.h tcp_options.*
++ tcp_read.h tcp_stats.* timer_proc.* tls_hooks.* tls_hooks_init.h ver.*
++Copyright: 2006-2010 iptelorg GmbH
++License: ISC
++
++Files: modules/tls/tls_select.* modules/tls/tls_dump_vf.*
++Copyright: 2005-2010 iptelorg GmbH
++License: GPL-2 + OpenSSL exception
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++ * Exception: permission to copy, modify, propagate, and distribute a work
++ * formed by combining OpenSSL toolkit software and the code in this file,
++ * such as linking with software components and libraries released under
++ * OpenSSL project license.
++
++Files: modules/websocket/* modules/outbound/* modules/auth_ephemeral/*
++Copyright: 2012-2013 Crocodile RCS Ltd
++License: GPL-2 + OpenSSL exception
++ On Debian systems, the full text of the GNU General Public
++ License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
++ * Exception: permission to copy, modify, propagate, and distribute a work
++ * formed by combining OpenSSL toolkit software and the code in this file,
++ * such as linking with software components and libraries released under
++ * OpenSSL project license.
++
++Files: daemonize.* fastlock.h lock_ops.h mem/mem.* mem/f_malloc.h
++ mem/meminfo.h mem/memtest.c mem/shm_mem.c mem/q_malloc.h mem/q_malloc.c
++ mem/shm_mem.h mem/f_malloc.c modules/tls/tls_rpc.c modules/tls/tls_server.c
++ modules/tls/tls_domain.c modules/tls/tls_domain.h modules/tls/tls_server.h
++ modules/tls/tls_rpc.h pt.c pt.h sched_yield.h ut.c ut.h
++Copyright: 2001-2003 FhG Fokus
++License: ISC
++
++Files: events.* modules/topoh/*
++Copyright: 2009 SIP-Router.org
++License: ISC
++
++Files: modules/mi_rpc/mi_rpc_mod.c modules/pv/pv_xavp.*
++ modules/usrloc/ul_rpc.* ppcfg.* xavp.*
++Copyright: 2009-2010 Daniel-Constantin Mierla (asipto.com)
++License: ISC
++
++Files: obsolete/jabber_k/tree234.*
++Copyright: 1999, 2000, 2001, Simon Tatham
++License: Expat
++ Permission is hereby granted, free of charge, to any person
++ obtaining a copy of this software and associated documentation
++ files (the "Software"), to deal in the Software without
++ restriction, including without limitation the rights to use,
++ copy, modify, merge, publish, distribute, sublicense, and/or
++ sell copies of the Software, and to permit persons to whom the
++ Software is furnished to do so, subject to the following
++ conditions:
++ .
++ The above copyright notice and this permission notice shall be
++ included in all copies or substantial portions of the Software.
++ .
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
++ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++ NONINFRINGEMENT.  IN NO EVENT SHALL SIMON TATHAM BE LIABLE FOR
++ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
++ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
++ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
++ SOFTWARE.
++
++Files: modules/xmpp/xsnprintf.c obsolete/jabber_s/xsnprintf.c obsolete/jabber_k/xsnprintf.c
++Copyright: 1995-1998, The Apache Group
++License: Apache-1.0
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ .
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ .
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in
++    the documentation and/or other materials provided with the
++    distribution.
++ .
++ 3. All advertising materials mentioning features or use of this
++    software must display the following acknowledgment:
++    "This product includes software developed by the Apache Group
++    for use in the Apache HTTP server project (http://www.apache.org/)."
++ .
++ 4. The names "Apache Server" and "Apache Group" must not be used to
++    endorse or promote products derived from this software without
++    prior written permission.
++ .
++ 5. Redistributions of any form whatsoever must retain the following
++    acknowledgment:
++    "This product includes software developed by the Apache Group
++    for use in the Apache HTTP server project (http://www.apache.org/)."
++ .
++ THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY
++ EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE APACHE GROUP OR
++ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ OF THE POSSIBILITY OF SUCH DAMAGE.
++
++Files: modules/mi_xmlrpc/abyss*
++Copyright: 2000, Moez Mahfoudh <mmoez at bigfoot.com>
++License: BSD-3-clause
++
++Files: list.h
++Copyright: 1991, 1993 The Regents of the University of California
++License: BSD-3-clause
++
++Files: modules/tm/t_serial.*
++Copyright: 2008 Juha Heinanen
++License: BSD-2-clause
++
++Files: parser/sdp/sdp.* parser/sdp/sdp_helpr_funcs.* parser/sdp/sdp_cloner.h
++Copyright:
++ 2008-2009 SOMA Networks, INC.
++ 2010 VoIP Embedded, Inc
++License: BSD-2-clause
++
++Files: modules/tls/fixed_c_zlib.h
++Copyright:1998-2005 The OpenSSL Project
++Comment: file copied from OpenSSL 0.9.8, refers to OpenSSL License. Note that
++ this code will not build by default in the Debian packaging.
++License: OpenSSL
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ .
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ .
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in
++    the documentation and/or other materials provided with the
++    distribution.
++ .
++ 3. All advertising materials mentioning features or use of this
++    software must display the following acknowledgment:
++    "This product includes software developed by the OpenSSL Project
++    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
++ .
++ 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
++    endorse or promote products derived from this software without
++    prior written permission. For written permission, please contact
++    openssl-core at openssl.org.
++ .
++ 5. Products derived from this software may not be called "OpenSSL"
++    nor may "OpenSSL" appear in their names without prior written
++    permission of the OpenSSL Project.
++ .
++ 6. Redistributions of any form whatsoever must retain the following
++    acknowledgment:
++    "This product includes software developed by the OpenSSL Project
++    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
++ .
++ THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
++ EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
++ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ OF THE POSSIBILITY OF SUCH DAMAGE.
++
++Files: md5.* md5utils.c
++Copyright: 1991-2, RSA Data Security, Inc
++Comment: Note that md5.c and md5.h have been replaced in the patches
++ plum_md5*.patch .
++ .
++ As for md5utils.c, according to a mail from Upstream (Daniel-Constantin
++ Mierla): while the initial commit log for it states that it is derived
++ from mddriver.c of RFC 1321, it seems that it was, in fact, written from
++ scratch by Jiri Kuthan (a core developer of SER at that time, working for
++ FhG Fokus Institute). As you can see it's rather trivial and uses a data
++ type of SER ("str").  I didn't reimplement it as it's too trivial and
++ looks like there's no other way to implement it.
++License: RSA-MD5
++ License to copy and use this software is granted provided that it
++ is identified as the "RSA Data Security, Inc. MD5 Message-Digest
++ Algorithm" in all material mentioning or referencing this software
++ or this function.
++ .
++ License is also granted to make and use derivative works provided
++ that such works are identified as "derived from the RSA Data
++ Security, Inc. MD5 Message-Digest Algorithm" in all material
++ mentioning or referencing the derived work.
++ .
++ RSA Data Security, Inc. makes no representations concerning either
++ the merchantability of this software or the suitability of this
++ software for any particular purpose. It is provided "as is"
++ without express or implied warranty of any kind.
++ .
++ These notices must be retained in any copies of any part of this
++ documentation and/or software.
++
++Files: mem/dl_*
++Copyright: n/a
++License: public-domain
++ This is a version (aka dlmalloc) of malloc/free/realloc written by
++ Doug Lea and released to the public domain, as explained at
++ http://creativecommons.org/licenses/publicdomain.  Send questions,
++ comments, complaints, performance data, etc to dl at cs.oswego.edu
++
++Files: rand/isaac/*
++Copyright: n/a
++License: public-domain
++ By Bob Jenkins.  My random number generator, ISAAC.  Public Domain.
++
++License: ISC
++ Permission to use, copy, modify, and distribute this software for any
++ purpose with or without fee is hereby granted, provided that the above
++ copyright notice and this permission notice appear in all copies.
++ .
++ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
++ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
++ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
++ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
++ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
++ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
++ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
++
++Files: lib/srutils/srjson.*
++Copyright: 2009 Dave Gamble
++License: MIT
++ Permission is hereby granted, free of charge, to any person obtaining a copy
++ of this software and associated documentation files (the "Software"), to deal
++ in the Software without restriction, including without limitation the rights
++ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
++ copies of the Software, and to permit persons to whom the Software is
++ furnished to do so, subject to the following conditions:
++ .
++ The above copyright notice and this permission notice shall be included in
++ all copies or substantial portions of the Software.
++ ,
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
++ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
++ THE SOFTWARE.
++
++License: BSD-3-clause
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ 1. Redistributions of source code must retain the above copyright
++    notice, this list of conditions and the following disclaimer.
++ 2. Redistributions in binary form must reproduce the above copyright
++    notice, this list of conditions and the following disclaimer in the
++    documentation and/or other materials provided with the distribution.
++ 4. Neither the name of the University nor the names of its contributors
++    may be used to endorse or promote products derived from this software
++    without specific prior written permission.
++ .
++ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
++ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
++ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
++ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
++ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
++ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
++ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
++ SUCH DAMAGE.
++
++License: BSD-2-clause
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions are met:
++ .
++  1. Redistributions of source code must retain the above copyright notice,
++     this list of conditions and the following disclaimer.
++  2. Redistributions in binary form must reproduce the above copyright
++     notice, this list of conditions and the following disclaimer in the
++     documentation and/or other materials provided with the distribution.
++ .
++ THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS OR
++ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
++ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
++ EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
++ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
++ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
++ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
++ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
++ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --cc pkg/kamailio/deb/wheezy/kamailio-autheph-modules.lintian-overrides
index 0000000,0000000..dcb3d18
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/wheezy/kamailio-autheph-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-autheph-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/wheezy/kamailio-berkeley-bin.dirs
index 0000000,0000000..236670a
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/wheezy/kamailio-berkeley-bin.dirs
@@@ -1,0 -1,0 +1,1 @@@
++usr/sbin
diff --cc pkg/kamailio/deb/wheezy/kamailio-dnssec-modules.lintian-overrides
index 0000000,0000000..10165fe
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/wheezy/kamailio-dnssec-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-dnssec-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/wheezy/kamailio-outbound-modules.lintian-overrides
index 0000000,0000000..3050cfe
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/wheezy/kamailio-outbound-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-outbound-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/wheezy/kamailio-tls-modules.lintian-overrides
index 0000000,0000000..bbe0d37
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/wheezy/kamailio-tls-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-tls-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/wheezy/kamailio-websocket-modules.lintian-overrides
index 0000000,0000000..8f384fb
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/wheezy/kamailio-websocket-modules.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio-websocket-modules binary: possible-gpl-code-linked-with-openssl
diff --cc pkg/kamailio/deb/wheezy/kamailio.README.Debian
index 4eaf90b,0000000..d25769a
mode 100644,000000..100644
--- a/pkg/kamailio/deb/wheezy/kamailio.README.Debian
+++ b/pkg/kamailio/deb/wheezy/kamailio.README.Debian
@@@ -1,38 -1,0 +1,39 @@@
 +Kamailio for Debian
- ------------------
++-------------------
 +
 +* init script check for fork=no
 +-------------------------------
 +
 +The Kamailio init script will not start Kamailio on boot if fork=no is
 +specified in the config file. The check in the initscript will match
 +any occurrence of fork=no in the file, even inside C-style comments.
 +
 +You can disable this check in the init script if you wish; just comment
 +out the calls to the check_fork function in the script. Your changes to
 +the init script will be preserved upon upgrade, as the file is tagged
 +as a conffile.
 +
 +
 +* Kamailio setup
- ---------------
++----------------
 +
 +To setup Kamailio, you need to:
 + - configure Kamailio properly to suit your needs
 + - edit /etc/default/kamailio, adjust the MEMORY parameter and set
 +   RUN_KAMAILIO to "yes"
 +
 +If you are building an HA cluster using heartbeat or similar, you'll want
 +to disable the init script by running:
 +
 +  update-rc.d kamailio remove
 +
 +so that Kamailio will not be launched at system startup. You still need
 +to set RUN_KAMAILIO to "yes" if you want to use the /etc/init.d/kamailio init
 +script.
 +
 +Set the DUMP_CORE parameter in /etc/default/kamailio to "yes" if you want to
 +get a core dump in case Kamailio crashes. The debug symbols for Kamailio are
 +provided by the kamailio-dbg package.
 +
- -- Julien BLACHE <jblache at debian.org>, Fri, 08 Sep 2006 14:43:21 +0200
++
++ -- Victor Seva <linuxmaniac at torreviejawireless.org>  Wed, 11 Dec 2013 16:07:11 +0100
diff --cc pkg/kamailio/deb/wheezy/kamailio.default
index 3221104,0000000..0cfc8c8
mode 100644,000000..100644
--- a/pkg/kamailio/deb/wheezy/kamailio.default
+++ b/pkg/kamailio/deb/wheezy/kamailio.default
@@@ -1,33 -1,0 +1,28 @@@
 +#
 +# Kamailio startup options
 +#
 +
 +# Set to yes to enable kamailio, once configured properly.
- RUN_KAMAILIO=no
++#RUN_KAMAILIO=yes
 +
 +# User to run as
- USER=kamailio
++#USER=kamailio
 +
 +# Group to run as
- GROUP=kamailio
++#GROUP=kamailio
 +
- # Amount of shared memory to allocate for the running Kamailio server (in Mb)
- SHM_MEMORY=64
++# Amount of shared and private memory to allocate
++# for the running Kamailio server (in Mb)
++#SHM_MEMORY=64
++#PKG_MEMORY=4
 +
- # Amount of private memory for each Kamailio process (in Mb)
- PKG_MEMORY=4
- 
- # Switch to USER and GROUP by start-stop-daemon or by kamailio itself
- # - with recent kernels, changing user ID inside applicaton prevents
- #   dumping core files. If the value is 'yes', the suid is done by
- #   start-stop-daemon, otherwise it is done by kamailio itself
- SSD_SUID=no
++# Config file
++#CFGFILE=/etc/kamailio/kamailio.cfg
 +
 +# Enable the server to leave a core file when it crashes.
 +# Set this to 'yes' to enable Kamailio to leave a core file when it crashes
 +# or 'no' to disable this feature. This option is case sensitive and only
 +# accepts 'yes' and 'no' and only in lowercase letters.
- # On some systems (e.g. Ubuntu 6.10, Debian 4.0) it is necessary to specify
- # a directory for the core files to get a dump. Look into the kamailio
- # init file for an example configuration.
- DUMP_CORE=no
++# On some systems it is necessary to specify a directory for the core files
++# to get a dump. Look into the kamailio init file for an example configuration.
++#DUMP_CORE=yes
diff --cc pkg/kamailio/deb/wheezy/kamailio.init
index 6b0a1ee,0000000..1f8f796
mode 100644,000000..100644
--- a/pkg/kamailio/deb/wheezy/kamailio.init
+++ b/pkg/kamailio/deb/wheezy/kamailio.init
@@@ -1,240 -1,0 +1,162 @@@
 +#! /bin/sh
 +#
 +### BEGIN INIT INFO
 +# Provides:          kamailio
 +# Required-Start:    $syslog $network $local_fs $remote_fs $time
++# Should-Start:      $named slapd mysql postgresql snmpd radiusd
++# Should-Stop:       $named slapd mysql postgresql snmpd radiusd
 +# Required-Stop:     $syslog $network $local_fs $remote_fs
 +# Default-Start:     2 3 4 5
 +# Default-Stop:      0 1 6
- # Should-Start:      postgresql mysql radius
- # Should-Stop:       postgresql mysql radius
 +# Short-Description: Start the Kamailio SIP proxy server
 +# Description:       Start the Kamailio SIP proxy server
 +### END INIT INFO
 +
++. /lib/lsb/init-functions
 +
 +PATH=/sbin:/bin:/usr/sbin:/usr/bin
 +DAEMON=/usr/sbin/kamailio
 +NAME=kamailio
- DESC=Kamailio
++DESC="Kamailio SIP server"
 +HOMEDIR=/var/run/kamailio
 +PIDFILE=$HOMEDIR/$NAME.pid
 +DEFAULTS=/etc/default/kamailio
 +CFGFILE=/etc/kamailio/kamailio.cfg
 +RUN_KAMAILIO=no
- 
++USER=kamailio
++GROUP=kamailio
++# Amount of shared and private memory to allocate
++# for the running Kamailio server (in Mb)
++SHM_MEMORY=64
++PKG_MEMORY=4
++DUMP_CORE=no
 +
 +# Do not start kamailio if fork=no is set in the config file
- # otherwise the boot process will just stop.
++# otherwise the boot process will just stop
 +check_fork ()
 +{
-   if grep -q "^[[:space:]]*fork[[:space:]]*=[[:space:]]*no.*" $CFGFILE; then
-     echo "Not starting $DESC: fork=no specified in config file. Run /etc/init.d/kamailio debug instead."
-     exit 1
-   fi
++    if grep -q "^[[:space:]]*fork[[:space:]]*=[[:space:]]*no.*" $CFGFILE; then
++	log_failure_msg "Not starting $DESC: fork=no specified in config file; run /etc/init.d/kamailio debug instead"
++	exit 0
++    fi
 +}
 +
- 
 +check_kamailio_config ()
 +{
-   # Check if kamailio configuration is valid before starting the server.
-   set +e
-   out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
-   retcode=$?
-   set -e
-   if [ "$retcode" != '0' ]; then
-     echo "Not starting $DESC: invalid configuration file!"
-     echo -e "\n$out\n"
-     exit 1
-   fi
- }
- 
- 
- check_homedir ()
- {
-   # Create HOMEDIR directory in case it doesn't exist.
-   # Useful in Ubuntu as /var/run/ content is deleted in shutdown.
-   if [ ! -d $HOMEDIR ]; then
-     mkdir $HOMEDIR
-   fi
- 
-   # Set the appropiate owner and group
-   chown ${USER}:${GROUP} $HOMEDIR
++	# Check if kamailio configuration is valid before starting the server
++	set +e
++	out=$($DAEMON -f $CFGFILE -M $PKG_MEMORY -c 2>&1 > /dev/null)
++	retcode=$?
++	set -e
++	if [ "$retcode" != '0' ]; then
++	    log_failure_msg "Not starting $DESC: invalid configuration file!"
++	    log_failure_msg
++	    log_failure_msg "$out"
++	    log_faiulre_msg
++	    exit 1
++	fi
 +}
 +
- 
 +create_radius_seqfile ()
 +{
-   # Create a radius sequence file to be used by the radius client if
-   # radius accounting is enabled. This is needed to avoid any issue
-   # with the file not being writable if kamailio first starts as user
-   # root because DUMP_CORE is enabled and creates this file as user
-   # root and then later it switches back to user kamailio and cannot
-   # write to the file. If the file exists before kamailio starts, it
-   # won't change it's ownership and will be writable for both root
-   # and kamailio, no matter what options are chosen at install time
-   RADIUS_SEQ_FILE=$HOMEDIR/kamailio_radius.seq
- 
-   if [ ! -f $RADIUS_SEQ_FILE ]; then
-       touch $RADIUS_SEQ_FILE
-   fi
- 
-   chown ${USER}:${GROUP} $RADIUS_SEQ_FILE
-   chmod 660 $RADIUS_SEQ_FILE
++    # Create a radius sequence file to be used by the radius client if
++    # radius accounting is enabled. This is needed to avoid any issue
++    # with the file not being writable if kamailio first starts as user
++    # root because DUMP_CORE is enabled and creates this file as user
++    # root and then later it switches back to user kamailio and cannot
++    # write to the file. If the file exists before kamailio starts, it
++    # won't change it's ownership and will be writable for both root
++    # and kamailio, no matter what options are chosen at install time
++    RADIUS_SEQ_FILE=/var/run/kamailio/kamailio_radius.seq
++    if [ -d /var/run/kamailio ]; then
++	chown ${USER}:${GROUP} /var/run/kamailio
++
++	if [ ! -f $RADIUS_SEQ_FILE ]; then
++	    touch $RADIUS_SEQ_FILE
++	fi
++
++	chown ${USER}:${GROUP} $RADIUS_SEQ_FILE
++	chmod 660 $RADIUS_SEQ_FILE
++    fi
 +}
 +
++test -f $DAEMON || exit 0
 +
- if [ ! -f $DAEMON ]; then
-   echo "No $DESC daemon at $DAEMON."
-   case "$1" in
-   status)
-     # LSB - 4: program or service status is unknown.
-     exit 4
-     ;;
-   *)
-     # LSB - 5: program is not installed.
-     exit 5
-     ;;
-   esac
- fi
- 
- 
- # Load startup options if available.
++# Load startup options if available
 +if [ -f $DEFAULTS ]; then
-   . $DEFAULTS || true
++   . $DEFAULTS || true
 +fi
 +
- 
 +if [ "$RUN_KAMAILIO" != "yes" ]; then
-   echo "$DESC not yet configured. Edit $DEFAULTS first."
-   exit 0
++    log_failure_msg "Kamailio not yet configured. Edit /etc/default/kamailio first."
++    exit 0
 +fi
 +
- 
 +set -e
 +
- 
 +SHM_MEMORY=$((`echo $SHM_MEMORY | sed -e 's/[^0-9]//g'`))
 +PKG_MEMORY=$((`echo $PKG_MEMORY | sed -e 's/[^0-9]//g'`))
- [ $SHM_MEMORY -le 0 ] && SHM_MEMORY=64
- [ $PKG_MEMORY -le 0 ] && PKG_MEMORY=4
 +[ -z "$USER" ]  && USER=kamailio
 +[ -z "$GROUP" ] && GROUP=kamailio
- 
++[ $SHM_MEMORY -le 0 ] && SHM_MEMORY=64
++[ $PKG_MEMORY -le 0 ] && PKG_MEMORY=4
 +
 +if test "$DUMP_CORE" = "yes" ; then
-   # set proper ulimit.
-   ulimit -c unlimited
- 
-   # directory for the core dump files.
-   # COREDIR=/tmp/corefiles
-   # [ -d $COREDIR ] || mkdir $COREDIR
-   # chmod 777 $COREDIR
-   # echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
++    # set proper ulimit
++    ulimit -c unlimited
++
++    # directory for the core dump files
++    # COREDIR=/home/corefiles
++    # [ -d $COREDIR ] || mkdir $COREDIR
++    # chmod 777 $COREDIR
++    # echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
 +fi
 +
- 
- if [ "$SSD_SUID" != "yes" ]; then
-   OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
-   SSDOPTS=""
- else
-   OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY"
-   SSDOPTS="--chuid $USER:$GROUP"
++# /var/run can be a tmpfs
++if [ ! -d $HOMEDIR ]; then
++    mkdir -p $HOMEDIR
 +fi
 +
- 
- start_kamailio_daemon ()
- {
-   start-stop-daemon --start --quiet --pidfile $PIDFILE $SSDOPTS \
-     --exec $DAEMON -- $OPTIONS
-   res=$?
- 
-   echo -n "$NAME "
-   if [ $res -eq 0 ] ; then
-     echo "started."
-     exit 0
-   else
-     if [ ! -r "$PIDFILE" ]; then
-       echo "error, failed to start."
-       exit 1
-     elif read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
-       echo "already running."
-       exit 0
-     else
-       echo "error, failed to start ($PIDFILE exists)."
-       exit 1
-     fi
-   fi
- }
- 
++OPTIONS="-f $CFGFILE -P $PIDFILE -m $SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP"
 +
 +case "$1" in
 +  start|debug)
-     check_kamailio_config
-     check_homedir
-     create_radius_seqfile
- 
-     if [ "$1" != "debug" ]; then
-       check_fork
-     fi
- 
-     echo "Starting $DESC:"
-     set +e
-     start_kamailio_daemon
-     ;;
- 
++	check_kamailio_config
++	create_radius_seqfile
++
++	if [ "$1" != "debug" ]; then
++	    check_fork
++	fi
++
++	log_daemon_msg "Starting $DESC: $NAME"
++	start-stop-daemon --start --quiet --pidfile $PIDFILE \
++		--exec $DAEMON -- $OPTIONS || log_failure_msg " already running"
++	log_end_msg 0
++	;;
 +  stop)
-     echo -n "Stopping $DESC: $NAME "
-     set +e
-     start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
-       --exec $DAEMON
- 
-     if [ $? -eq 0 ] ; then
-       echo "stopped."
-       exit 0
-     else
-       echo "failed to stop."
-       exit 1
-     fi
-     ;;
-     
++	log_daemon_msg "Stopping $DESC: $NAME"
++	start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
++		--exec $DAEMON
++	log_end_msg 0
++	;;
 +  restart|force-reload)
-     check_kamailio_config
-     check_homedir
-     create_radius_seqfile
- 
-     echo "Restarting $DESC:"
-     set +e
-     start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE --retry=5 \
-       --exec $DAEMON
-     if [ $? -ne 0 ] ; then
-       echo "$NAME failed to stop."
-       exit 1
-     fi
-     start_kamailio_daemon
-     ;;
++	check_kamailio_config
++	create_radius_seqfile
 +
++	$0 stop
++	sleep 1
++	$0 start
++	;;
 +  status)
-     echo -n "Status of $DESC: $NAME "
-     if [ ! -r "$PIDFILE" ]; then
-       echo "is not running."
-       exit 3
-     fi
-     if read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
-       echo "is running."
-       exit 0
-     else
-       echo "is not running but $PIDFILE exists."
-       exit 1
-     fi
-     ;;
++	log_daemon_msg "Status of $DESC: "
 +
++	status_of_proc -p"$PIDFILE" $NAME $NAME
++	;;
 +  *)
-     N=/etc/init.d/$NAME
-     echo "Usage: $N {start|stop|restart|force-reload|debug|status}" >&2
-     exit 1
-     ;;
++	N=/etc/init.d/$NAME
++	echo "Usage: $N {start|stop|restart|force-reload|status|debug}" >&2
++	exit 1
++	;;
 +esac
 +
- 
 +exit 0
diff --cc pkg/kamailio/deb/wheezy/kamailio.lintian-overrides
index 0000000,0000000..18152ed
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/wheezy/kamailio.lintian-overrides
@@@ -1,0 -1,0 +1,2 @@@
++kamailio binary: example-interpreter-not-absolute usr/share/doc/kamailio/examples/outbound/edge.cfg #!KAMAILIO
++kamailio binary: example-interpreter-not-absolute usr/share/doc/kamailio/examples/outbound/registrar.cfg #!KAMAILIO
diff --cc pkg/kamailio/deb/wheezy/kamailio.postinst
index fc7e4a8,0000000..4ee38ec
mode 100644,000000..100644
--- a/pkg/kamailio/deb/wheezy/kamailio.postinst
+++ b/pkg/kamailio/deb/wheezy/kamailio.postinst
@@@ -1,48 -1,0 +1,24 @@@
 +#! /bin/sh
- #
- # $Id$
- 
- PKG=kamailio
- DEFAULTS=/etc/default/kamailio
- HOMEDIR=/var/run/kamailio
 +
 +set -e
 +
- # summary of how this script can be called:
- #        * <postinst> `configure' <most-recently-configured-version>
- #        * <old-postinst> `abort-upgrade' <new version>
- #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
- #          <new-version>
- #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
- #          <failed-install-package> <version> `removing'
- #          <conflicting-package> <version>
- # for details, see http://www.debian.org/doc/debian-policy/ or
- # the debian-policy package
- #
- # quoting from the policy:
- #     Any necessary prompting should almost always be confined to the
- #     post-installation script, and should be protected with a conditional
- #     so that unnecessary prompting doesn't happen if a package's
- #     installation fails and the `postinst' is called with `abort-upgrade',
- #     `abort-remove' or `abort-deconfigure'.
- 
 +case "$1" in
 +    configure)
 +        adduser --quiet --system --group --disabled-password \
-                 --shell /bin/false --gecos "Kamailio" \
-                 --home $HOMEDIR kamailio || true
++                --shell /bin/false --gecos "Kamailio SIP Server" \
++                --home /var/run/kamailio kamailio || true
 +
 +        ;;
 +
 +    abort-upgrade|abort-remove|abort-deconfigure)
 +
 +        ;;
 +
 +    *)
 +        echo "postinst called with unknown argument \`$1'" >&2
 +        exit 1
 +        ;;
 +esac
 +
 +#DEBHELPER#
 +
diff --cc pkg/kamailio/deb/wheezy/rules
index 6709a72,0000000..495a453
mode 100755,000000..100755
--- a/pkg/kamailio/deb/wheezy/rules
+++ b/pkg/kamailio/deb/wheezy/rules
@@@ -1,228 -1,0 +1,201 @@@
 +#!/usr/bin/make -f
 +# Sample debian/rules that uses debhelper.
 +# GNU copyright 1997 to 1999 by Joey Hess.
- #
- # $Id$
- #
- # History:
- # --------
- #  2009-07-08  updated for sip-router (andrei)
- #  2009-12-10  updated for kamailio 3.0 (daniel)
 +
++DEBVERSION:=$(shell head -n 1 debian/changelog \
++                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
++UPVERSION:=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
++
++FILENAME := kamailio_$(UPVERSION).orig.tar.gz
++URL := http://www.kamailio.org/pub/kamailio/$(UPVERSION)/src/kamailio-$(UPVERSION)_src.tar.gz
++
++DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
++
++export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++DPKG_EXPORT_BUILDFLAGS = 1
++include /usr/share/dpkg/buildflags.mk
 +
 +# Uncomment this to turn on verbose mode.
 +#export DH_VERBOSE=1
 +
- # This is the debhelper compatibility version to use.
- # export DH_COMPAT=4
- #  -- already set in compat
- export DEB_BUILD_OPTIONS:="$(DEB_BUILD_OPTIONS) debug"
++# java stuff using libgcj12
++export JAVA_HOME=/usr/lib/jvm/java-gcj-4.6
++
++# choose freeradius
 +
 +# modules not in the "main" kamailio package
- EXCLUDED_MODULES= 
++EXCLUDED_MODULES=
 +
 +# extra modules to skip, because they are not compilable now
 +# - regardless if they go to the main kamailio package or to some module package,
 +# they will be excluded from compile and install of all
- EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc purple
- #EXTRA_EXCLUDED_MODULES=
- 
- # possible module directories that can appear in MODULES_SP
- # (only used for deducing a module name)
- MDIRS=modules
- 
- # modules packaged in separate packages (complete with full modules_* path)
- # with the package name: kamailio-$(module_name)-module
- MODULES_SP=
++EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy purple mi_xmlrpc dnssec
 +
 +# module groups that are packaged in seperate packages
 +# (with the name kamailio-$(group_name)-modules)
 +# Note: the order is important (should be in dependency order, the one
 +# on which other depend first)
 +PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
- 			   ldap xml perl utils lua memcached tls \
- 			   snmpstats carrierroute xmpp cpl redis python geoip \
- 			   sqlite json mono ims outbound websocket \
- 			   autheph sctp java
++			   ldap xml perl utils lua memcached \
++			   snmpstats carrierroute xmpp cpl redis python geoip\
++			   sqlite json mono ims sctp java \
++			   tls outbound websocket autheph 
 +
 +# name of libdir in the path for libraries (e.g., lib for 32b, lib64 for 64b)
- LIBDIR ?= lib
++LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
 +
 +# directories with possible duplicate libraries (that should be deleted
 +# from current module* packages)
 +DUP_LIBS_DIRS=$(CURDIR)/debian/kamailio/usr/$(LIBDIR)/kamailio \
 +			$(CURDIR)/debian/kamailio-db-modules/usr/$(LIBDIR)/kamailio
 +
- # modules names out of modules sp
- MODULES_SP_NAMES=$(filter-out $(MDIRS),$(subst /, ,$(MODULES_SP)))
- 
 +# "function" to get package short name out of a dir/module_name
 +# it also transforms db_foo into foo
 +mod_name=$(subst db_,,$(lastword $(subst /, ,$(1))))
 +
 +define PACKAGE_GRP_BUILD_template
 +	# package all the modules in PACKAGE_GROUPS in separate packages
 +	$(foreach grp,$(PACKAGE_GROUPS),\
 +		$(MAKE) every-module group_include="k$(grp)"
 +	)
 +endef
 +
 +
- define PACKAGE_MODULE_BUILD_template
- 	# package all the modules MODULES_SP in separate packages
- 	$(foreach mod,$(MODULES_SP),\
- 		$(MAKE) modules modules="$(mod)"
- 	)
- endef
- 
- 
 +define PACKAGE_GRP_INSTALL_template
 +	$(foreach grp,$(PACKAGE_GROUPS),\
- 		$(MAKE) install-modules-all group_include="k$(grp)" \
++		$(MAKE) install-modules-all LIBDIR=$(LIBDIR) group_include="k$(grp)" \
 +		basedir=$(CURDIR)/debian/kamailio-$(grp)-modules \
 +		cfg_prefix=$(CURDIR)/debian/kamailio-$(grp)-modules \
 +		doc-dir=share/doc/kamailio-$(grp)-modules
 +		# eliminate duplicate libs
 +		-for d in $(DUP_LIBS_DIRS); do \
 +			test "$$d" != "$(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio" &&\
- 			for r in $$d/lib*; do \
- 				if [ "$$r" != "$$d/lib*" ]; then \
- 					echo "removing $(grp) lib `basename $$r` present also in $$d";\
- 					rm -f $(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
- 				fi \
++			for r in `find $$d -name 'lib*'|xargs`; do \
++				echo "removing $(grp) lib `basename $$r` present also in $$d";\
++				rm -f $(CURDIR)/debian/kamailio-$(grp)-modules/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
 +			done ; \
 +		done
++		find $(CURDIR)/debian/kamailio-$(grp)-modules -depth -empty -type d -exec rmdir {} \;
 +	)
 +endef
 +
 +
- define PACKAGE_MODULE_INSTALL_template
- 	$(foreach mod,$(MODULES_SP),
- 		$(MAKE) install-modules-all modules="$(mod)" \
- 				modules_s="" modules_k="" \
- 				basedir=$(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module \
- 				doc-dir=share/doc/kamailio-$(call mod_name,$(mod))-module
- 		# eliminate duplicate libs
- 		-for d in $(DUP_LIBS_DIRS); do \
- 			test "$$d" != "$(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module/usr/$(LIBDIR)/kamailio" &&\
- 			for r in $$d/lib*; do \
- 				if [ "$$r" != "$$d/lib*" ]; then \
- 					echo "removing $(call mod_name, $(mod)) lib `basename $$r` present also in $$d";\
- 					rm -f $(CURDIR)/debian/kamailio-$(call mod_name,$(mod))-module/usr/$(LIBDIR)/kamailio/`basename "$$r"` ; \
- 				fi \
- 			done ; \
- 		done
- 	)
- endef
- 
 +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 +	CFLAGS += -g
 +endif
 +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 +	INSTALL_PROGRAM += -s
 +endif
 +
++# CFLAGS + CPPFLAGS -> CC_EXTRA_OPTS
++# LDFLAGS -> LD_EXTRA_OPTS
++CUSTOM_BUILDFLAGS:=$(shell dpkg-buildflags --export=configure| \
++sed -e 's/" CPPFLAGS="/ /' -e 's/CFLAGS/CC_EXTRA_OPTS/g' -e 's/LDFLAGS/LD_EXTRA_OPTS/g')
++
 +configure: configure-stamp
 +configure-stamp:
 +	dh_testdir
 +	# Add here commands to configure the package.
 +	$(MAKE) FLAVOUR=kamailio cfg prefix=/usr cfg_prefix=$(CURDIR)/debian/kamailio \
 +			cfg_target=/etc/kamailio/ \
 +			basedir=$(CURDIR)/debian/kamailio \
 +			skip_modules="$(EXCLUDED_MODULES) $(EXTRA_EXCLUDED_MODULES)" \
++			$(CUSTOM_BUILDFLAGS) \
 +			group_include="kstandard"
 +
 +	touch configure-stamp
 +
 +
 +build: build-stamp
- 
- build-stamp: configure-stamp 
++build-arch: build-stamp
++build-indep: build-stamp
++build-stamp: configure-stamp
 +	dh_testdir
 +	# Add here commands to compile the package.
 +	$(MAKE) all
 +	# make groups
 +	$(call PACKAGE_GRP_BUILD_template)
 +	# make single-module packages
 +	$(call PACKAGE_MODULE_BUILD_template)
 +	touch build-stamp
 +
 +clean:
 +	dh_testdir
 +	dh_testroot
 +	rm -f build-stamp configure-stamp
 +	# Add here commands to clean up after the build process.
- 	-$(MAKE) maintainer-clean
++	$(MAKE) maintainer-clean
 +	dh_clean
 +
 +install: build
 +	dh_testdir
 +	dh_testroot
- 	dh_clean -k
++	dh_prep
 +	dh_installdirs
 +	# Add here commands to install the package into debian/kamailio
- 	$(MAKE) install group_include="kstandard"
- 	# fix etc/kamailio dir location -- not needed -- andrei
- 	# mv -f $(CURDIR)/debian/kamailio/usr/etc $(CURDIR)/debian/kamailio
++	$(MAKE) install LIBDIR=$(LIBDIR) group_include="kstandard"
 +	# make group packages
 +	$(call PACKAGE_GRP_INSTALL_template)
- 	# make single module packages
- 	$(call PACKAGE_MODULE_INSTALL_template)
++	mv $(CURDIR)/debian/kamailio-berkeley-modules/usr/sbin/kambdb_recover \
++		$(CURDIR)/debian/kamailio-berkeley-bin/usr/sbin/kambdb_recover
 +	# install /etc/default/kamailio file
 +	mkdir -p $(CURDIR)/debian/kamailio/etc/default
 +	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
- 	#dh_movefiles
- 
 +
 +
 +# This single target is used to build all the packages, all at once, or
 +# one at a time. So keep in mind: any options passed to commands here will
 +# affect _all_ packages. Anything you want to only affect one package
 +# should be put in another target, such as the install target.
- binary-common: 
++binary-common:
 +	dh_testdir
 +	dh_testroot
- 	dh_installdebconf	
++	dh_installdebconf
 +	dh_installdocs
 +	dh_installexamples
 +	dh_installmenu
- #	dh_installlogrotate
- #	dh_installemacsen
- #	dh_installpam
- #	dh_installmime
- 	dh_installinit  -- defaults 23
++	dh_installinit -pkamailio -- defaults 23
 +	dh_installcron
 +	dh_installman
 +	dh_installinfo
- #	dh_undocumented
- 	dh_installchangelogs ChangeLog 
++	dh_lintian
++	dh_installchangelogs ChangeLog
 +	dh_link
 +	dh_strip --dbg-package=kamailio-dbg
- 	dh_compress 
++	dh_compress
 +	dh_fixperms
 +	dh_makeshlibs
 +	dh_installdeb
- #	dh_perl
 +	dh_shlibdeps
 +	dh_gencontrol
 +	dh_md5sums
 +	dh_builddeb
 +
 +# Build architecture-independent packages using the common target
 +binary-indep: build install
 +# (Uncomment this next line if you have such packages.)
 +#        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
 +# We have nothing to do by default.
 +
 +
 +# Build architecture-dependent packages using the common target
 +binary-arch: build install
 +	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
 +
 +# Any other binary targets build just one binary package at a time.
 +binary-%: build install
 +	$(MAKE) -f debian/rules binary-common DH_OPTIONS=-p$*
 +
++print-version:
++	@@echo "Debian version:          $(DEBVERSION)"
++	@@echo "Upstream version:        $(UPVERSION)"
++
++get-orig-source:
++	@@dh_testdir
++	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
++	@@echo Downloading $(FILENAME) from $(URL) ...
++	@@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
++
 +binary: binary-indep binary-arch
 +.PHONY: build clean binary-indep binary-arch binary install configure
 +
diff --cc pkg/kamailio/deb/wheezy/source.lintian-overrides
index 0000000,0000000..620d9ff
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/wheezy/source.lintian-overrides
@@@ -1,0 -1,0 +1,1 @@@
++kamailio source: debian-watch-file-in-native-package
diff --cc pkg/kamailio/deb/wheezy/source/format
index 0000000,0000000..89ae9db
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/wheezy/source/format
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (native)
diff --cc pkg/kamailio/deb/wheezy/watch
index 0000000,0000000..c50f31f
new file mode 100644
--- /dev/null
+++ b/pkg/kamailio/deb/wheezy/watch
@@@ -1,0 -1,0 +1,3 @@@
++version=3
++opts=dversionmangle=s/\~svn([\d]+)//; \
++http://www.kamailio.org/pub/kamailio/([\d.]+)/src/kamailio-([\d.]+)_src\.tar\.gz
diff --cc pkg/kamailio/rpm/kamailio.spec-4.1
index 6578398,0000000..5c8d272
mode 100644,000000..100644
--- a/pkg/kamailio/rpm/kamailio.spec-4.1
+++ b/pkg/kamailio/rpm/kamailio.spec-4.1
@@@ -1,403 -1,0 +1,403 @@@
 +%define name    kamailio
- %define ver     4.1.1
++%define ver     4.1.2
 +%define rel     0
 +
 +%define EXCLUDED_MODULES	mysql jabber cpl-c avp_radius auth_radius group_radius uri_radius pa postgres osp tlsops unixodbc
 +%define MYSQL_MODULES		mysql
 +%define UNIXODBC_MODULES	unixodbc
 +%define POSTGRES_MODULES	postgres
 +%define JABBER_MODULES		jabber
 +%define CPL_MODULES			cpl-c
 +%define PA_MODULES			pa
 +%define RADIUS_MODULES		avp_radius auth_radius group_radius uri_radius
 +%define RADIUS_MOD_PATH		modules/avp_radius modules/auth_radius modules/group_radius modules/uri_radius
 +
 +Summary:      Kamailio, very fast and flexible SIP Proxy
 +Name:         %name
 +Version:      %ver
 +Release:      %rel
 +Packager:     Daniel-Constantin Mierla <miconda at gmail.com>
 +Copyright:    GPL
 +Group:        System Environment/Daemons
 +Source:       http://kamailio.org/pub/kamailio/stable/%{name}-%{ver}_src.tar.gz
 +Source2:      kamailio.init
 +URL:          http://kamailio.org/
 +Vendor:       kamailio.org
 +BuildRoot:    /var/tmp/%{name}-%{ver}-root
 +Conflicts:    kamailio-mysql < %ver, kamailio-jabber < %ver, kamailio-radius < %ver, kamailio-cpl < %ver, kamailio-unixodbc < %ver, kamailio-pa < %ver, kamailio-postgres < %ver
 +BuildPrereq:  make flex bison
 +
 +
 +%description
 +Kamailio is a very fast and flexible SIP (RFC3261)
 +proxy server. Written entirely in C, kamailio can handle thousands calls
 +per second even on low-budget hardware. A C Shell like scripting language
 +provides full control over the server's behaviour. It's modular
 +architecture allows only required functionality to be loaded.
 +Currently the following modules are available: digest authentication,
 +CPL scripts, instant messaging, MySQL and UNIXODBC support, a presence agent,
 +radius authentication, record routing, an SMS gateway, a jabber gateway, a 
 +transaction and dialog module, OSP module, statistics support, 
 +registrar and user location, SNMP, SIMPLE Presence and Perl programming
 +interface.
 +
 +%package  mysql
 +Summary:  MySQL connectivity for the Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  mysql-devel zlib-devel
 +
 +%description mysql
 +The kamailio-mysql package contains MySQL database connectivity that you
 +need to use digest authentication module or persistent user location
 +entries.
 +
 +%package  postgres
 +Summary:  MPOSTGRES connectivity for the Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  postgresql-devel
 +
 +%description postgres
 +The kamailio-postgres package contains Postgres database connectivity that you
 +need to use digest authentication module or persistent user location
 +entries.
 +
 +%package  unixodbc
 +Summary:  UNIXODBC connectivity for Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  unixodbc-dev
 +
 +%description unixodbc
 +The kamailio-unixodbc package contains UNIXODBC database connectivity support
 +that is required by other modules with database dependencies.
 +
 +%package  jabber
 +Summary:  sip jabber message translation support for the Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  expat-devel
 +
 +%description jabber
 +The kamailio-jabber package contains a sip to jabber message translator.
 +
 +%%package  cpl
 +Summary:  CPL interpreter engine for the Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  libxml2-dev
 +
 +%description cpl
 +The kamailio-cpl package contains a SIP CPL interpreter engine.
 +
 +%package  pa
 +Summary:  sip presence agent support for the Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  libxml2-dev
 +
 +%description pa
 +The kamailio-pa package contains a sip Presence Agent.
 +
 +%package  radius
 +Summary:  kamailio radius authentication, group and uri check modules.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  radiusclient-devel
 +
 +%description radius
 +The kamailio-radius package contains modules for radius authentication, group
 + membership and uri checking.
 +
 +%prep
 +%setup
 +
 +%build
 +make all skip_modules="%EXCLUDED_MODULES"         cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="modules/%MYSQL_MODULES"     cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="modules/%POSTGRES_MODULES"  cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="modules/%UNIXODBC_MODULES"  cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="modules/%JABBER_MODULES"    cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="modules/%CPL_MODULES"       cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="modules/%PA_MODULES"        cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="%RADIUS_MOD_PATH"           cfg-target=/%{_sysconfdir}/kamailio/
 +
 +
 +%install
 +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
 +
 +make install skip_modules="%EXCLUDED_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-modules modules="modules/%MYSQL_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-doc modules="modules/%MYSQL_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-modules modules="modules/%POSTGRES_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-doc modules="modules/%POSTGRES_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-modules modules="modules/%UNIXODBC_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-doc modules="modules/%UNIXODBC_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-modules modules="modules/%JABBER_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-doc modules="modules/%JABBER_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-modules modules="modules/%CPL_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-doc modules="modules/%CPL_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-modules modules="modules/%PA_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-doc modules="modules/%PA_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-modules modules="%RADIUS_MOD_PATH" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +make install-doc modules="%RADIUS_MOD_PATH" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ 
 +
 +mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d
 +install -m755 $RPM_SOURCE_DIR/kamailio.init \
 +              $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/kamailio
 +
 +
 +
 +
 +%clean
 +rm -rf "$RPM_BUILD_ROOT"
 +
 +%post
 +/sbin/chkconfig --add kamailio
 +
 +%preun
 +if [ $1 = 0 ]; then
 +    /sbin/service kamailio stop > /dev/null 2>&1
 +    /sbin/chkconfig --del kamailio
 +fi
 +
 +
 +%files
 +%defattr(-,root,root)
 +%dir %{_docdir}/kamailio
 +%doc %{_docdir}/kamailio/AUTHORS
 +%doc %{_docdir}/kamailio/NEWS
 +%doc %{_docdir}/kamailio/INSTALL
 +%doc %{_docdir}/kamailio/README
 +%doc %{_docdir}/kamailio/README-MODULES
 +%doc %{_docdir}/kamailio/README.acc
 +%doc %{_docdir}/kamailio/README.alias_db
 +%doc %{_docdir}/kamailio/README.auth
 +%doc %{_docdir}/kamailio/README.auth_db
 +%doc %{_docdir}/kamailio/README.auth_diameter
 +%doc %{_docdir}/kamailio/README.avpops
 +%doc %{_docdir}/kamailio/README.dbtext
 +%doc %{_docdir}/kamailio/README.dialog
 +%doc %{_docdir}/kamailio/README.dispatcher
 +%doc %{_docdir}/kamailio/README.diversion
 +%doc %{_docdir}/kamailio/README.domain
 +%doc %{_docdir}/kamailio/README.enum
 +%doc %{_docdir}/kamailio/README.exec
 +%doc %{_docdir}/kamailio/README.flatstore
 +%doc %{_docdir}/kamailio/README.gflags
 +%doc %{_docdir}/kamailio/README.group
 +%doc %{_docdir}/kamailio/README.lcr
 +%doc %{_docdir}/kamailio/README.mangler
 +%doc %{_docdir}/kamailio/README.maxfwd
 +%doc %{_docdir}/kamailio/README.mediaproxy
 +%doc %{_docdir}/kamailio/README.msilo
 +%doc %{_docdir}/kamailio/README.nathelper
 +%doc %{_docdir}/kamailio/README.options
 +%doc %{_docdir}/kamailio/README.path
 +%doc %{_docdir}/kamailio/README.pdt
 +%doc %{_docdir}/kamailio/README.permissions
 +%doc %{_docdir}/kamailio/README.pike
 +%doc %{_docdir}/kamailio/README.registrar
 +%doc %{_docdir}/kamailio/README.rr
 +%doc %{_docdir}/kamailio/README.siptrace
 +%doc %{_docdir}/kamailio/README.sl
 +%doc %{_docdir}/kamailio/README.sms
 +%doc %{_docdir}/kamailio/README.speeddial
 +%doc %{_docdir}/kamailio/README.statistics
 +%doc %{_docdir}/kamailio/README.textops
 +%doc %{_docdir}/kamailio/README.tm
 +%doc %{_docdir}/kamailio/README.uac
 +%doc %{_docdir}/kamailio/README.uac_redirect
 +%doc %{_docdir}/kamailio/README.uri
 +%doc %{_docdir}/kamailio/README.uri_db
 +%doc %{_docdir}/kamailio/README.usrloc
 +%doc %{_docdir}/kamailio/README.xlog
 +
 +%dir %{_sysconfdir}/kamailio
 +%config(noreplace) %{_sysconfdir}/kamailio/*
 +%config %{_sysconfdir}/rc.d/init.d/*
 +
 +%dir %{_libdir}/kamailio
 +%dir %{_libdir}/kamailio/modules
 +%{_libdir}/kamailio/modules/acc.so
 +%{_libdir}/kamailio/modules/alias_db.so
 +%{_libdir}/kamailio/modules/auth.so
 +%{_libdir}/kamailio/modules/auth_db.so
 +%{_libdir}/kamailio/modules/auth_diameter.so
 +%{_libdir}/kamailio/modules/avpops.so
 +%{_libdir}/kamailio/modules/dbtext.so
 +%{_libdir}/kamailio/modules/dispatcher.so
 +%{_libdir}/kamailio/modules/diversion.so
 +%{_libdir}/kamailio/modules/domain.so
 +%{_libdir}/kamailio/modules/enum.so
 +%{_libdir}/kamailio/modules/exec.so
 +%{_libdir}/kamailio/modules/flatstore.so
 +%{_libdir}/kamailio/modules/gflags.so
 +%{_libdir}/kamailio/modules/group.so
 +%{_libdir}/kamailio/modules/lcr.so
 +%{_libdir}/kamailio/modules/mangler.so
 +%{_libdir}/kamailio/modules/maxfwd.so
 +%{_libdir}/kamailio/modules/mediaproxy.so
 +%{_libdir}/kamailio/modules/msilo.so
 +%{_libdir}/kamailio/modules/nathelper.so
 +%{_libdir}/kamailio/modules/options.so
 +%{_libdir}/kamailio/modules/path.so
 +%{_libdir}/kamailio/modules/pdt.so
 +%{_libdir}/kamailio/modules/permissions.so
 +%{_libdir}/kamailio/modules/pike.so
 +%{_libdir}/kamailio/modules/registrar.so
 +%{_libdir}/kamailio/modules/rr.so
 +%{_libdir}/kamailio/modules/siptrace.so
 +%{_libdir}/kamailio/modules/sl.so
 +%{_libdir}/kamailio/modules/sms.so
 +%{_libdir}/kamailio/modules/speeddial.so
 +%{_libdir}/kamailio/modules/statistics.so
 +%{_libdir}/kamailio/modules/textops.so
 +%{_libdir}/kamailio/modules/tm.so
 +%{_libdir}/kamailio/modules/uac.so
 +%{_libdir}/kamailio/modules/uac_redirect.so
 +%{_libdir}/kamailio/modules/uri.so
 +%{_libdir}/kamailio/modules/uri_db.so
 +%{_libdir}/kamailio/modules/usrloc.so
 +%{_libdir}/kamailio/modules/xlog.so
 +
 +%{_sbindir}/kamailio
 +%{_sbindir}/kamctl
 +%{_libdir}/kamctl/kamctl.base
 +%{_libdir}/kamctl/kamctl.sqlbase
 +%{_libdir}/kamctl/kamctl.ctlbase
 +%{_libdir}/kamctl/kamctl.fifo
 +%{_libdir}/kamctl/kamctl.unixsock
 +
 +%{_mandir}/man5/*
 +%{_mandir}/man8/*
 +
 +
 +%files mysql
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/README.mysql
 +
 +%{_libdir}/kamailio/modules/mysql.so
 +%{_sbindir}/kamailio_mysql.sh
 +%{_libdir}/kamctl/kamctl.mysql
 +
 +%files postgres
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/README.postgres
 +
 +%{_libdir}/kamailio/modules/postgres.so
 +%{_sbindir}/kamailio_postgres.sh
 +%{_libdir}/kamctl/kamctl.pgsql
 +
 +%files unixodbc
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/README.unixodbc
 +
 +%{_libdir}/kamailio/modules/unixodbc.so
 +
 +%files jabber
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/README.jabber
 +
 +%{_libdir}/kamailio/modules/jabber.so
 +
 +%files cpl
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/README.cpl-c
 +
 +%{_libdir}/kamailio/modules/cpl-c.so
 +
 +%files pa
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/README.pa
 +
 +%{_libdir}/kamailio/modules/pa.so
 +
 +%files radius
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/README.avp_radius
 +%doc %{_docdir}/kamailio/README.auth_radius
 +%doc %{_docdir}/kamailio/README.group_radius
 +%doc %{_docdir}/kamailio/README.uri_radius
 +
 +%{_libdir}/kamailio/modules/avp_radius.so
 +%{_libdir}/kamailio/modules/auth_radius.so
 +%{_libdir}/kamailio/modules/group_radius.so
 +%{_libdir}/kamailio/modules/uri_radius.so
 +
 +
 +%changelog
 +
 +* Fri Jun 30 2006 Bogdan-Andrei Iancu <bogdan at voice-system.ro>
 +- version set to 1.1.0
 +- added packages for pa, postgres and unixodbc
 +- added dialog, lcr, options, path, siptrace, statistics modules
 +
 +* Thu Oct 27 2005 Daniel-Constantin Mierla <miconda at gmail.com>
 +- version set to 1.0.0
 +- added readme for flatstore
 +- added uac and uac_redirect modules
 +
 +* Wed Jun 08 2005 Daniel-Constantin Mierla <miconda at gmail.com>
 +- First version of the spec file.
diff --cc pkg/kamailio/rpm/kamailio.spec.CenOS
index 29417db,0000000..90ac472
mode 100644,000000..100644
--- a/pkg/kamailio/rpm/kamailio.spec.CenOS
+++ b/pkg/kamailio/rpm/kamailio.spec.CenOS
@@@ -1,742 -1,0 +1,742 @@@
 +%define name    kamailio
- %define ver     4.1.1
++%define ver     4.1.2
 +%define rel     0
 +%define _sharedir %{_prefix}/share
 +
 +%define MYSQL_MODULES           mysql
 +%define POSTGRES_MODULES        postgres
 +%define UNIXODBC_MODULES        unixodbc
 +%define LDAP_MODULES            ldap
 +%define XMLRPC_MODULES          xml
 +%define PERL_MODULES            perl
 +%define PYTHON_MODULES          python
 +%define LUA_MODULES             lua
 +%define UTILS_MODULES           utils
 +%define PURPLE_MODULES          purple
 +%define MEMCACHED_MODULES       memcached
 +%define TLS_MODULES             tls
 +%define XMPP_MODULES            xmpp
 +%define CPL_MODULES             cpl
 +%define SNMPSTATS_MODULES       snmpstats
 +%define CARRIERROUTE_MODULES    carrierroute
 +%define PRESENCE_MODULES        presence
 +%define RADIUS_MODULES          radius
 +%define GEOIP_MODULES           geoip
 +
 +Summary:      Kamailio, very fast and flexible SIP Server
 +Name:         %name
 +Version:      %ver
 +Release:      %rel
 +Packager:     Ovidiu Sas <osas at voipembedded.com>
 +License:      GPL
 +Group:        System Environment/Daemons
 +Source0:      http://kamailio.org/pub/kamailio/%{ver}/%{name}-%{ver}_src.tar.gz
 +Source1:      kamailio.init
 +Source2:      kamailio.default
 +URL:          http://kamailio.org/
 +Vendor:       kamailio.org
 +BuildRoot:    %{_tmppath}/%{name}-%{ver}-buildroot
 +Conflicts:    kamailio-mysql < %ver, kamailio-postgres < %ver, kamailio-unixodbc < %ver, kamailio-ldap < %ver, kamailio-xmlrpc < %ver, kamailio-perl < %ver, kamailio-python < %ver, kamailio-lua < %ver, kamailio-utils < %ver, kamailio-purple < %ver, kamailio-memcached  < %ver, kamailio-tls  < %ver, kamailio-xmpp  < %ver, kamailio-cpl  < %ver, kamailio-snmpstats  < %ver, kamailio-carrierroute  < %ver, kamailio-presence  < %ver, kamailio-radius  < %ver, kamailio-geoip  < %ver
 +BuildPrereq:  make flex bison pcre-devel
 +
 +%description
 +Kamailio is a very fast and flexible SIP (RFC3261)
 +proxy server. Written entirely in C, kamailio can handle thousands calls
 +per second even on low-budget hardware. A C Shell like scripting language
 +provides full control over the server's behaviour. It's modular
 +architecture allows only required functionality to be loaded.
 +Currently the following modules are available: digest authentication,
 +CPL scripts, instant messaging, MySQL and UNIXODBC support, a presence agent,
 +radius authentication, record routing, an SMS gateway, a
 +transaction and dialog module, OSP module, statistics support,
 +registrar and user location, SNMP, SIMPLE Presence and Perl programming
 +interface.
 +
 +%package  mysql
 +Summary:  MySQL connectivity for the Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  mysql-devel zlib-devel
 +
 +%description mysql
 +The kamailio-mysql package contains MySQL database connectivity that you
 +need to use digest authentication module or persistent user location
 +entries.
 +
 +
 +%package  postgres
 +Summary:  MPOSTGRES connectivity for the Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  postgresql-devel
 +
 +%description postgres
 +The kamailio-postgres package contains Postgres database connectivity that you
 +need to use digest authentication module or persistent user location
 +entries.
 +
 +
 +%package  unixodbc
 +Summary:  UNIXODBC connectivity for Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  unixODBC-devel
 +
 +%description unixodbc
 +The kamailio-unixodbc package contains UNIXODBC database connectivity support
 +that is required by other modules with database dependencies.
 +
 +
 +%package  utils
 +Summary:  Utils for Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +
 +%description utils
 +The kamailio-utils package provides a set utility functions for Kamailio
 +
 +
 +%package  cpl
 +Summary:  CPL module (CPL interpreter engine) for Kamailio
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  libxml2-devel
 +
 +%description cpl
 +The kamailio-cpl package provides a CPL interpreter engine for Kamailio
 +
 +
 +%package  radius
 +Summary:  Kamailio radius support for AAA API.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  radiusclient-ng-devel
 +
 +%description radius
 +The kamailio-radius package contains modules for radius authentication, group
 +membership and uri checking.
 +
 +
 +%package  snmpstats
 +Summary:  SNMP AgentX subagent module for Kamailio
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver, net-snmp-utils
 +BuildPrereq:  lm_sensors-devel net-snmp-devel
 +
 +%description snmpstats
 +The kamailio-snmpstats package snmpstats module for Kamailio.  This module acts
 +as an AgentX subagent which connects to a master agent.
 +
 +
 +%package  presence
 +Summary:  sip presence user agent support for Kamailio
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  libxml2-devel, curl-devel
 +
 +%description presence
 +The kamailio-presence package contains a sip Presence Agent.
 +
 +
 +%package  xmpp
 +Summary:  SIP2XMPP message translation support for Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  expat-devel
 +
 +%description xmpp
 +The kamailio-xmpp package contains a SIP to XMPP message translator.
 +
 +
 +%package  tls
 +Summary:  TLS transport protocol for Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  openssl-devel
 +
 +%description tls
 +The kamailio-tls package contains the SIP TLSt transport mechanism for Kamailio.
 +
 +
 +%package  carrierroute
 +Summary:  Routing module for Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  libconfuse-devel
 +
 +%description carrierroute
 +The kamailio-carrierroute package contains a fast routing engine.
 +
 +
 +%package  purple
 +Summary:  Provides the purple module, a multi-protocol IM gateway.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq: libpurple-devel
 +
 +%description purple
 +The kamailio-purple package provides the purple module, a multi-protocol instant
 +messaging gateway module.
 +
 +
 +%package  ldap
 +Summary:  LDAP modules for Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq: openldap-devel
 +
 +%description ldap
 +The kamailio-ldap package provides the ldap and h350 modules for Kamailio,
 +enabling LDAP queries from the Kamailio config and storage of SIP account
 +data in an LDAP directory.
 +
 +
 +#%package  memcached
 +#Summary:  Distributed hash table for Kamailio.
 +#Group:    System Environment/Daemons
 +#Requires: kamailio = %ver
 +#BuildPrereq:  libmemcached-devel
 +#
 +#%description memcached
 +#The kamailio-memcached package provides access to a distributed hash table memcached.
 +
 +
 +#%package  xmlrpc
 +#Summary:  XMLRPC support for Kamailio's Management Interface.
 +#Group:    System Environment/Daemons
 +#Requires: kamailio = %ver
 +#BuildPrereq:  libxml2-devel xmlrpc-c-devel
 +#
 +#%description xmlrpc
 +#The kamailio-xmlrpc package provides the XMLRPC transport implementations for Kamailio's
 +#Management and Control Interface.
 +
 +
 +%package  perl
 +Summary:  Perl extensions and database driver for Kamailio.
 +Group:    System Environment/Daemons 
 +Requires: kamailio = %ver
 +BuildPrereq: mod_perl-devel
 +
 +%description perl
 +The kamailio-perl package provides an interface for Kamailio to write Perl extensions and
 +the perlvdb database driver for Kamailio.
 +
 +
 +%package  lua
 +Summary:  Lua extensions for Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq: lua-devel
 +
 +%description lua
 +The kamailio-lua package provides an interface for Kamailio to write Python extensions
 +
 +
 +%package  python
 +Summary:  Python extensions for Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq: python-devel
 +
 +%description python
 +The kamailio-python package provides an interface for Kamailio to write Python extensions
 +
 +
 +%package  geoip
 +Summary:  GeoIP extensions for Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq: geoip-devel
 +
 +%description geoip
 +The kamailio-geoip package provides a GeoIP interface for Kamailio
 +
 +
 +
 +
 +%prep
 +%setup -n %{name}-%{ver}
 +
 +%build
 +make FLAVOUR=kamailio cfg prefix=/usr cfg_prefix=$RPM_BUILD_ROOT basedir=$RPM_BUILD_ROOT cfg_target=/%{_sysconfdir}/kamailio/ modules_dirs="modules modules_k"
 +make
 +make every-module skip_modules="iptrtpproxy" group_include="kstandard"
 +make every-module group_include="k%MYSQL_MODULES"
 +make every-module group_include="k%POSTGRES_MODULES"
 +make every-module group_include="k%UNIXODBC_MODULES"
 +make every-module group_include="k%UTILS_MODULES"
 +make every-module group_include="k%CPL_MODULES"
 +make every-module group_include="k%RADIUS_MODULES"
 +make every-module group_include="k%SNMPSTATS_MODULES"
 +make every-module group_include="k%PRESENCE_MODULES"
 +make every-module group_include="k%XMPP_MODULES"
 +make every-module group_include="k%TLS_MODULES"
 +make every-module group_include="k%CARRIERROUTE_MODULES"
 +make every-module group_include="k%PURPLE_MODULES"
 +make every-module group_include="k%LDAP_MODULES"
 +#make every-module group_include="k%MEMCACHED_MODULES"
 +#make every-module group_include="k%XMLRPC_MODULES"
 +make every-module group_include="k%PERL_MODULES"
 +make every-module group_include="k%LUA_MODULES"
 +make every-module group_include="k%PYTHON_MODULES"
 +make every-module group_include="k%GEOIP_MODULES"
 +
 +%install
 +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
 +
 +make install
 +make install-modules-all skip_modules="iptrtpproxy" group_include="kstandard"
 +make install-modules-all group_include="k%MYSQL_MODULES"
 +make install-modules-all group_include="k%POSTGRES_MODULES"
 +make install-modules-all group_include="k%UNIXODBC_MODULES"
 +make install-modules-all group_include="k%UTILS_MODULES"
 +make install-modules-all group_include="k%CPL_MODULES"
 +make install-modules-all group_include="k%SNMPSTATS_MODULES"
 +make install-modules-all group_include="k%RADIUS_MODULES"
 +make install-modules-all group_include="k%PRESENCE_MODULES"
 +make install-modules-all group_include="k%XMPP_MODULES"
 +make install-modules-all group_include="k%TLS_MODULES"
 +make install-modules-all group_include="k%CARRIERROUTE_MODULES"
 +make install-modules-all group_include="k%PURPLE_MODULES"
 +make install-modules-all group_include="k%LDAP_MODULES"
 +#make install-modules-all group_include="k%MEMCACHED_MODULES"
 +#make install-modules-all group_include="k%XMLRPC_MODULES"
 +make install-modules-all group_include="k%PERL_MODULES"
 +make install-modules-all group_include="k%LUA_MODULES"
 +make install-modules-all group_include="k%PYTHON_MODULES"
 +make install-modules-all group_include="k%GEOIP_MODULES"
 +
 +
 +mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d
 +install -m755 $RPM_SOURCE_DIR/kamailio.init \
 +              $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/kamailio
 +
 +mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/default
 +install -m755 $RPM_SOURCE_DIR/kamailio.default \
 +              $RPM_BUILD_ROOT/%{_sysconfdir}/default/kamailio
 +
 +
 +%pre
 +/usr/sbin/groupadd -r kamailio 2> /dev/null || :
 +/usr/sbin/useradd -r -g kamailio -s /bin/false -c "Kamailio daemon" -d \
 +                  %{_libdir}/kamailio kamailio 2> /dev/null || :
 +
 +
 +%clean
 +rm -rf "$RPM_BUILD_ROOT"
 +                
 +%post           
 +/sbin/chkconfig --add kamailio
 +
 +%preun          
 +if [ $1 = 0 ]; then
 +    /sbin/service kamailio stop > /dev/null 2>&1
 +    /sbin/chkconfig --del kamailio
 +fi
 +                
 +
 +%files
 +%defattr(-,root,root)
 +%dir %{_docdir}/kamailio
 +%doc %{_docdir}/kamailio/AUTHORS
 +%doc %{_docdir}/kamailio/NEWS
 +%doc %{_docdir}/kamailio/INSTALL
 +%doc %{_docdir}/kamailio/README
 +%doc %{_docdir}/kamailio/README-MODULES
 +%doc %{_docdir}/kamailio/modules/README.auth
 +%doc %{_docdir}/kamailio/modules/README.avpops
 +%doc %{_docdir}/kamailio/modules/README.blst
 +%doc %{_docdir}/kamailio/modules/README.cfg_db
 +%doc %{_docdir}/kamailio/modules/README.cfg_rpc
 +%doc %{_docdir}/kamailio/modules/README.counters
 +%doc %{_docdir}/kamailio/modules/README.ctl
 +%doc %{_docdir}/kamailio/modules/README.db_flatstore
 +%doc %{_docdir}/kamailio/modules/README.debugger
 +%doc %{_docdir}/kamailio/modules/README.dialplan
 +%doc %{_docdir}/kamailio/modules/README.enum
 +%doc %{_docdir}/kamailio/modules/README.lcr
 +%doc %{_docdir}/kamailio/modules/README.malloc_test
 +%doc %{_docdir}/kamailio/modules/README.matrix
 +%doc %{_docdir}/kamailio/modules/README.mediaproxy
 +%doc %{_docdir}/kamailio/modules/README.mi_rpc
 +%doc %{_docdir}/kamailio/modules/README.mqueue
 +%doc %{_docdir}/kamailio/modules/README.mtree
 +%doc %{_docdir}/kamailio/modules/README.pdb
 +%doc %{_docdir}/kamailio/modules/README.pipelimit
 +%doc %{_docdir}/kamailio/modules/README.prefix_route
 +#%doc %{_docdir}/kamailio/modules/README.privacy
 +%doc %{_docdir}/kamailio/modules/README.ratelimit
 +%doc %{_docdir}/kamailio/modules/README.sanity
 +%doc %{_docdir}/kamailio/modules/README.sl
 +%doc %{_docdir}/kamailio/modules/README.sms
 +%doc %{_docdir}/kamailio/modules/README.textopsx
 +%doc %{_docdir}/kamailio/modules/README.tm
 +%doc %{_docdir}/kamailio/modules/README.topoh
 +%doc %{_docdir}/kamailio/modules/README.xhttp
 +%doc %{_docdir}/kamailio/modules_k/README.acc
 +%doc %{_docdir}/kamailio/modules_k/README.alias_db
 +%doc %{_docdir}/kamailio/modules_k/README.auth_db
 +%doc %{_docdir}/kamailio/modules_k/README.auth_diameter
 +%doc %{_docdir}/kamailio/modules_k/README.benchmark
 +%doc %{_docdir}/kamailio/modules_k/README.call_control
 +%doc %{_docdir}/kamailio/modules_k/README.cfgutils
 +%doc %{_docdir}/kamailio/modules_k/README.db_text
 +%doc %{_docdir}/kamailio/modules_k/README.dialog
 +%doc %{_docdir}/kamailio/modules_k/README.dispatcher
 +%doc %{_docdir}/kamailio/modules_k/README.diversion
 +%doc %{_docdir}/kamailio/modules_k/README.domain
 +%doc %{_docdir}/kamailio/modules_k/README.domainpolicy
 +%doc %{_docdir}/kamailio/modules_k/README.drouting
 +%doc %{_docdir}/kamailio/modules_k/README.exec
 +%doc %{_docdir}/kamailio/modules_k/README.group
 +%doc %{_docdir}/kamailio/modules_k/README.htable
 +%doc %{_docdir}/kamailio/modules_k/README.imc
 +%doc %{_docdir}/kamailio/modules_k/README.kex
 +%doc %{_docdir}/kamailio/modules_k/README.maxfwd
 +%doc %{_docdir}/kamailio/modules_k/README.mi_datagram
 +%doc %{_docdir}/kamailio/modules_k/README.mi_fifo
 +%doc %{_docdir}/kamailio/modules_k/README.msilo
 +%doc %{_docdir}/kamailio/modules_k/README.nat_traversal
 +%doc %{_docdir}/kamailio/modules_k/README.nathelper
 +%doc %{_docdir}/kamailio/modules_k/README.path
 +%doc %{_docdir}/kamailio/modules_k/README.pdt
 +%doc %{_docdir}/kamailio/modules_k/README.permissions
 +%doc %{_docdir}/kamailio/modules_k/README.pike
 +%doc %{_docdir}/kamailio/modules_k/README.pua_mi
 +%doc %{_docdir}/kamailio/modules_k/README.pv
 +%doc %{_docdir}/kamailio/modules_k/README.qos
 +%doc %{_docdir}/kamailio/modules_k/README.regex
 +%doc %{_docdir}/kamailio/modules_k/README.registrar
 +%doc %{_docdir}/kamailio/modules_k/README.rr
 +%doc %{_docdir}/kamailio/modules_k/README.rtimer
 +%doc %{_docdir}/kamailio/modules_k/README.rtpproxy
 +%doc %{_docdir}/kamailio/modules_k/README.seas
 +%doc %{_docdir}/kamailio/modules_k/README.siptrace
 +%doc %{_docdir}/kamailio/modules_k/README.siputils
 +%doc %{_docdir}/kamailio/modules_k/README.speeddial
 +%doc %{_docdir}/kamailio/modules_k/README.sqlops
 +%doc %{_docdir}/kamailio/modules_k/README.sst
 +%doc %{_docdir}/kamailio/modules_k/README.statistics
 +%doc %{_docdir}/kamailio/modules_k/README.textops
 +%doc %{_docdir}/kamailio/modules_k/README.tmx
 +%doc %{_docdir}/kamailio/modules_k/README.uac
 +%doc %{_docdir}/kamailio/modules_k/README.uac_redirect
 +%doc %{_docdir}/kamailio/modules_k/README.uri_db
 +%doc %{_docdir}/kamailio/modules_k/README.userblacklist
 +%doc %{_docdir}/kamailio/modules_k/README.usrloc
 +%doc %{_docdir}/kamailio/modules_k/README.xlog
 +
 +
 +%dir %{_sysconfdir}/kamailio
 +%config(noreplace) %{_sysconfdir}/kamailio/*
 +%config %{_sysconfdir}/rc.d/init.d/*
 +%config %{_sysconfdir}/default/*
 +
 +%dir %{_libdir}/kamailio
 +%{_libdir}/kamailio/libkcore.so
 +%{_libdir}/kamailio/libkcore.so.1
 +%{_libdir}/kamailio/libkcore.so.1.0
 +%{_libdir}/kamailio/libkmi.so
 +%{_libdir}/kamailio/libkmi.so.1
 +%{_libdir}/kamailio/libkmi.so.1.0
 +%{_libdir}/kamailio/libsrdb1.so
 +%{_libdir}/kamailio/libsrdb1.so.1
 +%{_libdir}/kamailio/libsrdb1.so.1.0
 +%{_libdir}/kamailio/libsrdb2.so
 +%{_libdir}/kamailio/libsrdb2.so.1
 +%{_libdir}/kamailio/libsrdb2.so.1.0
 +%{_libdir}/kamailio/libtrie.so
 +%{_libdir}/kamailio/libtrie.so.1
 +%{_libdir}/kamailio/libtrie.so.1.0
 +%dir %{_libdir}/kamailio/modules
 +%{_libdir}/kamailio/modules/auth.so
 +%{_libdir}/kamailio/modules/avpops.so
 +%{_libdir}/kamailio/modules/blst.so
 +%{_libdir}/kamailio/modules/cfg_db.so
 +%{_libdir}/kamailio/modules/cfg_rpc.so
 +%{_libdir}/kamailio/modules/counters.so
 +%{_libdir}/kamailio/modules/ctl.so
 +%{_libdir}/kamailio/modules/db_flatstore.so
 +%{_libdir}/kamailio/modules/debugger.so
 +%{_libdir}/kamailio/modules/dialplan.so
 +%{_libdir}/kamailio/modules/enum.so
 +%{_libdir}/kamailio/modules/lcr.so
 +%{_libdir}/kamailio/modules/malloc_test.so
 +%{_libdir}/kamailio/modules/matrix.so
 +%{_libdir}/kamailio/modules/mediaproxy.so
 +%{_libdir}/kamailio/modules/mi_rpc.so
 +%{_libdir}/kamailio/modules/mqueue.so
 +%{_libdir}/kamailio/modules/mtree.so
 +%{_libdir}/kamailio/modules/pdb.so
 +%{_libdir}/kamailio/modules/pipelimit.so
 +%{_libdir}/kamailio/modules/prefix_route.so
 +%{_libdir}/kamailio/modules/privacy.so
 +%{_libdir}/kamailio/modules/ratelimit.so
 +%{_libdir}/kamailio/modules/sanity.so
 +%{_libdir}/kamailio/modules/sl.so
 +%{_libdir}/kamailio/modules/sms.so
 +%{_libdir}/kamailio/modules/tm.so
 +%{_libdir}/kamailio/modules/textopsx.so
 +%{_libdir}/kamailio/modules/topoh.so
 +%{_libdir}/kamailio/modules/xhttp.so
 +%dir %{_libdir}/kamailio/modules_k
 +%{_libdir}/kamailio/modules_k/acc.so
 +%{_libdir}/kamailio/modules_k/alias_db.so
 +%{_libdir}/kamailio/modules_k/auth_db.so
 +%{_libdir}/kamailio/modules_k/auth_diameter.so
 +%{_libdir}/kamailio/modules_k/benchmark.so
 +%{_libdir}/kamailio/modules_k/call_control.so
 +%{_libdir}/kamailio/modules_k/cfgutils.so
 +%{_libdir}/kamailio/modules_k/db_text.so
 +%{_libdir}/kamailio/modules_k/dialog.so
 +%{_libdir}/kamailio/modules_k/dispatcher.so
 +%{_libdir}/kamailio/modules_k/diversion.so
 +%{_libdir}/kamailio/modules_k/domain.so
 +%{_libdir}/kamailio/modules_k/domainpolicy.so
 +%{_libdir}/kamailio/modules_k/drouting.so
 +%{_libdir}/kamailio/modules_k/exec.so
 +%{_libdir}/kamailio/modules_k/group.so
 +%{_libdir}/kamailio/modules_k/htable.so
 +%{_libdir}/kamailio/modules_k/imc.so
 +%{_libdir}/kamailio/modules_k/kex.so
 +%{_libdir}/kamailio/modules_k/maxfwd.so
 +%{_libdir}/kamailio/modules_k/mi_datagram.so
 +%{_libdir}/kamailio/modules_k/mi_fifo.so
 +%{_libdir}/kamailio/modules_k/msilo.so
 +%{_libdir}/kamailio/modules_k/nat_traversal.so
 +%{_libdir}/kamailio/modules_k/nathelper.so
 +%{_libdir}/kamailio/modules_k/path.so
 +%{_libdir}/kamailio/modules_k/pdt.so
 +%{_libdir}/kamailio/modules_k/permissions.so
 +%{_libdir}/kamailio/modules_k/pike.so
 +%{_libdir}/kamailio/modules_k/pua_mi.so
 +%{_libdir}/kamailio/modules_k/pv.so
 +%{_libdir}/kamailio/modules_k/qos.so
 +%{_libdir}/kamailio/modules_k/regex.so
 +%{_libdir}/kamailio/modules_k/registrar.so
 +%{_libdir}/kamailio/modules_k/rr.so
 +%{_libdir}/kamailio/modules_k/rtimer.so
 +%{_libdir}/kamailio/modules_k/rtpproxy.so
 +%{_libdir}/kamailio/modules_k/seas.so
 +%{_libdir}/kamailio/modules_k/siptrace.so
 +%{_libdir}/kamailio/modules_k/siputils.so
 +%{_libdir}/kamailio/modules_k/speeddial.so
 +%{_libdir}/kamailio/modules_k/sqlops.so
 +%{_libdir}/kamailio/modules_k/sst.so
 +%{_libdir}/kamailio/modules_k/statistics.so
 +%{_libdir}/kamailio/modules_k/textops.so
 +%{_libdir}/kamailio/modules_k/tmx.so
 +%{_libdir}/kamailio/modules_k/uac.so
 +%{_libdir}/kamailio/modules_k/uac_redirect.so
 +%{_libdir}/kamailio/modules_k/uri_db.so
 +%{_libdir}/kamailio/modules_k/userblacklist.so
 +%{_libdir}/kamailio/modules_k/usrloc.so
 +%{_libdir}/kamailio/modules_k/xlog.so
 +
 +
 +%{_sbindir}/kamailio
 +%{_sbindir}/kamctl
 +%{_sbindir}/kamdbctl
 +%{_sbindir}/kamcmd
 +%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.py
 +%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyc
 +%{_libdir}/kamailio/kamctl/dbtextdb/dbtextdb.pyo
 +%{_libdir}/kamailio/kamctl/kamctl.base
 +%{_libdir}/kamailio/kamctl/kamctl.ctlbase
 +%{_libdir}/kamailio/kamctl/kamctl.dbtext
 +%{_libdir}/kamailio/kamctl/kamctl.fifo
 +%{_libdir}/kamailio/kamctl/kamctl.ser
 +%{_libdir}/kamailio/kamctl/kamctl.ser_mi
 +%{_libdir}/kamailio/kamctl/kamctl.sqlbase
 +%{_libdir}/kamailio/kamctl/kamctl.unixsock
 +%{_libdir}/kamailio/kamctl/kamdbctl.base
 +%{_libdir}/kamailio/kamctl/kamdbctl.dbtext
 +
 +%{_mandir}/man5/*
 +%{_mandir}/man8/*
 +
 +%{_sharedir}/kamailio/dbtext/kamailio/*
 +
 +
 +%files mysql
 +%defattr(-,root,root)
 +%{_libdir}/kamailio/modules/db_mysql.so
 +%{_libdir}/kamailio/kamctl/kamctl.mysql
 +%{_libdir}/kamailio/kamctl/kamdbctl.mysql
 +%{_sharedir}/kamailio/mysql/*
 +
 +
 +%files postgres
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/modules/README.db_postgres
 +%{_libdir}/kamailio/modules/db_postgres.so
 +%{_libdir}/kamailio/kamctl/kamctl.pgsql
 +%{_libdir}/kamailio/kamctl/kamdbctl.pgsql
 +%{_sharedir}/kamailio/postgres/*
 +
 +
 +%files unixodbc
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/modules_k/README.db_unixodbc
 +%{_libdir}/kamailio/modules_k/db_unixodbc.so
 +
 +
 +%files utils
 +%defattr(-,root,root)
 +%{_docdir}/kamailio/modules/README.utils
 +%{_libdir}/kamailio/modules/utils.so
 +
 +
 +%files cpl
 +%defattr(-,root,root)
 +%{_docdir}/kamailio/modules_k/README.cpl-c
 +%{_libdir}/kamailio/modules_k/cpl-c.so
 +
 +
 +%files radius
 +%defattr(-,root,root)
 +%{_docdir}/kamailio/modules_k/README.acc_radius
 +%{_docdir}/kamailio/modules_k/README.auth_radius
 +%{_docdir}/kamailio/modules_k/README.misc_radius
 +%{_docdir}/kamailio/modules/README.peering
 +%{_libdir}/kamailio/modules_k/acc_radius.so
 +%{_libdir}/kamailio/modules_k/auth_radius.so
 +%{_libdir}/kamailio/modules_k/misc_radius.so
 +%{_libdir}/kamailio/modules/peering.so
 +
 +
 +%files snmpstats
 +%defattr(-,root,root)
 +%{_docdir}/kamailio/modules_k/README.snmpstats
 +%{_libdir}/kamailio/modules_k/snmpstats.so
 +
 +
 +%files presence
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/modules_k/README.presence
 +%doc %{_docdir}/kamailio/modules_k/README.presence_conference
 +%doc %{_docdir}/kamailio/modules_k/README.presence_dialoginfo
 +%doc %{_docdir}/kamailio/modules_k/README.presence_mwi
 +%doc %{_docdir}/kamailio/modules_k/README.presence_xml
 +%doc %{_docdir}/kamailio/modules_k/README.pua
 +%doc %{_docdir}/kamailio/modules_k/README.pua_bla
 +%doc %{_docdir}/kamailio/modules_k/README.pua_dialoginfo
 +%doc %{_docdir}/kamailio/modules_k/README.pua_mi
 +%doc %{_docdir}/kamailio/modules_k/README.pua_usrloc
 +%doc %{_docdir}/kamailio/modules_k/README.pua_xmpp
 +%doc %{_docdir}/kamailio/modules_k/README.rls
 +%doc %{_docdir}/kamailio/modules_k/README.xcap_client
 +%doc %{_docdir}/kamailio/modules_k/README.xcap_server
 +%{_libdir}/kamailio/modules_k/presence.so
 +%{_libdir}/kamailio/modules_k/presence_conference.so
 +%{_libdir}/kamailio/modules_k/presence_dialoginfo.so
 +%{_libdir}/kamailio/modules_k/presence_mwi.so
 +%{_libdir}/kamailio/modules_k/presence_xml.so
 +%{_libdir}/kamailio/modules_k/pua.so
 +%{_libdir}/kamailio/modules_k/pua_bla.so
 +%{_libdir}/kamailio/modules_k/pua_dialoginfo.so
 +%{_libdir}/kamailio/modules_k/pua_mi.so
 +%{_libdir}/kamailio/modules_k/pua_usrloc.so
 +%{_libdir}/kamailio/modules_k/pua_xmpp.so
 +%{_libdir}/kamailio/modules_k/rls.so
 +%{_libdir}/kamailio/modules_k/xcap_client.so
 +%{_libdir}/kamailio/modules_k/xcap_server.so
 +
 +
 +%files xmpp
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/modules_k/README.xmpp
 +%{_libdir}/kamailio/modules_k/xmpp.so
 +
 +
 +%files tls
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/modules/README.tls
 +%{_libdir}/kamailio/modules/tls.so
 +
 +
 +%files carrierroute
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/modules/README.carrierroute
 +%{_libdir}/kamailio/modules/carrierroute.so
 +
 +
 +%files purple
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/modules_k/README.purple
 +%{_libdir}/kamailio/modules_k/purple.so
 +
 +
 +%files ldap
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/modules_k/README.h350
 +%doc %{_docdir}/kamailio/modules_k/README.ldap
 +%{_libdir}/kamailio/modules_k/h350.so
 +%{_libdir}/kamailio/modules_k/ldap.so
 +
 +
 +#%files memcached
 +#%defattr(-,root,root)
 +#%doc %{_docdir}/kamailio/modules_k/README.memcached
 +#%{_libdir}/kamailio/modules_k/memcached.so
 +
 +
 +#%files xmlrpc
 +#%defattr(-,root,root)
 +#%doc %{_docdir}/kamailio/modules_k/README.memcached
 +#%{_libdir}/kamailio/modules_k/memcached.so
 +
 +
 +%files perl
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/modules_k/README.perl
 +%doc %{_docdir}/kamailio/modules_k/README.perlvdb
 +%{_libdir}/kamailio/modules_k/perl.so
 +%{_libdir}/kamailio/modules_k/perlvdb.so
 +%{_libdir}/kamailio/perl/OpenSER.pm
 +%{_libdir}/kamailio/perl/OpenSER/Constants.pm
 +%{_libdir}/kamailio/perl/OpenSER/LDAPUtils/LDAPConf.pm
 +%{_libdir}/kamailio/perl/OpenSER/LDAPUtils/LDAPConnection.pm
 +%{_libdir}/kamailio/perl/OpenSER/Message.pm
 +%{_libdir}/kamailio/perl/OpenSER/Utils/Debug.pm
 +%{_libdir}/kamailio/perl/OpenSER/Utils/PhoneNumbers.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB/Adapter/AccountingSIPtrace.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB/Adapter/Alias.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB/Adapter/Auth.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB/Adapter/Describe.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB/Adapter/Speeddial.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB/Adapter/TableVersions.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB/Column.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB/Pair.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB/ReqCond.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB/Result.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB/VTab.pm
 +%{_libdir}/kamailio/perl/OpenSER/VDB/Value.pm
 +
 +%files lua
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/modules/README.app_lua
 +%{_libdir}/kamailio/modules/app_lua.so
 +
 +
 +%files python
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/modules/README.app_python
 +%{_libdir}/kamailio/modules/app_python.so
 +
 +
 +%files geoip
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/modules/README.geoip
 +%{_libdir}/kamailio/modules/geoip.so
 +
 +
 +
 +%changelog
 +* Mon Oct 4 2010 Ovidiu Sas <osas at voipembedded.com>
 + - Update for kamailio 3.1
 +
 +* Tue Mar 23 2010 Ovidiu Sas <osas at voipembedded.com>
 + - First version of the spec file for kamailio 3.0
diff --cc pkg/kamailio/rpm/kamailio.spec.SuSE
index eead83e,0000000..bd9f13e
mode 100644,000000..100644
--- a/pkg/kamailio/rpm/kamailio.spec.SuSE
+++ b/pkg/kamailio/rpm/kamailio.spec.SuSE
@@@ -1,383 -1,0 +1,383 @@@
 +%define name    kamailio
- %define ver     4.1.1
++%define ver     4.1.2
 +%define rel     0
 +
 +%define EXCLUDED_MODULES	mysql jabber cpl-c auth_radius misc_radius peering postgress pa unixodbc osp tlsops
 +%define MYSQL_MODULES		mysql
 +%define POSTGRES_MODULES	postgres
 +%define UNIXODBC_MODULES	unixodbc
 +%define JABBER_MODULES		jabber
 +%define CPL_MODULES			cpl-c
 +%define PA_MODULES			pa
 +%define RADIUS_MODULES		auth_radius misc_radius peering
 +%define RADIUS_MOD_PATH		modules/auth_radius modules/misc_radius modules/peering
 +
 +Summary:      Kamailio, very fast and flexible SIP Proxy
 +Name:         %name
 +Version:      %ver
 +Release:      %rel
 +
 +Packager:     Daniel-Constantin Mierla <miconda at gmail.com>
 +Copyright:    GPL
 +Group:        Networking/Daemons
 +Source:       http://kamailio.org/pub/kamailio/stable/%{name}-%{ver}_src.tar.gz
 +Source2:      kamailio.init.SuSE
 +URL:          http://www.kamailio.org/
 +Vendor:       kamailio.org
 +BuildRoot:    /var/tmp/%{name}-%{ver}-root
 +Conflicts:    kamailio < %ver, kamailio-mysql < %ver, kamailio-jabber < %ver, kamailio-radius < %ver, kamailio-postgres < %ver, kamailio-unixodbc < %ver, kamailio-pa < %ver
 +BuildPrereq:  make flex bison 
 +
 +
 +%description
 +Kamailio is a very fast and flexible SIP (RFC3261)
 +proxy server. Written entirely in C, ser can handle thousands calls
 +per second even on low-budget hardware. A C Shell like scripting language
 +provides full control over the server's behaviour. It's modular
 +architecture allows only required functionality to be loaded.
 +Currently the following modules are available: digest authentication,
 +CPL scripts, instant messaging, MySQL and UNIXODBC support, a presence agent,
 +radius authentication, record routing, an SMS gateway, a jabber gateway, a 
 +transaction and dialog module, OSP module, statistics support, 
 +registrar and user location.
 +
 +%package  mysql
 +Summary:  MySQL connectivity for the Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq: mysql-devel zlib-devel
 +
 +%description mysql
 +The kamailio-mysql package contains MySQL database connectivity that you
 +need to use digest authentication module or persistent user location
 +entries.
 +
 +%package  postgres
 +Summary:  MPOSTGRES connectivity for the Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  postgresql-devel
 +
 +%description postgres
 +The kamailio-postgres package contains Postgres database connectivity that you
 +need to use digest authentication module or persistent user location
 +entries.
 +
 +%package  unixodbc
 +Summary:  UNIXODBC connectivity for Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  unixodbc-dev
 +
 +%description unixodbc
 +The kamailio-unixodbc package contains UNIXODBC database connectivity support
 +that is required by other modules with database dependencies.
 +
 +
 +%package  jabber
 +Summary:  sip jabber message translation support for the Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq: expat
 +
 +%description jabber
 +The kamailio-jabber package contains a sip to jabber message translator.
 +
 +%package  cpl
 +Summary:  CPL interpreter engine for the Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq: libxml2-dev
 +
 +%description cpl
 +The kamailio-cpl package contains a CPL interpreter engine.
 +
 +%package  pa
 +Summary:  sip presence agent support for the Kamailio.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  libxml2-dev
 +
 +%description pa
 +The kamailio-pa package contains a sip Presence Agent.
 +
 +%package  radius
 +Summary:  kamailio radius authentication, group and uri check modules.
 +Group:    System Environment/Daemons
 +Requires: kamailio = %ver
 +BuildPrereq:  radiusclient
 +
 +%description radius
 +The kamailio-radius package contains modules for radius authentication, group
 + membership and uri checking.
 +
 +%prep
 +%setup
 +
 +%build
 +make all skip_modules="%EXCLUDED_MODULES"         cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="modules/%MYSQL_MODULES"     cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="modules/%POSTGRES_MODULES"  cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="modules/%UNIXODBC_MODULES"  cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="modules/%JABBER_MODULES"    cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="modules/%CPL_MODULES"       cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="modules/%PA_MODULES"        cfg-target=/%{_sysconfdir}/kamailio/
 +make modules modules="%RADIUS_MOD_PATH"           cfg-target=/%{_sysconfdir}/kamailio/
 +
 +%install
 +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
 +
 +make install skip_modules="%EXCLUDED_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ \
 +		doc-prefix=$RPM_BUILD_ROOT \
 +		doc-dir=/%{_docdir}/kamailio/
 +make install-modules modules="modules/%MYSQL_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ \
 +		doc-prefix=$RPM_BUILD_ROOT \
 +		doc-dir=/%{_docdir}/kamailio/
 +make install-modules modules="modules/%POSTGRES_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ \
 +		doc-prefix=$RPM_BUILD_ROOT \
 +		doc-dir=/%{_docdir}/kamailio/
 +make install-modules modules="modules/%UNIXODBC_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ \
 +		doc-prefix=$RPM_BUILD_ROOT \
 +		doc-dir=/%{_docdir}/kamailio/
 +make install-modules modules="modules/%JABBER_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ \
 +		doc-prefix=$RPM_BUILD_ROOT \
 +		doc-dir=/%{_docdir}/kamailio/
 +make install-modules modules="modules/%CPL_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ \
 +		doc-prefix=$RPM_BUILD_ROOT \
 +		doc-dir=/%{_docdir}/kamailio/
 +make install-modules modules="modules/%PA_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ \
 +		doc-prefix=$RPM_BUILD_ROOT \
 +		doc-dir=/%{_docdir}/kamailio/
 +make install-modules modules="%RADIUS_MOD_PATH" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		cfg-prefix=$RPM_BUILD_ROOT \
 +		cfg-target=/%{_sysconfdir}/kamailio/ \
 +		doc-prefix=$RPM_BUILD_ROOT \
 +		doc-dir=/%{_docdir}/kamailio/
 +make install-doc modules="modules/%JABBER_MODULES %RADIUS_MOD_PATH %MYSQL_MODULES %POSTGRES_MODULES %UNIXODBC_MODULES %CPL_MODULES %PA_MODULES" \
 +		basedir=$RPM_BUILD_ROOT \
 +		prefix=/usr \
 +		doc-prefix=$RPM_BUILD_ROOT \
 +		doc-dir=/%{_docdir}/kamailio/
 +
 +
 +mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/init.d
 +install -m755 $RPM_SOURCE_DIR/kamailio.init.SuSE \
 +              $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/kamailio
 +
 +%clean
 +rm -rf "$RPM_BUILD_ROOT"
 +
 +%post
 +sbin/insserv etc/init.d/kamailio
 +
 +%preun
 +if [ $1 = 0 ]; then
 +    etc/init.d/kamailio stop > /dev/null 2>&1
 +fi
 +
 +%postun
 +sbin/insserv etc/init.d/
 +
 +%files
 +%defattr(-,root,root)
 +%dir %{_docdir}/kamailio
 +%doc %{_docdir}/kamailio/AUTHORS
 +%doc %{_docdir}/kamailio/NEWS
 +%doc %{_docdir}/kamailio/INSTALL
 +%doc %{_docdir}/kamailio/README
 +%doc %{_docdir}/kamailio/README-MODULES
 +%doc %{_docdir}/kamailio/README.acc
 +%doc %{_docdir}/kamailio/README.alias_db
 +%doc %{_docdir}/kamailio/README.auth
 +%doc %{_docdir}/kamailio/README.auth_db
 +%doc %{_docdir}/kamailio/README.auth_diameter
 +%doc %{_docdir}/kamailio/README.avpops
 +%doc %{_docdir}/kamailio/README.dbtext
 +%doc %{_docdir}/kamailio/README.dialog
 +%doc %{_docdir}/kamailio/README.dispatcher
 +%doc %{_docdir}/kamailio/README.diversion
 +%doc %{_docdir}/kamailio/README.domain
 +%doc %{_docdir}/kamailio/README.enum
 +%doc %{_docdir}/kamailio/README.exec
 +%doc %{_docdir}/kamailio/README.flatstore
 +%doc %{_docdir}/kamailio/README.gflags
 +%doc %{_docdir}/kamailio/README.group
 +%doc %{_docdir}/kamailio/README.lcr
 +%doc %{_docdir}/kamailio/README.mangler
 +%doc %{_docdir}/kamailio/README.maxfwd
 +%doc %{_docdir}/kamailio/README.mediaproxy
 +%doc %{_docdir}/kamailio/README.msilo
 +%doc %{_docdir}/kamailio/README.nathelper
 +%doc %{_docdir}/kamailio/README.options
 +%doc %{_docdir}/kamailio/README.path
 +%doc %{_docdir}/kamailio/README.pdt
 +%doc %{_docdir}/kamailio/README.permissions
 +%doc %{_docdir}/kamailio/README.pike
 +%doc %{_docdir}/kamailio/README.registrar
 +%doc %{_docdir}/kamailio/README.rr
 +%doc %{_docdir}/kamailio/README.siptrace
 +%doc %{_docdir}/kamailio/README.sl
 +%doc %{_docdir}/kamailio/README.sms
 +%doc %{_docdir}/kamailio/README.speeddial
 +%doc %{_docdir}/kamailio/README.statistics
 +%doc %{_docdir}/kamailio/README.textops
 +%doc %{_docdir}/kamailio/README.tm
 +%doc %{_docdir}/kamailio/README.uac
 +%doc %{_docdir}/kamailio/README.uac_redirect
 +%doc %{_docdir}/kamailio/README.uri
 +%doc %{_docdir}/kamailio/README.uri_db
 +%doc %{_docdir}/kamailio/README.usrloc
 +%doc %{_docdir}/kamailio/README.xlog
 +
 +%dir %{_sysconfdir}/kamailio
 +%config(noreplace) %{_sysconfdir}/kamailio/*
 +%config %{_sysconfdir}/init.d/*
 +
 +%dir %{_libdir}/kamailio
 +%dir %{_libdir}/kamailio/modules
 +%{_libdir}/kamailio/modules/acc.so
 +%{_libdir}/kamailio/modules/alias_db.so
 +%{_libdir}/kamailio/modules/auth.so
 +%{_libdir}/kamailio/modules/auth_db.so
 +%{_libdir}/kamailio/modules/auth_diameter.so
 +%{_libdir}/kamailio/modules/avpops.so
 +%{_libdir}/kamailio/modules/dbtext.so
 +%{_libdir}/kamailio/modules/dispatcher.so
 +%{_libdir}/kamailio/modules/diversion.so
 +%{_libdir}/kamailio/modules/domain.so
 +%{_libdir}/kamailio/modules/enum.so
 +%{_libdir}/kamailio/modules/exec.so
 +%{_libdir}/kamailio/modules/flatstore.so
 +%{_libdir}/kamailio/modules/gflags.so
 +%{_libdir}/kamailio/modules/group.so
 +%{_libdir}/kamailio/modules/lcr.so
 +%{_libdir}/kamailio/modules/mangler.so
 +%{_libdir}/kamailio/modules/maxfwd.so
 +%{_libdir}/kamailio/modules/mediaproxy.so
 +%{_libdir}/kamailio/modules/msilo.so
 +%{_libdir}/kamailio/modules/nathelper.so
 +%{_libdir}/kamailio/modules/options.so
 +%{_libdir}/kamailio/modules/path.so
 +%{_libdir}/kamailio/modules/pdt.so
 +%{_libdir}/kamailio/modules/permissions.so
 +%{_libdir}/kamailio/modules/pike.so
 +%{_libdir}/kamailio/modules/registrar.so
 +%{_libdir}/kamailio/modules/rr.so
 +%{_libdir}/kamailio/modules/siptrace.so
 +%{_libdir}/kamailio/modules/sl.so
 +%{_libdir}/kamailio/modules/sms.so
 +%{_libdir}/kamailio/modules/speeddial.so
 +%{_libdir}/kamailio/modules/statistics.so
 +%{_libdir}/kamailio/modules/textops.so
 +%{_libdir}/kamailio/modules/tm.so
 +%{_libdir}/kamailio/modules/uac.so
 +%{_libdir}/kamailio/modules/uac_redirect.so
 +%{_libdir}/kamailio/modules/uri.so
 +%{_libdir}/kamailio/modules/uri_db.so
 +%{_libdir}/kamailio/modules/usrloc.so
 +%{_libdir}/kamailio/modules/xlog.so
 +
 +%{_sbindir}/kamailio
 +%{_sbindir}/kamctl
 +%{_libdir}/kamctl/kamctl.base
 +%{_libdir}/kamctl/kamctl.sqlbase
 +%{_libdir}/kamctl/kamctl.ctlbase
 +%{_libdir}/kamctl/kamctl.fifo
 +%{_libdir}/kamctl/kamctl.unixsock
 +
 +%{_mandir}/man5/*
 +%{_mandir}/man8/*
 +
 +
 +%files mysql
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/README.mysql
 +
 +%{_libdir}/kamailio/modules/mysql.so
 +%{_sbindir}/kamailio_mysql.sh
 +%{_libdir}/kamctl/kamctl.mysql
 +
 +%files postgres
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/README.postgres
 +
 +%{_libdir}/kamailio/modules/postgres.so
 +%{_sbindir}/kamailio_postgres.sh
 +%{_libdir}/kamctl/kamctl.pgsql
 +
 +%files unixodbc
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/README.unixodbc
 +
 +%{_libdir}/kamailio/modules/unixodbc.so
 +
 +%files jabber
 +%defattr(-,root,root)
 +%{_libdir}/kamailio/modules/jabber.so
 +%doc %{_docdir}/kamailio/README.jabber
 +
 +%files cpl
 +%defattr(-,root,root)
 +%{_libdir}/kamailio/modules/cpl-c.so
 +%doc %{_docdir}/kamailio/README.cpl-c
 +
 +%files pa
 +%defattr(-,root,root)
 +%doc %{_docdir}/kamailio/README.pa
 +
 +%{_libdir}/kamailio/modules/pa.so
 +
 +%files radius
 +%defattr(-,root,root)
 +%{_libdir}/kamailio/modules/auth_radius.so
 +%{_libdir}/kamailio/modules/misc_radius.so
 +%{_libdir}/kamailio/modules/peering.so
 +%doc %{_docdir}/kamailio/README.auth_radius
 +%doc %{_docdir}/kamailio/README.misc_radius
 +%doc %{_docdir}/kamailio/README.peering
 +
 +
 +%changelog
 +
 +* Fri Jun 30 2006 Bogdan-Andrei Iancu <bogdan at voice-system.ro>
 +- version set to 1.1.0
 +- added packages for pa, postgres and unixodbc
 +- added dialog, lcr, options, path, siptrace, statistics modules
 +
 +* Thu Oct 27 2005 Daniel-Constantin Mierla <miconda at gmail.com>
 +- version set to 1.0.0
 +- added readme for flatstore
 +- added uac and uac_redirect modules
 +
 +* Wed Jun 08 2005 Daniel-Constantin Mierla <miconda at gmail.com>
 +- First version of the spec file.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/kamailio.git



More information about the Pkg-voip-commits mailing list