[Pkg-voip-commits] [siproxd] 01/04: Imported Debian patch 1:0.8.1-3

Victor Seva Lopez maniac-guest at moszumanska.debian.org
Sat Aug 15 14:41:53 UTC 2015


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

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

commit 2cec6e69f49001cf38dd77bf1950b6a2105d53b8
Author: Mark Purcell <msp at debian.org>
Date:   Sat Feb 4 10:20:44 2012 +1100

    Imported Debian patch 1:0.8.1-3
---
 debian/changelog                                   | 354 +++++++++++++++++++++
 debian/compat                                      |   1 +
 debian/control                                     |  22 ++
 debian/copyright                                   |  36 +++
 debian/patches/debian-user-1.diff                  |  41 +++
 .../non-empty-dependency_libs-in-la-file.diff      |  30 ++
 debian/patches/series                              |   3 +
 debian/patches/siproxd-libtool-2.4.patch           |  15 +
 debian/rules                                       |  13 +
 debian/siproxd.8                                   |  45 +++
 debian/siproxd.README.Debian                       |  15 +
 debian/siproxd.default                             |   5 +
 debian/siproxd.doc-base                            |  13 +
 debian/siproxd.docs                                |   4 +
 debian/siproxd.examples                            |   3 +
 debian/siproxd.init                                |  88 +++++
 debian/siproxd.manpages                            |   1 +
 debian/siproxd.postinst                            |  30 ++
 debian/siproxd.postrm                              |   7 +
 debian/siproxd.preinst                             |  16 +
 debian/source/format                               |   1 +
 debian/watch                                       |   5 +
 22 files changed, 748 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..35f7a37
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,354 @@
+siproxd (1:0.8.1-3) unstable; urgency=low
+
+  * Fix "issues with debian packaging (conf and init)" (Closes: #658504)
+    - PIDFILE=/var/run/$NAME/$NAME.pid
+    - Refresh debian-user-1.diff 
+    - non-empty-dependency_libs-in-la-file.diff - .la files in .conf
+  * Added debian/siproxd.doc-base 
+
+ -- Mark Purcell <msp at debian.org>  Sat, 04 Feb 2012 10:20:44 +1100
+
+siproxd (1:0.8.1-2) unstable; urgency=low
+
+  * Add siproxd-libtool-2.4.patch - Thanks to Chí-Thanh Christopher
+    Nguyễn for the gentoo workaround (Closes: #657070)
+    - Fixes "embedded library ltdl" 
+  * Switch to dh 7 
+  * source/format 3.0 (quilt)
+  * Remove .la files non-empty-dependency_libs-in-la-file (Closes: #633224)
+    - Fixes "Getting rid of unneeded *.la / emptying dependency_libs"
+  * Update debian/copyright GPL-2 - copyright-refers-to-symlink-license
+  * Drop obsolete NEWS - debian-news-entry-uses-asterisk
+  * Drop obsolete Suggests:
+
+ -- Mark Purcell <msp at debian.org>  Tue, 24 Jan 2012 19:43:05 +1100
+
+siproxd (1:0.8.1-1) unstable; urgency=low
+
+  * New upstream release
+    - fixes CVE-2009-3736 local privilege esclation (Closes: #559827)
+    - fixed embedded libltdl convenience copy
+    - Updated libtool (Closes: #537272)
+
+  * Add init.d-script-missing-dependency-on-remote_fs
+  * Fix package-lacks-versioned-build-depends-on-debhelper
+
+  * BUG: FTBFS with system provided libltdl-dev
+    - Better to ship with libltdl convenience copy - addressing CVE-2009-3736
+    - lintian error embedded-library
+    - Build-Conflcits libltdl-dev
+    - TODO: Fix plugins.c:65: undefined reference to 
+      `lt__PROGRAM__LTX_preloaded_symbols'
+    - Added debian/siproxd.lintian-overrides
+
+ -- Mark Purcell <msp at debian.org>  Sun, 22 Jan 2012 18:18:21 +1100
+
+siproxd (1:0.8.0-1) UNRELEASED; urgency=low
+
+  * Add Build-Depends to libltdl3-dev.
+  * Drop Build-Conflicts to ancient libosip0-dev.
+  * Bump Standards-Version to 3.8.4, no changes.
+
+ -- Faidon Liambotis <paravoid at debian.org>  Mon, 31 May 2010 01:45:32 +0300
+
+siproxd (1:0.7.2-1) unstable; urgency=low
+
+  * New upstream release
+  * init.d/siproxd set PIDFILE=/var/run/$NAME.pid 
+    - fixes lintian:dir-or-file-in-var-run
+  * debian/compat -> 7
+
+ -- Mark Purcell <msp at debian.org>  Sat, 17 Oct 2009 11:01:04 +1100
+
+siproxd (1:0.7.1-2) unstable; urgency=low
+
+  * Upload to unstable
+  * Add ${misc:Depends} - fixes debhelper-but-no-misc-depends
+
+ -- Mark Purcell <msp at debian.org>  Tue, 24 Feb 2009 07:43:19 +1100
+
+siproxd (1:0.7.1-1) experimental; urgency=low
+
+  * New upstream release
+
+  [ Patrick Matthäi ]
+  * Set the -e flag in the maintainer scripts so that no errors are will be
+    ignored.  Thanks lintian.
+
+  [ Mark Purcell ]
+  * Update Homepage:
+  * Removed md5_prefix.diff encorporated upstream
+  * Drop obsolete openlogger.diff
+  * Simplify debian/rules
+  * Replace yodl with siproxd.8 & siproxd.manpages
+  * Build-Depends: docbook-utils - provide PDF/ HTML user guide
+  * Update siproxd.[docs,examples] to grab available docs
+
+ -- Mark Purcell <msp at debian.org>  Sun, 16 Nov 2008 23:19:51 +1100
+
+siproxd (1:0.7.0-2) unstable; urgency=low
+
+  * Ack NMU. Thanks Andreas 
+  * Build-Depends: libosip2-dev (>=3.1.0) 
+    - Fixes lintian:build-depends-on-1-revision
+  * Remove Build-Depends: quilt. Fixes linitan:quilt-build-dep-but-no-
+    series-file
+  * Upgrade to Standards-Version: 3.8.0 - no changes necessary
+
+ -- Mark Purcell <msp at debian.org>  Sat, 06 Sep 2008 00:39:22 +1000
+
+siproxd (1:0.7.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Adjust to newer libosip and bump build-dependency accordingly.
+    Adding md5_prefix-479613.diff.
+    Thanks to Peter Green for the patch. Closes: #479613
+
+ -- Andreas Barth <aba at not.so.argh.org>  Sun, 11 May 2008 12:14:31 +0000
+
+siproxd (1:0.7.0-1) unstable; urgency=low
+
+  * New upstream release. (Closes: #458106)
+    - Fix building against libosip v3.0. (Closes: #439450)
+
+  [ Kilian Krause ]
+  * Fix get-orig-source target.
+  * Add LSB section to init script.
+  * Make sure /var/run/siproxd exists before running start-stop-daemon.
+
+  [ Mark Purcell ]
+  * debian/rules switch to simple-patchsys.mk
+  * Rework openlogger-2.diff
+  * Remove debian/patches/pidopt.diff; included upstream
+  * cleanup debian/copyright
+  * debian/rules cleanup get-orig-source using cdbs variables
+  * Build-Depends: libosip2-dev (>= 3.0) 
+
+  [ Mikael Magnusson ]
+  * Add myself to Uploaders.
+
+  [ Faidon Liambotis ]
+  * Add myself to Uploaders.
+  * Remove Uploaders that are not active anymore. (Dan, Jose, Santiago)
+  * Bump Standards-Version to 3.7.3, no changes needed.
+
+ -- Faidon Liambotis <paravoid at debian.org>  Wed, 05 Mar 2008 05:42:43 +0200
+
+siproxd (1:0.5.13-1) unstable; urgency=low
+
+  * New upstream release
+    - Fixes: siproxd doesn't work on amd64 without 64bit patches from upstream
+    (Closes: #366844)
+    - Fixes: invalid argument for format string (Closes: #354190)
+    - Fixes:  Weird location for registration_file (Closes: #327370)
+
+ -- Mark Purcell <msp at debian.org>  Wed, 21 Jun 2006 16:30:00 +0100
+
+siproxd (1:0.5.11-2) unstable; urgency=low
+
+  * debian/rules: Ignore includes to fix clean target without all
+    build-depends installed.
+    Remove linking against gcc_s to fix FTBFS.
+  * Remove amd64.diff from debian/patches/series; ack previous NMU 
+    (Closes: #360724)
+  * Only fix permissions on config files if exist (Closes: #326835)
+
+ -- Kilian Krause <kilian at debian.org>  Sun,  7 May 2006 14:48:20 +0000
+
+siproxd (1:0.5.11-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Really remove amd64.patch from patches/series (Closes: #360724)
+
+ -- Mohammed Adnène Trojette <adn+deb at diwi.org>  Fri, 21 Apr 2006 02:36:40 +0200
+
+siproxd (1:0.5.11-1) unstable; urgency=low
+
+  * New upstream release
+    - new upstream release 0.5.11 (Closes: #307848)
+  * Minor comments on package description (Closes: #300704)
+  * Temporarly remove adm64.patch as it doesn't apply cleanly to 
+  new upstream
+
+ -- Mark Purcell <msp at debian.org>  Sun, 30 Oct 2005 12:58:59 +0000
+
+siproxd (1:0.5.10-3) UNRELEASED; urgency=low
+
+  [ Kilian Krause ]
+  * Fixed uploaders to include Kilian Krause as part of pkg-voip.
+
+  [ Mark Purcell ]
+  * Add debian/watch with svn-upgrade
+
+ -- Mark Purcell <msp at debian.org>  Sun, 30 Oct 2005 12:33:51 +0000
+
+siproxd (1:0.5.10+cvs20050423-1) unstable; urgency=low
+
+  * New upstream release
+  * CVS head release fixes segfaulting issue (closes: #304691)
+
+ -- Dan Weber <dan at mirrorlynx.com>  Sat, 23 Apr 2005 22:09:55 -0400
+
+siproxd (1:0.5.10-2) unstable; urgency=low
+
+  * Fixed building on amd64 with gcc-4.0 (Closes: #300938)
+
+ -- Kilian Krause <kk at verfaction.de>  Tue, 22 Mar 2005 21:28:19 +0100
+
+siproxd (1:0.5.10-1) unstable; urgency=low
+
+  * New upstream release (closes: #279717)
+  * Epoch change to 1 to work with the new version schema
+  * Can now depend on libosip2 2.0.9 directly (closes: #285178)
+  * Since the build system before debian is buggy, and deletes its own
+    specfile, this is not a bug of the package and no longer occurs with this
+    upstream release (closes: #273013)
+  * Cleaned out arch directories in source builds (closes: #271885)
+
+ -- Dan Weber <dan at mirrorlynx.com>  Sat, 19 Mar 2005 10:27:15 -0500
+
+siproxd (0.57.snap040720-2) unstable; urgency=low
+
+  * Purged all that crap from NMU.  I removed all the debconf stuff because
+    that is absolutely ridiculous.
+  * siproxd_passwd.cfg is now optional and no longer directly supported.  A
+    NEWS.Debian entry has been added for all those who still use it.
+
+ -- Dan Weber <dan at mirrorlynx.com>  Thu, 23 Sep 2004 20:06:11 -0400
+
+siproxd (0.57.snap040720-1.1) unstable; urgency=high
+
+  * NMU
+  * Fix filepermission of /etc/siproxd_passwd.cfg (closes: #271715)
+    urgency high, as we have world readable passwords.
+  * added dependency on ${misc:Depends} to get debconf
+  * added german translation of debconf message.
+
+ -- Martin Zobel-Helas <mhelas at helas.net>  Thu, 23 Sep 2004 11:54:11 +0200
+
+siproxd (0.57.snap040720-1) unstable; urgency=low
+
+  * New Upstream Release
+  * Added missing build dependency on automake1.7 and autotools-dev
+  * Added another missing build-dep on autoconf 
+
+ -- Dan Weber <dan at mirrorlynx.com>  Mon, 19 Jul 2004 21:55:08 -0400
+
+siproxd (0.57.snap040710-3) unstable; urgency=low
+
+  * Added Uploaders section for VoIP team
+  * Changed Maintainer to VoIP team
+
+ -- Dan Weber <dan at mirrorlynx.com>  Sat, 17 Jul 2004 16:28:36 -0400
+
+siproxd (0.57.snap040710-2) unstable; urgency=low
+
+  * Fixed the pidfile functions again (upstream screwed up big time)
+  * Pidfile is now created outside chroot
+  * Logger only logs to daemon.log now 
+  * Upload sponsored by Norbert Tretkowski <nobse at debian.org>
+
+ -- Dan Weber <dan at mirrorlynx.com>  Sun, 11 Jul 2004 18:00:31 -0400
+
+siproxd (0.57.snap040710-1) unstable; urgency=low
+
+  * New upstream release
+  * Fixes chroot problems with handling dns and register
+    requests. (closes: #258195) 
+  * Opens logger on start before chroot. (closes: #258194) 
+  * New Package Description 
+  * Cleaned up README.Debian 
+
+ -- Dan Weber <dan at mirrorlynx.com>  Sun, 11 Jul 2004 00:25:47 -0400
+
+siproxd (0.57.snap040702-3) unstable; urgency=low
+
+  * Integrated upstream fixes which fixes a bug where it was overwriting
+    firewall data.
+  * Modification to initscript: stop now does nothing if there is no
+    pidfile.
+
+ -- Marco d'Itri <md at linux.it>  Tue,  6 Jul 2004 20:43:38 +0200
+
+siproxd (0.57.snap040702-2) unstable; urgency=low
+
+  * Quick rebuild to not pollute the archive with SIProxd instead of siproxd
+  * Cleaned chroot and now linked with libgcc_s
+  * Now loads siproxd_passwd.cfg on start, thanks Marco d'Itri who found this bug
+  * This release should upgrade cleanly if you had a broken release before
+
+ -- Dan Weber <dan at mirrorlynx.com>  Mon,  5 Jul 2004 19:45:48 -0400
+
+siproxd (0.57.snap040702-1) unstable; urgency=low
+
+  * New upstream release
+  * Fixed permissions on /etc/siproxd_passwd.cfg (closes: #257470)
+  * Added a function to create a pidfile, removed existing code
+  * Default install is to use a chroot jail
+  * New init script 
+  * Builds chroot on postinst run
+
+ -- Dan Weber <dan at mirrorlynx.com>  Mon,  5 Jul 2004 13:13:35 -0400
+
+siproxd (0.55.snap040427-1) unstable; urgency=low
+
+  * New upstream release from CVS (closes: #232971)
+  * Upload sponsored by Norbert Tretkowski <nobse at debian.org>
+
+ -- Dan Weber <dan at mirrorlynx.com>  Tue, 27 Apr 2004 13:45:59 -0400
+
+siproxd (0.53.snap040222-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Dan Weber <dan at mirrorlynx.com>  Sun, 22 Feb 2004 12:47:08 -0500
+
+siproxd (0.53.snap040216-1) unstable; urgency=low
+
+  * Fixed Versioning scheme 
+
+ -- Dan Weber <dan at mirrorlynx.com>  Fri, 20 Feb 2004 21:04:06 -0500
+
+siproxd (0.53+16Feb2004-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Dan Weber <dan at mirrorlynx.com>  Mon, 16 Feb 2004 14:10:46 -0500
+
+siproxd (0.53+15Feb2004-6) unstable; urgency=low
+
+  * Added spacing after Description in control file so apt-repos don't get
+    messed up 
+
+ -- Dan Weber <dan at mirrorlynx.com>  Mon, 16 Feb 2004 13:44:03 -0500
+
+siproxd (0.53+15Feb2004-5) unstable; urgency=low
+
+  * Fixed manpage number 
+
+ -- Dan Weber <dan at mirrorlynx.com>  Sun, 15 Feb 2004 23:02:37 -0500
+
+siproxd (0.53+15Feb2004-4) unstable; urgency=low
+
+  * Fixed permissions 
+
+ -- Dan Weber <dan at mirrorlynx.com>  Sun, 15 Feb 2004 21:10:12 -0500
+
+siproxd (0.53+15Feb2004-3) unstable; urgency=low
+
+  * More init scripts problems addressed 
+
+ -- Dan Weber <dan at mirrorlynx.com>  Sun, 15 Feb 2004 14:26:24 -0500
+
+siproxd (0.53+15Feb2004-2) unstable; urgency=low
+
+  * Fixed init scripts 
+
+ -- Dan Weber <dan at mirrorlynx.com>  Sun, 15 Feb 2004 14:02:29 -0500
+
+siproxd (0.53+15Feb2004-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Dan Weber <dan at mirrorlynx.com>  Sun, 15 Feb 2004 11:09:36 -0500
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..35d7ed9
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,22 @@
+Source: siproxd
+Section: net
+Priority: optional
+Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org> 
+Uploaders: Mark Purcell <msp at debian.org>, Kilian Krause <kilian at debian.org>, Mikael Magnusson <mikma at users.sourceforge.net>, Faidon Liambotis <paravoid at debian.org>
+Build-Depends: debhelper (>= 7.0.50~), libosip2-dev (>= 3.1.0), automake, autotools-dev, autoconf, docbook-utils, libltdl3-dev
+Standards-Version: 3.8.4
+Homepage: http://siproxd.sourceforge.net/
+Vcs-Svn: svn://svn.debian.org/pkg-voip/siproxd/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/siproxd/?op=log
+
+Package: siproxd
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser (>= 3.56) 
+Description: SIP proxy/redirect/registrar 
+ Siproxd is a proxy/masquerading daemon for the SIP (Session
+ Initiation Protocol) which is used in IP telephony.
+ It handles registrations of SIP clients on a private IP network
+ and performs rewriting of the SIP message bodies to make SIP
+ connections possible via a masquerading firewall.
+ It allows SIP clients (like kphone, linphone) to work behind
+ an IP masquerading firewall or router.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c80cfdb
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,36 @@
+This package was debianized by Dan Weber <dan at mirrorlynx.com> on
+Sun, 15 Feb 2004 11:09:36 -0500.
+
+It was downloaded from http://siproxd.sourceforge.net/
+
+Upstream Author: 
+
+    Thomas Ries <tries at users.sourceforge.net>
+
+Copyright: 
+
+    Copyright (C) 2002-2007  Thomas Ries <tries at gmx.net>
+    Copyright (C) 2005-2007 Hans Carlos Hofmann <labtop-carlos at hchs.de>
+
+License:
+
+    Siproxd is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+ 
+    You should have received a copy of the GNU General Public License
+    along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is licensed under the GPL, see above.
+	(C) 2004, Dan Weber <dan at mirrorlynx.com> and
+	(C) 2007, Debian pkg-voip-maintainers team.
diff --git a/debian/patches/debian-user-1.diff b/debian/patches/debian-user-1.diff
new file mode 100644
index 0000000..7159233
--- /dev/null
+++ b/debian/patches/debian-user-1.diff
@@ -0,0 +1,41 @@
+Index: siproxd-0.8.1/doc/siproxd.conf.example
+===================================================================
+--- siproxd-0.8.1.orig/doc/siproxd.conf.example	2011-06-21 06:25:27.000000000 +1000
++++ siproxd-0.8.1/doc/siproxd.conf.example	2012-02-04 09:51:30.000000000 +1100
+@@ -62,6 +62,7 @@
+ ######################################################################
+ # Shall we daemonize?
+ #
++# Disabling this will break the debian init script
+ daemonize = 1
+ 
+ ######################################################################
+@@ -78,8 +79,8 @@
+ # Secure Enviroment settings:
+ #   user:	uid/gid to switch to after startup
+ #   chrootjail:	path to chroot to (chroot jail)
+-user = nobody
+-#chrootjail = /var/lib/siproxd/
++user = siproxd 
++chrootjail = /var/lib/siproxd/
+ 
+ ######################################################################
+ # Memory settings
+@@ -113,7 +114,8 @@
+ #   This file holds the PID of the main thread of siproxd.
+ #   Note: If running in chroot jail, this path starts relative
+ #         to the jail.
+-pid_file = /var/run/siproxd/siproxd.pid
++# Let Debian init handle this
++#pid_file = /var/run/siproxd/siproxd.pid
+ 
+ ######################################################################
+ # global switch to control the RTP proxy behaviour
+@@ -122,6 +124,7 @@
+ #
+ # Note: IPCHAINS and IPTABLES(netfilter) support is no longer present!
+ #    
++# RECOMMENDED for users who are behind nats    
+ rtp_proxy_enable = 1
+ 
+ ######################################################################
diff --git a/debian/patches/non-empty-dependency_libs-in-la-file.diff b/debian/patches/non-empty-dependency_libs-in-la-file.diff
new file mode 100644
index 0000000..de13195
--- /dev/null
+++ b/debian/patches/non-empty-dependency_libs-in-la-file.diff
@@ -0,0 +1,30 @@
+Index: siproxd-0.8.1/doc/siproxd.conf.example
+===================================================================
+--- siproxd-0.8.1.orig/doc/siproxd.conf.example	2011-06-21 06:25:27.000000000 +1000
++++ siproxd-0.8.1/doc/siproxd.conf.example	2012-02-04 10:08:38.000000000 +1100
+@@ -326,14 +326,17 @@
+ plugindir=/usr/lib/siproxd/
+ #
+ # List of plugins to load. MUST use the .la file extension!
+-#load_plugin=plugin_demo.la
+-#load_plugin=plugin_shortdial.la
+-load_plugin=plugin_logcall.la
+-#load_plugin=plugin_defaulttarget.la
+-#load_plugin=plugin_fix_bogus_via.la
+-#load_plugin=plugin_stun.la
+-#load_plugin=plugin_prefix.la
+-#load_plugin=plugin_regex.la
++# Debian changes to use the .so extensions
++# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633224
++
++#load_plugin=plugin_demo.so
++#load_plugin=plugin_shortdial.so
++load_plugin=plugin_logcall.so
++#load_plugin=plugin_defaulttarget.so
++#load_plugin=plugin_fix_bogus_via.so
++#load_plugin=plugin_stun.so
++#load_plugin=plugin_prefix.so
++#load_plugin=plugin_regex.so
+ 
+ 
+ ######################################################################
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a8466c2
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+non-empty-dependency_libs-in-la-file.diff
+siproxd-libtool-2.4.patch
+debian-user-1.diff
diff --git a/debian/patches/siproxd-libtool-2.4.patch b/debian/patches/siproxd-libtool-2.4.patch
new file mode 100644
index 0000000..2001534
--- /dev/null
+++ b/debian/patches/siproxd-libtool-2.4.patch
@@ -0,0 +1,15 @@
+Index: siproxd-0.8.1/src/plugins.h
+===================================================================
+--- siproxd-0.8.1.orig/src/plugins.h	2011-05-29 01:47:15.000000000 +1000
++++ siproxd-0.8.1/src/plugins.h	2012-01-24 18:18:25.000000000 +1100
+@@ -28,6 +28,10 @@
+    #include <ltdl.h>
+ #endif
+ 
++#ifndef lt__PROGRAM__LTX_preloaded_symbols
++#define lt__PROGRAM__LTX_preloaded_symbols lt_libltdl_LTX_preloaded_symbols
++extern const void *lt_preloaded_symbols[];
++#endif
+ 
+ /* Plugins must return STS_SUCCESS / SUCCESS_FAILURE */
+ 
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ec04133
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- --disable-ltdl-convenience
+
+override_dh_auto_install:
+	dh_auto_install 
+	mv debian/siproxd/etc/siproxd.conf.example debian/siproxd/etc/siproxd.conf
+	rm -f debian/siproxd/etc/siproxd_passwd.cfg
+	rm -f debian/siproxd//usr/lib/siproxd/plugin*.la
diff --git a/debian/siproxd.8 b/debian/siproxd.8
new file mode 100644
index 0000000..daeca21
--- /dev/null
+++ b/debian/siproxd.8
@@ -0,0 +1,45 @@
+.TH "siproxd" "8" "2004-02-15" "MirrorLynx" "Debian Distribution"
+
+.PP 
+.SH "NAME"
+siproxd \- SIP Registrar/Proxy/Redirect Server
+.PP 
+.SH "SYNOPSIS"
+
+.PP 
+siproxd [OPTIONS]
+.PP 
+.SH "OPTIONS"
+.IP "-h, --help"
+Help Display
+.IP "-d, --debug <pattern>"
+Debugging
+.IP "-c, --config <configuration file>"
+Use specified Config file
+.IP "-p, --pid-file <pidfile>"
+Create specified pidfile (overwrites if exists)
+.SH "DESCRIPTION"
+This program is generally used to handle SIP telephony\&.  It works well behind for clients behind a nat and can proxy for them\&.  It can also be used as a sip registrar for internet telephony\&.
+.PP 
+.SH "FILES"
+
+.IP 
+.IP "\fB/etc/siproxd\&.conf\fP"
+General Configuration File
+.IP "\fB/etc/siproxd_passwd\&.cfg\fP"
+Password file
+.IP "\fBsiproxd\fP"
+Sip Server
+.IP 
+.SH "SEE ALSO"
+
+.PP 
+To \fBENABLE\fP siproxd change the 0 to a 1 in /etc/default/siproxd\&.
+\fBkphone(1)\fP, \fBlinphone(1)\fP
+.PP 
+.SH "BUGS"
+Contact Thomas Ries <tries at users\&.sourceforge\&.net> or Dan Weber <dan at mirrorlynx\&.com>, for any bugs with this program\&.
+.PP 
+.SH "AUTHOR"
+This manpage was written by Dan Weber <dan at mirrorlynx\&.com>, 2004
+.PP 
diff --git a/debian/siproxd.README.Debian b/debian/siproxd.README.Debian
new file mode 100644
index 0000000..d82ea79
--- /dev/null
+++ b/debian/siproxd.README.Debian
@@ -0,0 +1,15 @@
+
+[siproxd]
+
+Provided you are having issues with upgrading from previous versions
+of this package, some information is provided on handling this.  
+
+For all previous versions, please use the new configuration files
+which dpkg has asked to upgrade.  If you declined to switch to
+maintainer version, dpkg will provide them in respective
+$file.dpkg-new. 
+
+The upgrade should only affect your siproxd.conf.
+
+
+ -- Dan Weber <dan at mirrorlynx.com>, Sun Jul 11 00:18:53 2004
diff --git a/debian/siproxd.default b/debian/siproxd.default
new file mode 100644
index 0000000..2934744
--- /dev/null
+++ b/debian/siproxd.default
@@ -0,0 +1,5 @@
+
+# Enabled boolean 1 or 0
+
+ENABLED=0
+
diff --git a/debian/siproxd.doc-base b/debian/siproxd.doc-base
new file mode 100644
index 0000000..6bddf1f
--- /dev/null
+++ b/debian/siproxd.doc-base
@@ -0,0 +1,13 @@
+Document: siproxd
+Title: siproxd Users Guide
+Author: Thomas Ries
+Abstract: Siproxd is an proxy/masquerading daemon for the SIP protocol.
+ It handles registrations of SIP clients on a private IP network and
+ performs rewriting of the SIP message bodies to make SIP connections
+ possible via an masquerading firewall. It allows SIP clients (like
+ kphone, linphone) to work behind an IP masquerading firewall or router.
+Section: Network/Communication
+
+Format: HTML
+Index: /usr/share/doc/siproxd/index.html
+Files: /usr/share/doc/siproxd/*.html
diff --git a/debian/siproxd.docs b/debian/siproxd.docs
new file mode 100644
index 0000000..80bd795
--- /dev/null
+++ b/debian/siproxd.docs
@@ -0,0 +1,4 @@
+doc/FAQ
+doc/FLI4L_HOWTO.txt
+doc/KNOWN_BUGS
+doc/RFC3261_compliance.txt
diff --git a/debian/siproxd.examples b/debian/siproxd.examples
new file mode 100644
index 0000000..15e6a48
--- /dev/null
+++ b/debian/siproxd.examples
@@ -0,0 +1,3 @@
+doc/siproxd_passwd.cfg
+doc/*example
+doc/sample*
diff --git a/debian/siproxd.init b/debian/siproxd.init
new file mode 100644
index 0000000..a833c22
--- /dev/null
+++ b/debian/siproxd.init
@@ -0,0 +1,88 @@
+#! /bin/sh
+
+# Modified for use with Siproxd by Dan Weber <dan at mirrorlynx.com>
+# Author:	Miquel van Smoorenburg <miquels at cistron.nl>.
+#		Ian Murdock <imurdock at gnu.ai.mit.edu>.
+#
+#		You may remove the "Author" lines above and replace them
+#		with your own name if you copy and modify this script.
+#
+# Version:	@(#)skeleton  1.9.4  21-Mar-2004  miquels at cistron.nl
+#
+
+### BEGIN INIT INFO
+# Provides:          siproxd
+# 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 Proxy Daemon
+# Description:       Proxy for SIP channels of VoIP clients
+### END INIT INFO
+
+set -e
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+NAME=siproxd
+DAEMON=/usr/sbin/$NAME
+DESC="SIP proxy"
+ENABLED=0
+PIDFILE=/var/run/$NAME/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Gracefully exit if the package has been removed.
+test -x $DAEMON || exit 0
+
+# Make sure /var/run/$NAME exists
+test -d /var/run/$NAME || install -d -o siproxd -g siproxd /var/run/$NAME
+
+# Read config file if it is present.
+if [ -r /etc/default/$NAME ]
+then
+	. /etc/default/$NAME
+fi
+
+if [ "$ENABLED" = "0" ]
+then
+    echo "To enable siproxd, the sip proxy, modify /etc/default/siproxd"
+    exit 0
+fi
+
+start()
+{
+    echo -n "Starting $DESC: $NAME"
+    start-stop-daemon --start --quiet --pidfile $PIDFILE \
+	 --exec $DAEMON -- -p $PIDFILE
+    echo "."
+}
+
+stop()
+{
+	echo -n "Stopping $DESC: $NAME"
+	if test -e $PIDFILE; then
+	    start-stop-daemon --stop --quiet --pidfile $PIDFILE
+	fi
+	echo "."
+	rm -f $PIDFILE
+}    
+
+case "$1" in
+  start)
+	start
+	;;
+  stop)
+	stop
+	;;
+  restart|force-reload)
+	stop
+	start
+	;;
+  *)
+	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
diff --git a/debian/siproxd.manpages b/debian/siproxd.manpages
new file mode 100644
index 0000000..0958ed5
--- /dev/null
+++ b/debian/siproxd.manpages
@@ -0,0 +1 @@
+debian/siproxd.8
diff --git a/debian/siproxd.postinst b/debian/siproxd.postinst
new file mode 100644
index 0000000..b3ef754
--- /dev/null
+++ b/debian/siproxd.postinst
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+  configure)
+
+        if ! getent passwd siproxd > /dev/null ; then
+	    echo 'Adding system-user for siproxd' 1>&2
+	    adduser --system --group --home /var/run/siproxd --no-create-home \
+		--disabled-login --force-badname siproxd > /dev/null
+        fi
+
+	if dpkg --compare-versions "$2" le "0.57.snap040720-2"; then
+	    [ -e /etc/siproxd.conf -a -e /etc/siproxd_passwd.cfg ] && chown root:siproxd /etc/siproxd.conf /etc/siproxd_passwd.cfg
+	    [ -e /etc/siproxd_passwd.cfg ] && chmod 600 /etc/siproxd_passwd.cfg 
+	fi
+	;;
+	
+esac
+
+# Create directories for log etc
+# install also fixes permissions.
+# Bad naming f0llowing the exim4 example ;)
+install -d -o siproxd -g siproxd /var/lib/siproxd/var/lib/siproxd
+chown -R siproxd:siproxd /var/lib/siproxd
+mkdir -p /var/run/siproxd
+chown siproxd:siproxd /var/run/siproxd
+
+#DEBHELPER#
diff --git a/debian/siproxd.postrm b/debian/siproxd.postrm
new file mode 100644
index 0000000..0bb152b
--- /dev/null
+++ b/debian/siproxd.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+rm -rf /var/lib/siproxd
+
+#DEBHELPER#
diff --git a/debian/siproxd.preinst b/debian/siproxd.preinst
new file mode 100644
index 0000000..803831b
--- /dev/null
+++ b/debian/siproxd.preinst
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = upgrade -a "$2" = "0.57.snap040702-1" ]; then
+	if getent passwd SIProxd > /dev/null ; then
+	    echo "It's recommended you remove the user SIProxd."
+	    echo "This is now deprecated and can not be automated on removal of this package"
+#	    deluser SIProxd
+	    perl -pi -e 's/SIProxd/siproxd/g' /etc/siproxd.conf
+	fi
+fi
+
+rm -rf /var/lib/siproxd /var/run/siproxd
+
+#DEBHELPER#
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9512338
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+
+http://sf.net/siproxd/siproxd-(.*)\.tar\.gz debian svn-upgrade
+
+

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



More information about the Pkg-voip-commits mailing list