[Pkg-voip-commits] r3145 - asterisk/trunk/debian/patches

Tzafrir Cohen tzafrir-guest at alioth.debian.org
Tue Feb 13 15:49:40 CET 2007


Author: tzafrir-guest
Date: 2007-02-13 15:49:40 +0100 (Tue, 13 Feb 2007)
New Revision: 3145

Added:
   asterisk/trunk/debian/patches/daemon_color.dpatch
Modified:
   asterisk/trunk/debian/patches/00list
Log:
Make rastrisk colourful, even without safe_asterisk.


Modified: asterisk/trunk/debian/patches/00list
===================================================================
--- asterisk/trunk/debian/patches/00list	2007-02-13 14:17:20 UTC (rev 3144)
+++ asterisk/trunk/debian/patches/00list	2007-02-13 14:49:40 UTC (rev 3145)
@@ -21,3 +21,4 @@
 less_docs
 Makefile_hostcc
 Makefile_clean
+daemon_color

Added: asterisk/trunk/debian/patches/daemon_color.dpatch
===================================================================
--- asterisk/trunk/debian/patches/daemon_color.dpatch	2007-02-13 14:17:20 UTC (rev 3144)
+++ asterisk/trunk/debian/patches/daemon_color.dpatch	2007-02-13 14:49:40 UTC (rev 3145)
@@ -0,0 +1,23 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## daemon_color.dpatch by Tzafrir Cohen <tzafrir.cohen at xorcom.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Enable color support even in a daemonized Asterisk. This is 
+## DP: done by assuming the default value 'xterm' for TERM.
+## DP: See upstream bug http://bugs.digium.com/view.php?id=9048
+
+ at DPATCH@
+diff -urNad asterisk-1.2.15~dfsg~/term.c asterisk-1.2.15~dfsg/term.c
+--- asterisk-1.2.15~dfsg~/term.c	2005-11-29 20:24:39.000000000 +0200
++++ asterisk-1.2.15~dfsg/term.c	2007-02-13 16:04:31.000000000 +0200
+@@ -79,8 +79,8 @@
+ 	int termfd = -1, parseokay = 0, i;
+ 
+ 	if (!term)
+-		return 0;
+-	if (!option_console || option_nocolor || !option_nofork)
++		term="xterm";
++	if (option_nocolor)
+ 		return 0;
+ 
+ 	for (i=0 ;; i++) {


Property changes on: asterisk/trunk/debian/patches/daemon_color.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-voip-commits mailing list