jabberd/jabberd.patch

changeset 268
510babc166c1
parent 224
29b273d63835
child 303
2bd9bf3f6f03
equal deleted inserted replaced
0:d5caa849ad46 1:14c9d6ede1f7
30 - <ip>0.0.0.0</ip> 30 - <ip>0.0.0.0</ip>
31 + <ip>127.0.0.1</ip> 31 + <ip>127.0.0.1</ip>
32 32
33 <!-- Port to bind to, or 0 to disable unencrypted access to the 33 <!-- Port to bind to, or 0 to disable unencrypted access to the
34 server (default: 5222) --> 34 server (default: 5222) -->
35 @@ -331,7 +329,7 @@
36 <path>@pkglibdir@</path>
37
38 <!-- Backend module to use -->
39 - <module>sqlite</module>
40 + <module>db</module>
41
42 <!-- Available authentication mechanisms -->
43 <mechanisms>
44 Index: etc/router.xml.dist.in 35 Index: etc/router.xml.dist.in
45 --- etc/router.xml.dist.in.orig 2009-06-30 11:38:16 +0200 36 --- etc/router.xml.dist.in.orig 2009-06-30 11:38:16 +0200
46 +++ etc/router.xml.dist.in 2009-06-30 20:45:06 +0200 37 +++ etc/router.xml.dist.in 2009-06-30 20:45:06 +0200
47 @@ -8,24 +8,22 @@ 38 @@ -8,24 +8,22 @@
48 <pidfile>@localstatedir@/jabberd/pid/router.pid</pidfile> 39 <pidfile>@localstatedir@/jabberd/pid/router.pid</pidfile>
124 - <facility>local3</facility> 115 - <facility>local3</facility>
125 + <!-- <facility>local3</facility> --> 116 + <!-- <facility>local3</facility> -->
126 117
127 <!-- If logging to file, this is the filename of the logfile --> 118 <!-- If logging to file, this is the filename of the logfile -->
128 <!-- 119 <!--
129 @@ -85,7 +85,7 @@
130 <path>@pkglibdir@</path>
131
132 <!-- By default, we use the SQLite driver for all storage -->
133 - <driver>sqlite</driver>
134 + <driver>db</driver>
135
136 <!-- Its also possible to explicitly list alternate drivers for
137 specific data types. -->
138 Index: sm/mod_iq_time.c 120 Index: sm/mod_iq_time.c
139 --- sm/mod_iq_time.c.orig 2009-06-30 11:38:15 +0200 121 --- sm/mod_iq_time.c.orig 2009-06-30 11:38:15 +0200
140 +++ sm/mod_iq_time.c 2009-06-30 20:45:06 +0200 122 +++ sm/mod_iq_time.c 2009-06-30 20:45:06 +0200
141 @@ -39,6 +39,7 @@ 123 @@ -39,6 +39,7 @@
142 static mod_ret_t _iq_time_pkt_sm(mod_instance_t mi, pkt_t pkt) 124 static mod_ret_t _iq_time_pkt_sm(mod_instance_t mi, pkt_t pkt)
179 +#include <sys/types.h> 161 +#include <sys/types.h>
180 +#include <sys/socket.h> 162 +#include <sys/socket.h>
181 163
182 #include <expat.h> 164 #include <expat.h>
183 165
166 Index: tools/jabberd.in
167 --- tools/jabberd.in.orig 2009-10-31 17:51:42.857115000 +0100
168 +++ tools/jabberd.in 2009-10-31 18:07:52.095812899 +0100
169 @@ -63,7 +63,7 @@
170
171
172 #-----------------------------------------------------------------------------
173 -# Setup the jobs: router, sm, c2s, s2s
174 +# Setup the jobs: router, sm, c2s, s2s, mu-conference
175 #-----------------------------------------------------------------------------
176 $jobs{jabberd}->{prefix} = "JBRD";
177
178 @@ -83,12 +83,17 @@
179 $jobs{s2s}->{config} = "$config_dir/s2s.xml";
180 $jobs{s2s}->{prefix} = "S2S";
181
182 +$jobs{muc}->{cmd} = "$Bin/mu-conference";
183 +$jobs{muc}->{config} = "$config_dir/muc.xml";
184 +$jobs{muc}->{prefix} = "MUC";
185 +
186 if ($config eq "internal")
187 {
188 $programs[0] = ["router"];
189 $programs[1] = ["sm"];
190 $programs[2] = ["c2s"];
191 $programs[3] = ["s2s"];
192 + $programs[4] = ["muc"];
193 }
194 else
195 {

mercurial