Annotate

squishy @ 486:6416ea3fff86

Fix sha1 support when no binary dependencies available
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Mar 2023 19:06:04 +0000
parent 482:4c4f3dd62c54
child 490:6b2f31da9610
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
6c5fab6c11cf Rename verse2 -> verse
Matthew Wild <mwild1@gmail.com>
parents: 24
diff changeset
1 Output "verse.lua"
0
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
2
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
3 -- Verse-specific versions of libraries
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
4 Module "util.encodings" "libs/encodings.lua"
131
1c30dd51ca6b squishy: Add util.hashes [libs/hashes.lua]
Matthew Wild <mwild1@gmail.com>
parents: 123
diff changeset
5 Module "util.hashes" "libs/hashes.lua"
136
3a85c62f544c squishy: Re-organise and add net.dns, net.adns and util.ztact
Matthew Wild <mwild1@gmail.com>
parents: 134
diff changeset
6 Module "lib.adhoc" "libs/adhoc.lib.lua"
439
6fc73ad6b1d2 util.table: Add fallback for the Prosody C module
Kim Alvefur <zash@zash.se>
parents: 426
diff changeset
7 Module "util.table" "libs/table.lua"
0
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
8
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
9 -- Prosody libraries
158
068176069dfa squishy: Add --prosody option to specify a path to a Prosody checkout to use when squishing
Matthew Wild <mwild1@gmail.com>
parents: 157
diff changeset
10 if not GetOption("prosody") then
416
92ce569b9b73 buildsys: Update to fetch from Prosody 0.10 branch
Kim Alvefur <zash@zash.se>
parents: 399
diff changeset
11 AutoFetchURL "http://hg.prosody.im/0.10/raw-file/tip/?"
158
068176069dfa squishy: Add --prosody option to specify a path to a Prosody checkout to use when squishing
Matthew Wild <mwild1@gmail.com>
parents: 157
diff changeset
12 else
068176069dfa squishy: Add --prosody option to specify a path to a Prosody checkout to use when squishing
Matthew Wild <mwild1@gmail.com>
parents: 157
diff changeset
13 AutoFetchURL(GetOption("prosody").."/?")
068176069dfa squishy: Add --prosody option to specify a path to a Prosody checkout to use when squishing
Matthew Wild <mwild1@gmail.com>
parents: 157
diff changeset
14 end
0
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
15
486
6416ea3fff86 Fix sha1 support when no binary dependencies available
Matthew Wild <mwild1@gmail.com>
parents: 482
diff changeset
16 Module "util.sha1" "util/sha1.lua"
6416ea3fff86 Fix sha1 support when no binary dependencies available
Matthew Wild <mwild1@gmail.com>
parents: 482
diff changeset
17 Module "util.bit" "libs/bit.lua"
6416ea3fff86 Fix sha1 support when no binary dependencies available
Matthew Wild <mwild1@gmail.com>
parents: 482
diff changeset
18
0
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
19 Module "util.stanza" "util/stanza.lua"
18
f15de643f502 squishy: Add util.timer
Matthew Wild <mwild1@gmail.com>
parents: 14
diff changeset
20 Module "util.timer" "util/timer.lua"
0
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
21 Module "util.termcolours" "util/termcolours.lua"
24
db0ed736785a squishy: Add util.uuid dependency
Matthew Wild <mwild1@gmail.com>
parents: 19
diff changeset
22 Module "util.uuid" "util/uuid.lua"
479
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
23 Module "util.time" "libs/time.lua"
461
fa5c40e5e079 Use util.format for logging
Matthew Wild <mwild1@gmail.com>
parents: 457
diff changeset
24 Module "util.envload" "util/envload.lua"
457
73d4eb93657b Update to use util.id for random ids instead of counters (thanks Zash)
Matthew Wild <mwild1@gmail.com>
parents: 447
diff changeset
25 Module "util.id" "util/id.lua"
461
fa5c40e5e079 Use util.format for logging
Matthew Wild <mwild1@gmail.com>
parents: 457
diff changeset
26 Module "util.serialization" "util/serialization.lua"
479
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
27 Module "util.indexedbheap" "util/indexedbheap.lua"
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
28 Module "util.xpcall" "util/xpcall.lua"
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
29 Module "util.array" "util/array.lua"
461
fa5c40e5e079 Use util.format for logging
Matthew Wild <mwild1@gmail.com>
parents: 457
diff changeset
30 Module "util.format" "util/format.lua"
479
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
31 Module "util.promise" "util/promise.lua"
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
32 Module "net.adns" "net/unbound.lua"
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
33 Module "util.dns" "util/dns.lua"
30
9c96318913f7 Revert module names throughout to their Prosody equivalents
Matthew Wild <mwild1@gmail.com>
parents: 26
diff changeset
34 Module "net.server" "net/server_select.lua"
161
b177bcea2006 squishy, verse.client, verse.component, verse.bosh: Port to util.xmppstream instead of xmlhandlers which has been removed from Prosody. Also remove util.ztact from squishy for the same reason.
Matthew Wild <mwild1@gmail.com>
parents: 158
diff changeset
35 Module "util.xmppstream" "util/xmppstream.lua"
30
9c96318913f7 Revert module names throughout to their Prosody equivalents
Matthew Wild <mwild1@gmail.com>
parents: 26
diff changeset
36 Module "util.jid" "util/jid.lua"
9c96318913f7 Revert module names throughout to their Prosody equivalents
Matthew Wild <mwild1@gmail.com>
parents: 26
diff changeset
37 Module "util.events" "util/events.lua"
123
8a079aa70b84 util.dataforms, squishy: Add util.dataforms library
Matthew Wild <mwild1@gmail.com>
parents: 116
diff changeset
38 Module "util.dataforms" "util/dataforms.lua"
214
78ae20c875cd squishy: Add a convenience function for plugins
Kim Alvefur <zash@zash.se>
parents: 208
diff changeset
39 Module "util.caps" "util/caps.lua"
227
31019cb93d59 util.vcard: Add util for converting vCard3 to/from XEP 54
Kim Alvefur <zash@zash.se>
parents: 225
diff changeset
40 Module "util.vcard" "util/vcard.lua"
238
9b6fca5d9a02 verse, squishy: Port to Prosody's util.logger. Adds new function, verse.set_log_handler(handler, levels).
Matthew Wild <mwild1@gmail.com>
parents: 233
diff changeset
41 Module "util.logger" "util/logger.lua"
278
6f58f6f3986d squishy: add util.datetime
Kim Alvefur <zash@zash.se>
parents: 273
diff changeset
42 Module "util.datetime" "util/datetime.lua"
386
7b68c57ceac2 squishy: Include util.xml and util.json
Kim Alvefur <zash@zash.se>
parents: 367
diff changeset
43 Module "util.json" "util/json.lua"
7b68c57ceac2 squishy: Include util.xml and util.json
Kim Alvefur <zash@zash.se>
parents: 367
diff changeset
44 Module "util.xml" "util/xml.lua"
387
508bf163502b Import util.rsm from prosody-modules
Kim Alvefur <zash@zash.se>
parents: 386
diff changeset
45 Module "util.rsm" "util/rsm.lua"
388
d963c8a5d89c Import util.random from Prosody (using SHA-1)
Kim Alvefur <zash@zash.se>
parents: 387
diff changeset
46 Module "util.random" "util/random.lua"
396
b0afde43b3e5 Add util.ip, dependency of net.dns since Prosody 0.9.9
Kim Alvefur <zash@zash.se>
parents: 388
diff changeset
47 Module "util.ip" "util/ip.lua"
447
f3ecbf65a81e squishy: Include util.hex used by util.uuid
Kim Alvefur <zash@zash.se>
parents: 443
diff changeset
48 Module "util.hex" "util/hex.lua"
479
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
49 Module "util.net" "libs/net.lua"
463
98fe3ed54639 Update to new tls_builder() API in net.server upstream
Matthew Wild <mwild1@gmail.com>
parents: 461
diff changeset
50 Module "util.sslconfig" "util/sslconfig.lua"
98fe3ed54639 Update to new tls_builder() API in net.server upstream
Matthew Wild <mwild1@gmail.com>
parents: 461
diff changeset
51 Module "util.paths" "util/paths.lua"
461
fa5c40e5e079 Use util.format for logging
Matthew Wild <mwild1@gmail.com>
parents: 457
diff changeset
52 Module "util.mathcompat" "util/mathcompat.lua"
479
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
53 Module "util.dnsregistry" "util/dnsregistry.lua"
463
98fe3ed54639 Update to new tls_builder() API in net.server upstream
Matthew Wild <mwild1@gmail.com>
parents: 461
diff changeset
54 Module "net.tls_luasec" "net/tls_luasec.lua"
116
151c8cc776df verse.plugins.adhoc: XEP-0050 Ad-hoc commands plugin
Matthew Wild <mwild1@gmail.com>
parents: 114
diff changeset
55
479
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
56 Module "util.sasl.scram" "util/sasl/scram.lua"
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
57 Module "util.sasl.plain" "util/sasl/plain.lua"
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
58 Module "util.sasl.anonymous" "util/sasl/anonymous.lua"
2bb12fb6fcbd squishy: Updates for Prosody trunk (@ e77c607e8da8)
Matthew Wild <mwild1@gmail.com>
parents: 463
diff changeset
59 Module "util.sasl.oauthbearer" "util/sasl/oauthbearer.lua"
357
ed12e00991b1 squishy: Add sasl mechs
Kim Alvefur <zash@zash.se>
parents: 304
diff changeset
60
14
53246b2b933b squish: Add plugins
Matthew Wild <mwild1@gmail.com>
parents: 7
diff changeset
61 -- Verse plugins
233
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
62 plugins = {
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
63 -- Login
482
4c4f3dd62c54 squishy: Comment legacy protocol plugins by default
Matthew Wild <mwild1@gmail.com>
parents: 481
diff changeset
64 "tls", "sasl", "bind", -- "session", "legacy", "compression";
233
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
65 -- Reliability
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
66 "smacks", "keepalive";
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
67 -- Queries
480
a48a4723aa2a Add time query plugin
Matthew Wild <mwild1@gmail.com>
parents: 479
diff changeset
68 "disco", "version", "ping", "uptime", "time";
233
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
69 -- Privacy control
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
70 "blocking";
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
71 -- Jingle / file transfer
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
72 "jingle", "jingle_ft", "jingle_s5b", "proxy65", "jingle_ibb";
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
73 -- Pubsub
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
74 "pubsub", "pep";
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
75 -- Command and control
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
76 "adhoc";
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
77 -- Basics
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
78 "presence", "private", "roster", "register";
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
79 -- MUC
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
80 "groupchat";
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
81 -- vCard
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
82 "vcard", "vcard_update";
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
83 -- Carbons
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
84 "carbons";
273
c5b7a4c717a6 plugins.archive: Experimental implementation of the Message Archive Management ProtoXEP
Kim Alvefur <zash@zash.se>
parents: 238
diff changeset
85
c5b7a4c717a6 plugins.archive: Experimental implementation of the Message Archive Management ProtoXEP
Kim Alvefur <zash@zash.se>
parents: 238
diff changeset
86 "archive";
481
6fc84e9bd03e squishy: Add browsing plugin
Matthew Wild <mwild1@gmail.com>
parents: 480
diff changeset
87 "browsing";
233
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
88 }
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
89
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
90 for _, plugin in ipairs(plugins) do
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
91 Module("verse.plugins."..plugin)("plugins/"..plugin..".lua")
214
78ae20c875cd squishy: Add a convenience function for plugins
Kim Alvefur <zash@zash.se>
parents: 208
diff changeset
92 end
233
b5fd3292bdbd squishy: Rewrite in an attempt to curb the unbounded growth of the plugin list
Matthew Wild <mwild1@gmail.com>
parents: 227
diff changeset
93
367
8e9f44ecb95b squishy: Fetch from latest 0.9
Kim Alvefur <zash@zash.se>
parents: 366
diff changeset
94 Module "util.http" "util/http.lua"
8e9f44ecb95b squishy: Fetch from latest 0.9
Kim Alvefur <zash@zash.se>
parents: 366
diff changeset
95 Module "net.http.parser" "net/http/parser.lua"
157
7c47e5639c00 squishy: Add util.httpstream. Now also squishes bosh by default
Matthew Wild <mwild1@gmail.com>
parents: 156
diff changeset
96 Module "net.http" "net/http.lua"
426
9813b17ee096 squishy: Include util.x509, required by net.http in Prosody 0.10+
Matthew Wild <mwild1@gmail.com>
parents: 425
diff changeset
97 Module "util.x509" "util/x509.lua"
90
aa0b78053cec squishy: Add --with-bosh option to squish with verse.bosh and necessarylibraries
Matthew Wild <mwild1@gmail.com>
parents: 80
diff changeset
98
157
7c47e5639c00 squishy: Add util.httpstream. Now also squishes bosh by default
Matthew Wild <mwild1@gmail.com>
parents: 156
diff changeset
99 Module "verse.bosh" "bosh.lua"
90
aa0b78053cec squishy: Add --with-bosh option to squish with verse.bosh and necessarylibraries
Matthew Wild <mwild1@gmail.com>
parents: 80
diff changeset
100
134
2101acbb27c4 squishy: Use --internal-bit-module to squish with the pure-Lua bit library
Matthew Wild <mwild1@gmail.com>
parents: 131
diff changeset
101 if GetOption "internal-bit-module" then
2101acbb27c4 squishy: Use --internal-bit-module to squish with the pure-Lua bit library
Matthew Wild <mwild1@gmail.com>
parents: 131
diff changeset
102 Module "bit" "libs/bit.lua"
2101acbb27c4 squishy: Use --internal-bit-module to squish with the pure-Lua bit library
Matthew Wild <mwild1@gmail.com>
parents: 131
diff changeset
103 end
2101acbb27c4 squishy: Use --internal-bit-module to squish with the pure-Lua bit library
Matthew Wild <mwild1@gmail.com>
parents: 131
diff changeset
104
26
6c5fab6c11cf Rename verse2 -> verse
Matthew Wild <mwild1@gmail.com>
parents: 24
diff changeset
105 Module "verse.client" "client.lua"
138
35971523c8fc squishy: Add verse.component
Matthew Wild <mwild1@gmail.com>
parents: 136
diff changeset
106 Module "verse.component" "component.lua"
0
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
107
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
108 -- Main verse file
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
109 Main "init.lua"