[Pkg-voip-commits] r6513 - /avantfax/ /avantfax/trunk/ /avantfax/trunk/debian/ /avantfax/trunk/debian/patches/ /pcapsipdump/ /pcapsipdump/trunk/ /pcapsipdump/trunk/debian/

jesusch-guest at alioth.debian.org jesusch-guest at alioth.debian.org
Mon Dec 1 12:28:14 UTC 2008


Author: jesusch-guest
Date: Mon Dec  1 12:28:14 2008
New Revision: 6513

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=6513
Log:
Added pcapsipdump
Added avantfax


Added:
    avantfax/
    avantfax/trunk/
    avantfax/trunk/debian/   (with props)
    avantfax/trunk/debian/README.Debian
    avantfax/trunk/debian/changelog
    avantfax/trunk/debian/compat
    avantfax/trunk/debian/config
    avantfax/trunk/debian/control
    avantfax/trunk/debian/copyright
    avantfax/trunk/debian/dirs
    avantfax/trunk/debian/docs
    avantfax/trunk/debian/install
    avantfax/trunk/debian/install.excludes
    avantfax/trunk/debian/links
    avantfax/trunk/debian/patches/
    avantfax/trunk/debian/patches/01_etc_config.diff
    avantfax/trunk/debian/postinst
    avantfax/trunk/debian/postrm
    avantfax/trunk/debian/prerm
    avantfax/trunk/debian/rules   (with props)
    avantfax/trunk/debian/watch
    pcapsipdump/
    pcapsipdump/trunk/
    pcapsipdump/trunk/debian/   (with props)
    pcapsipdump/trunk/debian/changelog
    pcapsipdump/trunk/debian/compat
    pcapsipdump/trunk/debian/control
    pcapsipdump/trunk/debian/copyright
    pcapsipdump/trunk/debian/dirs
    pcapsipdump/trunk/debian/install
    pcapsipdump/trunk/debian/pcapsipdump.default
    pcapsipdump/trunk/debian/pcapsipdump.init
    pcapsipdump/trunk/debian/rules   (with props)
    pcapsipdump/trunk/debian/watch

Propchange: avantfax/trunk/debian/
------------------------------------------------------------------------------
    mergeWithUpstream = 1

Added: avantfax/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/README.Debian?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/README.Debian (added)
+++ avantfax/trunk/debian/README.Debian Mon Dec  1 12:28:14 2008
@@ -1,0 +1,6 @@
+avantfax for Debian
+-------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- jesusch <bjoern at boschman.de>  Thu, 06 Nov 2008 11:08:17 +0100

