--- ser-2.0.0.orig/debian/ser-cpl-module.docs +++ ser-2.0.0/debian/ser-cpl-module.docs @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/ser/README.cpl-c --- ser-2.0.0.orig/debian/ser-mysql-module.install +++ ser-2.0.0/debian/ser-mysql-module.install @@ -0,0 +1 @@ +usr/lib/ser/modules/mysql.so --- ser-2.0.0.orig/debian/ser.docs +++ ser-2.0.0/debian/ser.docs @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/ser/* --- ser-2.0.0.orig/debian/ser.init +++ ser-2.0.0/debian/ser.init @@ -0,0 +1,104 @@ +#! /bin/sh +# +# skeleton example file to build /etc/init.d/ scripts. +# This file should be used to construct scripts for /etc/init.d. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux +# by Ian Murdock . +# +# Version: @(#)skeleton 1.8 03-Mar-1998 miquels@cistron.nl +# +# adapted for ser by Andrei Pelinescu-Onciul +# $Id: ser.init,v 1.3.2.1 2006/01/11 00:23:10 janakj Exp $ + +### BEGIN INIT INFO +# Provides: ser +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Should-Start: +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: SIP Express Router +# Description: Start the SIP Express Router daemon. +### END INIT INFO + + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/ser +NAME=ser +DESC=ser +PIDFILE=/var/run/$NAME/$NAME.pid +PARAMS="-P $PIDFILE -u ser -g ser" + +test -f $DAEMON || exit 0 + +set -e + +# Make sure /var/run/ subdirectories exists. +if [ ! -e /var/run/$NAME ] ; then + mkdir -p /var/run/$NAME + chmod 755 /var/run/$NAME +fi + + +case "$1" in + start) + echo -n "Starting $DESC: $NAME" + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $PARAMS + echo "." + ;; + stop) + echo -n "Stopping $DESC: $NAME" + start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON + echo "." + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # $PIDFILE --exec $DAEMON + #;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + # Check if ser configuration is valid before restarting the server + (($DAEMON -c 2>&1) | grep "config file ok, exiting") > /dev/null + if [ $? -ne 0 ]; then + ($DAEMON -c 2>&1) + echo + echo "There are errors in the configuration file. Please fix them first" + echo + echo "$out" + echo + exit 0 + fi + echo -n "Restarting $DESC: $NAME" + start-stop-daemon --oknodo --stop --quiet --pidfile \ + $PIDFILE --exec $DAEMON + sleep 1 + start-stop-daemon --start --quiet --pidfile \ + $PIDFILE --exec $DAEMON -- $PARAMS + echo "." + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- ser-2.0.0.orig/debian/ser-postgres-module.install +++ ser-2.0.0/debian/ser-postgres-module.install @@ -0,0 +1 @@ +usr/lib/ser/modules/postgres.so --- ser-2.0.0.orig/debian/ser-jabber-module.docs +++ ser-2.0.0/debian/ser-jabber-module.docs @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/ser/README.jabber --- ser-2.0.0.orig/debian/README +++ ser-2.0.0/debian/README @@ -0,0 +1,135 @@ +Debian VoIP Team +------------------- + +1. Contacts +------------ + +We have two different lists. The only "human" list is the maintainers list. +The other has the only purpose of holding mails from SVN commits. + +General discussion mailing list: +SVN commits only mailing list (moderated): + + +2. Subversion repository +------------------------ + +You can browse it only at: + +http://svn.debian.org/wsvn/pkg-voip + +To "checkout" the repository use these commands: + +* If you want a read-only copy, use: + + svn co svn://svn.alioth.debian.org/svn/pkg-voip/ + +* If you are a developer with an account in Alioth, you can also use: + + svn co svn+ssh://${ALIOTH_USERNAME}@svn.debian.org/svn/pkg-voip/ + +Authorized SSH keys are controlled at https://alioth.debian.org/account/ + +The repository layout is: + +- packagename/ + - trunk/ + - branches/ + - tags/ + +If only one version of the package is available at the time, development must +be made at trunk/ dir, copying the dir to tags/'pkg-version' each time a new +release is made. + +When, at some point, the need to have two different versions at the same time +arises (for example, if we need a version to be in unstable and a different one +to be in experimental), experimental development will be made in trunk/ and +if a new unstable package needs to be cooked, copying tag/'latest_version_in_sid' +to tag/'latest_version_in_sid'+1 will make the trick. + +3. Using svn-buildpackage +-------------------------- + +Packages with an upstream tarball will require you to set the mergeWithUpstream +property first (from the package root) so that svn-buildpackage will look for +the .orig.tar.gz in the ../tarballs directory. + + % svn propset mergeWithUpstream 1 debian + +Please note that this only works for packages which have only the debian/ +directory committed. Consequently, you must use CDBS's simple-patchsys.mk or +dpatch to modify the upstream sources. + +To download the *.orig.tar.gz to the ../tarballs directory, most of the +pkg-voip packages have a "get-orig-source" target in their debian/rules. +Further, there is a "print-version" target to see what is the current upstream +version, that's detected for download. You can run the get-orig-source directly +from trunk/ or tags/$version/. + +After you have finished and committed your Debian patches via + + % svn commit [PACKAGE] + +as well as copying the orig.tar.gz to ../tarballs/ if necessary, you may build +your package with the following commands: + + % svn-buildpackage -rfakeroot + +You might want to add --svn-ignore-new to the flags if you do not want to +commit before having finished your testbuild. Further, if you use debuild and +edited /etc/devscripts.conf to use fakeroot by default, there is no need to add +this to svn-buildpackage. + +Don't commit tarballs/ or build-area/ directories to SVN! They would be wasting +loads of bandwith and there is no point. + +4. Tarballs and Build-area directories +-------------------------------------- + +You need to place those dirs in the parent directory of the one from which you're +running svn-buildpackage. Usually this means placing tarballs/ and build-area/ dirs +in 'pkgname'/ dir, at the same level as trunk/ + +For the existing projects these are preset as symlinks to a central hierarchy +under the pkg-voip svn root. This is to faciliate the building of subsequent +packages when having the full tree checked out. + +If you want to compile inside one version in tags/ dir, you'll need to place those +dirs inside that dir. Also for most of the tags dirs there should be ready to +use symlinks. + +5. Using svn-inject +------------------- + +To inject a new package into the Debian VoIP svn archive you should use svn-inject(1) +as follows: + + svn-inject -o .dsc svn+ssh://${ALIOTH_USERNAME}@svn.debian.org/svn/pkg-voip/ + +Type in your alioth password a few hundred times :-) and your package should be +uploaded to the archive. Note you will also need to manually copy the +package.orig.tar.gz to your tarballs directory. The -o option is important as +this ensures that we 'Only keep modified files under SVN control' + +6. Versioning +------------- + +As the autobuilder and fellow developers will need to differentiate between +versions that are uploaded into debian already and those which will be at a +later point, do use the UNRELEASED distribution until the time you actually do +upload to incoming. Whoever is not a DD himself should let the sponsor do that +final step if that sponsor has SVN commit rights to the pkg-voip archive. + +The autobuilder packs can be found at http://pkg-voip.buildserver.net/. +The logs can be found at http://status.buildserver.net/. + +As the archive runs britney, it may well be that a built and installed package +is not appearing to the archive until its reverse depends are (re)built too. In +case of questions, feel free to mail kilian@debian.org. + +-(snip)- + +In case any of the above is unclear to you or seems outdated, please drop us a note to the maintainers list. + +Your +Debian pkg-VoIP packaging team --- ser-2.0.0.orig/debian/copyright +++ ser-2.0.0/debian/copyright @@ -0,0 +1,19 @@ +This package was debianized by Andrei Pelinescu-Onciul + on Tue, 16 Jul 2002 15:41:31 +0200. + +It was downloaded from http://iptel.org/ser. + +Upstream Authors: Andrei Pelinescu-Onciul +, Bogdan Iancu +, Daniel-Constantin Mierla, Jan Janak +, Jiri Kuthan , Juha Heinanen, Maxim +Sobolev, Miklos Tirpak, Nils Ohlmeier, Ramona-Elena Modroiu, Raphael Coeffic, +Ricardo Baratto, Stelios Sidiroglou-Douskos (see AUTHORS file 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. --- ser-2.0.0.orig/debian/compat +++ ser-2.0.0/debian/compat @@ -0,0 +1 @@ +5 --- ser-2.0.0.orig/debian/control +++ ser-2.0.0/debian/control @@ -0,0 +1,130 @@ +Source: ser +Section: net +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian VoIP Team +Uploaders: Mark Purcell , Kilian Krause +Build-Depends: hardening-wrapper, debhelper (>= 5), quilt, libmysqlclient-dev, libexpat1-dev, libradiusclient-ng-dev, libxml2-dev, libpq-dev, libcurl4-openssl-dev, libreadline-dev | libreadline5-dev, libosptk3-dev, uuid-dev, bison, flex +Standards-Version: 3.8.1 +Homepage: http://www.iptel.org/ser/ +Vcs-Svn: svn://svn.debian.org/pkg-voip/ser/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/ser/?op=log + +Package: ser +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, adduser +Suggests: ser-mysql-module, ser-jabber-module, ser-cpl-module, ser-pa-module, ser-radius-modules, rtpproxy +Conflicts: ser-mysql-module (<< ${binary:Version}), ser-jabber-module (<< ${binary:Version}), ser-radius-modules (<< ${binary:Version}), ser-cpl-module (<< ${binary:Version}), ser-pa-module (<< ${binary:Version}), ser-postgres-module (<< ${binary:Version}), ser-acc-db-module (<< ${binary:Version}), ser-acc-radius-module (<< ${binary:Version}) +Replaces: ser-acc-radius-module (<< 2) +Description: high-performance SIP server + SER, the SIP Express Router, is a very fast and flexible server for + SIP (the Session Initiation Protocol). It can act as a SIP + registrar, proxy or redirect server. SER can be configured to serve + specialized purposes such as load balancing or SIP front-end to + application servers. Together with the RTPproxy it can act as media + relay or Session Border Controller. + . + SER features complete support of RFC 3261 functionality, a variety of + database backends, management features, load-balancing), NAT + traversal, telephony features (LCR, speeddial), multidomain hosting, + ENUM, presence, and more. + +Package: ser-mysql-module +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ser (= ${binary:Version}) +Description: MySQL database connectivity module for SER + This module will enable you to use a MySQL database as backend for + various SER modules, such as digest authentication, user location and + accounting. + . + SER, the SIP Express Router, is a very fast and flexible server for + SIP (the Session Initiation Protocol). + +Package: ser-jabber-module +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ser (= ${binary:Version}) +Description: Jabber bridge module for the SIP Express Router + This SER module allows you to exchange messages with Jabber (XMPP) + networks. It supports presence and instant messaging. + . + SER, the SIP Express Router, is a very fast and flexible server for + SIP (the Session Initiation Protocol). + +Package: ser-cpl-module +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ser (= ${binary:Version}) +Description: Call Processing Language interpreter for SER + This module supports the uploading, management and execution of Call + Processing Language (CPL) scripts in SER. CPL scripts allow the user + to customize call handling. + . + SER, the SIP Express Router, is a very fast and flexible server for + SIP (the Session Initiation Protocol). + +Package: ser-pa-module +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ser (= ${binary:Version}) +Description: presence module for the SIP Express Router + This module implements a presence server for SER. This is an entity + that processes the SIP methods SUBSCRIBE, NOTIFY and PUBLISH. + . + SER, the SIP Express Router, is a very fast and flexible server for + SIP (the Session Initiation Protocol). + +Package: ser-radius-modules +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ser (= ${binary:Version}) +Conflicts: ser-acc-radius-module (<< 2) +Replaces: ser-acc-radius-module (<< 2) +Description: RADIUS modules for the SIP Express Router + This package contains the SER modules for authentication, accounting + and other functions using the RADIUS protocol. + . + SER, the SIP Express Router, is a very fast and flexible server for + SIP (the Session Initiation Protocol). + +Package: ser-postgres-module +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ser (= ${binary:Version}) +Description: PostgreSQL database connectivity module for SER + This module will enable you to use a PostgreSQL database as backend + for various SER modules, such as digest authentication, user location + and accounting. + . + SER, the SIP Express Router, is a very fast and flexible server for + SIP (the Session Initiation Protocol). + +Package: ser-acc-db-module +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ser (= ${binary:Version}) +Suggests: ser-mysql-module, ser-postgres-module +Description: accounting module for SER (dummy package) + The acc_db module is now included in the main ser package. This is a + transitional dummy package that can be safely removed. + . + SER, the SIP Express Router, is a very fast and flexible server for + SIP (the Session Initiation Protocol). + +Package: ser-acc-radius-module +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ser-radius-modules (= ${binary:Version}) +Description: accounting module for SER, with RADIUS support (dummy package) + The acc_radius module is now included in the ser-radius-modules + package. This is a transitional dummy package that can be safely + removed. + . + SER, the SIP Express Router, is a very fast and flexible server for + SIP (the Session Initiation Protocol). + +Package: ser-osp-module +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ser (= ${binary:Version}) +Description: Open Settlement Protocol module for for SER + This module enables SER to support secure, multi-lateral peering + using the OSP standard. Using this module, SER can send peering + authorization requests to peering servers, validate signed peering + authorization tokens in SIP INVITE messages, and report usage + information to a peering server. + . + SER, the SIP Express Router, is a very fast and flexible server for + SIP (the Session Initiation Protocol). --- ser-2.0.0.orig/debian/ser-radius-modules.install +++ ser-2.0.0/debian/ser-radius-modules.install @@ -0,0 +1,4 @@ +etc/ser/dictionary.ser +usr/lib/ser/modules/acc_radius.so +usr/lib/ser/modules/auth_radius.so +usr/lib/ser/modules/avp_radius.so --- ser-2.0.0.orig/debian/ser-cpl-module.install +++ ser-2.0.0/debian/ser-cpl-module.install @@ -0,0 +1 @@ +usr/lib/ser/modules/cpl-c.so --- ser-2.0.0.orig/debian/ser-osp-module.install +++ ser-2.0.0/debian/ser-osp-module.install @@ -0,0 +1 @@ +usr/lib/ser/modules/osp.so --- ser-2.0.0.orig/debian/ser.manpages +++ ser-2.0.0/debian/ser.manpages @@ -0,0 +1,3 @@ +debian/sercmd.8 +debian/tmp/usr/share/man/man8/ser.8 +debian/tmp/usr/share/man/man5/ser.cfg.5 --- ser-2.0.0.orig/debian/ser-osp-module.docs +++ ser-2.0.0/debian/ser-osp-module.docs @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/ser/README.osp --- ser-2.0.0.orig/debian/watch +++ ser-2.0.0/debian/watch @@ -0,0 +1,5 @@ +version=3 + +# Site Directory Pattern Version Script +#http://ftp.iptel.org/pub/ser/latest/src/ser-(.*)_src\.tar\.gz debian svn-upgrade +http://ftp.iptel.org/pub/ser/(?:[\d\.]+)/src/ser-(.*)_src\.tar\.gz debian svn-upgrade --- ser-2.0.0.orig/debian/ser-radius-modules.docs +++ ser-2.0.0/debian/ser-radius-modules.docs @@ -0,0 +1,2 @@ +debian/tmp/usr/share/doc/ser/README.auth_radius +debian/tmp/usr/share/doc/ser/README.avp_radius --- ser-2.0.0.orig/debian/ser-jabber-module.install +++ ser-2.0.0/debian/ser-jabber-module.install @@ -0,0 +1 @@ +usr/lib/ser/modules/jabber.so --- ser-2.0.0.orig/debian/ser-osp-module.examples +++ ser-2.0.0/debian/ser-osp-module.examples @@ -0,0 +1 @@ +modules/osp/etc/sample-osp-ser.cfg --- ser-2.0.0.orig/debian/ser-pa-module.docs +++ ser-2.0.0/debian/ser-pa-module.docs @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/ser/README.pa --- ser-2.0.0.orig/debian/changelog +++ ser-2.0.0/debian/changelog @@ -0,0 +1,272 @@ +ser (2.0.0-4ubuntu4) precise; urgency=low + + * No-change rebuild to drop spurious libsfgcc1 dependency on armhf. + + -- Adam Conrad Fri, 02 Dec 2011 21:20:48 -0700 + +ser (2.0.0-4ubuntu3) precise; urgency=low + + * Rebuild for libmysqlclient transition + + -- Clint Byrum Thu, 24 Nov 2011 00:24:31 -0800 + +ser (2.0.0-4ubuntu2) oneiric; urgency=low + + * Build-depend on libreadline-dev | libreadline5-dev. LP: #832863. + + -- Matthias Klose Fri, 02 Sep 2011 12:32:48 +0200 + +ser (2.0.0-4ubuntu1) maverick; urgency=low + + * debian/ser.init: + - Check for /var/run/ser on startup and create if it doesnt exist, + this is needed on systems where this directory is temporary (LP: #633182) + + -- SevenMachines Mon, 13 Sep 2010 11:05:54 +0200 + +ser (2.0.0-4) unstable; urgency=low + + * Rebuild for libc6 (2.10.2) + + -- Mark Purcell Sun, 25 Apr 2010 21:53:05 +1000 + +ser (2.0.0-3) unstable; urgency=low + + * Build-Depends: libreadline-dev (Closes: #553849) + * Fix init.d-script-missing-dependency-on-remote_fs + * Add ${misc:Depends} - fixes debhelper-but-no-misc-depends + * Add debian/patches/mips-nostringops + - Fixes "FTBFS on mips. Unknown gcc cmdline option." (Closes: #531738) + + -- Mark Purcell Sat, 24 Apr 2010 23:46:21 +1000 + +ser (2.0.0-2) unstable; urgency=low + + * Remove /etc/ser/dictionary.ser from the ser package. Thanks to Ralf + Treinen. (Closes: #532247) + + -- Marcus Better Mon, 08 Jun 2009 15:10:17 +0200 + +ser (2.0.0-1) unstable; urgency=low + + [ Marcus Better ] + * New upstream release. + * Improved package descriptions. (Closes: #468472) + * Removed bashism from the init script. Thanks to Chris Lamb. + (Closes: #473704) + * Added man page for sercmd. (Closes: #469144) + * The serctl utility is no longer bundled with SER. + * The ser_mysql.sh script is now installed in + /usr/share/doc/ser/examples, along with other database generation + scripts. + * The gen_ha1 utility is no longer included in the package. + * debian/rules: Only invoke make once during build, and install into + debian/tmp. + * debian/ser.examples: Install all the examples. + * debian/control: Build-depend on libcurl3-dev (for xcap module), + libreadline5-dev (for sercmd) and uuid-dev (for eval module). + * debian/control: Removed Andrei Pelinescu-Onciul and Jan Janak from + Uploaders field on own request. + * Merge the acc_db module into the main ser package, and the acc_radius + module into the ser-radius-modules package, since they have no extra + dependencies. + * New patch dont-link-extra-system-libs: Avoid unnecessary linking of + shared libraries. + * Bump compat version to 5. + * Build with hardening-wrapper for improved security. + * Move control socket and FIFO from /tmp to /var/run/ser. + + [ Patrick Matthäi ] + * Bumped Standards-Version to 3.8.1. + + [ Kilian Krause ] + * Fix debian/watch. + * Remove -N from wget args in get-orig-source target as -O is already + used. + + [ Mark Purcell ] + * Fixup debian/watch to future proof dir numbers + + -- Mark Purcell Sun, 31 May 2009 10:51:00 +1000 + +ser (0.9.7-1) unstable; urgency=low + + * Extremadura release ;-) + + * New Upstream Release + + [ Kilian Krause ] + * Use ${binary:Version} for binNMU-safe uploads. + Add dpkg-dev (>= 1.13.19) to Build-Depends + * Add LSB-Section to init. + * Don't ignore make clean errors (even though we do run make proper) + + -- Mark Purcell Sat, 01 Dec 2007 20:06:59 +0100 + +ser (0.9.6-2) unstable; urgency=low + + [ Kilian Krause ] + * Build-Depends: Cleanup to stop using alternatives and virtual packages to + ensure we can reproduce builds and backport properly. + + [ Mark Purcell ] + * ACK NMU: Closes: #384772, #390008 + * Taken from openser: Thanks Julien BLACHE & Niko Tyni + * debian/rules: temporarily decrease optimisation on arm + - Fixes: empty package on arm (Closes: #393713) + * Makefile patch - abort the build if a module fails to build + * Debcheck - Build-Depends: libmysqlclient15-dev | libmysqlclient-dev + + -- Mark Purcell Sat, 2 Dec 2006 11:24:20 +0000 + +ser (0.9.6-1.1) unstable; urgency=medium + + * NMU from the Zurich BSP for 2 RC bugs + * Fix up the compiler options in CFLAGS to allow compilation to work. Closes: #384772 . + Thanks to Julien Blache for a patch. + * Fix up the AUG_CONFIGURATION macro in modules/postgres/aug_sysdep.h to work + on non-(i386|amd64) architectures. Closes: #390008 . Thanks again to Julien Blache + for a patch. + + -- Steve McIntyre <93sam@debian.org> Sun, 8 Oct 2006 11:52:10 +0200 + +ser (0.9.6-1) unstable; urgency=low + + [ Kilian Krause ] + * debian/control: add bison and flex to build-depends. They're needed. + + [ Mark Purcell ] + * Initial release. (Closes: #244526: ITP: ser -- SIP Express Router - + Debian Bug report logs) + * Welcome to pkg-voip-maintainers + * Force stripping + * Cleanup debian/ examples + * Fix: postinst-should-not-set-usr-doc-link + * Linitan cleanup: duplicate-updaterc.d-calls-in-postinst + * Lintian cleanup: possible-bashism-in-maintainer-script + * Remove oboselete debian/ dir from upstream source + + -- Mark Purcell Sat, 5 Aug 2006 14:11:16 +0100 + +ser (0.9.6-0.1) unstable; urgency=low + + * new upstream release (bug fixes) + + -- Andrei Pelinescu-Onciul Mon, 16 Jan 2006 20:02:52 +0200 + +ser (0.9.5-0.1) unstable; urgency=low + + * new upstream release (bug fixes) + + -- Andrei Pelinescu-Onciul Thu, 15 Dec 2005 17:59:15 +0200 + +ser (0.9.4-0.2) unstable; urgency=low + + * minor debian rules clean target fix + + -- Andrei Pelinescu-Onciul Wed, 02 Nov 2005 17:46:55 +0200 + +ser (0.9.4-0.1) unstable; urgency=low + + * new upstream minor release + + -- Andrei Pelinescu-Onciul Fri, 02 Sep 2005 14:49:37 +0200 + +ser (0.9.3-0.2) unstable; urgency=low + + * missing init.d/ser fixed + + -- Andrei Pelinescu-Onciul Tue, 28 Jun 2005 23:56:05 +0200 + +ser (0.9.3-0.1) unstable; urgency=low + + * new upstream release + * added ser-cpl-module, ser-pa-module, ser-postgres-module, + ser-acc-db-module and ser-acc-radius-module + * ser-radius-modules depend now on libradiusclient-ng2 + (not in official Debian archives) + + -- Andrei Pelinescu-Onciul Thu, 23 Jun 2005 16:43:35 +0200 + +ser (0.8.14) unstable; urgency=low + + * new upstream release + + -- Andrei Pelinescu-Onciul Fri, 23 Jul 2004 16:00:04 +0200 + +ser (0.8.12) unstable; urgency=low + + * new upstream release (improved tcp support, set_advertised_address a.s.o) + + -- Andrei Pelinescu-Onciul Fri, 14 Nov 2003 16:41:05 +0200 + +ser (0.8.11) unstable; urgency=low + + * new upstream release + + -- Andrei Pelinescu-Onciul Wed, 27 Aug 2003 14:53:24 +0200 + +ser (0.8.11-pre34) unstable; urgency=low + + * minor bugfixes + + * debian packaging changes (debhelper 4.0, init & postinst cleanups, added + examples, a.s.o) + + -- Andrei Pelinescu-Onciul Fri, 27 Jun 2003 15:14:52 +0200 + +ser (0.8.11-pre30) unstable; urgency=low + + * minor bugfixes + + * debian packaging changes (added conflicts) + + -- Andrei Pelinescu-Onciul Fri, 06 Jun 2003 14:03:29 +0200 + +ser (0.8.11-pre29) unstable; urgency=low + + * RFC3261 support (TCP, loose routing) + + * lots of new modules: rich access control lists (permissions), database in + textfile support (dbtext), presence agent (pa), enum support (enum), + voicemail interface (vm), NAT traversal utility for Cisco/ATA NAT + (nathelper) + + * arhitectural improvements + + -- Andrei Pelinescu-Onciul Fri, 30 May 2003 18:11:52 +0200 + +ser (0.8.10) unstable; urgency=low + + * fixes lots of bugs in 0.8.9 (log not working, ipv6 address conversion) + * introduces port support in uri matching with myself + * faster hash function (statefull performance increase ~10%) + * modules updates (sms, jabber) + * the jabber module is in a separate package now (it depends on libexpat) + + -- Andrei Pelinescu-Onciul Tue, 4 Nov 2002 17:23:37 +0200 + +ser (0.8.9) unstable; urgency=low + + * fixes a few bugs in 0.8.8 (primary some modules which where linked to some bad libs) + + -- Andrei Pelinescu-Onciul Wed, 7 Oct 2002 16:49:05 +0200 + +ser (0.8.8) unstable; urgency=low + + * first release (really this time) + + -- Andrei Pelinescu-Onciul Wed, 25 Sep 2002 23:27:11 +0200 + +ser (0.8.7.16) unstable; urgency=low + + * First Public Release. + + -- Andrei Pelinescu-Onciul Tue, 24 Sep 2002 21:33:39 +0200 + +ser (0.8.7.6-1) unstable; urgency=low + + * Initial Release. + + -- Andrei Pelinescu-Onciul Tue, 16 Jul 2002 15:41:31 +0200 + --- ser-2.0.0.orig/debian/ser-pa-module.install +++ ser-2.0.0/debian/ser-pa-module.install @@ -0,0 +1,6 @@ +usr/lib/ser/lib_ser_presence.so +usr/lib/ser/lib_ser_xcap.so +usr/lib/ser/modules/pa.so +usr/lib/ser/modules/presence_b2b.so +usr/lib/ser/modules/rls.so +usr/lib/ser/modules/xcap.so --- ser-2.0.0.orig/debian/rules +++ ser-2.0.0/debian/rules @@ -0,0 +1,103 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) +DEBVERSION:=$(shell head -n 1 debian/changelog \ + | sed -e 's/^[^(]*(\([^)]*\)).*/\1/') +UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//') + +FILENAME := ser_$(UPVERSION).orig.tar.gz +URL := http://ftp.iptel.org/pub/ser/$(UPVERSION)/src/ser-$(UPVERSION)_src.tar.gz + +MODULE_GROUPS := group_include="standard standard-dep stable" +MAKEARGS := $(MODULE_GROUPS) prefix=/usr cfg-target=/etc/ser/ cfg-prefix=$(CURDIR)/debian/tmp + +# list of modules that we put in separate packages +EXTERNAL_MODULES := acc_radius auth_radius avp_radius cpl-c jabber mysql osp \ + pa postgres presence_b2b rls xcap + +CFLAGS = -Wall +export DEB_BUILD_HARDENING=1 + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + ifeq (arm, $(DEB_HOST_ARCH)) + CFLAGS += -O1 + else + CFLAGS += -O2 + endif +endif + +export CFLAGS + +build: patch build-stamp + +build-stamp: + dh_testdir + CFLAGS="$(CFLAGS)" $(MAKE) $(MAKEARGS) all + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + [ ! -f Makefile ]||$(MAKE) $(MAKEARGS) proper + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install $(MAKEARGS) basedir=$(CURDIR)/debian/tmp + +binary-common: + dh_testdir + dh_testroot + dh_install --sourcedir=debian/tmp + # Remove extra modules from the main package. + for m in $(EXTERNAL_MODULES); do \ + rm $(CURDIR)/debian/ser/usr/lib/ser/modules/$$m.so; \ + done + dh_installdocs + rm debian/ser/usr/share/doc/ser/INSTALL + dh_installexamples + dh_installinit -- defaults 23 + dh_installman + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps -Lser -l/usr/lib/ser + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: build install + +binary-arch: build install + $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common + +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 \ + binary-common print-version get-orig-source --- ser-2.0.0.orig/debian/sercmd.8 +++ ser-2.0.0/debian/sercmd.8 @@ -0,0 +1,56 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. +.TH ser 8 "June 2008" sercmd "SIP Express Router" +.SH NAME +sercmd \- send commands to SIP Express Router using binrpc +.SH SYNOPSIS +.B sercmd +[\fIoptions\fR] [\fI-s address\fR] [ \fIcmd \fR] +.SH DESCRIPTION +sercmd is a tool for controlling SER using its ctl module. +.SH OPTIONS +.TP +\fB\-s\fR address +unix socket name or host name to send the commands on +.TP +\fB\-R\fR name +force reply socket name, for the unix datagram socket mode +.TP +\fB\-D\fR dir +create the reply socket in the directory if no reply +socket is forced (\fB\-R\fR) and a unix datagram socket is selected +as the transport +.TP +\fB\-f\fR format +print the result using format. Format is a string containing +%v at the places where values read from the reply should be +substituted. To print '%v', escape it using '%': %%v. +.TP +\fB\-v\fR +verbose mode +.TP +\fB\-V\fR +print version number +.TP +\fB\-h\fR +this help message +.SS "address:" +.TP +[proto:]name[:port] +where proto is one of tcp, udp, unixs or unixd, e.g., tcp:localhost:2048 , unixs:/var/run/ser/ser_ctl +.SS "cmd:" +.TP +method +[arg1 [arg2...]] +.SS "arg:" +.IP +string or number; to force a number to be interpreted as string +prefix it by "s:", e.g. s:1 +.SH EXAMPLES +.nf +sercmd \fB\-s\fR unixs:/var/run/ser/ser_unix system.listMethods +sercmd \fB\-f\fR "pid: %v desc: %v\en" \fB\-s\fR udp:localhost:2047 core.ps +sercmd ps # uses default ctl socket +sercmd # enters interactive mode on the default socket +sercmd \fB\-s\fR tcp:localhost # interactive mode, default port +.SH SEE ALSO +.BR ser(8) --- ser-2.0.0.orig/debian/postrm +++ ser-2.0.0/debian/postrm @@ -0,0 +1,45 @@ +#! /bin/sh +# $Id: postrm,v 1.2 2003/06/30 15:48:44 andrei Exp $ +# postrm script for ser-0.8.7 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" + exit 1 + +esac + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +if [ "$1" = "purge" ] ; then +# remove user/group on purge + deluser --quiet --remove-home ser || true +# remove /etc/ser if empty + rmdir /etc/ser || true +fi + +exit 0 --- ser-2.0.0.orig/debian/ser.install +++ ser-2.0.0/debian/ser.install @@ -0,0 +1,6 @@ +etc/ser/ser.cfg +usr/lib/ser/lib_ser_cds.so +usr/lib/ser/libbinrpc.so +usr/lib/ser/modules +usr/sbin/ser +usr/sbin/sercmd --- ser-2.0.0.orig/debian/ser.examples +++ ser-2.0.0/debian/ser.examples @@ -0,0 +1,3 @@ +debian/tmp/examples/* +debian/tmp/etc/ser/ser-advanced.cfg +scripts --- ser-2.0.0.orig/debian/postinst +++ ser-2.0.0/debian/postinst @@ -0,0 +1,52 @@ +#! /bin/sh +# $Id: postinst,v 1.3 2003/06/30 15:48:44 andrei Exp $ +# postinst script for ser-0.8.7 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# 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 "SIP Express Router" \ + --home /var/run/ser ser || true + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# # dh_installdeb will replace this with shell code automatically +# # generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- ser-2.0.0.orig/debian/ser-postgres-module.docs +++ ser-2.0.0/debian/ser-postgres-module.docs @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/ser/README.postgres --- ser-2.0.0.orig/debian/patches/fix-bashism +++ ser-2.0.0/debian/patches/fix-bashism @@ -0,0 +1,67 @@ +--- a/scripts/serconf.sh ++++ b/scripts/serconf.sh +@@ -27,7 +27,7 @@ SER_SQL_URI="mysql://ser:heslo@localhost + + + # --------------------- functions --------------------------- +-function go_to_pstn() ++go_to_pstn() + { + if [ -n "$SER_GWIP" ] ; then + cat << EOGOTOPSTN +@@ -42,12 +42,12 @@ EOGOTOPSTN + } + + +-function addr2re() ++addr2re() + { + echo $1 | sed -ne "s/\./\\\./gp" + } + +-function gw_check() ++gw_check() + { + if [ -n "$SER_GWIP" ] ; then + cat << EOGWTEST +@@ -60,12 +60,12 @@ EOGWTEST + fi + } + +-function mine_check() ++mine_check() + { + printf "uri=~\"[@:](sip[\.)?$SER_DOMAIN_TEST_RE([;:].*)*\" $SER_GW_TEST_RE" + } + +-function gw_m_check() ++gw_m_check() + { + if [ -n "$SER_GWIP" ] ; then + cat << EOMCHECK +@@ -78,7 +78,7 @@ EOMCHECK + fi + } + +-function help() ++help() + { + cat << EOHELP + Numbering plan is as follows: +@@ -95,14 +95,14 @@ EOHELP2 + fi + } + +-function usage() ++usage() + { + echo "Usage: $0 []" \ + '> ' > /dev/stderr + exit 1 + } + +-function load_mod() ++load_mod() + { + if [ -n "$SER_LIB_PATH" ] ; then + echo "loadmodule \"$SER_LIB_PATH/$1.so\"" --- ser-2.0.0.orig/debian/patches/initgroups +++ ser-2.0.0/debian/patches/initgroups @@ -0,0 +1,30 @@ +Initialise supplementary groups also when setting uid. This is needed when the ser user belongs to the rtpproxy group to get access to the rtpproxy control socket. The patch has been accepted upstream for the 2.1 branch. + +--- a/daemonize.c ++++ b/daemonize.c +@@ -55,6 +55,8 @@ + #include + #include /* setrlimit */ + #include ++#include ++#include + + #include "daemonize.h" + #include "globals.h" +@@ -219,6 +221,16 @@ int do_suid() + } + + if(uid){ ++ struct passwd *pw; ++ ++ if (!(pw = getpwuid(uid))){ ++ LOG(L_CRIT, "user lookup failed: %s\n", strerror(errno)); ++ goto error; ++ } ++ if(initgroups(pw->pw_name, pw->pw_gid)<0){ ++ LOG(L_CRIT, "cannot set supplementary groups: %s\n", strerror(errno)); ++ goto error; ++ } + if(setuid(uid)<0){ + LOG(L_CRIT, "cannot change uid to %d: %s\n", uid, strerror(errno)); + goto error; --- ser-2.0.0.orig/debian/patches/dont-link-extra-system-libs +++ ser-2.0.0/debian/patches/dont-link-extra-system-libs @@ -0,0 +1,62 @@ +The sercmd utility and some of the modules were being linked against +some unneeded shared system libraries. + +--- a/modules/mysql/Makefile ++++ b/modules/mysql/Makefile +@@ -17,6 +17,6 @@ LIBS=-L/usr/lib/mysql -L$(LOCALBASE)/lib + -L$(LOCALBASE)/mysql/lib/mysql/ \ + -L$(LOCALBASE)/mysql/lib \ + -L/usr/lib64/mysql \ +- -lmysqlclient -lz ++ -lmysqlclient + + include ../../Makefile.modules +--- a/utils/sercmd/Makefile ++++ b/utils/sercmd/Makefile +@@ -12,7 +12,7 @@ use_readline ?= + + DEFS:= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' \ + $(filter -D%HAVE -DARCH% -DOS% -D__CPU% -D__OS%, $(DEFS)) +-LIBS:=$(filter-out -lfl -ldl -lpthread -lssl -lcrypto, $(LIBS)) ++LIBS:=$(filter-out -lfl -ldl -lresolv -lpthread -lssl -lcrypto, $(LIBS)) + + ifeq ($(use_readline),) + readline_path := $(shell \ +@@ -27,7 +27,7 @@ endif + + ifeq ($(use_readline),1) + DEFS+=-DUSE_READLINE +- LIBS+=-lreadline -lncurses ++ LIBS+=-lreadline + endif + + +--- a/Makefile.modules ++++ b/Makefile.modules +@@ -43,3 +43,5 @@ LDFLAGS:=$(MOD_LDFLAGS) + endif + + include $(COREPATH)/Makefile.rules ++ ++LIBS:=$(filter-out -ldl -lresolv, $(LIBS)) +--- a/modules/osp/Makefile ++++ b/modules/osp/Makefile +@@ -41,7 +41,7 @@ NAME=osp.so + DEFS+=-D_POSIX_THREADS + + LIBS=$(shell if [ -f /usr/local/lib/libosptk.a ]; then echo "-losptk" ; else echo "-losp" ; fi) +-LIBS+=-lssl -lcrypto -lpthread -lm ++LIBS+=-lpthread + + + +--- a/lib/Makefile.ser ++++ b/lib/Makefile.ser +@@ -8,6 +8,7 @@ ser = $(CURDIR)/.. + + INCLUDES += -I$(CURDIR) -I$(ser) + LIBS += -L$(CURDIR)/cds -L$(CURDIR)/qsa ++LIBS := $(filter-out -ldl -lresolv, $(LIBS)) + + #################################### + # make rules --- ser-2.0.0.orig/debian/patches/mips-nostringops +++ ser-2.0.0/debian/patches/mips-nostringops @@ -0,0 +1,13 @@ +Index: ser-2.0.0/Makefile.defs +=================================================================== +--- ser-2.0.0.orig/Makefile.defs 2010-04-24 23:43:26.000000000 +1000 ++++ ser-2.0.0/Makefile.defs 2010-04-24 23:43:42.000000000 +1000 +@@ -909,7 +909,7 @@ + CFLAGS=-O9 -funroll-loops $(PROFILE) + #if gcc 4.0+ + ifeq ($(CC_SHORTVER), 4.x) +- CFLAGS+=-march=r3000 -minline-all-stringops \ ++ CFLAGS+=-march=r3000 \ + -ftree-vectorize + else + #if gcc 3.4+ --- ser-2.0.0.orig/debian/patches/series +++ ser-2.0.0/debian/patches/series @@ -0,0 +1,6 @@ +dont-link-extra-system-libs +stop-build-on-error +fix-osptk-lib-path +initgroups +default-ctrl-socket-dir +mips-nostringops --- ser-2.0.0.orig/debian/patches/stop-build-on-error +++ ser-2.0.0/debian/patches/stop-build-on-error @@ -0,0 +1,66 @@ +Make sure the build stops on compile errors. +--- a/Makefile ++++ b/Makefile +@@ -279,7 +279,7 @@ print-modules: + + .PHONY: modules + modules: +- -@for r in $(modules) "" ; do \ ++ @set -e; for r in $(modules) "" ; do \ + if [ -n "$$r" ]; then \ + echo "" ; \ + echo "" ; \ +@@ -289,7 +289,7 @@ modules: + + $(extra_objs): + -@echo "Extra objs: $(extra_objs)" +- -@for r in $(static_modules_path) "" ; do \ ++ @set -e; for r in $(static_modules_path) "" ; do \ + if [ -n "$$r" ]; then \ + echo "" ; \ + echo "Making static module $r" ; \ +@@ -299,7 +299,7 @@ $(extra_objs): + + .PHONY: utils + utils: +- -@for r in $(utils_compile) "" ; do \ ++ @set -e; for r in $(utils_compile) "" ; do \ + if [ -n "$$r" ]; then \ + echo "" ; \ + echo "" ; \ +@@ -382,7 +382,7 @@ sunpkg: + + .PHONY: modules-doc + modules-doc: +- -@for r in $(modules) "" ; do \ ++ @set -e; for r in $(modules) "" ; do \ + if [ -n "$$r" ]; then \ + echo "" ; \ + echo "" ; \ +@@ -446,7 +446,7 @@ install-bin: $(bin-prefix)/$(bin-dir) + $(INSTALL-BIN) ser $(bin-prefix)/$(bin-dir) + + install-modules: modules $(modules-prefix)/$(modules-dir) +- -@for r in $(modules_full_path) "" ; do \ ++ @set -e; for r in $(modules_full_path) "" ; do \ + if [ -n "$$r" ]; then \ + if [ -f "$$r" ]; then \ + $(INSTALL-TOUCH) \ +@@ -459,7 +459,7 @@ install-modules: modules $(modules-prefi + done + + install-utils: utils $(bin-prefix)/$(bin-dir) +- -@for r in $(utils_install) "" ; do \ ++ @set -e; for r in $(utils_install) "" ; do \ + if [ -n "$$r" ]; then \ + if [ -f "$$r" ]; then \ + $(INSTALL-TOUCH) \ +@@ -490,7 +490,7 @@ install-doc: $(doc-prefix)/$(doc-dir) in + + + install-modules-doc: $(doc-prefix)/$(doc-dir) +- -@for r in $(modules_basenames) "" ; do \ ++ @set -e; for r in $(modules_basenames) "" ; do \ + if [ -n "$$r" ]; then \ + if [ -f modules/"$$r"/README ]; then \ + $(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)/README ; \ --- ser-2.0.0.orig/debian/patches/default-ctrl-socket-dir +++ ser-2.0.0/debian/patches/default-ctrl-socket-dir @@ -0,0 +1,146 @@ +--- a/doc/presence/cfg/ps.cfg ++++ b/doc/presence/cfg/ps.cfg +@@ -120,11 +120,11 @@ modparam("gflags", "load_global_attrs", + modparam("domain", "load_domain_attrs", 1) + + # -- ctl params -- +-# by default ctl listens on unixs:/tmp/ser_ctl if no other address is ++# by default ctl listens on unixs:/var/run/ser/ser_ctl if no other address is + # specified in modparams; this is also the default for sercmd +-modparam("ctl", "binrpc", "unixs:/tmp/ser_ctl") ++modparam("ctl", "binrpc", "unixs:/var/run/ser/ser_ctl") + # listen on the "standard" fifo for backward compatibility +-modparam("ctl", "fifo", "fifo:/tmp/ser_fifo") ++modparam("ctl", "fifo", "fifo:/var/run/ser/ser_fifo") + # listen on tcp, localhost + #modparam("ctl", "binrpc", "tcp:localhost:2046") + +--- a/etc/ser-basic.cfg ++++ b/etc/ser-basic.cfg +@@ -55,11 +55,11 @@ modparam("usrloc", "db_mode", 0) + modparam("rr", "enable_full_lr", 1) + + # ctl params +-# by default ctl listens on unixs:/tmp/ser_ctl if no other address is ++# by default ctl listens on unixs:/var/run/ser/ser_ctl if no other address is + # specified in modparams; this is also the default for sercmd +-modparam("ctl", "binrpc", "unixs:/tmp/ser_ctl") ++modparam("ctl", "binrpc", "unixs:/var/run/ser/ser_ctl") + # listen on the "standard" fifo for backward compatibility +-modparam("ctl", "fifo", "fifo:/tmp/ser_fifo") ++modparam("ctl", "fifo", "fifo:/var/run/ser/ser_fifo") + # listen on tcp, localhost + #modparam("ctl", "binrpc", "tcp:localhost:2046") + +--- a/etc/ser-oob.cfg ++++ b/etc/ser-oob.cfg +@@ -325,11 +325,11 @@ modparam("domain", "load_domain_attrs", + + # -- ctl -- + +-# By default, ctl listens on unixs:/tmp/ser_ctl if no other address is ++# By default, ctl listens on unixs:/var/run/ser/ser_ctl if no other address is + # specified in modparams; this is also the default for sercmd. +-modparam("ctl", "binrpc", "unixs:/tmp/ser_ctl") ++modparam("ctl", "binrpc", "unixs:/var/run/ser/ser_ctl") + # Listen on the "standard" fifo for backward compatibility. +-modparam("ctl", "fifo", "fifo:/tmp/ser_fifo") ++modparam("ctl", "fifo", "fifo:/var/run/ser/ser_fifo") + # listen on TCP on localhost. + #modparam("ctl", "binrpc", "tcp:localhost:2046") + +--- a/etc/ser.cfg ++++ b/etc/ser.cfg +@@ -118,11 +118,11 @@ modparam("gflags", "load_global_attrs", + modparam("domain", "load_domain_attrs", 1) + + # -- ctl params -- +-# by default ctl listens on unixs:/tmp/ser_ctl if no other address is ++# by default ctl listens on unixs:/var/run/ser/ser_ctl if no other address is + # specified in modparams; this is also the default for sercmd +-modparam("ctl", "binrpc", "unixs:/tmp/ser_ctl") ++modparam("ctl", "binrpc", "unixs:/var/run/ser/ser_ctl") + # listen on the "standard" fifo for backward compatibility +-modparam("ctl", "fifo", "fifo:/tmp/ser_fifo") ++modparam("ctl", "fifo", "fifo:/var/run/ser/ser_fifo") + # listen on tcp, localhost + #modparam("ctl", "binrpc", "tcp:localhost:2046") + +--- a/modules/ctl/ctl.cfg ++++ b/modules/ctl/ctl.cfg +@@ -29,27 +29,27 @@ rev_dns=off # (cmd. line: -R) + # for more info: sip_router -h + alias=iptel.org + alias="foo.bar" +-#fifo="/tmp/ser_fifo" ++#fifo="/var/run/ser/ser_fifo" + + #modules + + loadmodule "modules/ctl/ctl.so" + # optional listen addresses, if no one is specified, +-# ctl will listen on unixs:/tmp/ser_ctl +-modparam("ctl", "binrpc", "unix:/tmp/ser_ctl") # default ++# ctl will listen on unixs:/var/run/ser/ser_ctl ++modparam("ctl", "binrpc", "unix:/var/run/ser/ser_ctl") # default + modparam("ctl", "binrpc", "udp:localhost:2046") + modparam("ctl", "binrpc", "tcp:localhost:2046") +-modparam("ctl", "binrpc", "unixd:/tmp/unix_dgram") # unix datagram +-modparam("ctl", "binrpc", "unixs:/tmp/unix_stream") # unix stream +-modparam("ctl", "binrpc", "unix:/tmp/unix_default") # unix stream +-modparam("ctl", "binrpc", "/tmp/unix_test") # unix stream ++modparam("ctl", "binrpc", "unixd:/var/run/ser/unix_dgram") # unix datagram ++modparam("ctl", "binrpc", "unixs:/var/run/ser/unix_stream") # unix stream ++modparam("ctl", "binrpc", "unix:/var/run/ser/unix_default") # unix stream ++modparam("ctl", "binrpc", "/var/run/ser/unix_test") # unix stream + modparam("ctl", "binrpc", "localhost:3000") # udp + modparam("ctl", "binrpc", "tcp:3012") # tcp any , port 3012 + modparam("ctl", "binrpc", "udp:*:3012") # udp any , port 3012 + + # old fifo support +-modparam("ctl", "fifo", "fifo:/tmp/ser_fifo") # clasic fifo +-modparam("ctl", "fifo", "/tmp/ser_fifo2") ++modparam("ctl", "fifo", "fifo:/var/run/ser/ser_fifo") # clasic fifo ++modparam("ctl", "fifo", "/var/run/ser/ser_fifo2") + modparam("ctl", "fifo", "udp:*:2050") # fifo protocol over udp + modparam("ctl", "fifo", "tcp:*:2050") # fifo over tcp + +--- a/modules/ctl/ctl_defaults.h ++++ b/modules/ctl/ctl_defaults.h +@@ -4,7 +4,7 @@ + #ifndef __ctl_defaults_h + #define __ctl_defaults_h + /*listen by default on: */ +-#define DEFAULT_CTL_SOCKET "unixs:/tmp/ser_ctl" ++#define DEFAULT_CTL_SOCKET "unixs:/var/run/ser/ser_ctl" + /* port used by default for tcp/udp if no port is explicitely specified */ + #define DEFAULT_CTL_PORT 2049 + +--- a/utils/sercmd/sercmd.c ++++ b/utils/sercmd/sercmd.c +@@ -97,14 +97,14 @@ Options:\n\ + -h This help message\n\ + address:\n\ + [proto:]name[:port] where proto is one of tcp, udp, unixs or unixd\n\ +- e.g.: tcp:localhost:2048 , unixs:/tmp/ser_ctl\n\ ++ e.g.: tcp:localhost:2048 , unixs:/var/run/ser/ser_ctl\n\ + cmd:\n\ + method [arg1 [arg2...]]\n\ + arg:\n\ + string or number; to force a number to be interpreted as string \n\ + prefix it by \"s:\", e.g. s:1\n\ + Examples:\n\ +- " NAME " -s unixs:/tmp/ser_unix system.listMethods\n\ ++ " NAME " -s unixs:/var/run/ser/ser_unix system.listMethods\n\ + " NAME " -f \"pid: %v desc: %v\\n\" -s udp:localhost:2047 core.ps \n\ + " NAME " ps # uses default ctl socket \n\ + " NAME " # enters interactive mode on the default socket \n\ +@@ -377,7 +377,7 @@ int connect_unix_sock(char* name, int ty + /* we must bind so that we can receive replies */ + if (reply_socket==0){ + if (sock_dir==0) +- sock_dir="/tmp"; ++ sock_dir="/var/run/ser"; + retry: + ret=snprintf(mysun.sun_path, UNIX_PATH_MAX, "%s/" NAME "_%d", + sock_dir, rand()); --- ser-2.0.0.orig/debian/patches/fix-osptk-lib-path +++ ser-2.0.0/debian/patches/fix-osptk-lib-path @@ -0,0 +1,12 @@ +Use correct location of OSP Toolkit library. +--- a/modules/osp/Makefile ++++ b/modules/osp/Makefile +@@ -40,7 +40,7 @@ auto_gen= + NAME=osp.so + DEFS+=-D_POSIX_THREADS + +-LIBS=$(shell if [ -f /usr/local/lib/libosptk.a ]; then echo "-losptk" ; else echo "-losp" ; fi) ++LIBS=-losptk + LIBS+=-lpthread + + --- ser-2.0.0.orig/debian/backports/sarge +++ ser-2.0.0/debian/backports/sarge @@ -0,0 +1,13 @@ +#!/bin/bash +# +# Hook for automatic backports at buildserver.net +# +# Target dist: Debian Sarge + +# libpq-dev formerly used to be postgresql-dev +sed -i -e 's#^\(Build-Depends:.*\)libpq-dev[^\ ]* \(.*\)$#\1postgresql-dev, \2#' debian/control + +# Use libmysqlclient from Sarge +sed -i -e 's#^\(Build-Depends:.*\)libmysqlclient[^\ ]* \(.*\)$#\1libmysqlclient12-dev, \2#' debian/control + +exit 0