aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/openfire
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2012-07-09 18:33:49 +0800
committergahr <gahr@FreeBSD.org>2012-07-09 18:33:49 +0800
commit64be10ee2090d256ce97293cd087908355ccfbc2 (patch)
tree07f2494244fce47c0dbe3ba04e243e7fe66266fb /net-im/openfire
parent222bb11f16222f353d8d469f6efd69c29ac89045 (diff)
downloadfreebsd-ports-gnome-64be10ee2090d256ce97293cd087908355ccfbc2.tar.gz
freebsd-ports-gnome-64be10ee2090d256ce97293cd087908355ccfbc2.tar.zst
freebsd-ports-gnome-64be10ee2090d256ce97293cd087908355ccfbc2.zip
- Add dialback patch (http://issues.igniterealtime.org/browse/OF-443)
PR: 169590 Submitted by: "Eugene M. Zheganin" <eugene@zhegan.in>
Diffstat (limited to 'net-im/openfire')
-rw-r--r--net-im/openfire/Makefile1
-rw-r--r--net-im/openfire/files/patch-pre-xmpp-dialback-fix.diff17
2 files changed, 18 insertions, 0 deletions
diff --git a/net-im/openfire/Makefile b/net-im/openfire/Makefile
index 7c1e789371ba..70a49722d2d6 100644
--- a/net-im/openfire/Makefile
+++ b/net-im/openfire/Makefile
@@ -7,6 +7,7 @@
PORTNAME= openfire
PORTVERSION= 3.7.1
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net-im java
MASTER_SITES= http://download.igniterealtime.org/openfire/
diff --git a/net-im/openfire/files/patch-pre-xmpp-dialback-fix.diff b/net-im/openfire/files/patch-pre-xmpp-dialback-fix.diff
new file mode 100644
index 000000000000..37ff1faf5c71
--- /dev/null
+++ b/net-im/openfire/files/patch-pre-xmpp-dialback-fix.diff
@@ -0,0 +1,17 @@
+Index: src/java/org/jivesoftware/openfire/session/LocalIncomingServerSession.java
+===================================================================
+--- src/java/org/jivesoftware/openfire/session/LocalIncomingServerSession.java (wersja 12902)
++++ src/java/org/jivesoftware/openfire/session/LocalIncomingServerSession.java (kopia robocza)
+@@ -122,7 +122,11 @@
+ openingStream.append(" xmlns=\"jabber:server\"");
+ openingStream.append(" from=\"").append(serverName).append("\"");
+ openingStream.append(" id=\"").append(streamID).append("\"");
+- openingStream.append(" version=\"1.0\">");
++ if (serverVersion[0] >= 1) {
++ openingStream.append(" version=\"1.0\">");
++ } else {
++ openingStream.append(">");
++ }
+ connection.deliverRawText(openingStream.toString());
+
+ if (serverVersion[0] >= 1) {