Added: avantfax/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/changelog?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/changelog (added)
+++ avantfax/trunk/debian/changelog Mon Dec  1 12:28:14 2008
@@ -1,0 +1,6 @@
+avantfax (3.1.5-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Bjoern Boschman <bjoern at boschman.de>  Thu, 06 Nov 2008 11:08:17 +0100
+

Added: avantfax/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/compat?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/compat (added)
+++ avantfax/trunk/debian/compat Mon Dec  1 12:28:14 2008
@@ -1,0 +1,1 @@
+5

Added: avantfax/trunk/debian/config
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/config?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/config (added)
+++ avantfax/trunk/debian/config Mon Dec  1 12:28:14 2008
@@ -1,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+dbc_dbname=avantfax
+dbc_dbuser=avantfax
+
+export dbc_dbname dbc_dbuser
+
+. /usr/share/debconf/confmodule
+
+if [ -f /usr/share/dbconfig-common/dpkg/config ]; then
+        dbc_dbtypes="mysql"
+        dbc_authmethod_user="password"
+        . /usr/share/dbconfig-common/dpkg/config
+        dbc_go avantfax $@
+fi

Added: avantfax/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/control?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/control (added)
+++ avantfax/trunk/debian/control Mon Dec  1 12:28:14 2008
@@ -1,0 +1,17 @@
+Source: avantfax
+Section: web
+Priority: extra
+Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
+Uploaders: Bjoern Boschman <bjoern at boschman.de>
+Build-Depends: cdbs, debhelper (>= 5)
+Standards-Version: 3.8.0
+Homepage: http://www.avantfax.com/
+Vcs-Svn: svn://svn.debian.org/pkg-voip/avantfax/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/avantfax/?op=log
+
+Package: avantfax
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, dbconfig-common, php5, php5-mysql
+Description: AvantFAX is a web application for managing faxes on HylaFAX fax servers.
+ AvantFAX allows users on any platform to view and send faxes without having to install special software. 
+ It also allows administrators to manage users, their permissions, fax lines, fax categories, etc.

Added: avantfax/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/copyright?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/copyright (added)
+++ avantfax/trunk/debian/copyright Mon Dec  1 12:28:14 2008
@@ -1,0 +1,24 @@
+This package was debianized by jesusch <bjoern at boschman.de> on
+Thu, 06 Nov 2008 11:08:17 +0100.
+
+It was downloaded from <url://example.com>
+
+Upstream Author(s): 
+
+    <put author's name and email here>
+    <likewise for another author>
+
+Copyright: 
+
+    <Copyright (C) YYYY Name OfAuthor>
+    <likewise for another author>
+
+License:
+
+    <Put the license of the package here indented by 4 spaces>
+
+The Debian packaging is (C) 2008, jesusch <bjoern at boschman.de> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.

Added: avantfax/trunk/debian/dirs
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/dirs?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/dirs (added)
+++ avantfax/trunk/debian/dirs Mon Dec  1 12:28:14 2008
@@ -1,0 +1,2 @@
+etc/avantfax
+usr/share/dbconfig-common/data/avantfax/install

Added: avantfax/trunk/debian/docs
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/docs?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/docs (added)
+++ avantfax/trunk/debian/docs Mon Dec  1 12:28:14 2008
@@ -1,0 +1,11 @@
+CHANGELOG.txt
+CONTRIBUTORS.txt
+COPYING.txt
+debian-prefs.txt
+email2fax.txt
+INSTALL.txt
+README.txt
+README.txt
+rh-prefs.txt
+sles-prefs.txt
+upgrading-from-2.x.txt

Added: avantfax/trunk/debian/install
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/install?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/install (added)
+++ avantfax/trunk/debian/install Mon Dec  1 12:28:14 2008
@@ -1,0 +1,2 @@
+#create_tables.sql usr/share/dbconfig-common/data/avantfax/install/mysql
+avantfax/ usr/share/

Added: avantfax/trunk/debian/install.excludes
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/install.excludes?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/install.excludes (added)
+++ avantfax/trunk/debian/install.excludes Mon Dec  1 12:28:14 2008
@@ -1,0 +1,2 @@
+avantfax/includes/templates/admin_theme/templates_c*
+avantfax/includes/templates/main_theme/templates_c*

Added: avantfax/trunk/debian/links
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/links?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/links (added)
+++ avantfax/trunk/debian/links Mon Dec  1 12:28:14 2008
@@ -1,0 +1,1 @@
+usr/share/avantfax var/www/avantfax

Added: avantfax/trunk/debian/patches/01_etc_config.diff
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/patches/01_etc_config.diff?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/patches/01_etc_config.diff (added)
+++ avantfax/trunk/debian/patches/01_etc_config.diff Mon Dec  1 12:28:14 2008
@@ -1,0 +1,33 @@
+diff -Nru avantfax-3.1.5.orig/avantfax/includes/config.php avantfax-3.1.5/avantfax/includes/config.php
+--- avantfax-3.1.5.orig/avantfax/includes/config.php	2008-11-04 14:21:05.000000000 +0100
++++ avantfax-3.1.5/avantfax/includes/config.php	2008-12-01 13:23:54.000000000 +0100
+@@ -20,6 +20,8 @@
+ 	$AVANTFAX_VERSION	= '3.1.5';
+ 	
+ 	$INSTALLDIR	= realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR);
++
++	require ('/etc/avantfax/debian-db.php');
+ 	
+ 	define('USERSESSION',		'user');
+ 	define('ADMIN_THEME_PATH',	'admin_theme');
+@@ -41,16 +43,16 @@
+ 		$EMAIL_TPL = 'en';					// default system language
+ 	
+ 	if (!defined('AFDB_USER'))
+-		define('AFDB_USER',	'avantfax');	// username
++		define('AFDB_USER',	$dbuser);	// username
+ 	
+ 	if (!defined('AFDB_PASS'))
+-		define('AFDB_PASS',	'd58fe49');		// password
++		define('AFDB_PASS',	$dbpass);		// password
+ 	
+ 	if (!defined('AFDB_NAME'))
+-		define('AFDB_NAME',	'avantfax');	// database name
++		define('AFDB_NAME',	$dbname);	// database name
+ 	
+ 	if (!defined('AFDB_ENGINE'))
+-		define('AFDB_ENGINE',	'mysql');		// database engine
++		define('AFDB_ENGINE',	$dbtype);		// database engine
+ 
+ 	if (!defined('AFDB_HOST'))
+ 		define('AFDB_HOST',	'localhost');	// database server

