manqod-server 1.257.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/manqod-server +96 -0
- data/doc/HOWTO +8 -0
- data/doc/INSTALL +2 -0
- data/doc/LICENCE +450 -0
- data/doc/README +24 -0
- data/doc/gentoo/etc/conf.d/manqod-server +2 -0
- data/doc/gentoo/etc/init.d/manqod-server +32 -0
- data/doc/manqod.sql +440 -0
- data/doc/manqod_structure.sql +356 -0
- data/doc/server.conf.example +19 -0
- data/etc/update.sql +35 -0
- data/lib/DBSetup.rb +98 -0
- data/lib/DrbDB/Cron.rb +66 -0
- data/lib/DrbDB/DrbForm.rb +79 -0
- data/lib/DrbDB/DrbImages.rb +39 -0
- data/lib/DrbDB/DrbListModel.rb +671 -0
- data/lib/DrbDB/EventCache.rb +47 -0
- data/lib/DrbDB/GtkAttributes.rb +39 -0
- data/lib/DrbDB/Help.rb +47 -0
- data/lib/DrbDB/Messaging.rb +75 -0
- data/lib/DrbDB/MyMultiSQL/jdbc.rb +107 -0
- data/lib/DrbDB/MyMultiSQL/mysql-ruby.rb +114 -0
- data/lib/DrbDB/MyMultiSQL.rb +226 -0
- data/lib/DrbDB/Users.rb +61 -0
- data/lib/DrbDB.rb +274 -0
- data/lib/Eprint.rb +94 -0
- data/lib/HeartBeat.rb +54 -0
- data/lib/ManqodLogger.rb +27 -0
- data/lib/ManqodServer.rb +167 -0
- metadata +132 -0
data/bin/manqod-server
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
#this file is part of manqod
|
3
|
+
#manqod is distributed under the CDDL licence
|
4
|
+
#the owner of manqod is Dobai-Pataky Balint(dpblnt@gmail.com)
|
5
|
+
|
6
|
+
path=File::expand_path(File.join(File.dirname(__FILE__),".."))
|
7
|
+
@@etc=File::expand_path(File.join(path,"etc/"))
|
8
|
+
$LOAD_PATH.unshift(File::expand_path(File.join(path,"lib/")))
|
9
|
+
|
10
|
+
require 'rubygems'
|
11
|
+
require 'getoptlong'
|
12
|
+
require 'logger'
|
13
|
+
require 'drb'
|
14
|
+
require 'net/smtp'
|
15
|
+
require 'thread'
|
16
|
+
require 'singleton'
|
17
|
+
require 'memcached'
|
18
|
+
require('timeout')
|
19
|
+
require('rufus/scheduler')
|
20
|
+
|
21
|
+
require 'ManqodLogger'
|
22
|
+
require 'Eprint'
|
23
|
+
|
24
|
+
require 'DrbDB/MyMultiSQL'
|
25
|
+
require 'DrbDB/GtkAttributes'
|
26
|
+
require 'DrbDB/Messaging'
|
27
|
+
require 'DrbDB/EventCache'
|
28
|
+
require 'DrbDB/Help'
|
29
|
+
require 'DrbDB/DrbListModel'
|
30
|
+
require 'DrbDB/DrbForm'
|
31
|
+
require 'DrbDB/DrbImages'
|
32
|
+
require 'DrbDB/Users'
|
33
|
+
require 'DrbDB/Cron'
|
34
|
+
require 'DrbDB'
|
35
|
+
|
36
|
+
require 'HeartBeat'
|
37
|
+
require 'DBSetup.rb'
|
38
|
+
require 'ManqodServer'
|
39
|
+
|
40
|
+
class RElation
|
41
|
+
def initialize(rel_id)
|
42
|
+
@src_table=nil
|
43
|
+
@dst_table=nil
|
44
|
+
@src_field=nil
|
45
|
+
@dst_field=nil
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
opts=GetoptLong.new(
|
50
|
+
["--help" , "-h",GetoptLong::NO_ARGUMENT],
|
51
|
+
["--bind" , "-b",GetoptLong:: REQUIRED_ARGUMENT],
|
52
|
+
["--log" , "-l",GetoptLong:: OPTIONAL_ARGUMENT],
|
53
|
+
["--debug" ,"-d",GetoptLong:: REQUIRED_ARGUMENT],
|
54
|
+
["--report" ,"-r",GetoptLong:: REQUIRED_ARGUMENT]
|
55
|
+
)
|
56
|
+
|
57
|
+
server_uri="druby://:5549"
|
58
|
+
log=File::expand_path(File.join(File.join(path,"log"),"manqod-server.log"))
|
59
|
+
debug="ERROR"
|
60
|
+
report=nil
|
61
|
+
|
62
|
+
conf=""
|
63
|
+
begin
|
64
|
+
conf=File.new("#{@@etc}/server.conf").read
|
65
|
+
rescue
|
66
|
+
end
|
67
|
+
eval(conf)
|
68
|
+
|
69
|
+
begin
|
70
|
+
opts.each{|opt, arg|
|
71
|
+
case opt
|
72
|
+
when "--help"
|
73
|
+
print "manqod server command line parameters:\n"
|
74
|
+
print "\tparam\tdescription(example)\n"
|
75
|
+
print "\t-h\thelp\n"
|
76
|
+
print "\t-b\tbind(druby://:5549) bind address\n"
|
77
|
+
print "\t-l\tlog(STDERR) log file\n"
|
78
|
+
print "\t-d\tdebug(ERROR) debug level\n"
|
79
|
+
print "\t-r\treport() email address\n"
|
80
|
+
exit
|
81
|
+
when "--bind" then server_uri=arg
|
82
|
+
when "--log" then log=arg == "" ? STDERR : log
|
83
|
+
when "--debug" then debug=arg
|
84
|
+
when "--report" then report=arg
|
85
|
+
end
|
86
|
+
}
|
87
|
+
rescue =>err
|
88
|
+
# p err
|
89
|
+
end
|
90
|
+
|
91
|
+
begin
|
92
|
+
ms=ManqodServer.new({:bind=>server_uri, :log=>log, :debug=>debug, :report=>report, :path=>path}).init
|
93
|
+
rescue =>err
|
94
|
+
print "#{err}\n#{err.backtrace.join("\n")}"
|
95
|
+
end
|
96
|
+
|
data/doc/HOWTO
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
list all logged in users on server 127.0.0.1
|
2
|
+
ruby -e "require('drb'); DRb::DRbObject.new_with_uri(\"druby://127.0.0.1:5549\").connected_clients.each{|v| p v.to_s}"
|
3
|
+
|
4
|
+
reload rows with id 1 and 10 of table 'belso_megrendelesek' at the server at address(useful, if you changed the data directly by an sql tool):
|
5
|
+
ruby -e "require('drb'); DRb::DRbObject.new_with_uri('druby://127.0.0.1:5552').changed_ids_of_base('belso_megrendelesek',[1,10])"
|
6
|
+
|
7
|
+
send save_conf, warn window quit to all adamantium clients logged in
|
8
|
+
ruby -e "require('drb'); DRb::DRbObject.new_with_uri(\"druby://127.0.0.1:5549\").connected_clients.each_pair{|k,v| if(k.to_s.index(\"adamantium\")) then p \"sending to #{k}\";k.rpc(\"ConfStorage.instance.save_conf;Gtk.thread_protect{warn('Frissites tortent!\nkilepes kovetkezik!'); Gtk.main_quit}\");end }"
|
data/doc/INSTALL
ADDED
data/doc/LICENCE
ADDED
@@ -0,0 +1,450 @@
|
|
1
|
+
COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL)
|
2
|
+
Version 1.0
|
3
|
+
|
4
|
+
|
5
|
+
*
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
o
|
9
|
+
|
10
|
+
1.1. Contributor means each
|
11
|
+
individual or entity that creates or contributes to the creation of
|
12
|
+
Modifications.
|
13
|
+
o
|
14
|
+
|
15
|
+
1.2. Contributor Version means
|
16
|
+
the combination of the Original Software, prior
|
17
|
+
Modifications used by a Contributor (if any), and the
|
18
|
+
Modifications made by that particular Contributor.
|
19
|
+
o
|
20
|
+
|
21
|
+
1.3. Covered Software means (a)
|
22
|
+
the Original Software, or (b) Modifications, or (c) the
|
23
|
+
combination of files containing Original Software with files
|
24
|
+
containing Modifications, in each case including portions
|
25
|
+
thereof.
|
26
|
+
o
|
27
|
+
|
28
|
+
1.4. Executable means the
|
29
|
+
Covered Software in any form other than Source Code.
|
30
|
+
o
|
31
|
+
|
32
|
+
1.5. Initial Developer means
|
33
|
+
the individual or entity that first makes Original Software
|
34
|
+
available under this License.
|
35
|
+
o
|
36
|
+
|
37
|
+
1.6. Larger Work means a work
|
38
|
+
which combines Covered Software or portions thereof with
|
39
|
+
code not governed by the terms of this License.
|
40
|
+
o
|
41
|
+
|
42
|
+
1.7. License means this
|
43
|
+
document.
|
44
|
+
o
|
45
|
+
|
46
|
+
1.8. Licensable means having
|
47
|
+
the right to grant, to the maximum extent possible, whether
|
48
|
+
at the time of the initial grant or subsequently acquired,
|
49
|
+
any and all of the rights conveyed herein.
|
50
|
+
o
|
51
|
+
|
52
|
+
1.9. Modifications means the
|
53
|
+
Source Code and Executable form of any of the following:
|
54
|
+
+
|
55
|
+
|
56
|
+
A. Any file that results from an addition
|
57
|
+
to, deletion from or modification of the contents of a
|
58
|
+
file containing Original Software or previous
|
59
|
+
Modifications;
|
60
|
+
+
|
61
|
+
|
62
|
+
B. Any new file that contains any part of
|
63
|
+
the Original Software or previous Modification; or
|
64
|
+
+
|
65
|
+
|
66
|
+
C. Any new file that is contributed or
|
67
|
+
otherwise made available under the terms of this
|
68
|
+
License.
|
69
|
+
o
|
70
|
+
|
71
|
+
1.10. Original Software means
|
72
|
+
the Source Code and Executable form of computer software
|
73
|
+
code that is originally released under this License.
|
74
|
+
o
|
75
|
+
|
76
|
+
1.11. Patent Claims means any
|
77
|
+
patent claim(s), now owned or hereafter acquired, including
|
78
|
+
without limitation, method, process, and apparatus claims,
|
79
|
+
in any patent Licensable by grantor.
|
80
|
+
o
|
81
|
+
|
82
|
+
1.12. Source Code means (a) the
|
83
|
+
common form of computer software code in which modifications
|
84
|
+
are made and (b) associated documentation included in or
|
85
|
+
with such code.
|
86
|
+
o
|
87
|
+
|
88
|
+
1.13. You (or
|
89
|
+
Your) means an individual or a legal
|
90
|
+
entity exercising rights under, and complying with all of
|
91
|
+
the terms of, this License. For legal entities,
|
92
|
+
You includes any entity which controls, is
|
93
|
+
controlled by, or is under common control with You. For
|
94
|
+
purposes of this definition, control means
|
95
|
+
(a) the power, direct or indirect, to cause the
|
96
|
+
direction or management of such entity, whether by contract
|
97
|
+
or otherwise, or (b) ownership of more than fifty
|
98
|
+
percent (50%) of the outstanding shares or beneficial
|
99
|
+
ownership of such entity.
|
100
|
+
*
|
101
|
+
|
102
|
+
2. License Grants.
|
103
|
+
o
|
104
|
+
|
105
|
+
2.1. The Initial Developer Grant.
|
106
|
+
|
107
|
+
Conditioned upon Your compliance with Section 3.1
|
108
|
+
below and subject to third party intellectual property
|
109
|
+
claims, the Initial Developer hereby grants You a
|
110
|
+
world-wide, royalty-free, non-exclusive license:
|
111
|
+
+
|
112
|
+
|
113
|
+
(a) under intellectual property rights
|
114
|
+
(other than patent or trademark) Licensable by Initial
|
115
|
+
Developer, to use, reproduce, modify, display, perform,
|
116
|
+
sublicense and distribute the Original Software (or
|
117
|
+
portions thereof), with or without Modifications, and/or
|
118
|
+
as part of a Larger Work; and
|
119
|
+
+
|
120
|
+
|
121
|
+
(b) under Patent Claims infringed by the
|
122
|
+
making, using or selling of Original Software, to make,
|
123
|
+
have made, use, practice, sell, and offer for sale,
|
124
|
+
and/or otherwise dispose of the Original Software (or
|
125
|
+
portions thereof).
|
126
|
+
+
|
127
|
+
|
128
|
+
(c) The licenses granted in
|
129
|
+
Sections 2.1(a) and (b) are effective on the date
|
130
|
+
Initial Developer first distributes or otherwise makes
|
131
|
+
the Original Software available to a third party under
|
132
|
+
the terms of this License.
|
133
|
+
+
|
134
|
+
|
135
|
+
(d) Notwithstanding Section 2.1(b)
|
136
|
+
above, no patent license is granted: (1) for code
|
137
|
+
that You delete from the Original Software, or
|
138
|
+
(2) for infringements caused by: (i) the
|
139
|
+
modification of the Original Software, or (ii) the
|
140
|
+
combination of the Original Software with other software
|
141
|
+
or devices.
|
142
|
+
o
|
143
|
+
|
144
|
+
2.2. Contributor Grant.
|
145
|
+
|
146
|
+
Conditioned upon Your compliance with Section 3.1 below
|
147
|
+
and subject to third party intellectual property claims,
|
148
|
+
each Contributor hereby grants You a world-wide,
|
149
|
+
royalty-free, non-exclusive license:
|
150
|
+
+
|
151
|
+
|
152
|
+
(a) under intellectual property rights
|
153
|
+
(other than patent or trademark) Licensable by
|
154
|
+
Contributor to use, reproduce, modify, display, perform,
|
155
|
+
sublicense and distribute the Modifications created by
|
156
|
+
such Contributor (or portions thereof), either on an
|
157
|
+
unmodified basis, with other Modifications, as Covered
|
158
|
+
Software and/or as part of a Larger Work; and
|
159
|
+
+
|
160
|
+
|
161
|
+
(b) under Patent Claims infringed by the
|
162
|
+
making, using, or selling of Modifications made by that
|
163
|
+
Contributor either alone and/or in combination with its
|
164
|
+
Contributor Version (or portions of such combination),
|
165
|
+
to make, use, sell, offer for sale, have made, and/or
|
166
|
+
otherwise dispose of: (1) Modifications made by
|
167
|
+
that Contributor (or portions thereof); and (2) the
|
168
|
+
combination of Modifications made by that Contributor
|
169
|
+
with its Contributor Version (or portions of such
|
170
|
+
combination).
|
171
|
+
+
|
172
|
+
|
173
|
+
(c) The licenses granted in
|
174
|
+
Sections 2.2(a) and 2.2(b) are effective on the
|
175
|
+
date Contributor first distributes or otherwise makes
|
176
|
+
the Modifications available to a third party.
|
177
|
+
+
|
178
|
+
|
179
|
+
(d) Notwithstanding Section 2.2(b)
|
180
|
+
above, no patent license is granted: (1) for any
|
181
|
+
code that Contributor has deleted from the Contributor
|
182
|
+
Version; (2) for infringements caused by:
|
183
|
+
(i) third party modifications of Contributor
|
184
|
+
Version, or (ii) the combination of Modifications
|
185
|
+
made by that Contributor with other software (except as
|
186
|
+
part of the Contributor Version) or other devices; or
|
187
|
+
(3) under Patent Claims infringed by Covered
|
188
|
+
Software in the absence of Modifications made by that
|
189
|
+
Contributor.
|
190
|
+
*
|
191
|
+
|
192
|
+
3. Distribution Obligations.
|
193
|
+
o
|
194
|
+
|
195
|
+
3.1. Availability of Source Code.
|
196
|
+
|
197
|
+
Any Covered Software that You distribute or otherwise
|
198
|
+
make available in Executable form must also be made
|
199
|
+
available in Source Code form and that Source Code form
|
200
|
+
must be distributed only under the terms of this License.
|
201
|
+
You must include a copy of this License with every copy of
|
202
|
+
the Source Code form of the Covered Software You
|
203
|
+
distribute or otherwise make available. You must inform
|
204
|
+
recipients of any such Covered Software in Executable form
|
205
|
+
as to how they can obtain such Covered Software in Source
|
206
|
+
Code form in a reasonable manner on or through a medium
|
207
|
+
customarily used for software exchange.
|
208
|
+
o
|
209
|
+
|
210
|
+
3.2. Modifications.
|
211
|
+
|
212
|
+
The Modifications that You create or to which You
|
213
|
+
contribute are governed by the terms of this License. You
|
214
|
+
represent that You believe Your Modifications are Your
|
215
|
+
original creation(s) and/or You have sufficient rights to
|
216
|
+
grant the rights conveyed by this License.
|
217
|
+
o
|
218
|
+
|
219
|
+
3.3. Required Notices.
|
220
|
+
|
221
|
+
You must include a notice in each of Your Modifications
|
222
|
+
that identifies You as the Contributor of the
|
223
|
+
Modification. You may not remove or alter any copyright,
|
224
|
+
patent or trademark notices contained within the Covered
|
225
|
+
Software, or any notices of licensing or any descriptive
|
226
|
+
text giving attribution to any Contributor or the Initial
|
227
|
+
Developer.
|
228
|
+
o
|
229
|
+
|
230
|
+
3.4. Application of Additional Terms.
|
231
|
+
|
232
|
+
You may not offer or impose any terms on any Covered
|
233
|
+
Software in Source Code form that alters or restricts the
|
234
|
+
applicable version of this License or the
|
235
|
+
recipients rights hereunder. You may choose to
|
236
|
+
offer, and to charge a fee for, warranty, support,
|
237
|
+
indemnity or liability obligations to one or more
|
238
|
+
recipients of Covered Software. However, you may do so
|
239
|
+
only on Your own behalf, and not on behalf of the Initial
|
240
|
+
Developer or any Contributor. You must make it absolutely
|
241
|
+
clear that any such warranty, support, indemnity or
|
242
|
+
liability obligation is offered by You alone, and You
|
243
|
+
hereby agree to indemnify the Initial Developer and every
|
244
|
+
Contributor for any liability incurred by the Initial
|
245
|
+
Developer or such Contributor as a result of warranty,
|
246
|
+
support, indemnity or liability terms You offer.
|
247
|
+
o
|
248
|
+
|
249
|
+
3.5. Distribution of Executable Versions.
|
250
|
+
|
251
|
+
You may distribute the Executable form of the Covered
|
252
|
+
Software under the terms of this License or under the
|
253
|
+
terms of a license of Your choice, which may contain terms
|
254
|
+
different from this License, provided that You are in
|
255
|
+
compliance with the terms of this License and that the
|
256
|
+
license for the Executable form does not attempt to limit
|
257
|
+
or alter the recipients rights in the Source Code
|
258
|
+
form from the rights set forth in this License. If You
|
259
|
+
distribute the Covered Software in Executable form under a
|
260
|
+
different license, You must make it absolutely clear that
|
261
|
+
any terms which differ from this License are offered by
|
262
|
+
You alone, not by the Initial Developer or Contributor.
|
263
|
+
You hereby agree to indemnify the Initial Developer and
|
264
|
+
every Contributor for any liability incurred by the
|
265
|
+
Initial Developer or such Contributor as a result of any
|
266
|
+
such terms You offer.
|
267
|
+
o
|
268
|
+
|
269
|
+
3.6. Larger Works.
|
270
|
+
|
271
|
+
You may create a Larger Work by combining Covered
|
272
|
+
Software with other code not governed by the terms of this
|
273
|
+
License and distribute the Larger Work as a single
|
274
|
+
product. In such a case, You must make sure the
|
275
|
+
requirements of this License are fulfilled for the Covered
|
276
|
+
Software.
|
277
|
+
*
|
278
|
+
|
279
|
+
4. Versions of the License.
|
280
|
+
o
|
281
|
+
|
282
|
+
4.1. New Versions.
|
283
|
+
|
284
|
+
Sun Microsystems, Inc. is the initial license steward
|
285
|
+
and may publish revised and/or new versions of this
|
286
|
+
License from time to time. Each version will be given a
|
287
|
+
distinguishing version number. Except as provided in
|
288
|
+
Section 4.3, no one other than the license steward has the
|
289
|
+
right to modify this License.
|
290
|
+
o
|
291
|
+
|
292
|
+
4.2. Effect of New Versions.
|
293
|
+
|
294
|
+
You may always continue to use, distribute or otherwise
|
295
|
+
make the Covered Software available under the terms of the
|
296
|
+
version of the License under which You originally received
|
297
|
+
the Covered Software. If the Initial Developer includes a
|
298
|
+
notice in the Original Software prohibiting it from being
|
299
|
+
distributed or otherwise made available under any
|
300
|
+
subsequent version of the License, You must distribute and
|
301
|
+
make the Covered Software available under the terms of the
|
302
|
+
version of the License under which You originally received
|
303
|
+
the Covered Software. Otherwise, You may also choose to
|
304
|
+
use, distribute or otherwise make the Covered Software
|
305
|
+
available under the terms of any subsequent version of the
|
306
|
+
License published by the license steward.
|
307
|
+
o
|
308
|
+
|
309
|
+
4.3. Modified Versions.
|
310
|
+
|
311
|
+
When You are an Initial Developer and You want to
|
312
|
+
create a new license for Your Original Software, You may
|
313
|
+
create and use a modified version of this License if You:
|
314
|
+
(a) rename the license and remove any references to
|
315
|
+
the name of the license steward (except to note that the
|
316
|
+
license differs from this License); and (b) otherwise
|
317
|
+
make it clear that the license contains terms which differ
|
318
|
+
from this License.
|
319
|
+
*
|
320
|
+
|
321
|
+
5. DISCLAIMER OF WARRANTY.
|
322
|
+
|
323
|
+
COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN
|
324
|
+
AS IS BASIS, WITHOUT WARRANTY OF ANY KIND,
|
325
|
+
EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION,
|
326
|
+
WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS,
|
327
|
+
MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
|
328
|
+
THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
329
|
+
COVERED SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE
|
330
|
+
PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER
|
331
|
+
OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY
|
332
|
+
SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY
|
333
|
+
CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY
|
334
|
+
COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS
|
335
|
+
DISCLAIMER.
|
336
|
+
*
|
337
|
+
|
338
|
+
6. TERMINATION.
|
339
|
+
o
|
340
|
+
|
341
|
+
6.1. This License and the rights granted
|
342
|
+
hereunder will terminate automatically if You fail to comply
|
343
|
+
with terms herein and fail to cure such breach within 30
|
344
|
+
days of becoming aware of the breach. Provisions which, by
|
345
|
+
their nature, must remain in effect beyond the termination
|
346
|
+
of this License shall survive.
|
347
|
+
o
|
348
|
+
|
349
|
+
6.2.
|
350
|
+
If You assert a patent infringement claim (excluding declaratory
|
351
|
+
judgment actions) against Initial Developer or a Contributor (the
|
352
|
+
Initial Developer or Contributor against whom You assert such claim is
|
353
|
+
referred to as Participant) alleging that the Participant Software
|
354
|
+
(meaning the Contributor Version where the Participant is a Contributor
|
355
|
+
or the Original Software where the Participant is the Initial
|
356
|
+
Developer) directly or indirectly infringes any patent, then any and
|
357
|
+
all rights granted directly or indirectly to You by such Participant,
|
358
|
+
the Initial Developer (if the Initial Developer is not the Participant)
|
359
|
+
and all Contributors under Sections 2.1 and/or 2.2 of this License
|
360
|
+
shall, upon 60 days notice from Participant terminate prospectively and
|
361
|
+
automatically at the expiration of such 60 day notice period, unless if
|
362
|
+
within such 60 day period You withdraw Your claim with respect to the
|
363
|
+
Participant Software against such Participant either unilaterally or
|
364
|
+
pursuant to a written agreement with Participant.
|
365
|
+
o
|
366
|
+
|
367
|
+
6.3. In the event of termination under
|
368
|
+
Sections 6.1 or 6.2 above, all end user licenses
|
369
|
+
that have been
|
370
|
+
validly granted by You or any distributor hereunder prior to
|
371
|
+
termination (excluding licenses granted to You by any
|
372
|
+
distributor) shall survive termination.
|
373
|
+
*
|
374
|
+
|
375
|
+
7. LIMITATION OF LIABILITY.
|
376
|
+
|
377
|
+
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER
|
378
|
+
TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL
|
379
|
+
YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY
|
380
|
+
DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF
|
381
|
+
SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT,
|
382
|
+
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER
|
383
|
+
INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL,
|
384
|
+
WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL
|
385
|
+
OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL
|
386
|
+
HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS
|
387
|
+
LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH
|
388
|
+
OR PERSONAL INJURY RESULTING FROM SUCH PARTYS
|
389
|
+
NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH
|
390
|
+
LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR
|
391
|
+
LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS
|
392
|
+
EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
|
393
|
+
*
|
394
|
+
|
395
|
+
8. U.S. GOVERNMENT END USERS.
|
396
|
+
|
397
|
+
The Covered Software is a commercial item, as
|
398
|
+
that term is defined in 48 C.F.R. 2.101 (Oct. 1995),
|
399
|
+
consisting of commercial computer software (as
|
400
|
+
that term is defined at 48
|
401
|
+
C.F.R. 252.227-7014(a)(1)) and commercial
|
402
|
+
computer software documentation as such terms are used
|
403
|
+
in 48 C.F.R. 12.212 (Sept. 1995). Consistent with
|
404
|
+
48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4
|
405
|
+
(June 1995), all U.S. Government End Users acquire Covered
|
406
|
+
Software with only those rights set forth herein. This
|
407
|
+
U.S. Government Rights clause is in lieu of, and supersedes,
|
408
|
+
any other FAR, DFAR, or other clause or provision that
|
409
|
+
addresses Government rights in computer software under this
|
410
|
+
License.
|
411
|
+
*
|
412
|
+
|
413
|
+
9. MISCELLANEOUS.
|
414
|
+
|
415
|
+
This License represents the complete agreement concerning
|
416
|
+
subject matter hereof. If any provision of this License is
|
417
|
+
held to be unenforceable, such provision shall be reformed
|
418
|
+
only to the extent necessary to make it enforceable. This
|
419
|
+
License shall be governed by the law of the jurisdiction
|
420
|
+
specified in a notice contained within the Original Software
|
421
|
+
(except to the extent applicable law, if any, provides
|
422
|
+
otherwise), excluding such jurisdictions
|
423
|
+
conflict-of-law provisions. Any
|
424
|
+
litigation relating to this License shall be subject to the
|
425
|
+
jurisdiction of the courts located in the
|
426
|
+
jurisdiction and venue specified in a notice contained within
|
427
|
+
the Original Software, with the losing party responsible for
|
428
|
+
costs, including, without limitation, court costs and
|
429
|
+
reasonable attorneys fees and expenses. The
|
430
|
+
application of the United Nations Convention on Contracts for
|
431
|
+
the International Sale of Goods is expressly excluded. Any
|
432
|
+
law or regulation which provides that the language of a
|
433
|
+
contract shall be construed against the drafter shall not
|
434
|
+
apply to this License. You agree that You alone are
|
435
|
+
responsible for compliance with the United States export
|
436
|
+
administration regulations (and the export control laws and
|
437
|
+
regulation of any other countries) when You use, distribute or
|
438
|
+
otherwise make available any Covered Software.
|
439
|
+
*
|
440
|
+
|
441
|
+
10. RESPONSIBILITY FOR CLAIMS.
|
442
|
+
|
443
|
+
As between Initial Developer and the Contributors, each
|
444
|
+
party is responsible for claims and damages arising, directly
|
445
|
+
or indirectly, out of its utilization of rights under this
|
446
|
+
License and You agree to work with Initial Developer and
|
447
|
+
Contributors to distribute such responsibility on an equitable
|
448
|
+
basis. Nothing herein is intended or shall be deemed to
|
449
|
+
constitute any admission of liability.
|
450
|
+
|
data/doc/README
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
LICENCE:
|
2
|
+
the author of this program(manqod) is Dobai-Pataky Balint(dpblnt dot gmail dot com)
|
3
|
+
manqod is distributed under the CDDL licence(http://www.opensource.org/licenses/cddl1.php)
|
4
|
+
don't worry this only means the following
|
5
|
+
* you can use it, copy it, modify it
|
6
|
+
* if you want your modifications to be distributed send them back to me, i'll merge them in
|
7
|
+
* nobody can sell it
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
manqod is a program witten in ruby, using ruby-gtk2 for the GKT+ toolkit
|
12
|
+
it's goal is to give us a frontend to manage our data in an sql server
|
13
|
+
|
14
|
+
this is the server part.
|
15
|
+
you're gonna need to set up your connections with the manqod-server-console.
|
16
|
+
|
17
|
+
i wrote it, because i was asked to, and i liked it to
|
18
|
+
i published it in hope that it will fit your needs
|
19
|
+
and you can help me polish it by sharing experience
|
20
|
+
|
21
|
+
thanks
|
22
|
+
|
23
|
+
balint
|
24
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/sbin/runscript
|
2
|
+
|
3
|
+
depend() {
|
4
|
+
use net memcached mysql
|
5
|
+
}
|
6
|
+
|
7
|
+
start() {
|
8
|
+
PWHOME="$(getent passwd $USER | awk -F: '{ print $6 }')"
|
9
|
+
|
10
|
+
ebegin "Starting manqod-server in ${MANQOD_SERVER_HOME}"
|
11
|
+
cd ${MANQOD_SERVER_HOME}
|
12
|
+
env TERM="xterm" \
|
13
|
+
RUBYOPT='-rauto_gem' \
|
14
|
+
start-stop-daemon \
|
15
|
+
--start \
|
16
|
+
--user $USER \
|
17
|
+
--env HOME="${PWHOME:-/home/$USER}" \
|
18
|
+
--name manqod-server \
|
19
|
+
--background \
|
20
|
+
--exec ${MANQOD_SERVER_HOME}/bin/manqod-server -- --bind druby://:5549 --log ${MANQOD_SERVER_HOME}/log/manqod-server.log --debug INFO
|
21
|
+
eend $?
|
22
|
+
}
|
23
|
+
|
24
|
+
stop() {
|
25
|
+
ebegin "Stopping manqod-server"
|
26
|
+
start-stop-daemon \
|
27
|
+
--stop \
|
28
|
+
--signal 2 \
|
29
|
+
--name manqod-server
|
30
|
+
eend
|
31
|
+
}
|
32
|
+
|