allostechsupport

allostechsupport Commit Details


Date:2016-10-08 18:03:12 (8 years 2 months ago)
Author:Natalie Adams
Branch:master
Commit:e0f81dc297c2b9f679c647c81a88890e9e4e2c27
Message:initial commit - fixing deprecated API

Changes:

File differences

AboutWindow.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
import wx
import os, os.path, sys, cStringIO
"""
Gisto - Gitso is to support others
Gitso is a utility to facilitate the connection of VNC
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@copyright: 2008 - 2010
Gitso 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 3 of the License, or
(at your option) any later version.
Gitso 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 Gitso. If not, see <http://www.gnu.org/licenses/>.
"""
class InfoPage(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
infostring = "Authors:" + "\n\tAaron Gerber\n\tDerek Buranen"
infostring = infostring + "\n\nContributors:" + "\n\tNick Verbeck" + "\n\tTroy Frew" + "\n\tDennis Koot"
infostring = infostring + "\n\nCopyright (C) 2007 - 2010 by Aaron Gerber and Derek Buranen"
if sys.platform == "darwin":
infostring = infostring + "\n\n+++++++++++++++++++++++"
infostring = infostring + "\nChicken Of The VNC:"
infostring = infostring + "\n\tCopyright (C) 2002-2006 by Jason Harris"
infostring = infostring + "\n\tCopyright (C) 1998-2000 by Helmut Maierhofer"
infostring = infostring + "\n\nlibJPEG: Independent JPEG Group's JPEG software"
infostring = infostring + "\n\tCopyright (C) 1991-1998, Thomas G. Lane."
infostring = infostring + "\n\nOSXvnc:"
infostring = infostring + "\n\tCopyright (C) 2002-2007 by Redstone Software: "
infostring = infostring + "\n\t\tDoug Simons and Jonathan Gillaspie"
infostring = infostring + "\n\nechoWare:"
infostring = infostring + "\n\tCopyright (C) 2004-2007 Echogent Systems, Inc"
elif sys.platform == "win32":
infostring = infostring + "\n\n+++++++++++++++++++++++"
infostring = infostring + "\nTightVNC && VNCviewer:"
infostring = infostring + "\n\tCopyright (C) 1999 AT&T Laboratories Cambridge."
infostring = infostring + "\n\nVNCHooks:"
infostring = infostring + "\n\tCopyright (C) 2000-2007 TightVNC Group"
info = wx.TextCtrl(self, -1, infostring, style=wx.TE_MULTILINE | wx.ST_NO_AUTORESIZE)
pagesizer = wx.BoxSizer(wx.VERTICAL);
pagesizer.Add(info, 1, wx.EXPAND)
self.SetSizer(pagesizer);
pagesizer.SetSizeHints(self);
class LicensePage(wx.Panel):
def __init__(self, parent, paths):
wx.Panel.__init__(self, parent)
license = open(paths['copyright'], 'r')
copyright = wx.TextCtrl(self, -1, license.read(), style=wx.TE_MULTILINE | wx.ST_NO_AUTORESIZE)
copyright.SetEditable(False)
pagesizer = wx.BoxSizer(wx.VERTICAL);
pagesizer.Add(copyright, 1, wx.EXPAND);
self.SetSizer(pagesizer);
pagesizer.SetSizeHints(self);
class AboutWindow(wx.Frame):
def __init__(self, parent, id, title, paths):
"""
Setup About Window for Gitso
@author: Derek Buranen
@author: Aaron Gerber
"""
wx.Frame.__init__(self, parent, wx.ID_ANY, title, size=(525,400), style=wx.CLOSE_BOX | wx.MINIMIZE_BOX)
if sys.platform == 'win32':
self.SetBackgroundColour(wx.Colour(236,233,216))
icon = wx.Icon(os.path.join(paths['main'], 'icon.ico'), wx.BITMAP_TYPE_ICO)
self.SetIcon(icon)
## Headings ##
text1 = wx.StaticText(self, wx.ID_ANY, 'Gitso')
font1 = wx.Font(24, wx.NORMAL, wx.NORMAL, wx.BOLD)
text1.SetFont(font1)
text2 = wx.StaticText(self, -1, "Gitso is to Support Others")
text3 = wx.StaticText(self, -1, "Version 0.6")
font2 = wx.Font(16, wx.NORMAL, wx.NORMAL, wx.NORMAL)
font3 = wx.Font(12, wx.NORMAL, wx.NORMAL, wx.NORMAL)
text2.SetFont(font2)
text3.SetFont(font3)
url = wx.HyperlinkCtrl(self, -1, "code.google.com/p/gitso", "http://code.google.com/p/gitso")
data = open(os.path.join(paths['main'], 'icon.png'), "rb").read()
stream = cStringIO.StringIO(data)
img = wx.ImageFromStream(stream)
img.Rescale(150, 150)
bmp = wx.BitmapFromImage(img)
image1 = wx.StaticBitmap(self, -1, bmp)
## Buttons ##
ok = wx.Button(self, wx.ID_OK, "OK")
self.SetDefaultItem(ok)
ok.SetFocus()
wx.EVT_BUTTON(self, wx.ID_OK, self.CloseAbout)
## Sizers ##
topsizer = wx.BoxSizer(wx.VERTICAL);
info_sizer = wx.BoxSizer(wx.VERTICAL);
info_sizer.Add(text1, 0, wx.ALIGN_CENTER | wx.ALL, 7);
info_sizer.Add(text2, 0, wx.ALIGN_CENTER | wx.ALL, 3);
info_sizer.Add(text3, 0, wx.ALIGN_CENTER | wx.ALL, 3);
info_sizer.Add(url, 0, wx.ALIGN_CENTER | wx.ALL, 3);
heading_sizer = wx.BoxSizer(wx.HORIZONTAL);
heading_sizer.Add(image1, 0, wx.ALIGN_LEFT | wx.ALL, 10 );
heading_sizer.Add(info_sizer, 0, wx.ALL, 10 );
topsizer.Add(heading_sizer, 0, wx.ALIGN_CENTER);
## Tabs ##
nb = wx.Notebook(self, size=wx.Size(525,220))
license_page = LicensePage(nb, paths)
info_page = InfoPage(nb)
nb.AddPage(info_page, "Authors")
nb.AddPage(license_page, "License")
tab_sizer = wx.BoxSizer(wx.HORIZONTAL);
tab_sizer.Add(nb, 1, wx.EXPAND | wx.ALL, 10 );
topsizer.Add(tab_sizer, 1, wx.ALIGN_RIGHT );
## Buttons ##
button_sizer = wx.BoxSizer(wx.HORIZONTAL);
button_sizer.Add(ok, 0, wx.ALL, 10 );
topsizer.Add(button_sizer, 0, wx.ALIGN_RIGHT );
## Final settings ##
self.SetSizer(topsizer);
topsizer.SetSizeHints(self);
self.SetThemeEnabled(True)
self.Centre()
self.Show()
def CloseAbout(self, event):
self.Close()
ArgsParser.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
#! /usr/bin/env python
"""
Gisto - Gitso is to support others
Gitso is a utility to facilitate the connection of VNC
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@copyright: 2008 - 2010
Gitso 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 3 of the License, or
(at your option) any later version.
Gitso 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 Gitso. If not, see <http://www.gnu.org/licenses/>.
"""
import os
import sys
import signal
import os.path
import urllib
import re
class ArgsParser:
def __init__(self):
# Initialize Self.paths here.
self.paths = dict()
self.paths['resources'] = os.path.join(sys.path[0], "./")
self.paths['preferences'] = ''
self.paths['copyright'] = ''
self.paths['main'] = ''
self.paths['listen'] = False
self.paths['connect'] = ''
self.paths['list'] = []
self.paths['mode'] = ''
self.paths['low-colors'] = False
if re.match('(?:open|free|net)bsd|linux',sys.platform):
self.paths['main'] = os.path.join(sys.path[0], '..', 'share', 'gitso')
self.paths['copyright'] = os.path.join(sys.path[0], '..', 'share', 'doc', 'gitso', 'COPYING')
elif sys.platform == "darwin":
self.paths['main'] = sys.path[0]
self.paths['copyright'] = os.path.join(sys.path[0], 'COPYING')
else:
self.paths['main'] = os.path.join(sys.path[0], '..')
self.paths['copyright'] = os.path.join(sys.path[0], '..', 'COPYING')
#for i in range(1, len(sys.argv)):
i = 1
while i < len(sys.argv):
if sys.argv[i] == '--help': # --help
self.HelpMenu()
elif sys.argv[i] == '--version': # --version
print "Gitso 0.6 -- Copyright 2007 - 2010 Aaron Gerber and Derek Buranen."
exit(0)
elif sys.argv[i] == '--dev': # --dev
print "Running in 'Development Mode'"
self.paths['mode'] = 'dev'
if sys.platform == "darwin":
if not os.path.exists('build/OSXvnc'):
os.popen("mkdir build; cp arch/osx/OSXvnc.tar.gz build ; cd build ; tar xvfz OSXvnc.tar.gz > /dev/null")
if not os.path.exists('build/cotvnc.app'):
os.popen("cp arch/osx/cotvnc.app.tar.gz build ; cd build ; tar xvfz cotvnc.app.tar.gz > /dev/null")
self.paths['resources'] = 'build/'
self.paths['main']= sys.path[0]
self.paths['copyright'] = os.path.join(sys.path[0], 'COPYING')
elif sys.platform == "win32":
self.paths['copyright'] = os.path.join(sys.path[0], 'COPYING')
self.paths['main']= os.path.join(sys.path[0])
self.paths['resources'] = 'arch/win32/'
else:
self.paths['resources'] = 'arch/linux/'
self.paths['main']= os.path.join(sys.path[0])
self.paths['copyright'] = os.path.join(sys.path[0], 'COPYING')
elif sys.argv[i] == '--listen': # --listen
if self.paths['connect'] <> "":
print "Error: --connect and --listen can not be used at the same time."
self.HelpMenu()
self.paths['listen'] = True
elif sys.argv[i] == '--connect': # --connect
i = i + 1
if i >= len(sys.argv):
print "Error: No IP or domain name given."
self.HelpMenu()
if self.paths['listen']:
print "Error: --connect and --listen can not be used at the same time."
self.HelpMenu()
if sys.argv[i][0] + sys.argv[i][1] <> "--":
self.paths['connect'] = sys.argv[i]
else:
print "Error: '" + sys.argv[i] + "' is not a valid host with '--connect'."
self.HelpMenu()
elif sys.argv[i] == '--low-colors': # --low-colors
self.paths['low-colors'] = True;
elif sys.argv[i] == '--list': # --list
i = i + 1
if i >= len(sys.argv):
print "Error: No List file given."
self.HelpMenu()
if sys.argv[i][0] + sys.argv[i][1] <> "--":
self.paths['list'] = self.getHosts(sys.argv[i])
else:
print "Error: '" + sys.argv[i] + "' is not a valid list with '--list'."
self.HelpMenu()
else:
print "Error: '" + sys.argv[i] + "' is not a valid argument."
self.HelpMenu()
i = i + 1
if sys.platform == "darwin":
self.paths['preferences'] = os.path.join(os.path.expanduser("~"), "Library", "Application Support", "Gitso")
if os.path.exists(self.paths['preferences']) != True:
os.makedirs(self.paths['preferences'], 0700)
self.paths['preferences'] = os.path.join(self.paths['preferences'], "hosts")
elif sys.platform == "win32":
self.paths['preferences'] = os.path.join(os.getenv('USERPROFILE'), "gitso-hosts")
else:
self.paths['preferences'] = os.path.join(os.path.expanduser("~"), ".gitso-hosts")
#Help Menu
def HelpMenu(self):
print "Usage: " + os.path.basename(sys.argv[0]) + " [OPTION]"
print " OPTIONS"
print " --dev\t\tSet self.paths for development."
print " --listen\t\tListen for incoming connections."
print " --connect {IP|DN}\tConnects to host (support giver)."
print " --list {URL|FILE}\tAlternative Support list."
print " --low-colors\t\tUse 8bit colors (for slow connections). Linux only."
print " --version\t\tThe current Gitso version."
print " --help\t\tThis Menu."
exit(1)
def GetPaths(self):
return self.paths
def getHosts(self, file):
list = []
fileList = ""
if len(file) > 3:
prefix = file[0] + file[1] + file[2] + file[3]
else:
prefix = ""
if prefix == "www." or prefix == "http":
handle = urllib.urlopen(file)
fileList = handle.read()
handle.close()
else:
if os.path.exists(file):
handle = open(file, 'r')
fileList = handle.read()
handle.close()
parsedlist = fileList.split(",")
for i in range(0, len(parsedlist)):
if self.validHost(parsedlist[i].strip()):
list.append(parsedlist[i].strip())
return list
def validHost(self, host):
if host != "" and host.find(";") == -1 and host.find("/") == -1 and host.find("'") == -1 and host.find("`") == -1 and len(host) > 6:
return True
else:
return False
COPYING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
Gisto - Gitso is to support others
Copyright 2008 - 2010: Aaron Gerber, Derek Buranen
Gitso 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 3 of the License, or
(at your option) any later version.
Gitso 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.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program 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 3 of the License, or
(at your option) any later version.
This program 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 program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
ConnectionWindow.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
#! /usr/bin/env python
"""
Gisto - Gitso is to support others
Gitso is a utility to facilitate the connection of VNC
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@copyright: 2008 - 2010
Gitso 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 3 of the License, or
(at your option) any later version.
Gitso 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 Gitso. If not, see <http://www.gnu.org/licenses/>.
"""
import wx
import os, sys, signal, os.path, time, thread, re
import AboutWindow, GitsoThread
class ConnectionWindow(wx.Frame):
"""
Main Window for Gitso
@author: Derek Buranen
@author: Aaron Gerber
"""
def __init__(self, parent, id, title, paths):
"""
Setup Application Window
@author: Derek Buranen
@author: Aaron Gerber
@author: Markus Roth
"""
self.ToggleValue = 0
self.paths = paths
self.thread = None
self.threadLock = thread.allocate_lock()
# Disable until 0.7 release
self.enablePMP = False
if re.match('(?:open|free|net)bsd|linux',sys.platform):
width = 165
height = 350
xval1 = 155
xval2 = 250
else:
height = 350
width = 175
xval1 = 180
xval2 = 265
wx.Frame.__init__(self, parent, wx.ID_ANY, title, size=(height,width), style=wx.DEFAULT_FRAME_STYLE & ~ (wx.RESIZE_BORDER | wx.RESIZE_BOX | wx.MAXIMIZE_BOX))
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
if sys.platform == 'win32':
icon = wx.Icon(os.path.join(self.paths['main'], 'icon.ico'), wx.BITMAP_TYPE_ICO)
self.SetBackgroundColour(wx.Colour(236,233,216))
else:
icon = wx.Icon(os.path.join(self.paths['main'], 'icon.ico'), wx.BITMAP_TYPE_ICO)
self.SetIcon(icon)
#Buttons
self.connectButton = wx.Button(self, 10, "Start", wx.Point(xval1, 81))
self.connectButton.SetDefault()
wx.EVT_BUTTON(self, 10, self.ConnectSupport)
self.stopButton = wx.Button(self, wx.ID_STOP, "", wx.Point(xval2, 81))
self.stopButton.Enable(False)
wx.EVT_BUTTON(self, wx.ID_STOP, self.KillPID)
# Radio Boxes
self.rb1 = wx.RadioButton(self, -1, 'Get Help', (10, 15), style=wx.RB_GROUP)
self.rb2 = wx.RadioButton(self, -1, 'Give Support', (10, 48))
self.rb1.SetValue(True)
self.Bind(wx.EVT_RADIOBUTTON, self.RadioToggle, id=self.rb1.GetId())
self.Bind(wx.EVT_RADIOBUTTON, self.RadioToggle, id=self.rb2.GetId())
# checkbox for natpmp
if sys.platform == 'darwin' or re.match('(?:open|free|net)bsd|linux',sys.platform):
if self.enablePMP:
self.cb1 = wx.CheckBox(self, -1, 'Use NAT-PMP', (130, 48))
self.cb1.Enable(False)
# Checkbox for low color
self.cb2 = wx.CheckBox(self, -1, 'Use low colors', (10, 81))
self.cb2.Set3StateValue(False)
self.cb2.SetValue(self.paths['low-colors']) # Use value of --low-colors from command line
self.cb2.Enable(False)
# the combobox Control
self.sampleList = self.paths['list']
self.sampleList = self.getHosts(self.sampleList, os.path.join(self.paths['main'], 'hosts.txt'))
self.sampleList = self.getHosts(self.sampleList, self.paths['preferences'])
self.displayHostBox(self.sampleList, "Enter/Select Support Address")
# Menu
menuBar = wx.MenuBar()
fileMenu = wx.Menu()
editMenu = wx.Menu()
editMenu.Append(11, "&Cut\tCtrl+X", "Cut IP Address")
editMenu.Append(12, "&Copy\tCtrl+C", "Copy IP Address")
editMenu.Append(wx.ID_PASTE, "&Paste\tCtrl+V", "Paste IP Address")
wx.EVT_MENU(self, 11, self.SetClipboard)
wx.EVT_MENU(self, 12, self.SetClipboard)
wx.EVT_MENU(self, wx.ID_PASTE, self.GetClipboard)
fileMenu.Append(13, "&Clear History", "Clear History")
if sys.platform == 'darwin':
fileMenu.Append(wx.ID_ABOUT, "&About", "About Gitso")
wx.EVT_MENU(self, wx.ID_ABOUT, self.ShowAbout)
else:
fileMenu.Append(wx.ID_EXIT, "&Quit\tCtrl+Q", "Quit Gitso")
wx.EVT_MENU(self, wx.ID_EXIT, self.OnCloseWindow)
helpMenu = wx.Menu()
helpMenu.Append(wx.ID_ABOUT, "&About", "About Gitso")
wx.EVT_MENU(self, wx.ID_ABOUT, self.ShowAbout)
wx.EVT_MENU(self, 13, self.clearHistory)
menuBar.Append(fileMenu, "&File")
menuBar.Append(editMenu, "&Edit")
if re.match('(?:open|free|net)bsd|linux',sys.platform) or sys.platform == 'win32':
menuBar.Append(helpMenu, "&Help")
self.SetMenuBar(menuBar)
self.statusBar = self.CreateStatusBar()
self.statusBar.SetStatusWidths([350])
self.setMessage("Idle", False)
self.SetDefaultItem(self.hostField)
self.hostField.SetFocus()
self.SetThemeEnabled(True)
self.Centre()
self.Show(True)
if self.paths['listen']:
self.rb2.Value = True
self.RadioToggle(None)
self.ConnectSupport(None)
elif self.paths['connect'] <> "":
self.rb1.Value = True
self.RadioToggle(None)
self.hostField.Value = self.paths['connect']
self.ConnectSupport(None)
def RadioToggle(self, event):
"""
Toggles Radio Buttons
@author: Derek Buranen
@author: Aaron Gerber
@author: Markus Roth
"""
if self.rb1.GetValue():
self.ToggleValue = 0
self.hostField.Enable(True)
self.cb2.Enable(False)
if sys.platform == 'darwin' or re.match('(?:open|free|net)bsd|linux',sys.platform):
if self.enablePMP:
self.cb1.Enable(False)
else:
self.ToggleValue = 1
self.hostField.Enable(False)
self.cb2.Enable(True)
if sys.platform == 'darwin' or re.match('(?:open|free|net)bsd|linux',sys.platform):
if self.enablePMP:
self.cb1.Enable(True)
def ConnectSupport(self, event):
"""
Call VNC in a thread.
@author: Derek Buranen
@author: Aaron Gerber
"""
if self.rb1.GetValue(): # Get Help
if self.validHost(self.hostField.GetValue().strip()) and self.hostField.GetValue() != "Enter/Select Support Address":
self.setMessage("Connecting...", True)
host = self.hostField.GetValue().strip()
self.sampleList = []
self.sampleList = self.getHosts(self.sampleList, os.path.join(self.paths['main'], 'hosts.txt'))
self.sampleList = self.getHosts(self.sampleList, self.paths['preferences'])
if self.sampleList.count(host) == 0:
self.saveHost(self.paths['preferences'], host)
self.sampleList.append(host)
self.hostField.Destroy()
self.displayHostBox(self.sampleList, host)
self.createThread(host)
else:
self.setMessage("Invalid Support Address", False)
else: # Give Suppport
self.setMessage("Starting Server...", True)
self.createThread()
def ShowAbout(self,e):
"""
Display About Dialog
@author: Derek Buranen
@author: Aaron Gerber
"""
about = AboutWindow.AboutWindow(self, wx.ID_ABOUT, "About Gitso", self.paths)
def clearHistory(self, event):
handle = open(self.paths['preferences'], 'w')
handle.write("")
handle.close()
text = self.hostField.GetValue()
self.hostField.Destroy()
self.sampleList = []
self.sampleList = self.getHosts(self.sampleList, os.path.join(self.paths['main'], 'hosts.txt'))
self.sampleList = self.getHosts(self.sampleList, self.paths['preferences'])
self.displayHostBox(self.sampleList, text)
def GetClipboard(self, menu, data=None):
"""
Paste clipboard text in Support Entry Field
@author: Derek Buranen
@author: Aaron Gerber
"""
do = wx.TextDataObject()
wx.TheClipboard.Open()
clip = wx.TheClipboard.GetData(do)
wx.TheClipboard.Close()
if clip:
self.hostField.SetValue(do.GetText())
def SetClipboard(self, menu, data=None):
"""
Set the value of the clipboard
@author: Derek Buranen
@author: Aaron Gerber
"""
self.clipdata = wx.TextDataObject()
self.clipdata.SetText(self.hostField.GetValue())
wx.TheClipboard.Open()
wx.TheClipboard.SetData(self.clipdata)
wx.TheClipboard.Close()
if menu.GetId() == 11:
self.hostField.SetValue("")
def KillPID(self, showMessage=True):
"""
Kill VNC instance, called by the Stop Button or Application ends.
@author: Derek Buranen
@author: Aaron Gerber
"""
if self.thread <> None:
self.thread.kill()
# If you don't wait 0.5+ seconds, the interface won't reload and it'll freeze.
# Possibly on older systems you should wait longer, it works fine on mine...
time.sleep(.5)
self.thread = None
if showMessage :
self.setMessage("Idle.", False)
return
def OnCloseWindow(self, evt):
self.KillPID()
self.Destroy()
def validHost(self, host):
if host != "" and host.find(";") == -1 and host.find("/") == -1 and host.find("'") == -1 and host.find("`") == -1 and len(host) > 6:
return True
else:
return False
def getHosts(self, arr, file):
list = arr
if os.path.exists(file):
handle = open(file, 'r')
fileList = handle.read()
parsedlist = fileList.split(",")
for i in range(0, len(parsedlist)):
if self.validHost(parsedlist[i].strip()):
list.append(parsedlist[i].strip())
handle.close()
return list
def saveHost(self, file, host):
if os.path.exists(file):
handle = open(file, 'a')
handle.write(", %s" % host)
handle.close()
def displayHostBox(self, list, text):
self.hostField = wx.ComboBox(self, 30, "", wx.Point(105, 12), wx.Size(230, -1), list, wx.CB_DROPDOWN)
self.hostField.SetValue(text)
def setMessage(self, message, status):
if self.threadLock.locked():
return
self.threadLock.acquire()
self.statusBar.SetStatusText(message, 0)
if status:
self.connectButton.Enable(False)
self.stopButton.Enable(True)
else:
self.connectButton.Enable(True)
self.stopButton.Enable(False)
if self.ToggleValue == 0:
self.rb1.SetValue(True)
else:
self.rb2.SetValue(True)
self.threadLock.release()
def createThread(self, host=""):
self.paths['low-colors'] = self.cb2.GetValue() # Set low-colors to value of checkbox
self.KillPID(False)
self.thread = GitsoThread.GitsoThread(self, self.paths)
self.thread.setHost(host)
self.thread.start()
# If you don't wait 1+ seconds, the interface won't reload and it'll freeze.
# Possibly on older systems you should wait longer, it works fine on mine...
time.sleep(1)
Gitso.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#! /usr/bin/env python
"""
Gisto - Gitso is to support others
Gitso is a utility to facilitate the connection of VNC
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@copyright: 2008 - 2010
Gitso 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 3 of the License, or
(at your option) any later version.
Gitso 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 Gitso. If not, see <http://www.gnu.org/licenses/>.
"""
import sys, platform, re
if sys.platform == 'darwin':
# If we're on Snow Leopard, we want to use Python 2.5 until we figure out what Apple's doing with 2.6
ver = platform.mac_ver()
if re.match('10\.5', ver[0]) <> None:
"""
sys.path.append('/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python26.zip')
sys.path.append('/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5')
sys.path.append('/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin')
sys.path.append('/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac')
sys.path.append('/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages')
sys.path.append('/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python')
sys.path.append('/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk')
sys.path.append('/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-old')
sys.path.append('/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload')
sys.path.append('/Library/Python/2.5/site-packages')
sys.path.append('/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC')
"""
sys.path.append('/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/wx-2.8-mac-unicode')
elif re.match('10\.6', ver[0]) <> None:
sys.path.append('/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode')
import wx
import ConnectionWindow, ArgsParser
if __name__ == "__main__":
app = wx.App(False)
args = ArgsParser.ArgsParser()
ConnectionWindow.ConnectionWindow(None, -1, "Gitso", args.GetPaths())
app.MainLoop()
del app
GitsoThread.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
#! /usr/bin/env python
"""
Gisto - Gitso is to support others
Gitso is a utility to facilitate the connection of VNC
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@copyright: 2008 - 2010
Gitso 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 3 of the License, or
(at your option) any later version.
Gitso 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 Gitso. If not, see <http://www.gnu.org/licenses/>.
"""
import threading, time
import os, sys, signal, os.path, re
import Processes
if sys.platform == 'darwin' or re.match('(?:open|free|net)bsd|linux',sys.platform):
import NATPMP
class GitsoThread(threading.Thread):
def __init__(self, window, paths):
self.window = window
self.paths = paths
self.host = ""
self.error = False
self.pid = 0
self.running = True
self.process = Processes.Processes(self.window, paths)
threading.Thread.__init__(self)
def run(self):
"""
This is where the beef is. Start the processes and check on them.
@author: Aaron Gerber
"""
if self.host <> "":
# Get Help
self.pid = self.process.getSupport(self.host)
time.sleep(.5)
if self.checkStatus():
self.window.setMessage("Connected.", True)
else:
self.window.setMessage("Could not connect.", False)
self.error = True
else:
# Give Support
if sys.platform == 'darwin' or re.match('(?:open|free|net)bsd|linux',sys.platform):
if self.window.enablePMP:
self.window.cb1.Enable(False)
if self.window.cb1.GetValue() == True:
self.NATPMP('request')
self.pid = self.process.giveSupport()
time.sleep(.5)
if self.checkStatus():
self.window.setMessage("Server running.", True)
else:
self.window.setMessage("Could not start server.", False)
self.error = True
print "GitsoThread.run(pid: " + str(self.pid) + ") running..."
while(self.running and self.checkStatus()):
time.sleep(.2)
if not self.error:
self.window.setMessage("Idle.", False)
self.kill()
def setHost(self, host=""):
"""
Set the object variable.
@author: Aaron Gerber
"""
self.host = host
def kill(self):
"""
Kill the process and general clean-up.
@author: Aaron Gerber
"""
if sys.platform == 'darwin' or re.match('(?:open|free|net)bsd|linux',sys.platform):
if self.window.enablePMP:
if self.window.rb1.GetValue() == False: #give support
if self.window.cb1.GetValue() == True:
self.NATPMP('giveup')
self.window.cb1.Enable(True)
self.process.KillPID()
self.pid = 0
self.running = False
def checkStatus(self):
"""
Check the status of the underlying process.
@author: Aaron Gerber
"""
if self.pid == 0:
return False
connection = []
listen = []
if sys.platform == 'darwin' or re.match('(?:open|free|net)bsd|linux',sys.platform):
if self.host <> "":
connection = os.popen('LANG=C netstat -an | grep 5500 | grep ESTABLISHED').readlines()
else:
listen = os.popen('LANG=C netstat -an | grep 5500 | grep LISTEN').readlines()
elif sys.platform == 'win32':
#XP PRO only -- Need to fix the case where there is no process, it'll still return 1 line.
#info = os.popen('WMIC PROCESS ' + str(self.pid) + ' get Processid').readlines()
if self.host <> "":
connection = os.popen('netstat -a | find "ESTABLISHED" | find "5500"').readlines()
else:
listen = os.popen('netstat -a | find "LISTEN" | find "5500"').readlines()
else:
print 'Platform not detected'
if len(connection) == 0 and len(listen) == 0:
return False
else:
return True
def NATPMP(self, action):
"""
Call NAT-PMP on router to get port 5500 forwarded.
@author: Dennis Koot
"""
if sys.platform == 'darwin' or re.match('(?:open|free|net)bsd|linux',sys.platform):
if self.window.enablePMP:
if action == 'request':
lifetime = 3600
print "Request port 5500 (NAT-PMP)."
else:
lifetime = 0
print "Give up port 5500 (NAT-PMP)."
pubpriv_port = int(5500)
protocol = NATPMP.NATPMP_PROTOCOL_TCP
try:
gateway = NATPMP.get_gateway_addr()
print NATPMP.map_port(protocol, pubpriv_port, pubpriv_port, lifetime, gateway_ip=gateway)
except:
print "Warning: Unable to automap port."
NATPMP.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
#!/usr/bin/env python
"""NAT-PMP client library
Provides functions to interact with NAT-PMP gateways implementing version 0
of the NAT-PMP draft specification.
This version does not completely implement the draft standard.
* It does not provide functionality to listen for address change packets.
* It does not have a proper request queuing system, meaning that
multiple requests may be issued in parallel, against spec recommendations.
For more information on NAT-PMP, see the NAT-PMP draft specification:
http://files.dns-sd.org/draft-cheshire-nat-pmp.txt
Requires Python 2.3 or later.
Tested on Python 2.5, 2.6 against Apple AirPort Express.
0.2.2 - changed gateway autodetect, per github issue #1. thanks to jirib
0.2 - changed useException to use_exception, responseDataClass to response_data_class parameters in function calls for consistency
0.1 - repackaged via setuptools. Fixed major bug in gateway detection. Experimental gateway detection support for Windows 7. Python 2.6 testing.
0.0.1.2 - NT autodetection code. Thanks to roee shlomo for the gateway detection regex!
0.0.1.1 - Removed broken mutex code
0.0.1 - Initial release
"""
__version__ = "0.2"
__license__ = """Copyright (c) 2008-2010, Yiming Liu, All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* The names of the author and contributors may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE."""
__author__ = "Yiming Liu <http://www.yimingliu.com/>"
import struct, socket, select, time, platform
import sys, os, re
NATPMP_PORT = 5351
NATPMP_RESERVED_VAL = 0
NATPMP_PROTOCOL_UDP = 1
NATPMP_PROTOCOL_TCP = 2
NATPMP_GATEWAY_NO_VALID_GATEWAY = -10
NATPMP_GATEWAY_NO_SUPPORT = -11
NATPMP_GATEWAY_CANNOT_FIND = -12
NATPMP_RESULT_SUCCESS = 0 # Success
NATPMP_RESULT_UNSUPPORTED_VERSION = 1 # Unsupported Version
NATPMP_RESULT_NOT_AUTHORIZED = 2 # Not Authorized/Refused/NATPMP turned off
NATPMP_RESULT_NETWORK_FAILURE = 3 # Network Failure
NATPMP_RESULT_OUT_OF_RESOURCES = 4 # can not create more mappings
NATPMP_RESULT_UNSUPPORTED_OPERATION = 5 # not a supported opcode
# all remaining results are fatal errors
NATPMP_ERROR_DICT = {
NATPMP_RESULT_SUCCESS:"No error.",
NATPMP_RESULT_UNSUPPORTED_VERSION:"The protocol version specified is unsupported.",
NATPMP_RESULT_NOT_AUTHORIZED:"The operation was refused. NAT-PMP may be turned off on gateway.",
NATPMP_RESULT_NETWORK_FAILURE:"There was a network failure. The gateway may not have an IP address.",# Network Failure
NATPMP_RESULT_OUT_OF_RESOURCES:"The NAT-PMP gateway is out of resources and cannot create more mappings.", # can not create more mappings
NATPMP_RESULT_UNSUPPORTED_OPERATION:"The NAT-PMP gateway does not support this operation", # not a supported opcode
NATPMP_GATEWAY_NO_SUPPORT:'The gateway does not support NAT-PMP',
NATPMP_GATEWAY_NO_VALID_GATEWAY:'No valid gateway address was specified.',
NATPMP_GATEWAY_CANNOT_FIND:'Cannot automatically determine gateway address. Must specify manually.'
}
class NATPMPRequest(object):
"""Represents a basic NAT-PMP request. This currently consists of the
1-byte fields version and opcode.
Other requests are derived from NATPMPRequest.
"""
retry_increment = 0.250 # seconds
def __init__(self, version, opcode):
self.version = version
self.opcode = opcode
def toBytes(self):
"""Converts the request object to a byte string."""
return struct.pack('!BB', self.version, self.opcode)
class PublicAddressRequest(NATPMPRequest):
"""Represents a NAT-PMP request to the local gateway for a public address.
As per the specification, this is a generic request with the opcode = 0.
"""
def __init__(self, version=0):
NATPMPRequest.__init__(self, version, 0)
class PortMapRequest(NATPMPRequest):
"""Represents a NAT-PMP request to the local gateway for a port mapping.
As per the specification, this request extends NATPMPRequest with
the fields private_port, public_port, and lifetime. The first two
are 2-byte unsigned shorts, and the last is a 4-byte unsigned integer.
"""
def __init__(self, protocol, private_port, public_port, lifetime=3600, version=0):
NATPMPRequest.__init__(self, version, protocol)
self.private_port = private_port
self.public_port = public_port
self.lifetime = lifetime
def toBytes(self):
s= NATPMPRequest.toBytes(self) + struct.pack('!HHHI', NATPMP_RESERVED_VAL, self.private_port, self.public_port, self.lifetime)
return s
class NATPMPResponse(object):
"""Represents a generic NAT-PMP response from the local gateway. The
generic response has fields for version, opcode, result, and secs
since last epoch (last boot of the NAT gateway). As per the
specification, the opcode is offset by 128 from the opcode of
the original request.
"""
def __init__(self, version, opcode, result, sec_since_epoch):
self.version = version
self.opcode = opcode
self.result = result
self.sec_since_epoch = sec_since_epoch
def __str__(self):
return "NATPMPResponse(%d, %d, %d, $d)" % (self.version, self.opcode, self.result, self.sec_since_epoch)
class PublicAddressResponse(NATPMPResponse):
"""Represents a NAT-PMP response from the local gateway to a
public-address request. It has one additional 4-byte field
containing the IP returned.
The member variable ip contains the Python-friendly string form, while
ip_int contains the same in the original 4-byte unsigned int.
"""
def __init__(self, bytes):
version, opcode, result, sec_since_epoch, self.ip_int = struct.unpack("!BBHII", bytes)
NATPMPResponse.__init__(self, version, opcode, result, sec_since_epoch)
self.ip = socket.inet_ntoa(bytes[8:8+4])
#self.ip = socket.inet_ntoa(self.ip_bytes)
def __str__(self):
return "PublicAddressResponse: version %d, opcode %d (%d), result %d, ssec %d, ip %s" % (self.version, self.opcode, self.result, self.sec_since_epoch, self.ip)
class PortMapResponse(NATPMPResponse):
"""Represents a NAT-PMP response from the local gateway to a
public-address request. The response contains the private port,
public port, and the lifetime of the mapping in addition to typical
NAT-PMP headers. Note that the port mapping assigned is
NOT NECESSARILY the port requested (see the specification
for details).
"""
def __init__(self, bytes):
version, opcode, result, sec_since_epoch, self.private_port, self.public_port, self.lifetime = struct.unpack('!BBHIHHI', bytes)
NATPMPResponse.__init__(self, version, opcode, result, sec_since_epoch)
def __str__(self):
return "PortMapResponse: version %d, opcode %d (%d), result %d, ssec %d, private_port %d, public port %d, lifetime %d" % (self.version, self.opcode, self.opcode, self.result, self.sec_since_epoch, self.private_port, self.public_port, self.lifetime)
class NATPMPError(Exception):
"""Generic exception state. May be used to represent unknown errors."""
pass
class NATPMPResultError(NATPMPError):
"""Used when a NAT gateway responds with an error-state response."""
pass
class NATPMPNetworkError(NATPMPError):
"""Used when a network error occurred while communicating
with the NAT gateway."""
pass
class NATPMPUnsupportedError(NATPMPError):
"""Used when a NAT gateway does not support NAT-PMP."""
pass
def get_gateway_addr():
"""A hack to obtain the current gateway automatically, since
Python has no interface to sysctl().
This may or may not be the gateway we should be contacting.
It does not guarantee correct results.
This function requires the presence of
netstat on the path on POSIX and NT.
"""
addr = ""
shell_command = 'netstat -rn'
if os.name == "posix":
pattern = re.compile('(?:default|0\.0\.0\.0|::/0)\s+([\w\.:]+)\s+.*UG')
elif os.name == "nt":
if platform.version().startswith("6.1"):
pattern = re.compile(".*?0.0.0.0[ ]+0.0.0.0[ ]+(.*?)[ ]+?.*?\n")
else:
pattern = re.compile(".*?Default Gateway:[ ]+(.*?)\n")
system_out = os.popen(shell_command, 'r').read()
if not system_out:
raise NATPMPNetworkError(NATPMP_GATEWAY_CANNOT_FIND, error_str(NATPMP_GATEWAY_CANNOT_FIND))
match = pattern.search(system_out)
if not match:
raise NATPMPNetworkError(NATPMP_GATEWAY_CANNOT_FIND, error_str(NATPMP_GATEWAY_CANNOT_FIND))
addr = match.groups()[0].strip()
return addr # TODO: use real auto-detection
def error_str(result_code):
"""Takes a numerical error code and returns a human-readable
error string.
"""
result = NATPMP_ERROR_DICT.get(result_code)
if not result:
result = "Unknown fatal error."
return result
def get_gateway_socket(gateway):
"""Takes a gateway address string and returns a non-blocking UDP
socket to communicate with its NAT-PMP implementation on
NATPMP_PORT.
e.g. addr = get_gateway_socket('10.0.1.1')
"""
if not gateway:
raise NATPMPNetworkError(NATPMP_GATEWAY_NO_VALID_GATEWAY, error_str(NATPMP_GATEWAY_NO_VALID_GATEWAY))
response_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
response_socket.setblocking(0)
response_socket.connect((gateway, NATPMP_PORT))
return response_socket
def get_public_address(gateway_ip=None, retry=9):
"""A high-level function that returns the public interface IP of
the current host by querying the NAT-PMP gateway. IP is
returned as string.
Takes two possible keyword arguments:
gateway_ip - the IP to the NAT-PMP compatible gateway.
Defaults to using auto-detection function
get_gateway_addr()
retry - the number of times to retry the request if unsuccessful.
Defaults to 9 as per specification.
"""
if gateway_ip == None:
gateway_ip = get_gateway_addr()
addr = None
addr_request = PublicAddressRequest()
addr_response = send_request_with_retry(gateway_ip, addr_request, response_data_class=PublicAddressResponse, retry=retry)
if addr_response.result != 0:
#sys.stderr.write("NAT-PMP error %d: %s\n" % (addr_response.result, error_str(addr_response.result)))
#sys.stderr.flush()
raise NATPMPResultError(addr_response.result, error_str(addr_response.result), addr_response)
addr = addr_response.ip
return addr
def map_tcp_port(public_port, private_port, lifetime=3600, gateway_ip=None, retry=9, use_exception=True):
"""A high-level wrapper to map_port() that requests a mapping
for a public TCP port on the NAT to a private TCP port on this host.
Returns the complete response on success.
public_port - the public port of the mapping requested
private_port - the private port of the mapping requested
lifetime - the duration of the mapping in seconds.
Defaults to 3600, per specification.
gateway_ip - the IP to the NAT-PMP compatible gateway.
Defaults to using auto-detection function
get_gateway_addr()
retry - the number of times to retry the request if unsuccessful.
Defaults to 9 as per specification.
use_exception - throw an exception if an error result is
received from the gateway. Defaults to True.
"""
return map_port(NATPMP_PROTOCOL_TCP, public_port, private_port, lifetime, gateway_ip=gateway_ip, retry=retry, use_exception=use_exception)
def map_udp_port(public_port, private_port, lifetime=3600, gateway_ip=None, retry=9, use_exception=True):
"""A high-level wrapper to map_port() that requests a mapping for
a public UDP port on the NAT to a private UDP port on this host.
Returns the complete response on success.
public_port - the public port of the mapping requested
private_port - the private port of the mapping requested
lifetime - the duration of the mapping in seconds.
Defaults to 3600, per specification.
gateway_ip - the IP to the NAT-PMP compatible gateway.
Defaults to using auto-detection function
get_gateway_addr()
retry - the number of times to retry the request if unsuccessful.
Defaults to 9 as per specification.
use_exception - throw an exception if an error result is
received from the gateway. Defaults to True.
"""
return map_port(NATPMP_PROTOCOL_UDP, public_port, private_port, lifetime, gateway_ip=gateway_ip, retry=retry, use_exception=use_exception)
def map_port(protocol, public_port, private_port, lifetime=3600, gateway_ip=None, retry=9, use_exception=True):
"""A function to map public_port to private_port of protocol.
Returns the complete response on success.
protocol - NATPMP_PROTOCOL_UDP or NATPMP_PROTOCOL_TCP
public_port - the public port of the mapping requested
private_port - the private port of the mapping requested
lifetime - the duration of the mapping in seconds.
Defaults to 3600, per specification.
gateway_ip - the IP to the NAT-PMP compatible gateway.
Defaults to using auto-detection function
get_gateway_addr()
retry - the number of times to retry the request if unsuccessful.
Defaults to 9 as per specification.
use_exception - throw an exception if an error result
is received from the gateway. Defaults to True.
"""
if protocol not in [NATPMP_PROTOCOL_UDP, NATPMP_PROTOCOL_TCP]:
raise ValueError("Must be either NATPMP_PROTOCOL_UDP or NATPMP_PROTOCOL_TCP")
if gateway_ip == None:
gateway_ip = get_gateway_addr()
response = None
port_mapping_request = PortMapRequest(protocol, private_port, public_port, lifetime)
port_mapping_response = send_request_with_retry(gateway_ip, port_mapping_request, response_data_class=PortMapResponse, retry=retry)
if port_mapping_response.result != 0 and use_exception:
raise NATPMPResultError(port_mapping_response.result, error_str(port_mapping_response.result), port_mapping_response)
return port_mapping_response
def send_request(gateway_socket, request):
gateway_socket.sendall(request.toBytes())
def read_response(gateway_socket, timeout, responseSize=16):
data = ""
source_addr = ("", "")
rlist, wlist, xlist = select.select([gateway_socket], [], [], timeout)
if rlist:
resp_socket = rlist[0]
data,source_addr = resp_socket.recvfrom(responseSize)
return data,source_addr
def send_request_with_retry(gateway_ip, request, response_data_class=None, retry=9):
gateway_socket = get_gateway_socket(gateway_ip)
n = 1
data = ""
while n <= retry and not data:
send_request(gateway_socket, request)
data,source_addr = read_response(gateway_socket, n * request.retry_increment)
if source_addr[0] != gateway_ip or source_addr[1] != NATPMP_PORT:
data = "" # discard data if source mismatch, as per specification
n += 1
if n >= retry and not data:
raise NATPMPUnsupportedError(NATPMP_GATEWAY_NO_SUPPORT, error_str(NATPMP_GATEWAY_NO_SUPPORT))
if data and response_data_class:
data = response_data_class(data)
return data
if __name__ == "__main__":
addr = get_public_address()
map_resp = map_tcp_port(62001, 62001)
print addr
print map_resp.__dict__
Processes.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#! /usr/bin/env python
"""
Gisto - Gitso is to support others
Gitso is a utility to facilitate the connection of VNC
@author: Aaron Gerber ('gerberad') <gerberad@gmail.com>
@author: Derek Buranen ('burner') <derek@buranen.info>
@copyright: 2008 - 2010
Gitso 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 3 of the License, or
(at your option) any later version.
Gitso 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 Gitso. If not, see <http://www.gnu.org/licenses/>.
"""
import wx
import os, sys, signal, os.path, re
class Processes:
def __init__(self, window, paths):
self.returnPID = 0
self.window = window
self.paths = paths
def getSupport(self, host):
if sys.platform == 'darwin':
self.returnPID = os.spawnl(os.P_NOWAIT, '%sOSXvnc/OSXvnc-server' % self.paths['resources'], '%sOSXvnc/OSXvnc-server' % self.paths['resources'], '-connectHost', '%s' % host)
elif re.match('(?:open|free|net)bsd|linux',sys.platform):
# We should include future versions with options for speed.
#self.returnPID = os.spawnlp(os.P_NOWAIT, 'x11vnc', 'x11vnc','-nopw','-ncache','20','-solid','black','-connect','%s' % host)
self.returnPID = os.spawnlp(os.P_NOWAIT, 'x11vnc', 'x11vnc','-nopw','-ncache','20','-connect','%s' % host)
# Added for OpenBSD compatibility
import time
time.sleep(3)
elif sys.platform == 'win32':
import subprocess
self.returnPID = subprocess.Popen(['WinVNC.exe'])
print "Launched WinVNC.exe, waiting to run -connect command..."
import time
time.sleep(3)
if self.paths['mode'] == 'dev':
subprocess.Popen(['%sWinVNC.exe' % self.paths['resources'], '-connect', '%s' % host])
else:
subprocess.Popen(['WinVNC.exe', '-connect', '%s' % host])
else:
print 'Platform not detected'
return self.returnPID
def giveSupport(self):
if sys.platform == 'darwin':
vncviewer = '%scotvnc.app/Contents/MacOS/cotvnc' % self.paths['resources']
self.returnPID = os.spawnlp(os.P_NOWAIT, vncviewer, vncviewer, '--listen')
elif re.match('(?:open|free|net)bsd|linux',sys.platform):
# These are the options for low-res connections.
# In the future, I'd like to support cross-platform low-res options.
# What aboot a checkbox in the gui
if self.paths['low-colors'] == False:
self.returnPID = os.spawnlp(os.P_NOWAIT, 'vncviewer', 'vncviewer', '-listen')
else:
self.returnPID = os.spawnlp(os.P_NOWAIT, 'vncviewer', 'vncviewer', '-bgr233', '-listen')
elif sys.platform == 'win32':
import subprocess
if self.paths['mode'] == 'dev':
self.returnPID = subprocess.Popen(['%svncviewer.exe' % self.paths['resources'], '-listen'])
else:
self.returnPID = subprocess.Popen(['vncviewer.exe', '-listen'])
else:
print 'Platform not detected'
return self.returnPID
def KillPID(self):
"""
Kill VNC instance, called by the Stop Button or Application ends.
@author: Derek Buranen
@author: Aaron Gerber
"""
if self.returnPID != 0:
print "Processes.KillPID(" + str(self.returnPID) + ")"
if sys.platform == 'win32':
import win32api
PROCESS_TERMINATE = 1
handle = win32api.OpenProcess(PROCESS_TERMINATE, False, self.returnPID.pid)
win32api.TerminateProcess(handle, -1)
win32api.CloseHandle(handle)
elif re.match('(?:open|free|net)bsd|linux',sys.platform):
# New processes are created when you made connections. So if you kill self.returnPID,
# you're just killing the dispatch process, not the one actually doing business...
os.spawnlp(os.P_NOWAIT, 'pkill', 'pkill', '-f', 'vncviewer')
os.spawnlp(os.P_NOWAIT, 'pkill', 'pkill', '-f', 'x11vnc')
else:
os.kill(self.returnPID, signal.SIGKILL)
self.returnPID = 0
return
arch/linux/README-stand-alone.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Gitso is to support others.
We created Gitso as a frontend to reverse VNC connections. It is meant
to be a simple two-step process that connects one person to another's
screen. First, the support person offers to give support. Second, the
person who needs help connects and has their screen remotely visible.
Because Gitso is cross-platform (Ubuntu, OS X and Windows) and uses a
reverse VNC connection, it greatly simplifies the process of getting support.
Gitso 0.6: (Feb 21, 2010)
* Complete rewrite of process management.
* Actually stop VNC Processes (Windows)
* Support loading remote hosts file.
* Command line switches
* --dev
* --listen
* --connect IP
* --list list_file
* --version
* --help
* manpage for (All UNIX sytems)
* Support for .rpms (Fedora, OpenSUSE, CentOS)
* Implement Native VNC listener (OS X)
* Better process management, user gets notified if connection is broken.
* Licensing Updates (across the board).
* Improved documentation.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Gitso Distro-independent Code.
Note: If you run Ubuntu, it'd be easier to use gitso_0.6_all.deb. However,
if you aren't running Ubuntu proceed.
Requirements:
x11vnc
vncviewer
wxPython
Usage: ./run-gitso.sh [options]
Options:
--listen
--connect IP
--list list_file
--version
--help
arch/linux/README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#Gitso is to support others.
#----------------------------------------
#Prerequisites:
x11vnc xtightvncviewer
#Installation:
1. double-click .deb ;)
or
2. unpack it as used in package/ to your filesystem
#Run:
gitso
#Description:
We created Gitso as a GUI wrapper to create a reverse VNC connection. It is meant to be easy enough so the
person who needs help can get it. They run this program and type in the IP address given to them by their
friend offering support. The person who is giving support needs to have port 5500 open to their machine.
arch/linux/build_rpm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/bash
# Check parameters
if test "$1" = ""; then
echo -e "************************\nError: No arguments were given to build_rpm.sh\n************************\n"
exit 1
fi
echo -e "Setting up RPM build-root!\n\t"
BUILD_ROOT="$HOME/rpmbuild/BUILDROOT/gitso-0.6-1.i386"
mkdir -p $BUILD_ROOT/usr/bin/
mkdir -p $BUILD_ROOT/usr/share/gitso/
mkdir -p $BUILD_ROOT/usr/share/applications/
mkdir -p $BUILD_ROOT/usr/share/doc/gitso/
mkdir -p $BUILD_ROOT/usr/share/man/man1
cp arch/linux/gitso $BUILD_ROOT/usr/bin/
chmod 755 $BUILD_ROOT/usr/bin/gitso
cp arch/linux/gitso.desktop $BUILD_ROOT/usr/share/applications/
cp COPYING $BUILD_ROOT/usr/share/doc/gitso/
cp arch/linux/README.txt $BUILD_ROOT/usr/share/doc/gitso/README
gzip -cf arch/linux/changelog > $BUILD_ROOT/usr/share/doc/gitso/changelog.gz
cp Gitso.py $BUILD_ROOT/usr/share/gitso/
cp ConnectionWindow.py $BUILD_ROOT/usr/share/gitso/
cp AboutWindow.py $BUILD_ROOT/usr/share/gitso/
cp GitsoThread.py $BUILD_ROOT/usr/share/gitso/
cp Processes.py $BUILD_ROOT/usr/share/gitso/
cp ArgsParser.py $BUILD_ROOT/usr/share/gitso/
cp __init__.py $BUILD_ROOT/usr/share/gitso/
cp NATPMP.py $BUILD_ROOT/usr/share/gitso/
cp hosts.txt $BUILD_ROOT/usr/share/gitso/
cp icon.ico $BUILD_ROOT/usr/share/gitso/
cp icon.png $BUILD_ROOT/usr/share/gitso/
gzip -cf arch/linux/gitso.1 > $BUILD_ROOT/usr/share/man/man1/gitso.1.gz
echo 'Done';
arch/linux/changelog
1
../../debian/changelog
arch/linux/control
1
../../debian/control
arch/linux/gitso
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python
import sys, os, wx
sys.path.append(os.path.join(sys.path[0], '..', 'share', 'gitso'))
from Gitso import ConnectionWindow, ArgsParser
if __name__ == "__main__":
app = wx.App(False)
args = ArgsParser.ArgsParser()
ConnectionWindow.ConnectionWindow(None, -1, "Gitso", args.GetPaths())
app.MainLoop()
del app
arch/linux/gitso.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.TH GITSO 1 "October 2008" "gitso-0.6" "Gitso"
.SH NAME
gitso - Gitso is to support others
.SH SYNOPSIS
.B gitso
[
.B --dev
|
.B --listen
|
.B --connect
.I host
|
.B --list
.I list
|
.B --low-colors
|
.B --version
|
.B --help
]
.SH DESCRIPTION
Gitso is a frontend to reverse VNC connections. It is meant to be a simple two-step process that connects one person to another's screen in the context of giving technical support.
.SH OPTIONS
.TP
.B --dev
Configures paths for running Gitso in the source tree.
.TP
.B --listen
Start Gitso and listen for incoming connections
.TP
.B --connect
Starts gitso and automatically connects to
.I host
which is an IP or domain name (address of support giver).
.TP
.B --list
Alternative support list, where
.I list
is either a URL of a remote file or path to local file.
.TP
.B --low-colors
Use 8bit colors (for slow connections).
.TP
.B --version
The current Gitso version.
.TP
.B --help
Display the help menu.
.SH HOST FILES
.I $HOME/.gitso-hosts
.I /usr/share/gitso/hosts.txt
.SH EXAMPLES
.TP
gitso --list http://support.mydomain.com/techs.txt
Gets the list of technician IP's or DN's from techs.txt
.TP
gitso --list sanda.mydomain.com,aicha.mydomain.com
Adds these three entries to the list of support techs.
.TP
gitso --connect hank.mydomain.com
Automatically connects to hank.mydomain.com
.SH SEE ALSO
.I x11vnc
.I vncviewer
.SH AUTHOR
Aaron Gerber and Derek Buranen
arch/linux/gitso.desktop
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Desktop Entry]
Version=0.6
Encoding=UTF-8
Name=Gitso
Name[en_GB]=Gitso
Name[en_US]=Gitso
Comment=Connect to others using VNC protocol
Exec=gitso
Icon=/usr/share/gitso/icon.ico
Terminal=false
MimeType=application/x-remote-connection;
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Network;RemoteAccess;
arch/linux/gitso_rpm.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
%define _topdir %(echo $HOME)/rpm
%define _tmppath %{_topdir}/tmp
%define _prefix /usr/share
%define _defaultdocdir %{_prefix}/doc
%define _mandir %{_prefix}/man
%define buildroot%{_tmppath}/gitso-root
Name:gitso
Summary:Gitso - Is to Support Others
Version:0.6
Release:1
License:GPL 3
Group:Internet
Source:http://gitso.googlecode.com/files/gitso_0.6_src.tar.bz2
URL:http://code.google.com/p/gitso/
Requires:python, x11vnc, tightvnc, wxGTK, python-wxGTK
Buildroot:%{_tmppath}/gitso-root
Packager: Aaron Gerber
%description
Gitso is a frontend to reverse VNC connections. It is meant to be a
simple two-step process that connects one person to another's screen.
%prep
%setup
%build
%install
./arch/linux/build_rpm.sh %(echo $HOME)
%clean
%files
/usr/bin/gitso
%{_prefix}/applications/gitso.desktop
%{_prefix}/doc/gitso/COPYING
%{_prefix}/doc/gitso/README
%{_prefix}/doc/gitso/changelog.gz
%{_prefix}/gitso/Gitso.py
%{_prefix}/gitso/ConnectionWindow.py
%{_prefix}/gitso/AboutWindow.py
%{_prefix}/gitso/GitsoThread.py
%{_prefix}/gitso/Processes.py
%{_prefix}/gitso/ArgsParser.py
%{_prefix}/gitso/__init__.py
%{_prefix}/gitso/hosts.txt
%{_prefix}/gitso/NATPMP.py
%{_prefix}/gitso/icon.ico
%{_prefix}/gitso/icon.png
%{_mandir}/man1/gitso.1.gz
%changelog
* Sun Oct 26 2008 Aaron Gerber <gerberad@gmail.com>
- Created RPM
arch/linux/gitso_rpm_centos.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
%define _topdir %(echo $HOME)/rpm
%define _tmppath %{_topdir}/tmp
%define _prefix /usr/share
%define _defaultdocdir %{_prefix}/doc
%define _mandir %{_prefix}/man
%define buildroot%{_tmppath}/gitso-root
Name:gitso
Summary:Gitso - Is to Support Others
Version:0.6
Release:1
License:GPL 3
Group:Internet
Source:http://gitso.googlecode.com/files/gitso_0.6_src.tar.bz2
URL:http://code.google.com/p/gitso/
Requires:python, vnc, x11vnc, vnc-server, wxGTK, wxPython
Buildroot:%{_tmppath}/gitso-root
Packager: Aaron Gerber
%description
Gitso is a frontend to reverse VNC connections. It is meant to be a
simple two-step process that connects one person to another's screen.
%prep
%setup
%build
%install
./arch/linux/build_rpm.sh %(echo $HOME)
%clean
%files
/usr/bin/gitso
%{_prefix}/applications/gitso.desktop
%{_prefix}/doc/gitso/COPYING
%{_prefix}/doc/gitso/README
%{_prefix}/doc/gitso/changelog.gz
%{_prefix}/gitso/Gitso.py
%{_prefix}/gitso/ConnectionWindow.py
%{_prefix}/gitso/AboutWindow.py
%{_prefix}/gitso/GitsoThread.py
%{_prefix}/gitso/Processes.py
%{_prefix}/gitso/ArgsParser.py
%{_prefix}/gitso/__init__.py
%{_prefix}/gitso/NATPMP.py
%{_prefix}/gitso/hosts.txt
%{_prefix}/gitso/icon.ico
%{_prefix}/gitso/icon.png
%{_mandir}/man1/gitso.1.gz
%changelog
* Sun Oct 26 2008 Aaron Gerber <gerberad@gmail.com>
- Created RPM
arch/linux/gitso_rpm_fedora.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
%define _topdir %(echo $HOME)/rpm
%define _tmppath %{_topdir}/tmp
%define _prefix /usr/share
%define _defaultdocdir %{_prefix}/doc
%define _mandir %{_prefix}/man
%define buildroot%{_tmppath}/gitso-root
Name:gitso
Summary:Gitso - Is to Support Others
Version:0.6
Release:1
License:GPL 3
Group:Internet
Source:http://gitso.googlecode.com/files/gitso_0.6_src.tar.bz2
URL:http://code.google.com/p/gitso/
Requires:python, vnc, x11vnc, vnc-server, wxGTK, wxPython
Buildroot:%{_tmppath}/gitso-root
Packager: Aaron Gerber
%description
Gitso is a frontend to reverse VNC connections. It is meant to be a
simple two-step process that connects one person to another's screen.
%prep
%setup
%build
%install
./arch/linux/build_rpm.sh %(echo $HOME)
%clean
%files
/usr/bin/gitso
%{_prefix}/applications/gitso.desktop
%{_prefix}/doc/gitso/COPYING
%{_prefix}/doc/gitso/README
%{_prefix}/doc/gitso/changelog.gz
%{_prefix}/gitso/Gitso.py
%{_prefix}/gitso/ConnectionWindow.py
%{_prefix}/gitso/AboutWindow.py
%{_prefix}/gitso/GitsoThread.py
%{_prefix}/gitso/Processes.py
%{_prefix}/gitso/ArgsParser.py
%{_prefix}/gitso/__init__.py
%{_prefix}/gitso/NATPMP.py
%{_prefix}/gitso/hosts.txt
%{_prefix}/gitso/icon.ico
%{_prefix}/gitso/icon.png
%{_mandir}/man1/gitso.1.gz
%changelog
* Sun Oct 26 2008 Aaron Gerber <gerberad@gmail.com>
- Created RPM
arch/linux/run-gitso.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/bash
if test "$1" == "-h" -o "$1" == "--help"; then
echo -e "Usage: ./run-gitso.sh [options]"
echo -e "\tOptions:"
echo -e "\t--have-wxpython:\tDisable wxPython library check"
exit 0
fi
## Checking for x11vnc
if test ! "`which x11vnc`"; then
echo -e "Error - x11vnc was not found on your system.\n"
exit 1
fi
## Checking for wxpython
if test "$1" != "--have-wxpython"; then
if test ! "`locate wxPython/lib`"; then
echo -e "\nError - wxPython was not found on your system."
echo -e "\nIf you know you have wxPython installed, use '--have-wxpython'.\n\tExample: ./run-gitso --have-wxpython\n"
exit 1
fi
else
echo -e "\nBypassing wxpython check..."
fi
## Checking for vncviewer
if test ! "`which vncviewer`"; then
echo -e "\nError - vncviewer was not found on your system.\n"
exit 1
fi
echo -e "Starting Gitso..."
bin/gitso
arch/osx/Info_OSX-10.5.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>Gitso</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
<string>fold</string>
<string>disk</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>Gitso</string>
<key>CFBundleIconFile</key>
<string>PythonApplet.icns</string>
<key>CFBundleIdentifier</key>
<string>org.pythonmac.unspecified.Gitso</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Gitso</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.5</string>
<key>LSHasLocalizedDisplayName</key>
<false/>
<key>NSAppleScriptEnabled</key>
<false/>
<key>NSHumanReadableCopyright</key>
<string>Copyright not specified</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>PyMainFileNames</key>
<array>
<string>__boot__</string>
</array>
<key>PyOptions</key>
<dict>
<key>alias</key>
<false/>
<key>argv_emulation</key>
<true/>
<key>no_chdir</key>
<false/>
<key>optimize</key>
<integer>0</integer>
<key>prefer_ppc</key>
<false/>
<key>site_packages</key>
<false/>
<key>use_pythonpath</key>
<false/>
</dict>
<key>PyResourcePackages</key>
<array/>
<key>PyRuntimeLocations</key>
<array>
<string>@executable_path/../Frameworks/Python.framework/Versions/2.5/Python</string>
<string>/System/Library/Frameworks/Python.framework/Versions/2.5/Python</string>
</array>
<key>PythonInfoDict</key>
<dict>
<key>PythonExecutable</key>
<string>/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python</string>
<key>PythonLongVersion</key>
<string>2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
[GCC 4.0.1 (Apple Inc. build 5465)]</string>
<key>PythonShortVersion</key>
<string>2.5</string>
<key>py2app</key>
<dict>
<key>alias</key>
<false/>
<key>template</key>
<string>app</string>
<key>version</key>
<string>0.3.6</string>
</dict>
</dict>
</dict>
</plist>
arch/osx/Info_OSX-10.6.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>Gitso</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
<string>fold</string>
<string>disk</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>Gitso</string>
<key>CFBundleIconFile</key>
<string>PythonApplet.icns</string>
<key>CFBundleIdentifier</key>
<string>org.pythonmac.unspecified.Gitso</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Gitso</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.6</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.6</string>
<key>LSHasLocalizedDisplayName</key>
<false/>
<key>NSAppleScriptEnabled</key>
<false/>
<key>NSHumanReadableCopyright</key>
<string>Aaron Gerber and Derek Buranen 2010</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>PyMainFileNames</key>
<array>
<string>__boot__</string>
</array>
<key>PyOptions</key>
<dict>
<key>alias</key>
<false/>
<key>argv_emulation</key>
<true/>
<key>no_chdir</key>
<false/>
<key>optimize</key>
<integer>0</integer>
<key>prefer_ppc</key>
<false/>
<key>site_packages</key>
<false/>
<key>use_pythonpath</key>
<false/>
</dict>
<key>PyResourcePackages</key>
<array/>
<key>PyRuntimeLocations</key>
<array>
<string>@executable_path/../Frameworks/Python.framework/Versions/2.6/Python</string>
<string>/System/Library/Frameworks/Python.framework/Versions/2.6/Python</string>
</array>
<key>PythonInfoDict</key>
<dict>
<key>PythonExecutable</key>
<string>/System/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python</string>
<key>PythonLongVersion</key>
<string>Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin</string>
<key>PythonShortVersion</key>
<string>2.6</string>
<key>py2app</key>
<dict>
<key>alias</key>
<false/>
<key>template</key>
<string>app</string>
<key>version</key>
<string>0.4.2</string>
</dict>
</dict>
</dict>
</plist>
arch/osx/Readme.rtfd/TXT.rtf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf250
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;\red1\green6\blue255;\red0\green15\blue255;}
\margl1440\margr1440\vieww12020\viewh15120\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural
\f0\fs24 \cf0 \
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\qc\pardirnatural
\cf0 {{\NeXTGraphic icon.jpg \width5200 \height5200 \noorient
\b\fs50 \cf0 \
Gitso
\b0 is to support others.\
\fs36 Version
\b 0.6
\b0\fs24 \
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural
\cf0 \
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\qc\pardirnatural
\b\fs34 \cf2 http://code.google.com/p/gitso
\b0\fs24 \cf0 \
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural
\cf0 \
We created Gitso as a GUI wrapper to create a reverse VNC connection. It is meant to be easy enough so the person who needs help can get it. They run this program and type in the IP address given to them by their friend offering support.\
\
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural
\b \cf0 Note:
\b0 The person who is giving support needs to have port 5500 open to their machine.\
\
\b To Install:\
\b0 Copy Gitso.app to the /Applications/ folder.\
\
\b To Uninstall:\
\b0 Remove /Applications/Gitso.app.\
\b
\b0 Remove ~/Library/Application Support/Gitso.\
\
\b Gitso uses both:
\b0 \
OSXvnc: http://sourceforge.net/projects/osxvnc/\
Tightvnc: http://www.tightvnc.com/ \
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\qc\pardirnatural
\cf0 \
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural
\cf0 \
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\qc\pardirnatural
\cf0 Authors: Aaron Gerber and Derek Buranen\
Copyright: 2007 - 2010\
\
GPL 3: \cf3 http://www.gnu.org/licenses/gpl.html\cf0 \
}
arch/osx/cotvnc-copyright.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
Chicken Of The VNC
Copyright (C) 2002-2006 by Jason Harris
Copyright (C) 1998-2000 by Helmut Maierhofer
Icon generously provided by Cale Peeples cale@dumbculture.com
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program 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 program 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 program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
arch/osx/cotvnc-gitso.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
Only in .: .DS_Store
Only in ./Chicken of the VNC.xcodeproj: gerberad.mode1v3
Only in ./Chicken of the VNC.xcodeproj: gerberad.pbxuser
diff -aurr ./Chicken of the VNC.xcodeproj/project.pbxproj ../cotvnc/Chicken of the VNC.xcodeproj/project.pbxproj
--- ./Chicken of the VNC.xcodeproj/project.pbxproj2008-11-10 21:37:35.000000000 -0700
+++ ../cotvnc/Chicken of the VNC.xcodeproj/project.pbxproj2007-03-28 18:52:50.000000000 -0600
@@ -1209,7 +1209,6 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
buildConfigurationList = E20426EA087531990026AA26 /* Build configuration list for PBXProject "Chicken of the VNC" */;
-compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1;
knownRegions = (
English,
@@ -1220,7 +1219,6 @@
);
mainGroup = 29B97314FDCFA39411CA2CEA /* Chicken of the VNC */;
projectDirPath = "";
-projectRoot = "";
targets = (
7F7A93E305E71B5C00E20416 /* Chicken of the VNC */,
7F916AA40BB6E98900E31F20 /* libjpeg */,
diff -aurr ./Resources/English.lproj/OSX_RFBViewer.nib/classes.nib ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib/classes.nib
--- ./Resources/English.lproj/OSX_RFBViewer.nib/classes.nib2008-11-07 22:54:10.000000000 -0700
+++ ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib/classes.nib2005-04-14 18:46:42.000000000 -0600
@@ -1,90 +1,130 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-<key>IBClasses</key>
-<array>
-<dict>
-<key>ACTIONS</key>
-<dict>
-<key>changeRendezvousUse</key>
-<string>id</string>
-<key>showConnectionDialog</key>
-<string>id</string>
-<key>showHelp</key>
-<string>id</string>
-<key>showListenerDialog</key>
-<string>id</string>
-<key>showNewConnectionDialog</key>
-<string>id</string>
-<key>showPreferences</key>
-<string>id</string>
-<key>showProfileManager</key>
-<string>id</string>
-</dict>
-<key>CLASS</key>
-<string>AppDelegate</string>
-<key>LANGUAGE</key>
-<string>ObjC</string>
-<key>OUTLETS</key>
-<dict>
-<key>mInfoVersionNumber</key>
-<string>NSTextField</string>
-<key>mRendezvousMenuItem</key>
-<string>NSMenuItem</string>
-</dict>
-<key>SUPERCLASS</key>
-<string>NSObject</string>
-</dict>
-<dict>
-<key>CLASS</key>
-<string>NSObject</string>
-<key>LANGUAGE</key>
-<string>ObjC</string>
-</dict>
-<dict>
-<key>ACTIONS</key>
-<dict>
-<key>makeConnectionFullscreen</key>
-<string>id</string>
-<key>makeConnectionWindowed</key>
-<string>id</string>
-<key>manuallyUpdateFrameBuffer</key>
-<string>id</string>
-<key>openNewTitlePanel</key>
-<string>id</string>
-<key>openOptions</key>
-<string>id</string>
-<key>pasteViaKeypress</key>
-<string>id</string>
-<key>sendBreakKeyCode</key>
-<string>id</string>
-<key>sendCmdOptEsc</key>
-<string>id</string>
-<key>sendCtrlAltDel</key>
-<string>id</string>
-<key>sendDeleteKeyCode</key>
-<string>id</string>
-<key>sendExecuteKeyCode</key>
-<string>id</string>
-<key>sendInsertKeyCode</key>
-<string>id</string>
-<key>sendPauseKeyCode</key>
-<string>id</string>
-<key>sendPrintKeyCode</key>
-<string>id</string>
-<key>toggleFullscreenMode</key>
-<string>id</string>
-</dict>
-<key>CLASS</key>
-<string>FirstResponder</string>
-<key>LANGUAGE</key>
-<string>ObjC</string>
-<key>SUPERCLASS</key>
-<string>NSObject</string>
-</dict>
-</array>
-<key>IBVersion</key>
-<string>1</string>
-</dict>
-</plist>
+{
+ IBClasses = (
+ {
+ ACTIONS = {
+ changeRendezvousUse = id;
+ showConnectionDialog = id;
+ showHelp = id;
+ showListenerDialog = id;
+ showNewConnectionDialog = id;
+ showPreferences = id;
+ showProfileManager = id;
+ };
+ CLASS = AppDelegate;
+ LANGUAGE = ObjC;
+ OUTLETS = {mInfoVersionNumber = NSTextField; mRendezvousMenuItem = NSMenuItem; };
+ SUPERCLASS = NSObject;
+ },
+ {
+ ACTIONS = {
+ makeConnectionFullscreen = id;
+ makeConnectionWindowed = id;
+ manuallyUpdateFrameBuffer = id;
+ openNewTitlePanel = id;
+ openOptions = id;
+ pasteViaKeypress = id;
+ sendBreakKeyCode = id;
+ sendCmdOptEsc = id;
+ sendCtrlAltDel = id;
+ sendDeleteKeyCode = id;
+ sendExecuteKeyCode = id;
+ sendInsertKeyCode = id;
+ sendPauseKeyCode = id;
+ sendPrintKeyCode = id;
+ toggleFullscreenMode = id;
+ };
+ CLASS = FirstResponder;
+ LANGUAGE = ObjC;
+ SUPERCLASS = NSObject;
+ },
+ {
+ ACTIONS = {changeSelectedScenario = id; restoreDefaults = id; };
+ CLASS = KeyEquivalentPrefsController;
+ LANGUAGE = ObjC;
+ OUTLETS = {mConnectionType = NSPopUpButton; mOutlineView = NSOutlineView; };
+ SUPERCLASS = NSObject;
+ },
+ {CLASS = Profile; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
+ {
+ ACTIONS = {
+ addProfile = id;
+ changeEncodingState = id;
+ deleteProfile = id;
+ profileChanged = id;
+ profileSelected = id;
+ reorderEncodings = id;
+ };
+ CLASS = ProfileManager;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ altKey = id;
+ commandKey = id;
+ controlKey = id;
+ deleteProfileButton = id;
+ enableCopyRect = id;
+ encodingTableView = id;
+ m3bTimeout = id;
+ mkbTimeout = id;
+ mkdTimeout = id;
+ newProfileButton = id;
+ pixelFormatMatrix = id;
+ profileBrowser = id;
+ profileField = id;
+ profilePanel = id;
+ shiftKey = id;
+ upDownButtonMatrix = id;
+ };
+ SUPERCLASS = NSObject;
+ },
+ {
+ ACTIONS = {
+ addServer = id;
+ deleteSelectedServer = id;
+ showConnectionDialog = id;
+ showNewConnectionDialog = id;
+ };
+ CLASS = RFBConnectionManager;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ groupList = NSTableView;
+ serverDataBoxLocal = NSBox;
+ serverDeleteBtn = NSButton;
+ serverGroupBox = NSBox;
+ serverList = NSTableView;
+ serverListBox = NSBox;
+ splitView = NSSplitView;
+ };
+ SUPERCLASS = NSWindowController;
+ },
+ {CLASS = ServerDataManager; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
+ {
+ ACTIONS = {
+ connectToServer = id;
+ displayChanged = id;
+ hostChanged = id;
+ passwordChanged = id;
+ profileSelectionChanged = id;
+ rememberPwdChanged = id;
+ sharedChanged = id;
+ };
+ CLASS = ServerDataViewController;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ box = NSBox;
+ connectBtn = NSButton;
+ connectIndicator = NSProgressIndicator;
+ connectIndicatorText = NSTextField;
+ display = NSTextField;
+ hostName = NSTextField;
+ mDelegate = id;
+ mServer = id;
+ password = NSTextField;
+ profilePopup = NSPopUpButton;
+ rememberPwd = NSButton;
+ shared = NSButton;
+ };
+ SUPERCLASS = NSWindowController;
+ }
+ );
+ IBVersion = 1;
+}
\ No newline at end of file
diff -aurr ./Resources/English.lproj/OSX_RFBViewer.nib/info.nib ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib/info.nib
--- ./Resources/English.lproj/OSX_RFBViewer.nib/info.nib2008-11-07 22:54:10.000000000 -0700
+++ ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib/info.nib2006-01-18 12:42:18.000000000 -0700
@@ -1,20 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
+<key>IBDocumentLocation</key>
+<string>3 4 356 240 0 0 1280 832 </string>
+<key>IBEditorPositions</key>
+<dict>
+<key>29</key>
+<string>270 514 419 44 0 0 1280 832 </string>
+</dict>
<key>IBFramework Version</key>
-<string>629</string>
-<key>IBLastKnownRelativeProjectPath</key>
-<string>../../../Chicken of the VNC.xcodeproj</string>
-<key>IBOldestOS</key>
-<integer>5</integer>
+<string>443.0</string>
+<key>IBLockedObjects</key>
+<array>
+<integer>1191</integer>
+<integer>1208</integer>
+</array>
<key>IBOpenObjects</key>
<array>
-<integer>612</integer>
+<integer>29</integer>
</array>
<key>IBSystem Version</key>
-<string>9F33</string>
-<key>targetFramework</key>
-<string>IBCocoaFramework</string>
+<string>8F46</string>
</dict>
</plist>
diff -aurr ./Resources/English.lproj/OSX_RFBViewer.nib/keyedobjects.nib ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib/keyedobjects.nib
--- ./Resources/English.lproj/OSX_RFBViewer.nib/keyedobjects.nib2008-11-07 22:54:10.000000000 -0700
+++ ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib/keyedobjects.nib2006-01-18 12:42:18.000000000 -0700
@@ -1,65 +1,65 @@
(helmut.maierhofer@chello.at)
-(helmut.maierhofer@chello.at)
-)_Menu (Connection)_vStatic Text (released under the GNU Public License
-source code and support available at http://cotvnc.sourceforge.net)_Menu Item (Show All)[Menu (Edit)[Separator-6_Menu (Services)TInfo]Menu (Window)_Menu Item (Send "Execute")[Application_Menu Item (Send "Break")_Menu Item (Services)_Menu (Chicken Of the VNC)\Content View_Menu Item (Special Keys)_Menu Item (Connection)_Menu Item (Undo)_Menu Item (Paste)_Menu Item (Bring All to Front)_Menu Item (Minimize)o%Menu Item (About Chicken of the VNC &)_Menu Item (Send "Pause")_Menu Item (Stop Speaking)_Menu Item (Start Speaking)_Menu Item (Fullscreen Mode)_Menu Item (Cut)_Menu Item (Window)_Menu Item (Send "Insert")_Static Text (Version)_Menu Item (Hide Others)_RStatic Text (Administered by Jason Harris
-based on VNCViewer by Helmut Maierhofer)[Separator-8YSeparator_Menu Item (Chicken Of the VNC)_Menu Item (Close Window)_Menu Item (Send "Print")_Menu Item (Copy)_$Menu Item (Send "Cmd-Option-Escape")_ Static Text (Chicken of the VNC)_Image View (NSApplicationIcon)_Menu Item (Select All)[Separator-7_Menu Item (Send "Delete")_Horizontal Line_Menu Item (Edit)XMainMenu[Separator-3_Menu Item (Speech)[Separator-4_Menu Item (Help)_#Menu Item (Quit Chicken of the VNC)[Separator-1[Menu (Help)[Separator-5_Menu Item (Redo)_ZStatic Text (Copyright 1998-2000 by Helmut Maierhofer
-
-
-
-!
-#
+
+
+
+
+
+
+
%
-'
-)
+(
+
--
+.
1
-B
-I
-P
-Y
-[
-d
-f
-h
-r
-{
+K
+M
+V
+`
+k
+m
+v
+}
\ No newline at end of file
\ No newline at end of file
Only in ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib: objects.nib
diff -aurr ./Source/ListenerController.m ../cotvnc/Source/ListenerController.m
--- ./Source/ListenerController.m2008-11-07 22:40:05.000000000 -0700
+++ ../cotvnc/Source/ListenerController.m2006-01-17 12:20:14.000000000 -0700
@@ -86,8 +86,7 @@
if (listeningSocket) {
[self stopListener];
}
- //[self savePrefs];
-
+ [self savePrefs];
[super dealloc];
[[NSNotificationCenter defaultCenter] removeObserver:self
@@ -105,7 +104,7 @@
name:ProfileListChangeMsg
object:(id)[ProfileDataManager sharedInstance]];
- //[self updateUI];
+ [self updateUI];
}
@@ -199,7 +198,7 @@
[listeningSocket acceptConnectionInBackgroundAndNotify];
- //[self updateUI];
+ [self updateUI];
return YES;
}
@@ -219,7 +218,7 @@
[listeningSocket release]; listeningSocket = nil;
[listeningProfile release]; listeningProfile = nil;
- //[self updateUI];
+ [self updateUI];
}
@@ -287,7 +286,7 @@
- (void)updateProfileView:(id)notification
{
-//[self loadProfileIntoView];
+[self loadProfileIntoView];
}
diff -aurr ./Source/MyApp.m ../cotvnc/Source/MyApp.m
--- ./Source/MyApp.m2008-11-07 21:28:00.000000000 -0700
+++ ../cotvnc/Source/MyApp.m2005-07-11 05:22:56.000000000 -0600
@@ -14,7 +14,6 @@
@implementation MyApp
-
- (void)sendEvent:(NSEvent *)anEvent
{
/*
diff -aurr ./Source/RFBConnection.m ../cotvnc/Source/RFBConnection.m
--- ./Source/RFBConnection.m2008-11-10 21:24:43.000000000 -0700
+++ ../cotvnc/Source/RFBConnection.m2007-03-15 23:24:14.000000000 -0600
@@ -337,7 +337,7 @@
[_eventFilter synthesizeRemainingEvents];
[_eventFilter sendAllPendingQueueEntriesNow];
- if(false) {
+ if(aReason) {
if ( _autoReconnect ) {
NSLog(@"Automatically reconnecting to server. The connection was closed because: \"%@\".", aReason);
// Just auto-reconnect (by reinstantiating ourselves)
diff -aurr ./Source/RFBConnectionManager.m ../cotvnc/Source/RFBConnectionManager.m
--- ./Source/RFBConnectionManager.m2008-11-07 22:42:17.000000000 -0700
+++ ../cotvnc/Source/RFBConnectionManager.m2007-03-15 21:31:56.000000000 -0600
@@ -21,7 +21,6 @@
#import "RFBConnection.h"
#import "PrefController.h"
#import "ProfileManager.h"
-#import "ListenerController.h"
#import "Profile.h"
#import "rfbproto.h"
#import "vncauth.h"
@@ -37,7 +36,7 @@
static id sInstance = nil;
if ( ! sInstance )
{
-sInstance = [self alloc];
+sInstance = [[self alloc] initWithWindowNibName: @"ConnectionDialog"];
NSParameterAssert( sInstance != nil );
[sInstance wakeup];
@@ -145,23 +144,8 @@
for (i = 1; i < argCount; i++)
{
arg = [args objectAtIndex:i];
-
-if ([arg hasPrefix:@"--listen"])
-{
-NSLog(@"Called with --listen.");
-
-ListenerController* listener = [ListenerController sharedController];
-ProfileManager* pm = [ProfileManager sharedManager];
-
-int port = 5500;
-profile = [pm profileNamed: @"Called with --listen."];
-BOOL local = false;
-
-[listener startListenerOnPort:port withProfile:profile localOnly:local];
-
-return YES;
-}
-else if ([arg hasPrefix:@"-psn"])
+
+if ([arg hasPrefix:@"-psn"])
{
// Called from the finder. Do nothing.
continue;
diff -aurr ./Source/VNCViewer_main.m ../cotvnc/Source/VNCViewer_main.m
--- ./Source/VNCViewer_main.m2008-11-07 21:24:00.000000000 -0700
+++ ../cotvnc/Source/VNCViewer_main.m2003-01-17 04:55:52.000000000 -0700
@@ -14,6 +14,5 @@
[NSAutoreleasePool setPoolCountHighWaterMark: 2000];
[NSAutoreleasePool setPoolCountHighWaterResolution: 2000];
#endif
-
return NSApplicationMain(argc, argv);
}
Only in .: cotvnc-gitso.diff
diff -aurr ./cotvnc-gitso.diff ../cotvnc-gitso/cotvnc-gitso.diff
--- ./cotvnc-gitso.diff2008-11-11 15:53:29.000000000 -0700
+++ ../cotvnc-gitso/cotvnc-gitso.diff2008-11-11 15:28:25.000000000 -0700
@@ -1,547 +1,547 @@
-Only in ../cotvnc-gitso/: .DS_Store
-Only in ../cotvnc-gitso/Chicken of the VNC.xcodeproj: gerberad.mode1v3
-Only in ../cotvnc-gitso/Chicken of the VNC.xcodeproj: gerberad.pbxuser
-diff -aurr ./Chicken of the VNC.xcodeproj/project.pbxproj ../cotvnc-gitso/Chicken of the VNC.xcodeproj/project.pbxproj
---- ./Chicken of the VNC.xcodeproj/project.pbxproj2007-03-28 18:52:50.000000000 -0600
-+++ ../cotvnc-gitso/Chicken of the VNC.xcodeproj/project.pbxproj2008-11-10 21:37:35.000000000 -0700
-@@ -1209,6 +1209,7 @@
+Only in .: .DS_Store
+Only in ./Chicken of the VNC.xcodeproj: gerberad.mode1v3
+Only in ./Chicken of the VNC.xcodeproj: gerberad.pbxuser
+diff -aurr ./Chicken of the VNC.xcodeproj/project.pbxproj ../cotvnc/Chicken of the VNC.xcodeproj/project.pbxproj
+--- ./Chicken of the VNC.xcodeproj/project.pbxproj2008-11-10 21:37:35.000000000 -0700
++++ ../cotvnc/Chicken of the VNC.xcodeproj/project.pbxproj2007-03-28 18:52:50.000000000 -0600
+@@ -1209,7 +1209,6 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
buildConfigurationList = E20426EA087531990026AA26 /* Build configuration list for PBXProject "Chicken of the VNC" */;
-+compatibilityVersion = "Xcode 2.4";
+-compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1;
knownRegions = (
English,
-@@ -1219,6 +1220,7 @@
+@@ -1220,7 +1219,6 @@
);
mainGroup = 29B97314FDCFA39411CA2CEA /* Chicken of the VNC */;
projectDirPath = "";
-+projectRoot = "";
+-projectRoot = "";
targets = (
7F7A93E305E71B5C00E20416 /* Chicken of the VNC */,
7F916AA40BB6E98900E31F20 /* libjpeg */,
-Only in ./Chicken of the VNC.xcodeproj: project.pbxproj.rej
-diff -aurr ./Resources/English.lproj/OSX_RFBViewer.nib/classes.nib ../cotvnc-gitso/Resources/English.lproj/OSX_RFBViewer.nib/classes.nib
---- ./Resources/English.lproj/OSX_RFBViewer.nib/classes.nib2005-04-14 18:46:42.000000000 -0600
-+++ ../cotvnc-gitso/Resources/English.lproj/OSX_RFBViewer.nib/classes.nib2008-11-07 22:54:10.000000000 -0700
-@@ -1,130 +1,90 @@
--{
-- IBClasses = (
-- {
-- ACTIONS = {
-- changeRendezvousUse = id;
-- showConnectionDialog = id;
-- showHelp = id;
-- showListenerDialog = id;
-- showNewConnectionDialog = id;
-- showPreferences = id;
-- showProfileManager = id;
-- };
-- CLASS = AppDelegate;
-- LANGUAGE = ObjC;
-- OUTLETS = {mInfoVersionNumber = NSTextField; mRendezvousMenuItem = NSMenuItem; };
-- SUPERCLASS = NSObject;
-- },
-- {
-- ACTIONS = {
-- makeConnectionFullscreen = id;
-- makeConnectionWindowed = id;
-- manuallyUpdateFrameBuffer = id;
-- openNewTitlePanel = id;
-- openOptions = id;
-- pasteViaKeypress = id;
-- sendBreakKeyCode = id;
-- sendCmdOptEsc = id;
-- sendCtrlAltDel = id;
-- sendDeleteKeyCode = id;
-- sendExecuteKeyCode = id;
-- sendInsertKeyCode = id;
-- sendPauseKeyCode = id;
-- sendPrintKeyCode = id;
-- toggleFullscreenMode = id;
-- };
-- CLASS = FirstResponder;
-- LANGUAGE = ObjC;
-- SUPERCLASS = NSObject;
-- },
-- {
-- ACTIONS = {changeSelectedScenario = id; restoreDefaults = id; };
-- CLASS = KeyEquivalentPrefsController;
-- LANGUAGE = ObjC;
-- OUTLETS = {mConnectionType = NSPopUpButton; mOutlineView = NSOutlineView; };
-- SUPERCLASS = NSObject;
-- },
-- {CLASS = Profile; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
-- {
-- ACTIONS = {
-- addProfile = id;
-- changeEncodingState = id;
-- deleteProfile = id;
-- profileChanged = id;
-- profileSelected = id;
-- reorderEncodings = id;
-- };
-- CLASS = ProfileManager;
-- LANGUAGE = ObjC;
-- OUTLETS = {
-- altKey = id;
-- commandKey = id;
-- controlKey = id;
-- deleteProfileButton = id;
-- enableCopyRect = id;
-- encodingTableView = id;
-- m3bTimeout = id;
-- mkbTimeout = id;
-- mkdTimeout = id;
-- newProfileButton = id;
-- pixelFormatMatrix = id;
-- profileBrowser = id;
-- profileField = id;
-- profilePanel = id;
-- shiftKey = id;
-- upDownButtonMatrix = id;
-- };
-- SUPERCLASS = NSObject;
-- },
-- {
-- ACTIONS = {
-- addServer = id;
-- deleteSelectedServer = id;
-- showConnectionDialog = id;
-- showNewConnectionDialog = id;
-- };
-- CLASS = RFBConnectionManager;
-- LANGUAGE = ObjC;
-- OUTLETS = {
-- groupList = NSTableView;
-- serverDataBoxLocal = NSBox;
-- serverDeleteBtn = NSButton;
-- serverGroupBox = NSBox;
-- serverList = NSTableView;
-- serverListBox = NSBox;
-- splitView = NSSplitView;
-- };
-- SUPERCLASS = NSWindowController;
-- },
-- {CLASS = ServerDataManager; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
-- {
-- ACTIONS = {
-- connectToServer = id;
-- displayChanged = id;
-- hostChanged = id;
-- passwordChanged = id;
-- profileSelectionChanged = id;
-- rememberPwdChanged = id;
-- sharedChanged = id;
-- };
-- CLASS = ServerDataViewController;
-- LANGUAGE = ObjC;
-- OUTLETS = {
-- box = NSBox;
-- connectBtn = NSButton;
-- connectIndicator = NSProgressIndicator;
-- connectIndicatorText = NSTextField;
-- display = NSTextField;
-- hostName = NSTextField;
-- mDelegate = id;
-- mServer = id;
-- password = NSTextField;
-- profilePopup = NSPopUpButton;
-- rememberPwd = NSButton;
-- shared = NSButton;
-- };
-- SUPERCLASS = NSWindowController;
-- }
-- );
-- IBVersion = 1;
--}
+diff -aurr ./Resources/English.lproj/OSX_RFBViewer.nib/classes.nib ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib/classes.nib
+--- ./Resources/English.lproj/OSX_RFBViewer.nib/classes.nib2008-11-07 22:54:10.000000000 -0700
++++ ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib/classes.nib2005-04-14 18:46:42.000000000 -0600
+@@ -1,90 +1,130 @@
+-<?xml version="1.0" encoding="UTF-8"?>
+-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+-<plist version="1.0">
+-<dict>
+-<key>IBClasses</key>
+-<array>
+-<dict>
+-<key>ACTIONS</key>
+-<dict>
+-<key>changeRendezvousUse</key>
+-<string>id</string>
+-<key>showConnectionDialog</key>
+-<string>id</string>
+-<key>showHelp</key>
+-<string>id</string>
+-<key>showListenerDialog</key>
+-<string>id</string>
+-<key>showNewConnectionDialog</key>
+-<string>id</string>
+-<key>showPreferences</key>
+-<string>id</string>
+-<key>showProfileManager</key>
+-<string>id</string>
+-</dict>
+-<key>CLASS</key>
+-<string>AppDelegate</string>
+-<key>LANGUAGE</key>
+-<string>ObjC</string>
+-<key>OUTLETS</key>
+-<dict>
+-<key>mInfoVersionNumber</key>
+-<string>NSTextField</string>
+-<key>mRendezvousMenuItem</key>
+-<string>NSMenuItem</string>
+-</dict>
+-<key>SUPERCLASS</key>
+-<string>NSObject</string>
+-</dict>
+-<dict>
+-<key>CLASS</key>
+-<string>NSObject</string>
+-<key>LANGUAGE</key>
+-<string>ObjC</string>
+-</dict>
+-<dict>
+-<key>ACTIONS</key>
+-<dict>
+-<key>makeConnectionFullscreen</key>
+-<string>id</string>
+-<key>makeConnectionWindowed</key>
+-<string>id</string>
+-<key>manuallyUpdateFrameBuffer</key>
+-<string>id</string>
+-<key>openNewTitlePanel</key>
+-<string>id</string>
+-<key>openOptions</key>
+-<string>id</string>
+-<key>pasteViaKeypress</key>
+-<string>id</string>
+-<key>sendBreakKeyCode</key>
+-<string>id</string>
+-<key>sendCmdOptEsc</key>
+-<string>id</string>
+-<key>sendCtrlAltDel</key>
+-<string>id</string>
+-<key>sendDeleteKeyCode</key>
+-<string>id</string>
+-<key>sendExecuteKeyCode</key>
+-<string>id</string>
+-<key>sendInsertKeyCode</key>
+-<string>id</string>
+-<key>sendPauseKeyCode</key>
+-<string>id</string>
+-<key>sendPrintKeyCode</key>
+-<string>id</string>
+-<key>toggleFullscreenMode</key>
+-<string>id</string>
+-</dict>
+-<key>CLASS</key>
+-<string>FirstResponder</string>
+-<key>LANGUAGE</key>
+-<string>ObjC</string>
+-<key>SUPERCLASS</key>
+-<string>NSObject</string>
+-</dict>
+-</array>
+-<key>IBVersion</key>
+-<string>1</string>
+-</dict>
+-</plist>
++{
++ IBClasses = (
++ {
++ ACTIONS = {
++ changeRendezvousUse = id;
++ showConnectionDialog = id;
++ showHelp = id;
++ showListenerDialog = id;
++ showNewConnectionDialog = id;
++ showPreferences = id;
++ showProfileManager = id;
++ };
++ CLASS = AppDelegate;
++ LANGUAGE = ObjC;
++ OUTLETS = {mInfoVersionNumber = NSTextField; mRendezvousMenuItem = NSMenuItem; };
++ SUPERCLASS = NSObject;
++ },
++ {
++ ACTIONS = {
++ makeConnectionFullscreen = id;
++ makeConnectionWindowed = id;
++ manuallyUpdateFrameBuffer = id;
++ openNewTitlePanel = id;
++ openOptions = id;
++ pasteViaKeypress = id;
++ sendBreakKeyCode = id;
++ sendCmdOptEsc = id;
++ sendCtrlAltDel = id;
++ sendDeleteKeyCode = id;
++ sendExecuteKeyCode = id;
++ sendInsertKeyCode = id;
++ sendPauseKeyCode = id;
++ sendPrintKeyCode = id;
++ toggleFullscreenMode = id;
++ };
++ CLASS = FirstResponder;
++ LANGUAGE = ObjC;
++ SUPERCLASS = NSObject;
++ },
++ {
++ ACTIONS = {changeSelectedScenario = id; restoreDefaults = id; };
++ CLASS = KeyEquivalentPrefsController;
++ LANGUAGE = ObjC;
++ OUTLETS = {mConnectionType = NSPopUpButton; mOutlineView = NSOutlineView; };
++ SUPERCLASS = NSObject;
++ },
++ {CLASS = Profile; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
++ {
++ ACTIONS = {
++ addProfile = id;
++ changeEncodingState = id;
++ deleteProfile = id;
++ profileChanged = id;
++ profileSelected = id;
++ reorderEncodings = id;
++ };
++ CLASS = ProfileManager;
++ LANGUAGE = ObjC;
++ OUTLETS = {
++ altKey = id;
++ commandKey = id;
++ controlKey = id;
++ deleteProfileButton = id;
++ enableCopyRect = id;
++ encodingTableView = id;
++ m3bTimeout = id;
++ mkbTimeout = id;
++ mkdTimeout = id;
++ newProfileButton = id;
++ pixelFormatMatrix = id;
++ profileBrowser = id;
++ profileField = id;
++ profilePanel = id;
++ shiftKey = id;
++ upDownButtonMatrix = id;
++ };
++ SUPERCLASS = NSObject;
++ },
++ {
++ ACTIONS = {
++ addServer = id;
++ deleteSelectedServer = id;
++ showConnectionDialog = id;
++ showNewConnectionDialog = id;
++ };
++ CLASS = RFBConnectionManager;
++ LANGUAGE = ObjC;
++ OUTLETS = {
++ groupList = NSTableView;
++ serverDataBoxLocal = NSBox;
++ serverDeleteBtn = NSButton;
++ serverGroupBox = NSBox;
++ serverList = NSTableView;
++ serverListBox = NSBox;
++ splitView = NSSplitView;
++ };
++ SUPERCLASS = NSWindowController;
++ },
++ {CLASS = ServerDataManager; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
++ {
++ ACTIONS = {
++ connectToServer = id;
++ displayChanged = id;
++ hostChanged = id;
++ passwordChanged = id;
++ profileSelectionChanged = id;
++ rememberPwdChanged = id;
++ sharedChanged = id;
++ };
++ CLASS = ServerDataViewController;
++ LANGUAGE = ObjC;
++ OUTLETS = {
++ box = NSBox;
++ connectBtn = NSButton;
++ connectIndicator = NSProgressIndicator;
++ connectIndicatorText = NSTextField;
++ display = NSTextField;
++ hostName = NSTextField;
++ mDelegate = id;
++ mServer = id;
++ password = NSTextField;
++ profilePopup = NSPopUpButton;
++ rememberPwd = NSButton;
++ shared = NSButton;
++ };
++ SUPERCLASS = NSWindowController;
++ }
++ );
++ IBVersion = 1;
++}
\ No newline at end of file
-+<?xml version="1.0" encoding="UTF-8"?>
-+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-+<plist version="1.0">
-+<dict>
-+<key>IBClasses</key>
-+<array>
-+<dict>
-+<key>ACTIONS</key>
-+<dict>
-+<key>changeRendezvousUse</key>
-+<string>id</string>
-+<key>showConnectionDialog</key>
-+<string>id</string>
-+<key>showHelp</key>
-+<string>id</string>
-+<key>showListenerDialog</key>
-+<string>id</string>
-+<key>showNewConnectionDialog</key>
-+<string>id</string>
-+<key>showPreferences</key>
-+<string>id</string>
-+<key>showProfileManager</key>
-+<string>id</string>
-+</dict>
-+<key>CLASS</key>
-+<string>AppDelegate</string>
-+<key>LANGUAGE</key>
-+<string>ObjC</string>
-+<key>OUTLETS</key>
-+<dict>
-+<key>mInfoVersionNumber</key>
-+<string>NSTextField</string>
-+<key>mRendezvousMenuItem</key>
-+<string>NSMenuItem</string>
-+</dict>
-+<key>SUPERCLASS</key>
-+<string>NSObject</string>
-+</dict>
-+<dict>
-+<key>CLASS</key>
-+<string>NSObject</string>
-+<key>LANGUAGE</key>
-+<string>ObjC</string>
-+</dict>
-+<dict>
-+<key>ACTIONS</key>
-+<dict>
-+<key>makeConnectionFullscreen</key>
-+<string>id</string>
-+<key>makeConnectionWindowed</key>
-+<string>id</string>
-+<key>manuallyUpdateFrameBuffer</key>
-+<string>id</string>
-+<key>openNewTitlePanel</key>
-+<string>id</string>
-+<key>openOptions</key>
-+<string>id</string>
-+<key>pasteViaKeypress</key>
-+<string>id</string>
-+<key>sendBreakKeyCode</key>
-+<string>id</string>
-+<key>sendCmdOptEsc</key>
-+<string>id</string>
-+<key>sendCtrlAltDel</key>
-+<string>id</string>
-+<key>sendDeleteKeyCode</key>
-+<string>id</string>
-+<key>sendExecuteKeyCode</key>
-+<string>id</string>
-+<key>sendInsertKeyCode</key>
-+<string>id</string>
-+<key>sendPauseKeyCode</key>
-+<string>id</string>
-+<key>sendPrintKeyCode</key>
-+<string>id</string>
-+<key>toggleFullscreenMode</key>
-+<string>id</string>
-+</dict>
-+<key>CLASS</key>
-+<string>FirstResponder</string>
-+<key>LANGUAGE</key>
-+<string>ObjC</string>
-+<key>SUPERCLASS</key>
-+<string>NSObject</string>
-+</dict>
-+</array>
-+<key>IBVersion</key>
-+<string>1</string>
-+</dict>
-+</plist>
-diff -aurr ./Resources/English.lproj/OSX_RFBViewer.nib/info.nib ../cotvnc-gitso/Resources/English.lproj/OSX_RFBViewer.nib/info.nib
---- ./Resources/English.lproj/OSX_RFBViewer.nib/info.nib2006-01-18 12:42:18.000000000 -0700
-+++ ../cotvnc-gitso/Resources/English.lproj/OSX_RFBViewer.nib/info.nib2008-11-07 22:54:10.000000000 -0700
-@@ -1,26 +1,20 @@
+diff -aurr ./Resources/English.lproj/OSX_RFBViewer.nib/info.nib ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib/info.nib
+--- ./Resources/English.lproj/OSX_RFBViewer.nib/info.nib2008-11-07 22:54:10.000000000 -0700
++++ ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib/info.nib2006-01-18 12:42:18.000000000 -0700
+@@ -1,20 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
--<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
++<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
--<key>IBDocumentLocation</key>
--<string>3 4 356 240 0 0 1280 832 </string>
--<key>IBEditorPositions</key>
--<dict>
--<key>29</key>
--<string>270 514 419 44 0 0 1280 832 </string>
--</dict>
++<key>IBDocumentLocation</key>
++<string>3 4 356 240 0 0 1280 832 </string>
++<key>IBEditorPositions</key>
++<dict>
++<key>29</key>
++<string>270 514 419 44 0 0 1280 832 </string>
++</dict>
<key>IBFramework Version</key>
--<string>443.0</string>
--<key>IBLockedObjects</key>
--<array>
--<integer>1191</integer>
--<integer>1208</integer>
--</array>
-+<string>629</string>
-+<key>IBLastKnownRelativeProjectPath</key>
-+<string>../../../Chicken of the VNC.xcodeproj</string>
-+<key>IBOldestOS</key>
-+<integer>5</integer>
+-<string>629</string>
+-<key>IBLastKnownRelativeProjectPath</key>
+-<string>../../../Chicken of the VNC.xcodeproj</string>
+-<key>IBOldestOS</key>
+-<integer>5</integer>
++<string>443.0</string>
++<key>IBLockedObjects</key>
++<array>
++<integer>1191</integer>
++<integer>1208</integer>
++</array>
<key>IBOpenObjects</key>
<array>
--<integer>29</integer>
-+<integer>612</integer>
+-<integer>612</integer>
++<integer>29</integer>
</array>
<key>IBSystem Version</key>
--<string>8F46</string>
-+<string>9F33</string>
-+<key>targetFramework</key>
-+<string>IBCocoaFramework</string>
+-<string>9F33</string>
+-<key>targetFramework</key>
+-<string>IBCocoaFramework</string>
++<string>8F46</string>
</dict>
</plist>
-diff -aurr ./Resources/English.lproj/OSX_RFBViewer.nib/keyedobjects.nib ../cotvnc-gitso/Resources/English.lproj/OSX_RFBViewer.nib/keyedobjects.nib
---- ./Resources/English.lproj/OSX_RFBViewer.nib/keyedobjects.nib2006-01-18 12:42:18.000000000 -0700
-+++ ../cotvnc-gitso/Resources/English.lproj/OSX_RFBViewer.nib/keyedobjects.nib2008-11-07 22:54:10.000000000 -0700
+diff -aurr ./Resources/English.lproj/OSX_RFBViewer.nib/keyedobjects.nib ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib/keyedobjects.nib
+--- ./Resources/English.lproj/OSX_RFBViewer.nib/keyedobjects.nib2008-11-07 22:54:10.000000000 -0700
++++ ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib/keyedobjects.nib2006-01-18 12:42:18.000000000 -0700
@@ -1,65 +1,65 @@
(helmut.maierhofer@chello.at)
-+(helmut.maierhofer@chello.at)
-+)_Menu (Connection)_vStatic Text (released under the GNU Public License
-+source code and support available at http://cotvnc.sourceforge.net)_Menu Item (Show All)[Menu (Edit)[Separator-6_Menu (Services)TInfo]Menu (Window)_Menu Item (Send "Execute")[Application_Menu Item (Send "Break")_Menu Item (Services)_Menu (Chicken Of the VNC)\Content View_Menu Item (Special Keys)_Menu Item (Connection)_Menu Item (Undo)_Menu Item (Paste)_Menu Item (Bring All to Front)_Menu Item (Minimize)o%Menu Item (About Chicken of the VNC &)_Menu Item (Send "Pause")_Menu Item (Stop Speaking)_Menu Item (Start Speaking)_Menu Item (Fullscreen Mode)_Menu Item (Cut)_Menu Item (Window)_Menu Item (Send "Insert")_Static Text (Version)_Menu Item (Hide Others)_RStatic Text (Administered by Jason Harris
-+based on VNCViewer by Helmut Maierhofer)[Separator-8YSeparator_Menu Item (Chicken Of the VNC)_Menu Item (Close Window)_Menu Item (Send "Print")_Menu Item (Copy)_$Menu Item (Send "Cmd-Option-Escape")_ Static Text (Chicken of the VNC)_Image View (NSApplicationIcon)_Menu Item (Select All)[Separator-7_Menu Item (Send "Delete")_Horizontal Line_Menu Item (Edit)XMainMenu[Separator-3_Menu Item (Speech)[Separator-4_Menu Item (Help)_#Menu Item (Quit Chicken of the VNC)[Separator-1[Menu (Help)[Separator-5_Menu Item (Redo)_ZStatic Text (Copyright 1998-2000 by Helmut Maierhofer
+-(helmut.maierhofer@chello.at)
+-)_Menu (Connection)_vStatic Text (released under the GNU Public License
+-source code and support available at http://cotvnc.sourceforge.net)_Menu Item (Show All)[Menu (Edit)[Separator-6_Menu (Services)TInfo]Menu (Window)_Menu Item (Send "Execute")[Application_Menu Item (Send "Break")_Menu Item (Services)_Menu (Chicken Of the VNC)\Content View_Menu Item (Special Keys)_Menu Item (Connection)_Menu Item (Undo)_Menu Item (Paste)_Menu Item (Bring All to Front)_Menu Item (Minimize)o%Menu Item (About Chicken of the VNC &)_Menu Item (Send "Pause")_Menu Item (Stop Speaking)_Menu Item (Start Speaking)_Menu Item (Fullscreen Mode)_Menu Item (Cut)_Menu Item (Window)_Menu Item (Send "Insert")_Static Text (Version)_Menu Item (Hide Others)_RStatic Text (Administered by Jason Harris
+-based on VNCViewer by Helmut Maierhofer)[Separator-8YSeparator_Menu Item (Chicken Of the VNC)_Menu Item (Close Window)_Menu Item (Send "Print")_Menu Item (Copy)_$Menu Item (Send "Cmd-Option-Escape")_ Static Text (Chicken of the VNC)_Image View (NSApplicationIcon)_Menu Item (Select All)[Separator-7_Menu Item (Send "Delete")_Horizontal Line_Menu Item (Edit)XMainMenu[Separator-3_Menu Item (Speech)[Separator-4_Menu Item (Help)_#Menu Item (Quit Chicken of the VNC)[Separator-1[Menu (Help)[Separator-5_Menu Item (Redo)_ZStatic Text (Copyright 1998-2000 by Helmut Maierhofer
--
--
--
--
--
--
--
-+
-+
-+
-+!
-+#
+-
+-
+-
+-!
+-#
++
++
++
++
++
++
++
%
--(
-+'
-+)
+-'
+-)
++(
+
--.
-+-
+--
++.
1
--K
--M
--V
--`
--k
--m
--v
--}
-+B
-+I
-+P
-+Y
-+[
-+d
-+f
-+h
-+r
-+{
+-B
+-I
+-P
+-Y
+-[
+-d
+-f
+-h
+-r
+-{
++K
++M
++V
++`
++k
++m
++v
++}
\ No newline at end of file
\ No newline at end of file
-Only in ./Resources/English.lproj/OSX_RFBViewer.nib: objects.nib
-diff -aurr ./Source/ListenerController.m ../cotvnc-gitso/Source/ListenerController.m
---- ./Source/ListenerController.m2006-01-17 12:20:14.000000000 -0700
-+++ ../cotvnc-gitso/Source/ListenerController.m2008-11-07 22:40:05.000000000 -0700
-@@ -86,7 +86,8 @@
+Only in ../cotvnc/Resources/English.lproj/OSX_RFBViewer.nib: objects.nib
+diff -aurr ./Source/ListenerController.m ../cotvnc/Source/ListenerController.m
+--- ./Source/ListenerController.m2008-11-07 22:40:05.000000000 -0700
++++ ../cotvnc/Source/ListenerController.m2006-01-17 12:20:14.000000000 -0700
+@@ -86,8 +86,7 @@
if (listeningSocket) {
[self stopListener];
}
-- [self savePrefs];
-+ //[self savePrefs];
-+
+- //[self savePrefs];
+-
++ [self savePrefs];
[super dealloc];
[[NSNotificationCenter defaultCenter] removeObserver:self
-@@ -104,7 +105,7 @@
+@@ -105,7 +104,7 @@
name:ProfileListChangeMsg
object:(id)[ProfileDataManager sharedInstance]];
-- [self updateUI];
-+ //[self updateUI];
+- //[self updateUI];
++ [self updateUI];
}
-@@ -198,7 +199,7 @@
+@@ -199,7 +198,7 @@
[listeningSocket acceptConnectionInBackgroundAndNotify];
-- [self updateUI];
-+ //[self updateUI];
+- //[self updateUI];
++ [self updateUI];
return YES;
}
-@@ -218,7 +219,7 @@
+@@ -219,7 +218,7 @@
[listeningSocket release]; listeningSocket = nil;
[listeningProfile release]; listeningProfile = nil;
-- [self updateUI];
-+ //[self updateUI];
+- //[self updateUI];
++ [self updateUI];
}
-@@ -286,7 +287,7 @@
+@@ -287,7 +286,7 @@
- (void)updateProfileView:(id)notification
{
--[self loadProfileIntoView];
-+//[self loadProfileIntoView];
+-//[self loadProfileIntoView];
++[self loadProfileIntoView];
}
-diff -aurr ./Source/MyApp.m ../cotvnc-gitso/Source/MyApp.m
---- ./Source/MyApp.m2005-07-11 05:22:56.000000000 -0600
-+++ ../cotvnc-gitso/Source/MyApp.m2008-11-07 21:28:00.000000000 -0700
-@@ -14,6 +14,7 @@
+diff -aurr ./Source/MyApp.m ../cotvnc/Source/MyApp.m
+--- ./Source/MyApp.m2008-11-07 21:28:00.000000000 -0700
++++ ../cotvnc/Source/MyApp.m2005-07-11 05:22:56.000000000 -0600
+@@ -14,7 +14,6 @@
@implementation MyApp
-+
+-
- (void)sendEvent:(NSEvent *)anEvent
{
/*
-diff -aurr ./Source/RFBConnection.m ../cotvnc-gitso/Source/RFBConnection.m
---- ./Source/RFBConnection.m2007-03-15 23:24:14.000000000 -0600
-+++ ../cotvnc-gitso/Source/RFBConnection.m2008-11-10 21:24:43.000000000 -0700
+diff -aurr ./Source/RFBConnection.m ../cotvnc/Source/RFBConnection.m
+--- ./Source/RFBConnection.m2008-11-10 21:24:43.000000000 -0700
++++ ../cotvnc/Source/RFBConnection.m2007-03-15 23:24:14.000000000 -0600
@@ -337,7 +337,7 @@
[_eventFilter synthesizeRemainingEvents];
[_eventFilter sendAllPendingQueueEntriesNow];
-- if(aReason) {
-+ if(false) {
+- if(false) {
++ if(aReason) {
if ( _autoReconnect ) {
NSLog(@"Automatically reconnecting to server. The connection was closed because: \"%@\".", aReason);
// Just auto-reconnect (by reinstantiating ourselves)
-diff -aurr ./Source/RFBConnectionManager.m ../cotvnc-gitso/Source/RFBConnectionManager.m
---- ./Source/RFBConnectionManager.m2007-03-15 21:31:56.000000000 -0600
-+++ ../cotvnc-gitso/Source/RFBConnectionManager.m2008-11-07 22:42:17.000000000 -0700
-@@ -21,6 +21,7 @@
+diff -aurr ./Source/RFBConnectionManager.m ../cotvnc/Source/RFBConnectionManager.m
+--- ./Source/RFBConnectionManager.m2008-11-07 22:42:17.000000000 -0700
++++ ../cotvnc/Source/RFBConnectionManager.m2007-03-15 21:31:56.000000000 -0600
+@@ -21,7 +21,6 @@
#import "RFBConnection.h"
#import "PrefController.h"
#import "ProfileManager.h"
-+#import "ListenerController.h"
+-#import "ListenerController.h"
#import "Profile.h"
#import "rfbproto.h"
#import "vncauth.h"
-@@ -36,7 +37,7 @@
+@@ -37,7 +36,7 @@
static id sInstance = nil;
if ( ! sInstance )
{
--sInstance = [[self alloc] initWithWindowNibName: @"ConnectionDialog"];
-+sInstance = [self alloc];
+-sInstance = [self alloc];
++sInstance = [[self alloc] initWithWindowNibName: @"ConnectionDialog"];
NSParameterAssert( sInstance != nil );
[sInstance wakeup];
-@@ -144,8 +145,23 @@
+@@ -145,23 +144,8 @@
for (i = 1; i < argCount; i++)
{
arg = [args objectAtIndex:i];
--
--if ([arg hasPrefix:@"-psn"])
-+
-+if ([arg hasPrefix:@"--listen"])
-+{
-+NSLog(@"Called with --listen.");
-+
-+ListenerController* listener = [ListenerController sharedController];
-+ProfileManager* pm = [ProfileManager sharedManager];
-+
-+int port = 5500;
-+profile = [pm profileNamed: @"Called with --listen."];
-+BOOL local = false;
-+
-+[listener startListenerOnPort:port withProfile:profile localOnly:local];
-+
-+return YES;
-+}
-+else if ([arg hasPrefix:@"-psn"])
+-
+-if ([arg hasPrefix:@"--listen"])
+-{
+-NSLog(@"Called with --listen.");
+-
+-ListenerController* listener = [ListenerController sharedController];
+-ProfileManager* pm = [ProfileManager sharedManager];
+-
+-int port = 5500;
+-profile = [pm profileNamed: @"Called with --listen."];
+-BOOL local = false;
+-
+-[listener startListenerOnPort:port withProfile:profile localOnly:local];
+-
+-return YES;
+-}
+-else if ([arg hasPrefix:@"-psn"])
++
++if ([arg hasPrefix:@"-psn"])
{
// Called from the finder. Do nothing.
continue;
-diff -aurr ./Source/VNCViewer_main.m ../cotvnc-gitso/Source/VNCViewer_main.m
---- ./Source/VNCViewer_main.m2003-01-17 04:55:52.000000000 -0700
-+++ ../cotvnc-gitso/Source/VNCViewer_main.m2008-11-07 21:24:00.000000000 -0700
-@@ -14,5 +14,6 @@
+diff -aurr ./Source/VNCViewer_main.m ../cotvnc/Source/VNCViewer_main.m
+--- ./Source/VNCViewer_main.m2008-11-07 21:24:00.000000000 -0700
++++ ../cotvnc/Source/VNCViewer_main.m2003-01-17 04:55:52.000000000 -0700
+@@ -14,6 +14,5 @@
[NSAutoreleasePool setPoolCountHighWaterMark: 2000];
[NSAutoreleasePool setPoolCountHighWaterResolution: 2000];
#endif
-+
+-
return NSApplicationMain(argc, argv);
}
+Only in .: cotvnc-gitso.diff
arch/osx/libjpeg-copyright.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
The Independent JPEG Group's JPEG software
==========================================
README for release 6b of 27-Mar-1998
====================================
This distribution contains the sixth public release of the Independent JPEG
Group's free JPEG software. You are welcome to redistribute this software and
to use it for any purpose, subject to the conditions under LEGAL ISSUES, below.
Serious users of this software (particularly those incorporating it into
larger programs) should contact IJG at jpeg-info@uunet.uu.net to be added to
our electronic mailing list. Mailing list members are notified of updates
and have a chance to participate in technical discussions, etc.
This software is the work of Tom Lane, Philip Gladstone, Jim Boucher,
Lee Crocker, Julian Minguillon, Luis Ortiz, George Phillips, Davide Rossi,
Guido Vollbeding, Ge' Weijers, and other members of the Independent JPEG
Group.
IJG is not affiliated with the official ISO JPEG standards committee.
DOCUMENTATION ROADMAP
=====================
This file contains the following sections:
OVERVIEW General description of JPEG and the IJG software.
LEGAL ISSUES Copyright, lack of warranty, terms of distribution.
REFERENCES Where to learn more about JPEG.
ARCHIVE LOCATIONS Where to find newer versions of this software.
RELATED SOFTWARE Other stuff you should get.
FILE FORMAT WARS Software *not* to get.
TO DO Plans for future IJG releases.
Other documentation files in the distribution are:
User documentation:
install.doc How to configure and install the IJG software.
usage.doc Usage instructions for cjpeg, djpeg, jpegtran,
rdjpgcom, and wrjpgcom.
*.1 Unix-style man pages for programs (same info as usage.doc).
wizard.doc Advanced usage instructions for JPEG wizards only.
change.log Version-to-version change highlights.
Programmer and internal documentation:
libjpeg.doc How to use the JPEG library in your own programs.
example.c Sample code for calling the JPEG library.
structure.doc Overview of the JPEG library's internal structure.
filelist.doc Road map of IJG files.
coderules.doc Coding style rules --- please read if you contribute code.
Please read at least the files install.doc and usage.doc. Useful information
can also be found in the JPEG FAQ (Frequently Asked Questions) article. See
ARCHIVE LOCATIONS below to find out where to obtain the FAQ article.
If you want to understand how the JPEG code works, we suggest reading one or
more of the REFERENCES, then looking at the documentation files (in roughly
the order listed) before diving into the code.
OVERVIEW
========
This package contains C software to implement JPEG image compression and
decompression. JPEG (pronounced "jay-peg") is a standardized compression
method for full-color and gray-scale images. JPEG is intended for compressing
"real-world" scenes; line drawings, cartoons and other non-realistic images
are not its strong suit. JPEG is lossy, meaning that the output image is not
exactly identical to the input image. Hence you must not use JPEG if you
have to have identical output bits. However, on typical photographic images,
very good compression levels can be obtained with no visible change, and
remarkably high compression levels are possible if you can tolerate a
low-quality image. For more details, see the references, or just experiment
with various compression settings.
This software implements JPEG baseline, extended-sequential, and progressive
compression processes. Provision is made for supporting all variants of these
processes, although some uncommon parameter settings aren't implemented yet.
For legal reasons, we are not distributing code for the arithmetic-coding
variants of JPEG; see LEGAL ISSUES. We have made no provision for supporting
the hierarchical or lossless processes defined in the standard.
We provide a set of library routines for reading and writing JPEG image files,
plus two sample applications "cjpeg" and "djpeg", which use the library to
perform conversion between JPEG and some other popular image file formats.
The library is intended to be reused in other applications.
In order to support file conversion and viewing software, we have included
considerable functionality beyond the bare JPEG coding/decoding capability;
for example, the color quantization modules are not strictly part of JPEG
decoding, but they are essential for output to colormapped file formats or
colormapped displays. These extra functions can be compiled out of the
library if not required for a particular application. We have also included
"jpegtran", a utility for lossless transcoding between different JPEG
processes, and "rdjpgcom" and "wrjpgcom", two simple applications for
inserting and extracting textual comments in JFIF files.
The emphasis in designing this software has been on achieving portability and
flexibility, while also making it fast enough to be useful. In particular,
the software is not intended to be read as a tutorial on JPEG. (See the
REFERENCES section for introductory material.) Rather, it is intended to
be reliable, portable, industrial-strength code. We do not claim to have
achieved that goal in every aspect of the software, but we strive for it.
We welcome the use of this software as a component of commercial products.
No royalty is required, but we do ask for an acknowledgement in product
documentation, as described under LEGAL ISSUES.
LEGAL ISSUES
============
In plain English:
1. We don't promise that this software works. (But if you find any bugs,
please let us know!)
2. You can use this software for whatever you want. You don't have to pay us.
3. You may not pretend that you wrote this software. If you use it in a
program, you must acknowledge somewhere in your documentation that
you've used the IJG code.
In legalese:
The authors make NO WARRANTY or representation, either express or implied,
with respect to this software, its quality, accuracy, merchantability, or
fitness for a particular purpose. This software is provided "AS IS", and you,
its user, assume the entire risk as to its quality and accuracy.
This software is copyright (C) 1991-1998, Thomas G. Lane.
All Rights Reserved except as specified below.
Permission is hereby granted to use, copy, modify, and distribute this
software (or portions thereof) for any purpose, without fee, subject to these
conditions:
(1) If any part of the source code for this software is distributed, then this
README file must be included, with this copyright and no-warranty notice
unaltered; and any additions, deletions, or changes to the original files
must be clearly indicated in accompanying documentation.
(2) If only executable code is distributed, then the accompanying
documentation must state that "this software is based in part on the work of
the Independent JPEG Group".
(3) Permission for use of this software is granted only if the user accepts
full responsibility for any undesirable consequences; the authors accept
NO LIABILITY for damages of any kind.
These conditions apply to any software derived from or based on the IJG code,
not just to the unmodified library. If you use our work, you ought to
acknowledge us.
Permission is NOT granted for the use of any IJG author's name or company name
in advertising or publicity relating to this software or products derived from
it. This software may be referred to only as "the Independent JPEG Group's
software".
We specifically permit and encourage the use of this software as the basis of
commercial products, provided that all warranty or liability claims are
assumed by the product vendor.
ansi2knr.c is included in this distribution by permission of L. Peter Deutsch,
sole proprietor of its copyright holder, Aladdin Enterprises of Menlo Park, CA.
ansi2knr.c is NOT covered by the above copyright and conditions, but instead
by the usual distribution terms of the Free Software Foundation; principally,
that you must include source code if you redistribute it. (See the file
ansi2knr.c for full details.) However, since ansi2knr.c is not needed as part
of any program generated from the IJG code, this does not limit you more than
the foregoing paragraphs do.
The Unix configuration script "configure" was produced with GNU Autoconf.
It is copyright by the Free Software Foundation but is freely distributable.
The same holds for its supporting scripts (config.guess, config.sub,
ltconfig, ltmain.sh). Another support script, install-sh, is copyright
by M.I.T. but is also freely distributable.
It appears that the arithmetic coding option of the JPEG spec is covered by
patents owned by IBM, AT&T, and Mitsubishi. Hence arithmetic coding cannot
legally be used without obtaining one or more licenses. For this reason,
support for arithmetic coding has been removed from the free JPEG software.
(Since arithmetic coding provides only a marginal gain over the unpatented
Huffman mode, it is unlikely that very many implementations will support it.)
So far as we are aware, there are no patent restrictions on the remaining
code.
The IJG distribution formerly included code to read and write GIF files.
To avoid entanglement with the Unisys LZW patent, GIF reading support has
been removed altogether, and the GIF writer has been simplified to produce
"uncompressed GIFs". This technique does not use the LZW algorithm; the
resulting GIF files are larger than usual, but are readable by all standard
GIF decoders.
We are required to state that
"The Graphics Interchange Format(c) is the Copyright property of
CompuServe Incorporated. GIF(sm) is a Service Mark property of
CompuServe Incorporated."
REFERENCES
==========
We highly recommend reading one or more of these references before trying to
understand the innards of the JPEG software.
The best short technical introduction to the JPEG compression algorithm is
Wallace, Gregory K. "The JPEG Still Picture Compression Standard",
Communications of the ACM, April 1991 (vol. 34 no. 4), pp. 30-44.
(Adjacent articles in that issue discuss MPEG motion picture compression,
applications of JPEG, and related topics.) If you don't have the CACM issue
handy, a PostScript file containing a revised version of Wallace's article is
available at ftp://ftp.uu.net/graphics/jpeg/wallace.ps.gz. The file (actually
a preprint for an article that appeared in IEEE Trans. Consumer Electronics)
omits the sample images that appeared in CACM, but it includes corrections
and some added material. Note: the Wallace article is copyright ACM and IEEE,
and it may not be used for commercial purposes.
A somewhat less technical, more leisurely introduction to JPEG can be found in
"The Data Compression Book" by Mark Nelson and Jean-loup Gailly, published by
M&T Books (New York), 2nd ed. 1996, ISBN 1-55851-434-1. This book provides
good explanations and example C code for a multitude of compression methods
including JPEG. It is an excellent source if you are comfortable reading C
code but don't know much about data compression in general. The book's JPEG
sample code is far from industrial-strength, but when you are ready to look
at a full implementation, you've got one here...
The best full description of JPEG is the textbook "JPEG Still Image Data
Compression Standard" by William B. Pennebaker and Joan L. Mitchell, published
by Van Nostrand Reinhold, 1993, ISBN 0-442-01272-1. Price US$59.95, 638 pp.
The book includes the complete text of the ISO JPEG standards (DIS 10918-1
and draft DIS 10918-2). This is by far the most complete exposition of JPEG
in existence, and we highly recommend it.
The JPEG standard itself is not available electronically; you must order a
paper copy through ISO or ITU. (Unless you feel a need to own a certified
official copy, we recommend buying the Pennebaker and Mitchell book instead;
it's much cheaper and includes a great deal of useful explanatory material.)
In the USA, copies of the standard may be ordered from ANSI Sales at (212)
642-4900, or from Global Engineering Documents at (800) 854-7179. (ANSI
doesn't take credit card orders, but Global does.) It's not cheap: as of
1992, ANSI was charging $95 for Part 1 and $47 for Part 2, plus 7%
shipping/handling. The standard is divided into two parts, Part 1 being the
actual specification, while Part 2 covers compliance testing methods. Part 1
is titled "Digital Compression and Coding of Continuous-tone Still Images,
Part 1: Requirements and guidelines" and has document numbers ISO/IEC IS
10918-1, ITU-T T.81. Part 2 is titled "Digital Compression and Coding of
Continuous-tone Still Images, Part 2: Compliance testing" and has document
numbers ISO/IEC IS 10918-2, ITU-T T.83.
Some extensions to the original JPEG standard are defined in JPEG Part 3,
a newer ISO standard numbered ISO/IEC IS 10918-3 and ITU-T T.84. IJG
currently does not support any Part 3 extensions.
The JPEG standard does not specify all details of an interchangeable file
format. For the omitted details we follow the "JFIF" conventions, revision
1.02. A copy of the JFIF spec is available from:
Literature Department
C-Cube Microsystems, Inc.
1778 McCarthy Blvd.
Milpitas, CA 95035
phone (408) 944-6300, fax (408) 944-6314
A PostScript version of this document is available by FTP at
ftp://ftp.uu.net/graphics/jpeg/jfif.ps.gz. There is also a plain text
version at ftp://ftp.uu.net/graphics/jpeg/jfif.txt.gz, but it is missing
the figures.
The TIFF 6.0 file format specification can be obtained by FTP from
ftp://ftp.sgi.com/graphics/tiff/TIFF6.ps.gz. The JPEG incorporation scheme
found in the TIFF 6.0 spec of 3-June-92 has a number of serious problems.
IJG does not recommend use of the TIFF 6.0 design (TIFF Compression tag 6).
Instead, we recommend the JPEG design proposed by TIFF Technical Note #2
(Compression tag 7). Copies of this Note can be obtained from ftp.sgi.com or
from ftp://ftp.uu.net/graphics/jpeg/. It is expected that the next revision
of the TIFF spec will replace the 6.0 JPEG design with the Note's design.
Although IJG's own code does not support TIFF/JPEG, the free libtiff library
uses our library to implement TIFF/JPEG per the Note. libtiff is available
from ftp://ftp.sgi.com/graphics/tiff/.
ARCHIVE LOCATIONS
=================
The "official" archive site for this software is ftp.uu.net (Internet
address 192.48.96.9). The most recent released version can always be found
there in directory graphics/jpeg. This particular version will be archived
as ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz. If you don't have
direct Internet access, UUNET's archives are also available via UUCP; contact
help@uunet.uu.net for information on retrieving files that way.
Numerous Internet sites maintain copies of the UUNET files. However, only
ftp.uu.net is guaranteed to have the latest official version.
You can also obtain this software in DOS-compatible "zip" archive format from
the SimTel archives (ftp://ftp.simtel.net/pub/simtelnet/msdos/graphics/), or
on CompuServe in the Graphics Support forum (GO CIS:GRAPHSUP), library 12
"JPEG Tools". Again, these versions may sometimes lag behind the ftp.uu.net
release.
The JPEG FAQ (Frequently Asked Questions) article is a useful source of
general information about JPEG. It is updated constantly and therefore is
not included in this distribution. The FAQ is posted every two weeks to
Usenet newsgroups comp.graphics.misc, news.answers, and other groups.
It is available on the World Wide Web at http://www.faqs.org/faqs/jpeg-faq/
and other news.answers archive sites, including the official news.answers
archive at rtfm.mit.edu: ftp://rtfm.mit.edu/pub/usenet/news.answers/jpeg-faq/.
If you don't have Web or FTP access, send e-mail to mail-server@rtfm.mit.edu
with body
send usenet/news.answers/jpeg-faq/part1
send usenet/news.answers/jpeg-faq/part2
RELATED SOFTWARE
================
Numerous viewing and image manipulation programs now support JPEG. (Quite a
few of them use this library to do so.) The JPEG FAQ described above lists
some of the more popular free and shareware viewers, and tells where to
obtain them on Internet.
If you are on a Unix machine, we highly recommend Jef Poskanzer's free
PBMPLUS software, which provides many useful operations on PPM-format image
files. In particular, it can convert PPM images to and from a wide range of
other formats, thus making cjpeg/djpeg considerably more useful. The latest
version is distributed by the NetPBM group, and is available from numerous
sites, notably ftp://wuarchive.wustl.edu/graphics/graphics/packages/NetPBM/.
Unfortunately PBMPLUS/NETPBM is not nearly as portable as the IJG software is;
you are likely to have difficulty making it work on any non-Unix machine.
A different free JPEG implementation, written by the PVRG group at Stanford,
is available from ftp://havefun.stanford.edu/pub/jpeg/. This program
is designed for research and experimentation rather than production use;
it is slower, harder to use, and less portable than the IJG code, but it
is easier to read and modify. Also, the PVRG code supports lossless JPEG,
which we do not. (On the other hand, it doesn't do progressive JPEG.)
FILE FORMAT WARS
================
Some JPEG programs produce files that are not compatible with our library.
The root of the problem is that the ISO JPEG committee failed to specify a
concrete file format. Some vendors "filled in the blanks" on their own,
creating proprietary formats that no one else could read. (For example, none
of the early commercial JPEG implementations for the Macintosh were able to
exchange compressed files.)
The file format we have adopted is called JFIF (see REFERENCES). This format
has been agreed to by a number of major commercial JPEG vendors, and it has
become the de facto standard. JFIF is a minimal or "low end" representation.
We recommend the use of TIFF/JPEG (TIFF revision 6.0 as modified by TIFF
Technical Note #2) for "high end" applications that need to record a lot of
additional data about an image. TIFF/JPEG is fairly new and not yet widely
supported, unfortunately.
The upcoming JPEG Part 3 standard defines a file format called SPIFF.
SPIFF is interoperable with JFIF, in the sense that most JFIF decoders should
be able to read the most common variant of SPIFF. SPIFF has some technical
advantages over JFIF, but its major claim to fame is simply that it is an
official standard rather than an informal one. At this point it is unclear
whether SPIFF will supersede JFIF or whether JFIF will remain the de-facto
standard. IJG intends to support SPIFF once the standard is frozen, but we
have not decided whether it should become our default output format or not.
(In any case, our decoder will remain capable of reading JFIF indefinitely.)
Various proprietary file formats incorporating JPEG compression also exist.
We have little or no sympathy for the existence of these formats. Indeed,
one of the original reasons for developing this free software was to help
force convergence on common, open format standards for JPEG files. Don't
use a proprietary file format!
TO DO
=====
The major thrust for v7 will probably be improvement of visual quality.
The current method for scaling the quantization tables is known not to be
very good at low Q values. We also intend to investigate block boundary
smoothing, "poor man's variable quantization", and other means of improving
quality-vs-file-size performance without sacrificing compatibility.
In future versions, we are considering supporting some of the upcoming JPEG
Part 3 extensions --- principally, variable quantization and the SPIFF file
format.
As always, speeding things up is of great interest.
Please send bug reports, offers of help, etc. to jpeg-info@uunet.uu.net.
arch/osx/osxnvc_echoware-copyright.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
EchoWare OSX Bundle Version 1.926
Released: 9 August 2007
===============================
INTRODUCTION
------------
EchoWare is an OSX bundle that enables both client-server as
well as peer-to-peer applications to communicate with each other
via a "relay server" (aka, an "echoServer"). All communication
between echoWare and the echoserver appears to be outgoing TCP
from the point of view of the OSX network. This allows the
echoWare-enabled applications to communicate with each other
without either side of the connection needing to set or adjust
any firewall or router's port-forwarding settings.
EchoWare is utilized in both the Kaboodle "Network Manager
and Personal VPN application", as well as in EchoVNC, a
firewall-friendly VNC Server and Viewer. For more details on
these projects, please visit our website at:
http://www.echogent.com/
EchoWare includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit. (http://www.openssl.org/)
LICENSE
-------
EchoWare is Copyright (C) 2004-2007 Echogent Systems, Inc.
All rights reserved.
EchoWare is available for use under the open-source "Sleepycat"
license. Details can be found in the LICENSE file. In general,
the Sleepycat license allows the binary to be freely included in
any other open-source application. Any application wishing to
remain closed-source must purcahse a seperate license from
Echogent Systems, Inc, the owner of EchoWare.
EchoWare(R) is a registered trademark of Echogent Systems, Inc.
SOURCE
------
The accompanying source code has been built and compiled using
XCode 2.4.1 for Mac OSX with GCC 4 as the base compiler.
CHANGELIST
----------
1.92 11-Nov-07Initial OSX release
1.926 26-Jul-07Added support for login character filtering
ENCRYPTION
----------
EchoWare's 128-bit AES encryption is enabled by the
OpenSSL source-code. It is covered by the following
Copyrights:
Copyright (c) 1998-2004 The OpenSSL Project
Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson
Please see openssl.org for information about their
license and to contribute to their great efforts.
TECH SUPPORT
------------
Support for our Service Provider customers is available 24/7,
via phone or email.
Mailing list support is available for all users; you can find
those details on the EchoVNC homepage:
http://echovnc.sourceforge.net/fom-serve/cache/1.html
When asking a tech-support question, be sure to include as much
information about your computer and network as possible.
Thanks for using EchoWare!
REV20070726SB
arch/osx/osxvnc-copyright.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
Jonathan Gillaspie
Doug Simons
Special Thanks For Vine Server manual:
Pamela Gillaspie
Special Thanks for corrections to allow multiple clients with the Tight protocol:
Solletica
Special Thanks For Server Side Scaling:
Noriaki Yamazaki
Administrator of micro-VNC
Hitachi System & Service, Ltd.
Special Thanks For Reverse Connections:
Mark Lentczner
Zlib, ZlibHex and Tight encodings:
Mahmud Haque
Other Contributions:
David Johnson
Steven Tamm
Mihai Parparita
Marvin Simkin
French Localization:
Pascal Frey
Japanese Localization:
Hiroshi Saito
Italian Localization:
Claudio and Creative Shield
http://shieldnet.tk/
German Localizatoin:
----------------------------------------------------
This program 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 program 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 program; if not, write to:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307
USA
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program 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 program 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 program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
arch/osx/setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['Gitso.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True,
'site_packages': True}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
arch/win32/VNCHooks_COPYING.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Company : TightVNC Group
Product Version: 1, 3, 9, 0
Part Number: 0
Original Filename: VNCHooks.dll
Internal Filename: VNCHooks
Product Major Part: 1
Product Minor Part: 3
Product Build Part: 9
File Major Part: 1
File Minor Part: 3
File Build Part: 9
Key: 1, 3, 9, 0
Language: English (United States)
Based on VNC by AT&T Research Labs Cambridge, RealVNC Ltd.
Copyright (C) 2000-2007 TightVNC Group
arch/win32/msvcr71_README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Licensees of Python are permitted
to redistribute mscvr71.dll, as long as they redistribute it in order
to support pythonxy.dll. The EULA says
# You also agree not to permit further distribution of the
# Redistributables by your end users except you may permit further
# redistribution of the Redistributables by your distributors to your
# end-user customers if your distributors only distribute the
# Redistributables in conjunction with, and as part of, the Licensee
# Software, you comply with all other terms of this EULA, and your
# distributors comply with all restrictions of this EULA that are
# applicable to you.
In this text, "you" is the licensee of VS 2003 (i.e. me, redistributing
msvcr71.dll as part of Python 2.5), and the "Redistributable" is
msvcr71.dll. The "Licensee Software" is "a software application product
developed by you that adds significant and primary functionality to the
Redistributables", i.e. python25.dll.
arch/win32/setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import glob
from distutils.core import setup
import py2exe
DATA_FILES = []
OPTIONS = {'argv_emulation': True}
setup(
version = "0.6.0",
description = "Gitso is to support Others",
name="Gitso",
windows=[{"script":"Gitso.py", "icon_resources":[(1,"icon.ico")]}],
data_files=[(".", ["icon.ico"])],
py_modules = ['AboutWindow', 'ConnectionWindow', 'ArgsParser', 'GitsoThread', 'Processes', 'NATPMP'],
options = {
"py2exe": {
"dll_excludes": ["MSVCP90.dll"]
}
},
)
arch/win32/tightVNC_COPYING.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
//
// This file is part of the VNC system.
//
// The VNC system 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 program 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 program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
//
// TightVNC distribution homepage on the Web: http://www.tightvnc.com/
//
// If the source code for the VNC system is not available from the place
// whence you received this file, check http://www.uk.research.att.com/vnc or
// contact the authors on vnc@uk.research.att.com for information on obtaining it.
//
arch/win32/tightVNC_LICENCE.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program 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 program 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 program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
arch/win32/tightVNC_README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
TightVNC version 1.3.10
Source distribution for Windows platforms
======================================================================
This distribution is based on the standard VNC source and includes new
TightVNC-specific features and fixes, such as additional low-bandwidth
optimizations, major GUI improvements, file transfers, and more.
Copyright (C) 1999 AT&T Laboratories Cambridge.
Copyright (C) 2000 Tridia Corp.
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 2001-2004 HorizonLive.com, Inc.
Copyright (C) 2000-2006 Constantin Kaplinsky.
Copyright (C) 2000-2009 TightVNC Group
All rights reserved.
This software is distributed under the GNU General Public Licence as
published by the Free Software Foundation. See the file LICENCE.TXT for
the conditions under which this software is made available. TightVNC also
contains code from other sources. See the Acknowledgements section below,
and the individual files for details of the conditions under which they
are made available.
There are two programs here in the two subdirectories:
vncviewer - this is the VNC viewer, or client, program for Win32.
winvnc - this is the VNC server for Win32. It allows an NT desktop
to be accessed remotely using a VNC viewer.
The executables can be built using Microsoft Visual C++ 6.0.
See BUILDING.txt files for more details on compilation.
ACKNOWLEDGEMENTS
================
This distribution contains public domain DES software by Richard Outerbridge.
This is:
Copyright (c) 1988,1989,1990,1991,1992 by Richard Outerbridge.
(GEnie : OUTER; CIS : [71755,204]) Graven Imagery, 1992.
This distribution contains Java DES software by Dave Zimmerman
<dzimm@widget.com> and Jef Poskanzer <jef@acme.com>. This is:
Copyright (c) 1996 Widget Workshop, Inc. All Rights Reserved.
Permission to use, copy, modify, and distribute this software and its
documentation for NON-COMMERCIAL or COMMERCIAL purposes and without fee
is hereby granted, provided that this copyright notice is kept intact.
WIDGET WORKSHOP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE
SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, OR NON-INFRINGEMENT. WIDGET WORKSHOP SHALL NOT BE
LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,
MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
THIS SOFTWARE IS NOT DESIGNED OR INTENDED FOR USE OR RESALE AS ON-LINE
CONTROL EQUIPMENT IN HAZARDOUS ENVIRONMENTS REQUIRING FAIL-SAFE
PERFORMANCE, SUCH AS IN THE OPERATION OF NUCLEAR FACILITIES, AIRCRAFT
NAVIGATION OR COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL, DIRECT LIFE
SUPPORT MACHINES, OR WEAPONS SYSTEMS, IN WHICH THE FAILURE OF THE
SOFTWARE COULD LEAD DIRECTLY TO DEATH, PERSONAL INJURY, OR SEVERE
PHYSICAL OR ENVIRONMENTAL DAMAGE ("HIGH RISK ACTIVITIES"). WIDGET
WORKSHOP SPECIFICALLY DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY OF
FITNESS FOR HIGH RISK ACTIVITIES.
Copyright (C) 1996 by Jef Poskanzer <jef@acme.com>. All rights
reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Visit the ACME Labs Java page for up-to-date versions of this and other
fine Java utilities: http://www.acme.com/java/
debian/changelog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
gitso (0.6.2) precise; urgency=low
* Cleaned up .deb creation.
* Remove CHANGELOG.txt.
* Make gitso executable.
* Added homepage to .deb control file.
* Changed vncviewer dependency to xtightvncviewer.
* Fix package name in linux changelog.
* Added 8 bit color compression.
-- Markus Roth <markus.roth@herr-biber.de> Thu, 27 Sep 2012 03:06:54 +0200
gitso (0.6) karmic; urgency=low
* Complete rewrite of process management.
* Actually stop VNC Processes (Windows)
* Support loading remote hosts file.
* Command line switches
* --dev
* --listen
* --connect IP
* --list list_file
* --version
* --help
* manpage for (All UNIX sytems)
* Support for .rpms (Fedora, OpenSUSE)
* Implement Native VNC listener (OS X)
* Better process management, user gets notified if connection is broken.
* Licensing Updates (across the board).
* Improved documentation.
-- Aaron D. Gerber <gerberad@gmail.com> Sun, 21 Feb 2010 17:32:40 -0600
gitso (0.5) hardy; urgency=low
* Complete rewrite of the interface
* Gitso no longer has Zombied VNC processes after it quits.
* Gitso stops the VNC process when it closes
* Updated Icon
* Updated License: GPL 3
* Added Support to be able to specify a list of hosts when you distribute it.
* Added History/Clear History of servers
* Added OS X 10.5 Support (need testing on 10.4 and 10.3)
* OS X uses TightVNC 1.3.9
* OS X uses OSXVNC 3.0
-- Aaron D. Gerber <gerberad@gmail.com> Sat, 26 Jul 2008 16:32:40 -0600
gitso (0.4) hardy; urgency=low
* Made Deb, updated with icons and much more.
-- Aaron D. Gerber <gerberad@gmail.com> Sat, 10 May 2008 16:17:43 -0600
gitso (0.3) UNRELEASED; urgency=low
* Initial release. (Closes: #XXXXXX)
-- Aaron D. Gerber <gerberad@gmail.com> Thu, 08 May 2008 22:35:52 -0600
debian/compat
1
8
debian/control
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Source: gitso
Section: utils
Priority: optional
Maintainer: Markus Roth <markus.roth@herr-biber.de>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.2
Homepage: http://code.google.com/p/gitso/
Vcs-Svn: http://gitso.googlecode.com/svn/gitso/trunk
Vcs-Browser: http://code.google.com/p/gitso/source/browse/gitso
Package: gitso
Architecture: all
Depends: x11vnc, xtightvncviewer, python-wxtools
Description: gitso is to support others (using wxPython and reverse vnc)
gitso is a Python and wxWidgets frontend to x11vnc server
and vncviewer. It runs x11vnc -connect and
vncviewer -listen depending on if you are giving
or receiving help.
debian/copyright
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Format: http://dep.debian.net/deps/dep5
Upstream-Name: gitso
Source: http://code.google.com/p/gitso/
Files: *
Copyright: 2008 - 2010: Aaron Gerber
2008 - 2010: Derek Buranen
License: GPL-3.0+
Files: debian/*
Copyright: 2012 Markus Roth <markus.roth@herr-biber.de>
License: GPL-3.0+
License: GPL-3.0+
This program 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 3 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 program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
debian/gitso.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
arch/linux/gitso usr/bin
Gitso.py usr/share/gitso
ConnectionWindow.py usr/share/gitso
AboutWindow.py usr/share/gitso
GitsoThread.py usr/share/gitso
Processes.py usr/share/gitso
ArgsParser.py usr/share/gitso
__init__.py usr/share/gitso
NATPMP.py usr/share/gitso
hosts.txt usr/share/gitso
icon.ico usr/share/gitso
icon.png usr/share/gitso
arch/linux/gitso.desktop usr/share/applications
arch/linux/README.txt usr/share/doc/gitso
debian/gitso.manpages
1
arch/linux/gitso.1
debian/rules
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
makegitso.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
::
:: Gisto - Gitso is to support others
::
:: Copyright 2008, Aaron Gerber and Derek Buranen
::
:: Gitso 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 3 of the License, or
:: (at your option) any later version.
::
:: Gitso 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 Gitso. If not, see <http://www.gnu.org/licenses/>.
::
"C:\Python27\python" arch\win32\setup.py py2exe
COPY "C:\Python27\Lib\site-packages\wx-2.8-msw-unicode\wx\msvcp71.dll" dist\msvcp71.dll
:: "%ProgramFiles%\NSIS\makensis.exe" /X"SetCompressor /FINAL /SOLID lzma " makegitso.nsi
:: rd build /s /q
makegitso.nsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
; makegitso.nsi
; ----------------
; Package Gitso for Windows using NSIS
;
; Copyright 2008 - 2010: Aaron Gerber and Derek Buranen
;
; Gitso 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 3 of the License, or
; (at your option) any later version.
;
; Gitso 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 Gitso. If not, see <http://www.gnu.org/licenses/>.
;--------------------------------
!define VERSION "0.6"
Name "Gitso ${VERSION}"
Icon "./icon.ico"
UninstallIcon "./icon.ico"
OutFile "gitso-install.exe"
; The default installation directory
InstallDir $PROGRAMFILES\Gitso
; Registry key to check for directory (so if you install again, it will overwrite the old one automatically)
InstallDirRegKey HKLM "Software\Gitso" "Install_Dir"
;--------------------------------
; Version Information
VIProductVersion "0.6.0.0"
VIAddVersionKey "ProductName" "Gitso"
VIAddVersionKey "Comments" "Gitso is to support others"
VIAddVersionKey "CompanyName" "http://code.google.com/p/gitso"
VIAddVersionKey "LegalCopyright" "GPL 3"
VIAddVersionKey "FileDescription" "Gitso"
VIAddVersionKey "FileVersion" "${VERSION}"
;--------------------------------
;--------------------------------
; Pages
Page components
Page directory
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles
;--------------------------------
Section "Gitso"
SectionIn RO
SetOutPath $INSTDIR
; Write the installation path into the registry
; Write the uninstall keys for Windows
WriteRegStr HKLM SOFTWARE\Gitso "Install_Dir" "$INSTDIR"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gitso" "DisplayName" "Gitso"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gitso" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gitso" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gitso" "NoRepair" 1
WriteUninstaller "uninstall.exe"
File ".\hosts.txt"
File ".\icon.ico"
File ".\icon.png"
File ".\COPYING"
File ".\dist\Gitso.exe"
File ".\dist\icon.ico"
File ".\dist\library.zip"
File ".\dist\msvcp71.dll"
File ".\dist\MSVCR71.dll"
File ".\dist\python25.dll"
File ".\dist\pywintypes25.dll"
File ".\dist\bz2.pyd"
File ".\dist\win32api.pyd"
File ".\dist\_ssl.pyd"
File ".\dist\_socket.pyd"
File ".\dist\select.pyd"
File ".\dist\unicodedata.pyd"
File ".\dist\w9xpopen.exe"
File ".\dist\wx._controls_.pyd"
File ".\dist\wx._core_.pyd"
File ".\dist\wx._gdi_.pyd"
File ".\dist\wx._misc_.pyd"
File ".\dist\wx._windows_.pyd"
File ".\dist\wxbase28uh_net_vc.dll"
File ".\dist\wxbase28uh_vc.dll"
File ".\dist\wxmsw28uh_adv_vc.dll"
File ".\dist\wxmsw28uh_core_vc.dll"
File ".\dist\wxmsw28uh_html_vc.dll"
File ".\arch\win32\tightVNC_LICENCE.txt"
File ".\arch\win32\tightVNC_COPYING.txt"
File ".\arch\win32\tightVNC_README.txt"
File ".\arch\win32\VNCHooks_COPYING.txt"
File ".\arch\win32\msvcr71_README.txt"
;start menu items
CreateDirectory "$SMPROGRAMS\Gitso"
CreateShortCut "$SMPROGRAMS\Gitso\Gitso.lnk" "$INSTDIR\Gitso.exe" "" "$INSTDIR\icon.ico" 0
File ".\arch\win32\vncviewer.exe"
File ".\arch\win32\WinVNC.exe"
File ".\arch\win32\VNCHooks.dll"
;Registry tweaks to TightVNC's server
WriteRegDWORD HKCU "Software\ORL\WinVNC3" "RemoveWallpaper" 1
WriteRegDWORD HKCU "Software\ORL\WinVNC3" "EnableFileTransfers" 1
;set default password to something so WinVNC.exe doesn't complain about having no password
WriteRegBin HKCU "SOFTWARE\ORL\WinVNC3" "Password" "238f16962aeb734e"
WriteRegBin HKCU "SOFTWARE\ORL\WinVNC3" "PasswordViewOnly" "238f16962aeb734e"
;Try to set it for all users, but I'm not positive this works
WriteRegDWORD HKLM "Software\ORL\WinVNC3" "RemoveWallpaper" 1
WriteRegDWORD HKLM "Software\ORL\WinVNC3" "EnableFileTransfers" 1
WriteRegBin HKLM "SOFTWARE\ORL\WinVNC3" "Password" "238f16962aeb734e"
WriteRegBin HKLM "SOFTWARE\ORL\WinVNC3" "PasswordViewOnly" "b0f0ac1997133bc9"
SectionEnd
; Uninstall
;------------------------------------------------------
Section "Uninstall"
; Remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gitso"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Gitso"
; Remove files and uninstaller
Delete $INSTDIR\vncviewer.exe
Delete $INSTDIR\VNCHooks.dll
Delete $INSTDIR\WinVNC.exe
; Remove shortcuts and folder
RMDir /r "$SMPROGRAMS\Gitso"
RMDir /r $INSTDIR
SectionEnd
makegitso.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
#! /bin/bash
##########
# Gisto - Gitso is to support others
#
# Copyright 2008 - 2010: Aaron Gerber, Derek Buranen
#
# Gitso 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 3 of the License, or
# (at your option) any later version.
#
# Gitso 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 Gitso. If not, see <http://www.gnu.org/licenses/>.
##########
##
# Helper methods
############################
#
# Creates the source package, works on all UNIX/LINUX based platforms
#
function mksrc {
P=`pwd`
TMP_PKG="../pkg"
# Clean up first.
find . -name "*~" -exec rm {} ';'
rm -rf $OSX_BUILD_DIR
rm -rf $RPM_BUILD_DIR
rm -rf $DEB_TARGZ_PATH
rm -rf $P/*.bz2
rm -rf $P/*.tar
rm -rf $P/*.gz
rm -rf $P/*.app
rm -rf $P/*.dmg
rm -rf $P/*.deb
rm -rf $P/*.rpm
rm -rf $P/*.exe
rm -rf $TMP_PKG
# Create the SRC file
mkdir -p $TMP_PKG/trunk/
cp -r ./ $TMP_PKG/trunk/
find $TMP_PKG/trunk -name ".svn" -exec rm -rf {} 2>&1 > /dev/null ';' 2>&1 > /dev/null
mv $TMP_PKG/trunk $TMP_PKG/gitso-0.6.2
tar -cj -C $TMP_PKG/ gitso-0.6.2 > $P/$SRC
rm -rf $TMP_PKG
}
#
# Create the .app folder for snow leopard, it uses a different version of pythong
# And because py2app needs to know there, we just use different config files.
#
function snowLeopardDMG {
# Grab the default option and then reset it at the end.
#defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
echo -e "Creating Gitso.app "
rm -f setup.py
rm -rf $OSX_BUILD_DIR
echo -e ".."
python arch/osx/setup.py py2app
echo -e ".."
cp arch/osx/Info_OSX-10.6.plist $OSX_BUILD_DIR/Gitso.app/Contents/Info.plist
cp COPYING $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp PythonApplet.icns $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
tar xvfz arch/osx/OSXvnc.tar.gz
mv OSXvnc $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
tar xvfz arch/osx/cotvnc.app.tar.gz
mv cotvnc.app $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp icon.ico $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp icon.png $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp __init__.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp ArgsParser.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp Processes.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp ConnectionWindow.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp AboutWindow.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp GitsoThread.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp NATPMP.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp arch/osx/libjpeg-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Frameworks/
cp arch/osx/osxnvc_echoware-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Resources/OSXvnc/
cp arch/osx/cotvnc-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Resources/cotvnc.app/contents/Resources
cp arch/osx/osxvnc-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Resources/OSXvnc/
echo -e " [done]\n"
echo -e "Creating $DMG_OSX_106"
rm -f $DMG_OSX_106
mkdir $OSX_BUILD_DIR/Gitso
cp arch/osx/dmg_DS_Store $OSX_BUILD_DIR/Gitso/.DS_Store
ln -s /Applications/ $OSX_BUILD_DIR/Gitso/Applications
mv "$OSX_BUILD_DIR/Gitso.app" "$OSX_BUILD_DIR/Gitso/"
cp -r arch/osx/Readme.rtfd $OSX_BUILD_DIR/Gitso/Readme.rtfd
echo -e "..."
hdiutil create -srcfolder $OSX_BUILD_DIR/Gitso/ $DMG_OSX_106
echo -e "... [done]\n"
}
#
# Create the .app folder for Leopard, it uses a different version of pythong
# And because py2app needs to know there, we just use different config files.
#
function LeopardDMG {
echo -e "Creating Gitso.app "
rm -f setup.py
rm -rf $OSX_BUILD_DIR
echo -e ".."
python arch/osx/setup.py py2app
echo -e ".."
cp arch/osx/Info_OSX-10.5.plist $OSX_BUILD_DIR/Gitso.app/Contents/Info.plist
cp COPYING $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp PythonApplet.icns $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
tar xvfz arch/osx/OSXvnc.tar.gz
mv OSXvnc $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
tar xvfz arch/osx/cotvnc.app.tar.gz
mv cotvnc.app $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp icon.ico $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp icon.png $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp __init__.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp ArgsParser.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp Processes.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp ConnectionWindow.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp AboutWindow.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp GitsoThread.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp NATPMP.py $OSX_BUILD_DIR/Gitso.app/Contents/Resources/
cp arch/osx/libjpeg-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Frameworks/
cp arch/osx/osxnvc_echoware-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Resources/OSXvnc/
cp arch/osx/cotvnc-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Resources/cotvnc.app/contents/Resources
cp arch/osx/osxvnc-copyright.txt $OSX_BUILD_DIR/Gitso.app/Contents/Resources/OSXvnc/
echo -e " [done]\n"
echo -e "Creating $DMG_OSX_105"
rm -f $DMG_OSX_105
mkdir $OSX_BUILD_DIR/Gitso
cp arch/osx/dmg_DS_Store $OSX_BUILD_DIR/Gitso/.DS_Store
ln -s /Applications/ $OSX_BUILD_DIR/Gitso/Applications
mv "$OSX_BUILD_DIR/Gitso.app" "$OSX_BUILD_DIR/Gitso/"
cp -r arch/osx/Readme.rtfd $OSX_BUILD_DIR/Gitso/Readme.rtfd
echo -e "..."
hdiutil create -srcfolder $OSX_BUILD_DIR/Gitso/ $DMG_OSX_105
echo -e "... [done]\n"
}
#
# Displays the help menu
#
function helpMenu {
echo -e "Usage makegitso.sh: [ BUILD OPTIONS ] [ OPTIONS ]"
echo -e "\tBUILD OPTIONS"
echo -e "\t--fedora\tMake package for Fedora. (only avaible on Fedora)"
echo -e "\t--opensuse\tMake package for OpenSUSE. (only avaible on OpenSUSE)"
# Cent OS doesn't have wxWidget in it's repo....
#echo -e "\t--centos\tMake package for CentOS. (only avaible on CentOS)"
echo -e "\t--source\tMake the source package. (All UNIX/Linux systems)\n"
echo -e "\tOPTIONS:"
echo -e "\t--no-clean\tDo not remove the build directory."
echo -e "\t--help \tThese options."
exit 0
}
##
# Initialize values
############################
DMG_OSX_106="Gitso_0.6.2_mac_SnowLeopard.dmg"
DMG_OSX_105="Gitso_0.6.2_mac_Leopard.dmg"
DEB="../gitso_0.6.2_all.deb"
TARGZ="../gitso_0.6.2_all.tar.gz"
SRC="gitso_0.6.2_src.tar.bz2"
RPM="gitso-0.6.2-1.i586.rpm"
RPMOUT=""
OSX_BUILD_DIR=`pwd`"/dist"
RPM_BUILD_DIR=`pwd`"/build"
DEB_BUILD_DIR="debian/gitso"
DEB_TARGZ_PATH="gitso"
CLEAN="yes"
RPMNAME=""
USESRC="no"
##
# Get Comman line arguments
############################
for param in "$@"
do
if test "${param}" = "--no-clean"; then
CLEAN="no"
elif test "${param}" = "--fedora"; then
RPMNAME="fedora"
RPMOUT="gitso_0.6.2-1_fedora.i386.rpm"
elif test "${param}" = "--centos"; then
RPMNAME="centos"
RPMOUT="gitso_0.6.2-1_centos.i386.rpm"
elif test "${param}" = "--opensuse"; then
RPMNAME="opensuse"
RPMOUT="gitso_0.6.2-1_opensuse.i586.rpm"
elif test "${param}" = "--source"; then
USESRC="yes"
else
helpMenu
fi
done
##
# Create packages!
########################
if [ "$USESRC" = "yes" ]; then
# Creating the source
echo -n "Creating gitso $SRC...."
mksrc
echo -e " [done]\n"
elif [ "`uname -a | grep Darwin`" != "" ]; then
#We're on OS X
if test `which py2applet`; then
# To Make cotvnc
# cvs -z3 -d:pserver:anonymous@cotvnc.cvs.sourceforge.net:/cvsroot/cotvnc co -P cotvnc
#
# cd cotvnc
# patch -p0 < [Gitso-path]/arch/osx/cotvnc-gitso.diff
#
# Then in xCode build cotvnc
# find build/Development/
# rename Chicken Of The VNC.app to cotvnc.app
# remove cotvnc.app/Contents/Resources/*non English.lproj
# rename cotvnc.app/Contents/MacOS/Chicken Of The VNC to cotvnc.app/Contents/MacOS/cotvnc
#
# Patch was made with: diff -aurr . ../cotvnc-gitso/ > cotvnc-gitso.diff
#
LeopardDMG
snowLeopardDMG
else
echo -e "Error, you need py2applet to be installed."
fi
elif test "`uname -a 2>&1 | grep Linux | grep -v which`"; then
#We're on Linux
if test "`which dpkg 2>&1 | grep -v which`"; then
# Deb version of Gitso.
echo -n "Creating $DEB"
dpkg-buildpackage -us -uc -d -b
echo -e " [done]"
# Standalone version of Gitso.
echo -n "Creating $TARGZ"
rm -rf $DEB_TARGZ_PATH
cp -r $DEB_BUILD_DIR $DEB_TARGZ_PATH
rm -rf $DEB_TARGZ_PATH/DEBIAN
echo -n ".."
cp arch/linux/README-stand-alone.txt $DEB_TARGZ_PATH/README
cp arch/linux/run-gitso.sh $DEB_TARGZ_PATH/
mv $DEB_TARGZ_PATH/usr/bin $DEB_TARGZ_PATH/bin
mv $DEB_TARGZ_PATH/usr/share $DEB_TARGZ_PATH/share
rm -rf $DEB_TARGZ_PATH/usr/
echo -n "."
tar -cvzf $TARGZ $DEB_TARGZ_PATH 2>&1 > /dev/null
echo -e " [done]\n"
elif test "`which rpm 2>&1 | grep -v which`"; then
# RPM version of Gitso
if [ "$RPMNAME" = "fedora" ]; then
SPEC="gitso_rpm_fedora.spec"
# yum --nogpgcheck install gitso_0.6.2-1_fedora.i386.rpm
elif [ "$RPMNAME" = "opensuse" ]; then
SPEC="gitso_rpm.spec"
elif [ "$RPMNAME" = "centos" ]; then
SPEC="gitso_rpm_centos.spec"
else
echo -e "Error: Invalid RPM Type: '$RPMNAME'\n\tPlease specify one of the following:\n\t--opensuse\n\t--fedora\n"
exit 1
fi
echo "Creating $RPM"
export RPM_BUILD_DIR=$RPM_BUILD_DIR
TMP="$RPM_BUILD_DIR/rpm/tmp"
BUILD_ROOT="$RPM_BUILD_DIR/rpm/tmp/gitso-root"
# We need this because the rpmbuild below needs to the source ball.
# Also realize that mksrc is going to clean-up, so if you creat diste files before this line
# They will be deleted.
mksrc
mkdir -p $RPM_BUILD_DIR/rpm/{BUILD,RPMS/$ARCH,RPMS/noarch,SOURCES,SRPMS,SPECS,tmp}
mkdir -p $BUILD_ROOT
cp $SRC $RPM_BUILD_DIR/rpm/SOURCES/$SRC
cp arch/linux/$SPEC $TMP
perl -e 's/%\(echo \$HOME\)/$ENV{'RPM_BUILD_DIR'}/g;' -pi $TMP/$SPEC
if [ "$RPMNAME" = "fedora" ]; then
rpmbuild -ba $TMP/$SPEC
elif [ "$RPMNAME" = "opensuse" ]; then
export RPM_BUILD_ROOT="$HOME/rpmbuild/BUILDROOT/gitso-0.6.2-1.i386"
rpmbuild -ba --buildroot=$RPM_BUILD_ROOT $TMP/$SPEC
elif [ "$RPMNAME" = "centos" ]; then
export RPM_BUILD_ROOT="$HOME/rpmbuild/BUILDROOT/gitso-0.6.2-1.i386"
rpmbuild -ba --buildroot=$RPM_BUILD_ROOT $TMP/$SPEC
fi
find $RPM_BUILD_DIR/rpm/RPMS -name "*.rpm" -exec cp {} $RPMOUT ';'
echo -e " [done]\n"
fi
fi
# Clean up
if [ "$CLEAN" = "yes" ]; then
echo -e "Cleaning up...."
rm -rf $RPM_BUILD_DIR
dpkg-buildpackage -tc -us -uc -d -b
rm -rf $DEB_TARGZ_PATH
find . -name "*.pyc" -exec rm {} ';'
echo -e " [done]\n"
fi

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.42609s using 14 queries.