Added: avantfax/trunk/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/postinst?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/postinst (added)
+++ avantfax/trunk/debian/postinst Mon Dec  1 12:28:14 2008
@@ -1,0 +1,14 @@
+#! /bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+. /usr/share/dbconfig-common/dpkg/postinst
+dbc_generate_include=php:/etc/avantfax/debian-db.php
+dbc_generate_include_owner="root:www-data"
+dbc_generate_include_perms="0640"
+dbc_go avantfax $@
+
+#DEBHELPER#
+
+exit 0

Added: avantfax/trunk/debian/postrm
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/postrm?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/postrm (added)
+++ avantfax/trunk/debian/postrm Mon Dec  1 12:28:14 2008
@@ -1,0 +1,27 @@
+#! /bin/sh
+
+set -e
+
+if [ -f /usr/share/debconf/confmodule ]; then
+        . /usr/share/debconf/confmodule
+fi
+if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
+        . /usr/share/dbconfig-common/dpkg/postrm
+        dbc_go avantfax $@
+fi
+
+case "$1" in
+        purge)
+                rm -f /etc/avantfax/debian-db.php
+                ucf --purge /etc/avantfax/debian-db.php
+        ;;
+        remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+        ;;
+        *)
+                echo "postrm called with unknown argument \`$1'" >&2
+                exit 1
+esac
+
+#DEBHELPER#
+
+exit 0

Added: avantfax/trunk/debian/prerm
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/prerm?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/prerm (added)
+++ avantfax/trunk/debian/prerm Mon Dec  1 12:28:14 2008
@@ -1,0 +1,11 @@
+#! /bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+. /usr/share/dbconfig-common/dpkg/prerm
+dbc_go avantfax $@
+
+#DEBHELPER#
+
+exit 0

Added: avantfax/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/rules?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/rules (added)
+++ avantfax/trunk/debian/rules Mon Dec  1 12:28:14 2008
@@ -1,0 +1,25 @@
+#!/usr/bin/make -f
+  
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+UPFILENAME := avantfax_$(UPVERSION).orig.tar.gz
+URL := http://downloads.digium.com/pub/asterisk/releases/asterisk-$(UPVERSION).tar.gz
+
+
+# Add here any variable or target overrides you need.
+
+install/avantfax::
+	cp create_tables.sql debian/avantfax/usr/share/dbconfig-common/data/avantfax/install/mysql
+
+binary-post-install/avantfax::
+	rm -r debian/avantfax/usr/share/avantfax/includes/templates/admin_theme/templates_c debian/avantfax/usr/share/avantfax/includes/templates/main_theme/templates_c
+	ln -s /var/cache/avantfax/templates_c debian/avantfax/usr/share/avantfax/includes/templates/admin_theme/templates_c
+	ln -s /var/cache/avantfax/templates_c debian/avantfax/usr/share/avantfax/includes/templates/main_theme/templates_c
+	mkdir -p debian/avantfax/var/cache/avantfax/templates_c
+	chown www-data:www-data debian/avantfax/var/cache/avantfax/templates_c
+
+get-orig-source:
+	@@dh_testdir
+	@@[ -L ../tarballs ]||ln -s ../tarballs ../tarballs
+	@@uscan --force-download --destdir ../tarballs

Propchange: avantfax/trunk/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: avantfax/trunk/debian/watch
URL: http://svn.debian.org/wsvn/pkg-voip/avantfax/trunk/debian/watch?rev=6513&op=file
==============================================================================
--- avantfax/trunk/debian/watch (added)
+++ avantfax/trunk/debian/watch Mon Dec  1 12:28:14 2008
@@ -1,0 +1,2 @@
+version=3
+http://sf.net/avantfax/avantfax-(.*)\.tgz

Propchange: pcapsipdump/trunk/debian/
------------------------------------------------------------------------------
    mergeWithUpstream = 1

