--- destar-0.2.2.orig/debian/control
+++ destar-0.2.2/debian/control
@@ -0,0 +1,27 @@
+Source: destar
+Section: comm
+Priority: optional
+Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
+Uploaders: Santiago Ruano Rincón <santiago@debian.org>, Alejandro Rios P. <alejandro.rios@avatar.com.co>, Mark Purcell <msp@debian.org>
+Build-Depends: debhelper (>= 5.0.37.2), dpatch, po-debconf
+Build-Depends-Indep: python
+Standards-Version: 3.7.2
+Homepage: http://destar.berlios.de/
+Vcs-Svn: svn://svn.debian.org/pkg-voip/destar/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/destar/?op=log
+
+Package: destar
+Architecture: all
+Depends: python, ${python:Depends}, python-quixote1,  python-medusa, asterisk (>= 1.2.13), python-pysqlite2, sqlite3, python-pychart, debconf
+Recommends: op-panel
+Conflicts: freepbx
+XB-Python-Version: ${python:Versions}
+Description: management interface for the Asterisk PBX
+ A web-based interface to manage the Asterisk PBX. It provides a high-level 
+ abstraction of the Asterisk configuration.
+ .
+ DeStar runs as an independent daemon and it supports multiple
+ users (of multiple access levels).
+ .
+ The design is very modular, and adding your own plug-ins requires just 
+ dropping a cfg_*.py file in the main scripts directory.
--- destar-0.2.2.orig/debian/changelog
+++ destar-0.2.2/debian/changelog
@@ -0,0 +1,269 @@
+destar (0.2.2-5.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix pending l10n issues. Debconf translations:
+    - Czech. Closes: #483303
+    - Russian. Closes: #497836
+    - Swedish. Closes: #500128
+    - Basque. Closes: #503071
+    - Italian. Closes: #503263
+
+ -- Christian Perrier <bubulle@debian.org>  Sun, 26 Oct 2008 08:47:45 +0100
+
+destar (0.2.2-5.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * python25.dpatch. Fix syntax error. (Closes: #501207).
+    + Thanks to John Wright for the patch.
+
+ -- Barry deFreese <bdefreese@debian.org>  Wed, 15 Oct 2008 14:53:24 -0400
+
+destar (0.2.2-5) unstable; urgency=medium
+
+  * The "Thanks to Centril and Les Trophées du Libre 2007" release.
+    http://www.tropheesdulibre.org/
+
+  [ Mark Purcell ]
+  * Added nl.po
+    - [INTL:nl] Dutch po-debconf translation (Closes: #449398)
+
+  [Alejandro Rios]
+  * Properly call update-alternatives remove on debian/prerm (Closes: #452550)
+
+  [Santiago Ruano Rincón]
+  * debian/destar.init: recreate /var/run/destar if missing and chown it to
+    asterisk (From Ubuntu's patch)
+  * debian/prerm: calling update-alternatives with --quiet option
+  * debian/copyright converted to UTF-8
+
+ -- Santiago Ruano Rincón <santiago@debian.org>  Sun, 09 Dec 2007 13:45:32 +0100
+
+destar (0.2.2-4) unstable; urgency=low
+
+  [ Santiago Ruano Rincón ]
+  * Fixed typo in Spanish debconf translation.
+
+  [ Kilian Krause ]
+  * Add Homepage field as added in dpkg-dev 1.14.6.
+
+ -- Kilian Krause <kilian@debian.org>  Sat, 22 Sep 2007 12:08:45 +0200
+
+destar (0.2.2-3) unstable; urgency=low
+
+  * Added debconf translations:
+    - German (Closes: #433237)
+    - French (Closes: #434190)
+    - Portuguese (Closes: #435506)
+    - Spanish (Closes: #440695)
+  * prerm: update-alternative only removes config if it exists
+
+ -- Santiago Ruano Rincón <santiago@debian.org>  Mon, 09 Jul 2007 12:02:48 -0500
+
+destar (0.2.2-2) unstable; urgency=low
+
+  * updated debian/watch
+  * Added destar default config file.
+  * debconf asks for the listening port.
+
+ -- Santiago Ruano Rincón <santiago@debian.org>  Mon, 09 Jul 2007 11:47:28 -0500
+
+destar (0.2.2-1) unstable; urgency=high
+
+  [ Santiago Ruano Rincón ]
+  * New upstream release
+
+  [Alejandro Rios P.]
+  * Added comprobation to patches/zaptel.dpatch (Closes: #410501)
+  * Create /etc/asterisk/manager.d directory if its not present.
+  * This version of destar depends on python-quixote1 instead of
+    python-quixote.
+  * Commented nasty debug messages shown when running 'destar -b'.
+  * Added descriptions to dpatch patches.
+
+ -- Alejandro Rios P. <alejandro.rios@avatar.com.co>  Mon, 12 Feb 2007 14:44:34 -0500
+
+destar (0.2.0-3) unstable; urgency=high
+
+  [Santiago Ruano Rincón]
+  * Fixed typo and driver comment on README.Debian
+
+  [Alejandro Rios P.]
+  * Added update-alternatives stuff for op-panel.
+  * Tested and fixed op-panel integration with help from Julien Blache (Closes: #393725).
+  * Check for permisions on /etc/zaptel.conf file before writing it, and ommit
+    it if it can't be written, incluiding a user warning (Closes: #398467).
+  * Improved README.Debian
+  * Use /etc/asterisk/manager.d/destar.conf instead of
+    /etc/asterisk/manager.conf
+  * Added a Virtual PBX to default configuration user.
+
+ -- Alejandro Rios P. <alejandro.rios@avatar.com.co>  Tue, 14 Nov 2006 00:58:55 -0500
+
+destar (0.2.0-2) unstable; urgency=low
+
+  * Updated dependencies on asterisk package with cdr_sqlite3_custom module
+
+ -- Alejandro Rios P. <alejandro.rios@avatar.com.co>  Wed, 27 Sep 2006 21:31:41 +0000
+
+destar (0.2.0-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Alejandro Rios P. <alejandro.rios@avatar.com.co>  Wed, 27 Sep 2006 16:05:37 -0500
+
+destar (0.2beta+rev481-2) unstable; urgency=low
+
+  * Modified init.d script according to 
+    http://wiki.debian.org/LSBInitScripts
+  * Fixed typo in README.Debian
+  * lintian is now happy
+
+ -- Santiago Ruano Rincón <santiago@debian.org>  Mon, 25 Sep 2006 00:23:14 -0500
+
+destar (0.2beta+rev481-1) unstable; urgency=low
+
+  * New svn reversion. Closes: #384630. Closes: #384632
+  * Removed all dpatches but no_medusa
+
+ -- Santiago Ruano Rincón <santiago@debian.org>  Fri, 11 Aug 2006 15:46:29 -0500
+
+destar (0.2beta-2) unstable; urgency=low
+
+  * Updated quixote1 dependency
+
+ -- Santiago Ruano Rincón <santiago@debian.org>  Thu, 10 Aug 2006 23:49:15 -0500
+
+destar (0.2beta-1) unstable; urgency=low
+
+  * New upstream release. (Closes: #374718)
+  * Added "Conflicts: freepbx" on control file.
+  * Done items 1, 2, 4 and 5 of http://wiki.debian.org/DebianPython/NewPolicy
+  * Renamed init.d to destar.init so dh_installinit can do the job.
+
+ -- Alejandro Rios P. <alejandro.rios@avatar.com.co>  Sun, 18 Jun 2006 11:36:48 -0500
+
+destar (0.1.1-4) unstable; urgency=low
+
+  * Changed maintainer's email address.
+  * Fixed watch file
+
+ -- Santiago Ruano Rincón <santiago@debian.org>  Sun, 30 Apr 2006 19:51:56 -0500
+
+destar (0.1.1-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/patches/30_add_port_option.dpatch: Made the port number
+    configurable. Closes: #353823.
+  * debian/init.d: Added --port=8080 to the default options. This doesn't
+    change the default port number, but nicely points out where the port
+    number is to be changed, if it needs to be changed.
+
+ -- Lars Wirzenius <liw@iki.fi>  Thu, 16 Mar 2006 22:35:00 +0200
+
+destar (0.1.1-3) unstable; urgency=low
+
+  * Asterisk removed from build-depends. 
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Fri,  3 Feb 2006 15:50:31 -0500
+
+destar (0.1.1-2) unstable; urgency=low
+
+  * missing dependancy on python-pychart (Closes: #350546)
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Wed,  1 Feb 2006 23:26:39 -0500
+
+destar (0.1.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Added watch file
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Tue, 24 Jan 2006 14:44:51 -0500
+
+destar (0.1.0-2) unstable; urgency=low
+
+  * Permission problem with destar_cfg.py (Closes: #346124)
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Tue, 17 Jan 2006 16:15:57 -0500
+
+destar (0.1.0-1) unstable; urgency=low
+
+  * The first upstream official release 
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Tue, 15 Nov 2005 23:12:53 -0500
+
+destar (0.1-pre1-1) unstable; urgency=low
+
+  * 0.1-pre1 Upstream release 
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Sat,  5 Nov 2005 22:48:26 -0500
+
+destar (0.0.218-1) unstable; urgency=low
+
+  * New svn revision 
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Sat, 29 Oct 2005 01:30:27 -0500
+
+destar (0.0.217-1) unstable; urgency=low
+
+  * New svn revision 
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Fri, 28 Oct 2005 20:29:19 -0500
+
+destar (0.0.216-1) unstable; urgency=low
+
+  * New svn revision 
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Fri, 28 Oct 2005 19:09:07 -0500
+
+destar (0.0.214-1) unstable; urgency=low
+
+  * New svn revision 
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Wed, 26 Oct 2005 00:05:02 -0500
+
+destar (0.0.199-1) unstable; urgency=low
+
+  * New svn revision 
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Mon, 26 Sep 2005 22:03:49 -0500
+
+destar (0.0.198-1) unstable; urgency=low
+
+  * New svn revision 
+  * Medusa removed, now used the debian package
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Sat, 24 Sep 2005 00:58:21 -0500
+
+destar (0.0.184-2) unstable; urgency=low
+
+  * Now deppends on quixote1 (Closes: #324089)
+  * destar recommends python-pysqlite which cannot be satisfied (Closes:
+    #325167)
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Tue, 20 Sep 2005 12:14:33 -0500
+
+destar (0.0.184-1) unstable; urgency=low
+
+  * New svn revision
+  * Closes: #323943: traceback on "Logger options" and other problems
+  * Closes: #323810: init script fails to restart when destar isn't
+    running
+  * Closes: #324110: init script too verbose
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Mon, 22 Aug 2005 23:56:24 -0500
+
+destar (0.0.169-1) unstable; urgency=low
+
+  * Added quixote as a dependency. Closes: #321908
+  * destar_cfg.py copied to /etc/asterisk. Closes: #321911
+  * Destar depends on asterisk, no only recommends it. Closes: #321742
+    invalid user
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Mon,  8 Aug 2005 14:32:22 -0500
+
+destar (0.0.167-1) unstable; urgency=low
+
+  * Initial debian release, based on the Tzafrir Cohen's package, 
+    Closes: #296707
+
+ -- Santiago Ruano Rincon <santiago@unicauca.edu.co>  Thu, 28 Jul 2005 22:56:26 -0500
--- destar-0.2.2.orig/debian/source.lintian-overrides
+++ destar-0.2.2/debian/source.lintian-overrides
@@ -0,0 +1 @@
+destar source: build-depends-without-arch-dep
--- destar-0.2.2.orig/debian/docs
+++ destar-0.2.2/debian/docs
@@ -0,0 +1,6 @@
+BACKEND.txt
+COPYRIGHT.txt
+FRONTEND.txt
+GPL-2.txt
+README.txt
+TODO.txt
--- destar-0.2.2.orig/debian/watch
+++ destar-0.2.2/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://destar.berlios.de/index.php?c=2 \
+ http://prdownload.berlios.de/destar/destar-(.*)\.tar\.gz debian svn-upgrade
--- destar-0.2.2.orig/debian/config
+++ destar-0.2.2/debian/config
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+. /usr/share/debconf/confmodule
+
+if [ -f /etc/default/destar ]
+then
+	for v in `grep -E "^(PORT)=" /etc/ssmtp/ssmtp.conf`
+	do
+		export $v
+	done
+
+	if [ -n "$PORT" ]
+	then
+		db_set destar/port "$PORT"
+	fi
+fi
+
+db_input medium destar/port || true
+db_go
+
+exit 0
--- destar-0.2.2.orig/debian/compat
+++ destar-0.2.2/debian/compat
@@ -0,0 +1 @@
+5
--- destar-0.2.2.orig/debian/destar.init
+++ destar-0.2.2/debian/destar.init
@@ -0,0 +1,70 @@
+#! /bin/sh
+# Starts and stops the Destar, Asterisk Web GUI
+
+### BEGIN INIT INFO
+# Provides:          destar
+# Required-Start:    $syslog 
+# Required-Stop:     $syslog
+# Should-Start:      $local_fs
+# Should-Stop:       $local_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Asterisk Web GUI DeStar
+# Description:       A web interface to manage 
+#		     the Asterisk PBX
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/destar
+NAME=destar
+DESC="Asterisk Web GUI DeStar"
+PIDFILE=/var/run/$NAME/$NAME.pid
+ENABLED=0
+PORT=8080
+
+test -x $DAEMON || exit 0
+
+# Include destar defaults if available
+if [ -f /etc/default/destar ] ; then
+	. /etc/default/destar
+fi
+
+test "$ENABLED" != "0" || exit 0
+
+DAEMON_OPTS="--daemonize --pid=$PIDFILE --port=$PORT"
+
+set -e
+
+if [ ! -d /var/run/$NAME/ ] ; then
+	mkdir -m 0755 /var/run/$NAME/
+	chown asterisk /var/run/$NAME/
+fi
+
+case "$1" in
+  start)
+	echo -n "Starting $DESC: "
+	start-stop-daemon --start --quiet --pidfile $PIDFILE \
+		--chuid asterisk --exec $DAEMON -- $DAEMON_OPTS >/dev/null 
+	echo "$NAME."
+	;;
+  stop)
+	echo -n "Stopping $DESC: "
+	start-stop-daemon --stop --oknodo --quiet --pidfile $PIDFILE >/dev/null
+	echo "$NAME."
+	;;
+  restart|force-reload)
+	echo -n "Restarting $DESC: "
+	start-stop-daemon --stop --oknodo --quiet --pidfile $PIDFILE >/dev/null
+	sleep 1
+	start-stop-daemon --start --quiet --pidfile $PIDFILE \
+          	--chuid asterisk --exec $DAEMON -- $DAEMON_OPTS >/dev/null 
+	echo "$NAME."
+	;;
+  *)
+	N=/etc/init.d/$NAME
+	echo "Usage: $N {start|stop|restart|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- destar-0.2.2.orig/debian/templates
+++ destar-0.2.2/debian/templates
@@ -0,0 +1,6 @@
+Template: destar/port
+Type: string
+Default: 8080
+_Description: DeStar listening port number:
+ In which port the web interface must listen on.
+
--- destar-0.2.2.orig/debian/postinst
+++ destar-0.2.2/debian/postinst
@@ -0,0 +1,71 @@
+#! /bin/sh
+# postinst script for destar
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+. /usr/share/debconf/confmodule
+
+db_get destar/port
+port="$RET"
+
+case "$1" in
+    configure)
+        # We use the asterisk user to run destar
+        # /var/{log,run}/destar to it.
+	chown -R asterisk:asterisk /var/run/destar/
+	chown -R asterisk:asterisk /var/log/destar/
+	mkdir -p /etc/asterisk/manager.d
+	chown asterisk:asterisk /etc/asterisk/destar_cfg.py
+	chown -R asterisk:asterisk /etc/asterisk/manager.d
+	mkdir -p /etc/op-panel/destar/
+	touch /etc/op-panel/destar/op_server.cfg
+	touch /etc/op-panel/destar/op_buttons.cfg
+	touch /etc/op-panel/destar/op_astdb.cfg
+	touch /etc/op-panel/destar/op_style.cfg
+	chown -R asterisk:asterisk /etc/op-panel/destar/
+	
+	# Alternative configuration for op-panel: destar, priority 70
+        update-alternatives --install \
+                /etc/op-panel/op_server.cfg op-panel /etc/op-panel/destar/op_server.cfg 70              \
+                --slave /etc/op-panel/op_buttons.cfg op-buttons-cfg /etc/op-panel/destar/op_buttons.cfg \
+                --slave /etc/op-panel/op_astdb.cfg   op-astdb-cfg   /etc/op-panel/destar/op_astdb.cfg   \
+                --slave /etc/op-panel/op_style.cfg   op-style-cfg   /etc/op-panel/destar/op_style.cfg
+
+	sed "s/^PORT=.*/PORT=$port/" /etc/default/destar > /etc/default/destar.tmp
+	mv /etc/default/destar.tmp /etc/default/destar
+
+	db_stop
+    ;;
+
+    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
+
+
--- destar-0.2.2.orig/debian/dirs
+++ destar-0.2.2/debian/dirs
@@ -0,0 +1,4 @@
+etc/asterisk
+usr/sbin
+var/log/destar
+var/run/destar
--- destar-0.2.2.orig/debian/pycompat
+++ destar-0.2.2/debian/pycompat
@@ -0,0 +1 @@
+2
--- destar-0.2.2.orig/debian/copyright
+++ destar-0.2.2/debian/copyright
@@ -0,0 +1,30 @@
+This package was debianized by Santiago Ruano Rincon <santiago@unicauca.edu.co> on
+Thu, 28 Jul 2005 22:56:26 -0500
+based on the one maded by Tzafrir Cohen <tzafrir.cohen@xorcom.com>
+
+It was downloaded from http://destar.berlios.de
+
+Copyright: GPL
+
+Upstream Authors: Holger Schurig <holgerschurig using the domain gmx point de> and
+		  Michael Schwartz <nynymike at users point berlios point de>
+		  Michael Bielicki <cypromis at users point berlios point de>
+		  Alejandro Ríos Peña <alejandro.rios at avatar point com point co>
+		  Diego Andrés Asenjo González <dasenjo at avatar point com point co>
+		  Tzafrir Cohen <tzafrir.cohen at xorcom point com>
+		  Santiago Ruano Rincón <santiago at unicauca point edu point co>
+		  Manuel Alejandro Ceron Estrada <ceronman at gmail point com>
+
+
+License:
+
+This package may be redistributed under the terms of the GNU GPL, version 
+2.0, found on Debian systems in the file /usr/share/common-licenses/GPL
+
+There are some exceptions:
+
+* destar_cfg.py: this is a *DATA* file, althought it looks like source-code
+* part of the code in the medusa subdirectory 
+* those cfg_*.py files that bear another name on top of their copyright notice 
+  have a different author. All of them are still distibuted under the terms
+  of the GPL as stated above, though.
--- destar-0.2.2.orig/debian/rules
+++ destar-0.2.2/debian/rules
@@ -0,0 +1,80 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+ASTERISK_CFG_DIR=/etc/asterisk
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+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 := destar_$(UPVERSION).orig.tar.gz
+URL := http://download.berlios.de/destar/destar-$(UPVERSION).tar.gz
+
+build: build-stamp
+build-stamp: patch-stamp
+	dh_testdir
+	
+	touch build-stamp
+
+clean: clean-patched unpatch
+clean-patched:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+	
+	[ ! -f Makefile ] || $(MAKE) clean
+	
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/destar
+	$(MAKE) install-panel DESTDIR=$(CURDIR)/debian/destar
+	install -m 644 examples/destar_cfg.py $(CURDIR)/debian/destar/$(ASTERISK_CFG_DIR)/
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs CHANGELOG.txt
+	dh_installdocs
+	dh_installexamples
+	dh_installinit
+	dh_installdebconf
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+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 -N -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
+
+binary: binary-indep 
+.PHONY: build clean binary-indep binary install configure patch unpatch
--- destar-0.2.2.orig/debian/README.Debian
+++ destar-0.2.2/debian/README.Debian
@@ -0,0 +1,44 @@
+DeStar for Debian
+-----------------
+
+Python code sits in /usr/share/destar/python
+The static site contents is at /usr/share/destar/static
+
+A wrapper script was added at /usr/sbin/destar (and the real destar was 
+renamed "destar.py") to allow invoking from everywhere. Also note that
+installing this package will currently automatically start the destar 
+daemon and serve the web frontend on port 8080.
+
+You can view/set the default configuration user password on /etc/asterisk/destar_cfg.py,
+in a section like this:
+
+ CfgOptUser(
+        name     = "admin",
+	secret   = "ad26.",
+	level    = "3",
+	)
+
+Destar will only create asterisk configuration files once you log in as a configurator
+user and explícitly use the function "Save All Changes" on the "Administration->View/Save
+Configuration" menu, or use the '-b' command line option . The first time destar
+creates the configuration, Asterisk must be restarted manually to start using it.
+
+You can change the default port at /etc/init.d/destar, see destar(8) man
+page to see daemon options.
+
+If you need zaptel device configuration support, you have to enable
+write access to the /etc/zaptel.conf file for the asterisk group.
+
+CDR records and statistics won't be completly usable if asterisk module
+cdr_sqlite3_custom is not present. The module is included on asterisk debian 
+package version >= 1.2.13. If you are using a custom asterisk installation, 
+the patch for the module can be downloaded from
+http://bugs.digium.com/view.php?id=7149
+
+Flash Operator Panel integration is handled trough the update-alternatives(8) system,
+and requires the op-panel package, with version >= 0.26.dfsg-5. The command to
+choose an alternative for op-panel configuration is:
+
+ update-alternatives --config op-panel
+
+ -- Tzafrir Cohen <tzafrir.cohen@xorcom.com>, Fri, 29 Apr 2005 05:24:15 +0300
--- destar-0.2.2.orig/debian/prerm
+++ destar-0.2.2/debian/prerm
@@ -0,0 +1,44 @@
+#! /bin/sh
+# prerm script for destar
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+	
+	# remove this alternative configuration
+	if update-alternatives --list op-panel | grep -q destar ; then
+		update-alternatives --quiet --remove op-panel /etc/op-panel/destar/op_server.cfg
+	fi
+	
+        ;;
+    failed-upgrade)
+        ;;
+    *)
+        echo "prerm 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
+
+
--- destar-0.2.2.orig/debian/destar.default
+++ destar-0.2.2/debian/destar.default
@@ -0,0 +1,10 @@
+# Default configuration for DeStar, IP PBX web configuration tool.
+# This file allows you to alter the behavior of Destar init.d script file
+#
+# Use 1 or 0 if you want to enable or disable destar.
+# 
+ENABLED=1
+#
+# Port on which destar will listen on. If no specified, 8088 is used
+#
+PORT=8080
--- destar-0.2.2.orig/debian/po/de.po
+++ destar-0.2.2/debian/po/de.po
@@ -0,0 +1,27 @@
+# German translation of destar templates
+# Helge Kreutzmann <debian@helgefjell.de>, 2007.
+# This file is distributed under the same license as the destar package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: destar 0.2.2-2\n"
+"Report-Msgid-Bugs-To: pkg-voip-maintainers@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2007-07-09 11:43-0500\n"
+"PO-Revision-Date: 2007-07-11 20:40+0200\n"
+"Last-Translator: Helge Kreutzmann <debian@helgefjell.de>\n"
+"Language-Team: German <debian-l10n-german@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "DeStar listening port number:"
+msgstr "Portnummer von DeStar:"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "In which port the web interface must listen on."
+msgstr "Auf welchem Port die Webschnittstelle auf Anfragen warten muss."
--- destar-0.2.2.orig/debian/po/es.po
+++ destar-0.2.2/debian/po/es.po
@@ -0,0 +1,27 @@
+# translation of destar debconf template to Spanish.
+# Copyright (C) 2007 Santiago Ruano Rincón <santiago@debian.org>.
+# This file is distributed under the same license as the destar package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: destar 0.2.2-2\n"
+"Report-Msgid-Bugs-To: pkg-voip-maintainers@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2007-07-09 11:43-0500\n"
+"PO-Revision-Date: 2007-07-27 17:37-0500\n"
+"Last-Translator: Santiago Ruano Rincón <santiago@debian.org>\n"
+"Language-Team: Spanish <debian-l10n-spanish@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "DeStar listening port number:"
+msgstr "Puerto de escucha de DeStar:"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "In which port the web interface must listen on."
+msgstr "Especifique el puerto en el que escuchará la interfaz web."
--- destar-0.2.2.orig/debian/po/templates.pot
+++ destar-0.2.2/debian/po/templates.pot
@@ -0,0 +1,29 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: pkg-voip-maintainers@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2007-07-09 11:43-0500\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "DeStar listening port number:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "In which port the web interface must listen on."
+msgstr ""
--- destar-0.2.2.orig/debian/po/nl.po
+++ destar-0.2.2/debian/po/nl.po
@@ -0,0 +1,30 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE 'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the  package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: destar\n"
+"Report-Msgid-Bugs-To: pkg-voip-maintainers@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2007-07-09 11:43-0500\n"
+"PO-Revision-Date: 2007-10-25 19:18+0100\n"
+"Last-Translator: Bart Cornelis <cobaco@skolelinux.no>\n"
+"Language-Team: debian-l10n-dutch <debian-l10n-dutch@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: Dutch\n"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "DeStar listening port number:"
+msgstr "Door DeStar te gebruiken poortnummer:"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "In which port the web interface must listen on."
+msgstr "De poort waarop de webinterface dient te luisteren."
+
--- destar-0.2.2.orig/debian/po/POTFILES.in
+++ destar-0.2.2/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
--- destar-0.2.2.orig/debian/po/fr.po
+++ destar-0.2.2/debian/po/fr.po
@@ -0,0 +1,29 @@
+# Translation of destar debconf templates to French
+# Copyright (C) Christian Perrier
+# This file is distributed under the same license as the destar package.
+#
+# Christian Perrier <bubulle@debian.org>, 2007.
+msgid ""
+msgstr ""
+"Project-Id-Version: destar\n"
+"Report-Msgid-Bugs-To: pkg-voip-maintainers@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2007-07-09 11:43-0500\n"
+"PO-Revision-Date: 2007-07-15 08:51+0200\n"
+"Last-Translator: Christian Perrier <bubulle@debian.org>\n"
+"Language-Team:  French <debian-l10n-french@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "DeStar listening port number:"
+msgstr "Port d'écoute de DeStar :"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "In which port the web interface must listen on."
+msgstr "Veuillez indiquer le numéro du port sur lequel DeStar sera à l'écoute."
--- destar-0.2.2.orig/debian/po/pt.po
+++ destar-0.2.2/debian/po/pt.po
@@ -0,0 +1,30 @@
+# translation of destar debconf to Portuguese
+# Copyright (C) 2007 Américo Monteiro
+# This file is distributed under the same license as the destar package.
+#
+# Américo Monteiro <a_monteiro@netcabo.pt>, 2007.
+msgid ""
+msgstr ""
+"Project-Id-Version: destar 0.2.2-2\n"
+"Report-Msgid-Bugs-To: pkg-voip-maintainers@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2007-07-09 11:43-0500\n"
+"PO-Revision-Date: 2007-08-01 01:03+0100\n"
+"Last-Translator: Américo Monteiro <a_monteiro@netcabo.pt>\n"
+"Language-Team: Portuguese <traduz@debianpt.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "DeStar listening port number:"
+msgstr "Número de porto de escuta do DeStar:"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "In which port the web interface must listen on."
+msgstr "Em que porto deverá a interface Web escutar."
+
--- destar-0.2.2.orig/debian/po/cs.po
+++ destar-0.2.2/debian/po/cs.po
@@ -0,0 +1,25 @@
+# Czech translation of destar debconf messages.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: destar 0.2.2-5\n"
+"Report-Msgid-Bugs-To: pkg-voip-maintainers@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2007-07-09 11:43-0500\n"
+"PO-Revision-Date: 2008-05-27 17:41+0200\n"
+"Last-Translator: Daniel Kavan <kuan@maradan.org>\n"
+"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "DeStar listening port number:"
+msgstr "Číslo portu, na kterém bude DeStar naslouchat:"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "In which port the web interface must listen on."
+msgstr "Na kterém portu má naslouchat webové rozhraní."
--- destar-0.2.2.orig/debian/po/ru.po
+++ destar-0.2.2/debian/po/ru.po
@@ -0,0 +1,31 @@
+# translation of ru.po to Russian
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Yuri Kozlov <kozlov.y@gmail.com>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: ru\n"
+"Report-Msgid-Bugs-To: pkg-voip-maintainers@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2007-07-09 11:43-0500\n"
+"PO-Revision-Date: 2008-09-04 22:06+0400\n"
+"Last-Translator: Yuri Kozlov <kozlov.y@gmail.com>\n"
+"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms:  nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
+"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "DeStar listening port number:"
+msgstr "Порт, на котором DeStar должен принимать запросы:"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "In which port the web interface must listen on."
+msgstr "Порт, по которому будет работать веб-интерфейс."
--- destar-0.2.2.orig/debian/po/sv.po
+++ destar-0.2.2/debian/po/sv.po
@@ -0,0 +1,29 @@
+# translation of destar.po to swedish
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# 
+# Martin Bagge <brother@bsnet.se>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: destar\n"
+"Report-Msgid-Bugs-To: pkg-voip-maintainers@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2007-07-09 11:43-0500\n"
+"PO-Revision-Date: 2008-09-25 12:27+0100\n"
+"Last-Translator: Martin Bagge <brother@bsnet.se>\n"
+"Language-Team: swedish <debian-l10n-swedish@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "DeStar listening port number:"
+msgstr "DeStar tar emot anslutningar på port:"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "In which port the web interface must listen on."
+msgstr "På vilken port ska webbgränssnittet ta emot anslutningar."
--- destar-0.2.2.orig/debian/po/eu.po
+++ destar-0.2.2/debian/po/eu.po
@@ -0,0 +1,29 @@
+# translation of destar-eu.po to Euskara
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Piarres Beobide <pi@beobide.net>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: destar-eu\n"
+"Report-Msgid-Bugs-To: pkg-voip-maintainers@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2007-07-09 11:43-0500\n"
+"PO-Revision-Date: 2008-10-22 12:09+0200\n"
+"Last-Translator: Piarres Beobide <pi@beobide.net>\n"
+"Language-Team: Euskara <debian-l10n-basque@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "DeStar listening port number:"
+msgstr "DeStar-ek entzungo duen ataka zenbakia:"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "In which port the web interface must listen on."
+msgstr "Web interfazeak entzungo duen ataka."
--- destar-0.2.2.orig/debian/po/it.po
+++ destar-0.2.2/debian/po/it.po
@@ -0,0 +1,29 @@
+# ITALIAN TRANSLATION OF DESTAR'S.PO-DEBCONF FILE
+# Copyright (C) 2007 THE DESTAR'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the destar package.
+#
+# Vincenzo Campanella <vinz65@gmail.com>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: it\n"
+"Report-Msgid-Bugs-To: pkg-voip-maintainers@lists.alioth.debian.org\n"
+"POT-Creation-Date: 2007-07-09 11:43-0500\n"
+"PO-Revision-Date: 2008-10-19 16:02+0200\n"
+"Last-Translator: Vincenzo Campanella <vinz65@gmail.com>\n"
+"Language-Team: Italian <tp@lists.linux.it>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "DeStar listening port number:"
+msgstr "Porta di ascolto di DeStar:"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "In which port the web interface must listen on."
+msgstr "Su quale porta l'interfaccia web deve mettersi in ascolto."
--- destar-0.2.2.orig/debian/patches/manager.dpatch
+++ destar-0.2.2/debian/patches/manager.dpatch
@@ -0,0 +1,36 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## manager.dpatch by Alejandro Rios P. <alejandro.rios@avatar.com.co>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Uses /etc/asterisk/manager.d/destar.conf instead of /etc/asterisk/manager.conf.
+
+@DPATCH@
+diff -urNad destar-0.2.0~/cfg_opt_manager.py destar-0.2.0/cfg_opt_manager.py
+--- destar-0.2.0~/cfg_opt_manager.py	2006-04-03 13:08:33.000000000 -0500
++++ destar-0.2.0/cfg_opt_manager.py	2006-11-13 22:05:42.000000000 -0500
+@@ -37,10 +37,10 @@
+ 		    ]
+ 
+ 	def createAsteriskConfig(self):
+-		c = AstConf("manager.conf")
++		c = AstConf("destar.conf")
+ 		
+-		c.setSection("general")
+-		c.append("enabled=yes")
++		#c.setSection("general")
++		#c.append("enabled=yes")
+ 		#c.append("portno=5038")
+ 		#c.append("bindaddr=127.0.0.1")
+ 
+diff -urNad destar-0.2.0~/configlets.py destar-0.2.0/configlets.py
+--- destar-0.2.0~/configlets.py	2006-09-26 19:20:49.000000000 -0500
++++ destar-0.2.0/configlets.py	2006-11-13 22:10:13.000000000 -0500
+@@ -43,6 +43,8 @@
+ 
+ 
+ 	def __init__(self, fn):
++		if fn == 'destar.conf':
++			fn = os.path.join(CONF_DIR, 'manager.d', fn)
+ 		if fn == 'zaptel.conf':
+ 			fn = os.path.join("/etc", fn)
+ 		if fn == 'op_server.cfg' or fn == 'op_buttons.cfg':
--- destar-0.2.2.orig/debian/patches/op_panel.dpatch
+++ destar-0.2.2/debian/patches/op_panel.dpatch
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## op_panel.dpatch by Alejandro Rios P. <alejandro.rios@avatar.com.co>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Integration of destar with op-panel package.
+
+@DPATCH@
+diff -urNad destar-0.2.2~/panelutils.py destar-0.2.2/panelutils.py
+--- destar-0.2.2~/panelutils.py	2007-01-26 18:16:35.000000000 -0500
++++ destar-0.2.2/panelutils.py	2007-01-26 18:18:32.000000000 -0500
+@@ -29,11 +29,11 @@
+ 
+ 
+ # Configuration to use with op-panel .deb package:
+-PANEL_CONF_DIR	= "/etc/op-panel"
++PANEL_CONF_DIR	= "/etc/op-panel/destar"
+ PANEL_HTML_DIR	= "/usr/share/op-panel/flash"
+ PANEL_START_CMD	= "/etc/init.d/op-panel start"
+ PANEL_STOP_CMD	= "/etc/init.d/op-panel stop"
+-PANEL_RESTART_CMD = "/etc/init.d/op-panel restart"
++PANEL_RESTART_CMD = "pkill -HUP op_server"
+ 
+ def isConfigured ():
+ 	import configlets
+
--- destar-0.2.2.orig/debian/patches/example.dpatch
+++ destar-0.2.2/debian/patches/example.dpatch
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## example.dpatch by Alejandro Rios P. <alejandro.rios@avatar.com.co>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Changes the example destar_cfg.py file to better defaults.
+
+@DPATCH@
+diff -urNad destar-0.2.0~/examples/destar_cfg.py destar-0.2.0/examples/destar_cfg.py
+--- destar-0.2.0~/examples/destar_cfg.py	2006-08-28 19:41:45.000000000 -0500
++++ destar-0.2.0/examples/destar_cfg.py	2006-11-13 22:13:29.000000000 -0500
+@@ -6,7 +6,6 @@
+ 	id       = "DID-IPPBX",
+ 	pw       = "13579",
+ 	host     = "201.8.67.79",
+-	register = True,
+ 	insecure = True,
+ 	contextin = "ivr",
+ 	ivr      = "attendant1",
+@@ -17,6 +16,7 @@
+ 	name     = "admin",
+ 	secret   = "ad26.",
+ 	level    = "3",
++	pbx      = "pbx1",
+ 	)
+ 
+ CfgIVRAutoatt(
--- destar-0.2.2.orig/debian/patches/python25.dpatch
+++ destar-0.2.2/debian/patches/python25.dpatch
@@ -0,0 +1,31 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## python25.dpatch by  <bdefreese@debian2.bddebian.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Don't use where=[]
+
+@DPATCH@
+diff -urNad destar-0.2.2~/page_owner_cdr.ptl destar-0.2.2/page_owner_cdr.ptl
+--- destar-0.2.2~/page_owner_cdr.ptl	2006-09-19 13:43:56.000000000 -0400
++++ destar-0.2.2/page_owner_cdr.ptl	2008-10-15 14:50:49.000000000 -0400
+@@ -239,7 +239,7 @@
+ 	
+ 	return render()
+ 
+-def	cdrShowResults [html] (where=[], limit, offset, total = 0, field=_("Time_of_start"), order="DESC"):
++def	cdrShowResults [html] (where, limit, offset, total = 0, field=_("Time_of_start"), order="DESC"):
+ 	if total == 0:
+ 		'<p>'
+ 		'--No records to Show--'
+diff -urNad destar-0.2.2~/page_stats_cdr.ptl destar-0.2.2/page_stats_cdr.ptl
+--- destar-0.2.2~/page_stats_cdr.ptl	2006-11-05 21:54:14.000000000 -0500
++++ destar-0.2.2/page_stats_cdr.ptl	2008-10-15 14:51:25.000000000 -0400
+@@ -244,7 +244,7 @@
+ 	
+ 	return render()
+ 
+-def	cdrShowResults [html] (where=[], limit, offset, total = 0, field="start", order="DESC"):
++def	cdrShowResults [html] (where, limit, offset, total = 0, field="start", order="DESC"):
+ 	if total == 0:
+ 		'<p>'
+ 		'--No records to Show--'
--- destar-0.2.2.orig/debian/patches/00list
+++ destar-0.2.2/debian/patches/00list
@@ -0,0 +1,7 @@
+no_medusa.dpatch
+op_panel.dpatch
+manager.dpatch
+example.dpatch
+zaptel.dpatch
+debug_prints.dpatch
+python25.dpatch
--- destar-0.2.2.orig/debian/patches/debug_prints.dpatch
+++ destar-0.2.2/debian/patches/debug_prints.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## debug_prints.dpatch by Alejandro Rios P. <alejandro.rios@avatar.com.co>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Comments nasty debug messages shown when running 'destar -b' 
+
+@DPATCH@
+diff -urNad destar-0.2.2~/configlets.py destar-0.2.2/configlets.py
+--- destar-0.2.2~/configlets.py	2007-02-12 14:22:57.000000000 -0500
++++ destar-0.2.2/configlets.py	2007-02-12 14:23:32.000000000 -0500
+@@ -655,7 +655,7 @@
+ 				cont = '"""%s"""' % _v
+ 			elif v.type=="int":
+ 				if _v == 0:
+-					print v.name
++					#print v.name
+ 					continue
+ 				else:
+ 					cont = _v
--- destar-0.2.2.orig/debian/patches/zaptel.dpatch
+++ destar-0.2.2/debian/patches/zaptel.dpatch
@@ -0,0 +1,42 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## zaptel.dpatch by Alejandro Rios P. <alejandro.rios@avatar.com.co>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Deals with /etc/zaptel.conf permissions issues.
+
+@DPATCH@
+diff -urNad destar-0.2.2~/backend.py destar-0.2.2/backend.py
+--- destar-0.2.2~/backend.py	2007-01-26 18:33:24.000000000 -0500
++++ destar-0.2.2/backend.py	2007-01-26 18:36:41.000000000 -0500
+@@ -444,6 +444,8 @@
+ 	for _fn,cnf in configlets.asterisk_configfiles:
+ 		if _fn == 'op_server.cfg' and panelutils.isConfigured() != 1:
+ 			continue
++		if _fn == 'zaptel.conf' and not os.access("/etc/zaptel.conf", os.O_RDWR):
++			continue
+ 		try:
+ 			cnf.write()
+ 		except OSError:
+@@ -463,7 +465,10 @@
+ 
+ 
+ 	for short_fn,cnf in configlets.asterisk_configfiles:
+-		if fn==short_fn:
++		if fn == 'zaptel.conf':
++			os.rename(cnf.fn, "/etc/asterisk/etc-%s.orig" % cnf.fn)
++			return True
++		elif fn==short_fn:
+ 			os.rename(cnf.fn, "%s.orig" % cnf.fn)
+ 			return True
+ 	return False
+diff -urNad destar-0.2.2~/page_config_trunks.ptl destar-0.2.2/page_config_trunks.ptl
+--- destar-0.2.2~/page_config_trunks.ptl	2007-01-26 18:33:24.000000000 -0500
++++ destar-0.2.2/page_config_trunks.ptl	2007-01-26 18:36:41.000000000 -0500
+@@ -44,5 +44,7 @@
+ 			phones = True
+ 	if not phones:
+ 		_('You should add at least one phone to configure trunks')
++	if not os.access("/etc/zaptel.conf", os.O_RDWR):
++		_("You should enable write access to /etc/zaptel.conf. Without write access to this file you cannot configure Zaptel devices, e.g. FXO/FXS cards, T1/E1 cards, ZapHFC ISDN cards, etc. You should 'chmod g+rw' this file and set it's group to one of '%s'." % 'asterisk')
+ 	presentConfiglets('Trunks')
+ 	footer()
--- destar-0.2.2.orig/debian/patches/no_medusa.dpatch
+++ destar-0.2.2/debian/patches/no_medusa.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## no_medusa.dpatch by Santiago Ruano Rincon <santiago@unicauca.edu.co>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Use debian's medusa instead of the one shipped with destar's upstream sources.
+
+@DPATCH@
+diff -urNad destar-0.0.184/Makefile /tmp/dpep.UOPwWZ/destar-0.0.184/Makefile
+--- destar-0.0.184/Makefile	2005-08-04 13:59:23.000000000 -0500
++++ /tmp/dpep.UOPwWZ/destar-0.0.184/Makefile	2005-08-30 17:07:52.000000000 -0500
+@@ -6,7 +6,7 @@
+ MANDIR=$(DESTDIR)/usr/share/man/man8
+ 
+ # set SYS_MEDUSA to 1 to use system copy of medusa
+-SYS_MEDUSA=0
++SYS_MEDUSA=1
+ 
+ clean:
+ 	find -name "*.pyc" -o \
