1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 03_remoteica.patch by <stgraber@ubuntu.com>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Allow support of remote ISD server
8
diff -Nrup ../../../package/italc-1.0.9-rc2/ica/src/isd_server.cpp ../ica/src/isd_server.cpp
9
--- ../../../package/italc-1.0.9-rc2/ica/src/isd_server.cpp 2008-04-30 15:40:32.000000000 +0200
10
+++ ../ica/src/isd_server.cpp 2008-06-04 13:20:34.000000000 +0200
11
@@ -59,7 +59,7 @@ isdServer::isdServer( const quint16 _ivs
15
- listen( QHostAddress::LocalHost, __isd_port ) == FALSE )
16
+ listen( QHostAddress::Any, __isd_port ) == FALSE )
18
// uh oh, already an ISD running or port isn't available...
19
qCritical( "isdServer::isdServer(...): "
20
diff -Nrup ../../../package/italc-1.0.9-rc2/ima/italc.1 ../ima/italc.1
21
--- ../../../package/italc-1.0.9-rc2/ima/italc.1 2008-02-01 15:46:07.000000000 +0100
22
+++ ../ima/italc.1 2008-06-04 13:23:26.000000000 +0200
23
@@ -20,6 +20,10 @@ Directly remote-control the specified ho
25
Set port to which iTALC should connect in order to contact the local iTALC-service-daemon. Default: 5800
27
+.IP "\fB\-isdhost\fP \fIip\fP
29
+Set the host to which iTALC should connect in order to contact the local iTALC-service-daemon. Default: localhost
34
diff -Nrup ../../../package/italc-1.0.9-rc2/ima/src/main.cpp ../ima/src/main.cpp
35
--- ../../../package/italc-1.0.9-rc2/ima/src/main.cpp 2008-05-06 16:16:39.000000000 +0200
36
+++ ../ima/src/main.cpp 2008-06-04 13:33:04.000000000 +0200
37
@@ -42,6 +42,7 @@ QString __default_domain;
38
int __demo_quality = 0;
40
int __isd_port = PortOffsetISD;
41
+QString __isd_host = "127.0.0.1";
44
// good old main-function... initializes qt-app and starts iTALC
45
@@ -148,6 +149,11 @@ int main( int argc, char * * argv )
47
__isd_port = arg_it.next().toInt();
49
+ else if( a == "-isdhost" && arg_it.hasNext() )
51
+ __isd_host = arg_it.next();
57
diff -Nrup ../../../package/italc-1.0.9-rc2/ima/src/main_window.cpp ../ima/src/main_window.cpp
58
--- ../../../package/italc-1.0.9-rc2/ima/src/main_window.cpp 2008-05-21 11:17:31.000000000 +0200
59
+++ ../ima/src/main_window.cpp 2008-06-04 13:52:00.000000000 +0200
60
@@ -64,6 +64,7 @@ QSystemTrayIcon * __systray_icon = NULL;
63
extern int __isd_port;
64
+extern QString __isd_host;
67
bool mainWindow::ensureConfigPathExists( void )
68
@@ -364,7 +365,7 @@ mainWindow::mainWindow( int _rctrl_scree
71
m_localISD = new isdConnection( QHostAddress(
72
- QHostAddress::LocalHost).toString() +
73
+ __isd_host ).toString() +
74
":" + QString::number( __isd_port ) );
75
if( m_localISD->open() != isdConnection::Connected )