Added: pcapsipdump/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/pcapsipdump/trunk/debian/changelog?rev=6513&op=file
==============================================================================
--- pcapsipdump/trunk/debian/changelog (added)
+++ pcapsipdump/trunk/debian/changelog Mon Dec  1 12:28:14 2008
@@ -1,0 +1,6 @@
+pcapsipdump (0.1.4-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Bjoern Boschman <bjoern at boschman.de>  Tue, 30 Sep 2008 14:17:57 +0200
+

Added: pcapsipdump/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-voip/pcapsipdump/trunk/debian/compat?rev=6513&op=file
==============================================================================
--- pcapsipdump/trunk/debian/compat (added)
+++ pcapsipdump/trunk/debian/compat Mon Dec  1 12:28:14 2008
@@ -1,0 +1,1 @@
+5

Added: pcapsipdump/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-voip/pcapsipdump/trunk/debian/control?rev=6513&op=file
==============================================================================
--- pcapsipdump/trunk/debian/control (added)
+++ pcapsipdump/trunk/debian/control Mon Dec  1 12:28:14 2008
@@ -1,0 +1,15 @@
+Source: pcapsipdump
+Section: unknown
+Priority: extra
+Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
+Uploaders: Bjoern Boschman <bjoern at boschman.de>
+Build-Depends: cdbs, cdbs, debhelper (>= 5), libpcap0.8-dev
+Standards-Version: 3.8.0
+
+Package: pcapsipdump
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libpcap0.8
+Description: pcapsipdump is a tool for dumping SIP sessions
+ pcapsipdump is a tool for dumping SIP sessions (+RTP traffic, if available) to disk 
+ in a fashion similar to "tcpdump -w" (format is exactly the same), 
+ but one file per sip session (even if there is thousands of concurrect SIP sessions).

Added: pcapsipdump/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-voip/pcapsipdump/trunk/debian/copyright?rev=6513&op=file
==============================================================================
--- pcapsipdump/trunk/debian/copyright (added)
+++ pcapsipdump/trunk/debian/copyright Mon Dec  1 12:28:14 2008
@@ -1,0 +1,28 @@
+This package was debianized by Bjoern Boschman <bjoern at boschman.de> on
+Tue, 30 Sep 2008 14:17:57 +0200.
+
+It was downloaded from http://sourceforge.net/projects/psipdump/
+
+Upstream Author: Andrew Silent <nording at users.sourceforge.net>
+
+Copyright: 2006 - 2007 Andrew Silent
+
+License:
+
+    This package 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; version 2 dated June, 1991.
+
+    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.
+
+
+The Debian packaging is (C) 2008, Bjoern Boschman <bjoern at boschman.de> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.

Added: pcapsipdump/trunk/debian/dirs
URL: http://svn.debian.org/wsvn/pkg-voip/pcapsipdump/trunk/debian/dirs?rev=6513&op=file
==============================================================================
--- pcapsipdump/trunk/debian/dirs (added)
+++ pcapsipdump/trunk/debian/dirs Mon Dec  1 12:28:14 2008
@@ -1,0 +1,1 @@
+var/spool/pcapsipdump

Added: pcapsipdump/trunk/debian/install
URL: http://svn.debian.org/wsvn/pkg-voip/pcapsipdump/trunk/debian/install?rev=6513&op=file
==============================================================================
--- pcapsipdump/trunk/debian/install (added)
+++ pcapsipdump/trunk/debian/install Mon Dec  1 12:28:14 2008
@@ -1,0 +1,1 @@
+pcapsipdump /usr/sbin/

Added: pcapsipdump/trunk/debian/pcapsipdump.default
URL: http://svn.debian.org/wsvn/pkg-voip/pcapsipdump/trunk/debian/pcapsipdump.default?rev=6513&op=file
==============================================================================
--- pcapsipdump/trunk/debian/pcapsipdump.default (added)
+++ pcapsipdump/trunk/debian/pcapsipdump.default Mon Dec  1 12:28:14 2008
@@ -1,0 +1,15 @@
+# Config file for pcapsipdump
+
+# start pcapsidump in daemon mode from init.d script?
+#  only allowed values are "true" or "false"
+#  Anything else will be handled as "false"
+PCAPSIDUMP_ENABLE=false
+
+# The Ethernet NIC that we want to listen to
+DEVICE=eth0
+
+# Place to write captired files
+SPOOLDIR=/var/spool/pcapsipdump
+
+# The number of days to retain data files for
+RETENTION=4

Added: pcapsipdump/trunk/debian/pcapsipdump.init
URL: http://svn.debian.org/wsvn/pkg-voip/pcapsipdump/trunk/debian/pcapsipdump.init?rev=6513&op=file
==============================================================================
--- pcapsipdump/trunk/debian/pcapsipdump.init (added)
+++ pcapsipdump/trunk/debian/pcapsipdump.init Mon Dec  1 12:28:14 2008
@@ -1,0 +1,155 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          skeleton
+# Required-Start:    $local_fs $remote_fs
+# Required-Stop:     $local_fs $remote_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Example initscript
+# Description:       This file should be used to construct scripts to be
+#                    placed in /etc/init.d.
+### END INIT INFO
+
+# Author: Bjoern Boschman <bjoern at boschman.de>
+#
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="Description of the service"
+NAME=pcapsipdump
+DAEMON=/usr/sbin/$NAME
+DAEMON_ARGS=""
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Check from feaults file
+[ -d "$SPOOLDIR" ] || exit 1
+[ "$PCAPSIDUMP_ENABLE" = "true" ] || exit 0
+
+DAEMON_ARGS="-i $DEVICE -d $SPOOLDIR"
+
+
+# Load the VERBOSE setting and other rcS variables
+. /lib/init/vars.sh
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+	# Return
+	#   0 if daemon has been started
+	#   1 if daemon was already running
+	#   2 if daemon could not be started
+	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+		|| return 1
+	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+		$DAEMON_ARGS \
+		|| return 2
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+	# Return
+	#   0 if daemon has been stopped
+	#   1 if daemon was already stopped
+	#   2 if daemon could not be stopped
+	#   other if a failure occurred
+	start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+	RETVAL="$?"
+	[ "$RETVAL" = 2 ] && return 2
+	# Wait for children to finish too if this is a daemon that forks
+	# and if the daemon is only ever run from this initscript.
+	# If the above conditions are not satisfied then add some other code
+	# that waits for the process to drop all resources that could be
+	# needed by services started subsequently.  A last resort is to
+	# sleep for some time.
+	start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+	[ "$?" = 2 ] && return 2
+	# Many daemons don't delete their pidfiles when they exit.
+	rm -f $PIDFILE
+	return "$RETVAL"
+}
+
+#
+# Function that sends a SIGHUP to the daemon/service
+#
+do_reload() {
+	#
+	# If the daemon can reload its configuration without
+	# restarting (for example, when it is sent a SIGHUP),
+	# then implement that here.
+	#
+	start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+	return 0
+}
+
+case "$1" in
+  start)
+	[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+	do_start
+	case "$?" in
+		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+	esac
+	;;
+  stop)
+	[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+	do_stop
+	case "$?" in
+		0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+	esac
+	;;
+  #reload|force-reload)
+	#
+	# If do_reload() is not implemented then leave this commented out
+	# and leave 'force-reload' as an alias for 'restart'.
+	#
+	#log_daemon_msg "Reloading $DESC" "$NAME"
+	#do_reload
+	#log_end_msg $?
+	#;;
+  restart|force-reload)
+	#
+	# If the "reload" option is implemented then remove the
+	# 'force-reload' alias
+	#
+	log_daemon_msg "Restarting $DESC" "$NAME"
+	do_stop
+	case "$?" in
+	  0|1)
+		do_start
+		case "$?" in
+			0) log_end_msg 0 ;;
+			1) log_end_msg 1 ;; # Old process is still running
+			*) log_end_msg 1 ;; # Failed to start
+		esac
+		;;
+	  *)
+	  	# Failed to stop
+		log_end_msg 1
+		;;
+	esac
+	;;
+  *)
+	#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+	exit 3
+	;;
+esac
+
+:

Added: pcapsipdump/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/pcapsipdump/trunk/debian/rules?rev=6513&op=file
==============================================================================
--- pcapsipdump/trunk/debian/rules (added)
+++ pcapsipdump/trunk/debian/rules Mon Dec  1 12:28:14 2008
@@ -1,0 +1,11 @@
+#!/usr/bin/make -f
+  
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/makefile.mk
+
+# Add here any variable or target overrides you need.
+
+get-orig-source:
+	@@dh_testdir
+	@@[ -L ../tarballs ]||ln -s ../tarballs ../tarballs
+	@@uscan --force-download --destdir ../tarballs

Propchange: pcapsipdump/trunk/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: pcapsipdump/trunk/debian/watch
URL: http://svn.debian.org/wsvn/pkg-voip/pcapsipdump/trunk/debian/watch?rev=6513&op=file
==============================================================================
--- pcapsipdump/trunk/debian/watch (added)
+++ pcapsipdump/trunk/debian/watch Mon Dec  1 12:28:14 2008
@@ -1,0 +1,2 @@
+version=3
+http://sf.net/psipdump/pcapsipdump-([0-9]+)\.([0-9]+)\.([0-9]+)\.tar\.gz




More information about the Pkg-voip-commits mailing list