jabberd/jabberd.patch

Sat, 31 Oct 2009 19:00:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 31 Oct 2009 19:00:00 +0100
changeset 224
29b273d63835
child 225
a01e65d97743
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

michael@224 1 Index: etc/c2s.xml.dist.in
michael@224 2 --- etc/c2s.xml.dist.in.orig 2009-06-30 11:38:16 +0200
michael@224 3 +++ etc/c2s.xml.dist.in 2009-06-30 20:45:22 +0200
michael@224 4 @@ -50,18 +50,16 @@
michael@224 5 </router>
michael@224 6
michael@224 7 <!-- Log configuration - type is "syslog", "file" or "stdout" -->
michael@224 8 - <log type='syslog'>
michael@224 9 + <log type='file'>
michael@224 10 <!-- If logging to syslog, this is the log ident -->
michael@224 11 - <ident>jabberd/c2s</ident>
michael@224 12 + <!-- <ident>jabberd/c2s</ident> -->
michael@224 13
michael@224 14 <!-- If logging to syslog, this is the log facility
michael@224 15 (local0 - local7) [default: local3] -->
michael@224 16 - <facility>local3</facility>
michael@224 17 + <!-- <facility>local3</facility> -->
michael@224 18
michael@224 19 <!-- If logging to file, this is the filename of the logfile -->
michael@224 20 - <!--
michael@224 21 <file>@localstatedir@/jabberd/log/c2s.log</file>
michael@224 22 - -->
michael@224 23 </log>
michael@224 24
michael@224 25 <!-- Local network configuration -->
michael@224 26 @@ -137,7 +135,7 @@
michael@224 27 <id password-change='true' /> -->
michael@224 28
michael@224 29 <!-- IP address to bind to (default: 0.0.0.0) -->
michael@224 30 - <ip>0.0.0.0</ip>
michael@224 31 + <ip>127.0.0.1</ip>
michael@224 32
michael@224 33 <!-- Port to bind to, or 0 to disable unencrypted access to the
michael@224 34 server (default: 5222) -->
michael@224 35 @@ -331,7 +329,7 @@
michael@224 36 <path>@pkglibdir@</path>
michael@224 37
michael@224 38 <!-- Backend module to use -->
michael@224 39 - <module>sqlite</module>
michael@224 40 + <module>db</module>
michael@224 41
michael@224 42 <!-- Available authentication mechanisms -->
michael@224 43 <mechanisms>
michael@224 44 Index: etc/router.xml.dist.in
michael@224 45 --- etc/router.xml.dist.in.orig 2009-06-30 11:38:16 +0200
michael@224 46 +++ etc/router.xml.dist.in 2009-06-30 20:45:06 +0200
michael@224 47 @@ -8,24 +8,22 @@
michael@224 48 <pidfile>@localstatedir@/jabberd/pid/router.pid</pidfile>
michael@224 49
michael@224 50 <!-- Log configuration - type is "syslog", "file" or "stdout" -->
michael@224 51 - <log type='syslog'>
michael@224 52 + <log type='file'>
michael@224 53 <!-- If logging to syslog, this is the log ident -->
michael@224 54 - <ident>jabberd/router</ident>
michael@224 55 + <!-- <ident>jabberd/router</ident> -->
michael@224 56
michael@224 57 <!-- If logging to syslog, this is the log facility
michael@224 58 (local0 - local7) [default: local3] -->
michael@224 59 - <facility>local3</facility>
michael@224 60 + <!-- <facility>local3</facility> -->
michael@224 61
michael@224 62 <!-- If logging to file, this is the filename of the logfile -->
michael@224 63 - <!--
michael@224 64 <file>@localstatedir@/jabberd/log/router.log</file>
michael@224 65 - -->
michael@224 66 </log>
michael@224 67
michael@224 68 <!-- Local network configuration -->
michael@224 69 <local>
michael@224 70 <!-- IP address to bind to (default: 0.0.0.0) -->
michael@224 71 - <ip>0.0.0.0</ip>
michael@224 72 + <ip>127.0.0.1</ip>
michael@224 73
michael@224 74 <!-- Port to bind to (default: 5347) -->
michael@224 75 <port>5347</port>
michael@224 76 Index: etc/s2s.xml.dist.in
michael@224 77 --- etc/s2s.xml.dist.in.orig 2009-06-30 11:38:16 +0200
michael@224 78 +++ etc/s2s.xml.dist.in 2009-06-30 20:45:06 +0200
michael@224 79 @@ -60,25 +60,23 @@
michael@224 80 </router>
michael@224 81
michael@224 82 <!-- Log configuration - type is "syslog", "file" or "stdout" -->
michael@224 83 - <log type='syslog'>
michael@224 84 + <log type='file'>
michael@224 85 <!-- If logging to syslog, this is the log ident -->
michael@224 86 - <ident>jabberd/s2s</ident>
michael@224 87 + <!-- <ident>jabberd/s2s</ident> -->
michael@224 88
michael@224 89 <!-- If logging to syslog, this is the log facility
michael@224 90 (local0 - local7) [default: local3] -->
michael@224 91 - <facility>local3</facility>
michael@224 92 + <!-- <facility>local3</facility> -->
michael@224 93
michael@224 94 <!-- if logging to file, this is the filename of the logfile -->
michael@224 95 - <!--
michael@224 96 <file>@localstatedir@/jabberd/log/s2s.log</file>
michael@224 97 - -->
michael@224 98 </log>
michael@224 99
michael@224 100 <!-- Local network configuration -->
michael@224 101 <local>
michael@224 102 <!-- IP and port to listen for incoming s2s connections on
michael@224 103 (default: 0.0.0.0, 5269) -->
michael@224 104 - <ip>0.0.0.0</ip>
michael@224 105 + <ip>127.0.0.1</ip>
michael@224 106 <port>5269</port>
michael@224 107
michael@224 108 <!-- Multihomed machines (with more than one interface and IP address)
michael@224 109 Index: etc/sm.xml.dist.in
michael@224 110 --- etc/sm.xml.dist.in.orig 2009-06-30 11:38:16 +0200
michael@224 111 +++ etc/sm.xml.dist.in 2009-06-30 20:45:36 +0200
michael@224 112 @@ -50,13 +50,13 @@
michael@224 113 </router>
michael@224 114
michael@224 115 <!-- Log configuration - type is "syslog", "file" or "stdout" -->
michael@224 116 - <log type='syslog'>
michael@224 117 + <log type='file'>
michael@224 118 <!-- If logging to syslog, this is the log ident -->
michael@224 119 - <ident>jabberd/sm</ident>
michael@224 120 + <!-- <ident>jabberd/sm</ident> -->
michael@224 121
michael@224 122 <!-- If logging to syslog, this is the log facility
michael@224 123 (local0 - local7) [default: local3] -->
michael@224 124 - <facility>local3</facility>
michael@224 125 + <!-- <facility>local3</facility> -->
michael@224 126
michael@224 127 <!-- If logging to file, this is the filename of the logfile -->
michael@224 128 <!--
michael@224 129 @@ -85,7 +85,7 @@
michael@224 130 <path>@pkglibdir@</path>
michael@224 131
michael@224 132 <!-- By default, we use the SQLite driver for all storage -->
michael@224 133 - <driver>sqlite</driver>
michael@224 134 + <driver>db</driver>
michael@224 135
michael@224 136 <!-- Its also possible to explicitly list alternate drivers for
michael@224 137 specific data types. -->
michael@224 138 Index: sm/mod_iq_time.c
michael@224 139 --- sm/mod_iq_time.c.orig 2009-06-30 11:38:15 +0200
michael@224 140 +++ sm/mod_iq_time.c 2009-06-30 20:45:06 +0200
michael@224 141 @@ -39,6 +39,7 @@
michael@224 142 static mod_ret_t _iq_time_pkt_sm(mod_instance_t mi, pkt_t pkt)
michael@224 143 {
michael@224 144 time_t t;
michael@224 145 + time_t tzone;
michael@224 146 struct tm *tm;
michael@224 147 char buf[64];
michael@224 148 char *c;
michael@224 149 @@ -78,7 +79,8 @@
michael@224 150 datetime_out(t, dt_DATETIME, buf, 64);
michael@224 151 nad_insert_elem(pkt->nad, 2, NAD_ENS(pkt->nad, 1), "utc", buf);
michael@224 152 #ifdef HAVE_TZSET
michael@224 153 - snprintf(buf, 64, "%+03d:%02d", -((int)timezone)/(60*60), -((int)timezone)%(60*60));
michael@224 154 + tzone = (time_t)((long)mktime(gmtime(&t)) - (long)t);
michael@224 155 + snprintf(buf, 64, "%+03d:%02d", (int) -tzone/(60*60), (int) -tzone%(60*60));
michael@224 156 #else
michael@224 157 snprintf(buf, 64, "%+03d:%02d", (int) tm->tm_gmtoff/(60*60), (int) tm->tm_gmtoff%(60*60));
michael@224 158 #endif
michael@224 159 Index: sm/mod_roster.c
michael@224 160 --- sm/mod_roster.c.orig 2009-06-30 11:38:15 +0200
michael@224 161 +++ sm/mod_roster.c 2009-06-30 20:45:06 +0200
michael@224 162 @@ -635,6 +635,9 @@
michael@224 163 if(user->sessions == NULL)
michael@224 164 return mod_PASS;
michael@224 165
michael@224 166 + /* We have to free old packet - Lemming's memory leak fix */
michael@224 167 + pkt_free(pkt);
michael@224 168 +
michael@224 169 /* build a new packet to push out to everyone */
michael@224 170 pkt = pkt_create(user->sm, "iq", "set", NULL, NULL);
michael@224 171 pkt_id_new(pkt);
michael@224 172 Index: util/util.h
michael@224 173 --- util/util.h.orig 2009-06-30 11:38:16 +0200
michael@224 174 +++ util/util.h 2009-06-30 20:45:06 +0200
michael@224 175 @@ -30,6 +30,8 @@
michael@224 176 #include <time.h>
michael@224 177 #include <errno.h>
michael@224 178 #include <assert.h>
michael@224 179 +#include <sys/types.h>
michael@224 180 +#include <sys/socket.h>
michael@224 181
michael@224 182 #include <expat.h>
michael@224 183

mercurial