summaryrefslogtreecommitdiffstats
path: root/net-im/ejabberd
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-05-25 16:26:41 +0000
committerpav <pav@FreeBSD.org>2005-05-25 16:26:41 +0000
commite1db04d6bbb0d8ee0d4d86cf99c6c5cc16aaa28e (patch)
tree9839c26ed03fd3676d97f95ecd38c81203f4874b /net-im/ejabberd
parent1f480a69d02cc8553ca951541a325031e6e31ed2 (diff)
downloadFreeBSD-ports-e1db04d6bbb0d8ee0d4d86cf99c6c5cc16aaa28e.zip
FreeBSD-ports-e1db04d6bbb0d8ee0d4d86cf99c6c5cc16aaa28e.tar.gz
- Update to 0.9.1
PR: ports/81431 Submitted by: Lars Eggert <lars.eggert@gmx.net> Approved by: Alexander Timoshenko <gonzo@univ.kiev.ua> (maintainer)
Diffstat (limited to 'net-im/ejabberd')
-rw-r--r--net-im/ejabberd/Makefile6
-rw-r--r--net-im/ejabberd/distinfo4
-rw-r--r--net-im/ejabberd/files/patch-src-ejabberd.hrl15
-rw-r--r--net-im/ejabberd/files/patch-src-ejabberd_auth.erl40
-rw-r--r--net-im/ejabberd/files/patch-src-jd2ejd.erl29
-rw-r--r--net-im/ejabberd/files/patch-src-mod_disco.erl37
-rw-r--r--net-im/ejabberd/files/patch-src-tls-tls_drv.c19
-rw-r--r--net-im/ejabberd/files/patch-src-web-ejabberd_web_admin.erl64
-rw-r--r--net-im/ejabberd/pkg-plist17
9 files changed, 18 insertions, 213 deletions
diff --git a/net-im/ejabberd/Makefile b/net-im/ejabberd/Makefile
index d2cdb46..1646249 100644
--- a/net-im/ejabberd/Makefile
+++ b/net-im/ejabberd/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= ejabberd
-PORTVERSION= 0.9
+PORTVERSION= 0.9.1
CATEGORIES= net
MASTER_SITES= http://www.jabber.ru/files/ejabberd/ \
http://www.process-one.net/en/projects/ejabberd/download/${PORTVERSION}/
@@ -19,7 +19,7 @@ RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
PLIST_SUB= VERSION="${PORTVERSION}"
-WRKSRC= ${WRKDIR}/${PORTNAME}/src
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_REINPLACE= yes
@@ -38,7 +38,7 @@ post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/ejabberd ${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKSRC}/ejabberd.sh ${PREFIX}/etc/rc.d
@${INSTALL_DATA} ${FILESDIR}/ejabberd.defaults ${PREFIX}/etc
- @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}/tools/ejabberdctl ${PREFIX}/bin
+ @${INSTALL_SCRIPT} ${WRKSRC}/../tools/ejabberdctl ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/../doc/* ${DOCSDIR}
diff --git a/net-im/ejabberd/distinfo b/net-im/ejabberd/distinfo
index 001cb42..b2c8175 100644
--- a/net-im/ejabberd/distinfo
+++ b/net-im/ejabberd/distinfo
@@ -1,2 +1,2 @@
-MD5 (ejabberd-0.9.tar.gz) = 9c349cddb6d0b144c12d277b17ce5e65
-SIZE (ejabberd-0.9.tar.gz) = 451676
+MD5 (ejabberd-0.9.1.tar.gz) = 77b9d1a080b7ed2cf471e28d9cdcdf12
+SIZE (ejabberd-0.9.1.tar.gz) = 689516
diff --git a/net-im/ejabberd/files/patch-src-ejabberd.hrl b/net-im/ejabberd/files/patch-src-ejabberd.hrl
deleted file mode 100644
index c5c4bd0..0000000
--- a/net-im/ejabberd/files/patch-src-ejabberd.hrl
+++ /dev/null
@@ -1,15 +0,0 @@
---- ejabberd.hrl Sun Apr 17 18:08:34 2005
-+++ ejabberd.hrl Sat Apr 23 19:28:48 2005
-@@ -3,10 +3,10 @@
- %%% Author : Alexey Shchepin <alexey@sevcom.net>
- %%% Purpose :
- %%% Created : 17 Nov 2002 by Alexey Shchepin <alexey@sevcom.net>
--%%% Id : $Id: ejabberd.hrl 307 2005-04-17 18:08:34Z tmallard $
-+%%% Id : $Id: ejabberd.hrl 326 2005-04-22 16:47:16Z alexey $
- %%%----------------------------------------------------------------------
-
---define(VERSION, "0.8-alpha").
-+-define(VERSION, "0.9.1-alpha").
-
- %-define(ejabberd_debug, true).
- %-define(DBGFSM, true).
diff --git a/net-im/ejabberd/files/patch-src-ejabberd_auth.erl b/net-im/ejabberd/files/patch-src-ejabberd_auth.erl
deleted file mode 100644
index ccf515c2..0000000
--- a/net-im/ejabberd/files/patch-src-ejabberd_auth.erl
+++ /dev/null
@@ -1,40 +0,0 @@
---- ejabberd_auth.erl Sun Apr 17 18:08:34 2005
-+++ ejabberd_auth.erl Sat Apr 23 19:28:48 2005
-@@ -3,12 +3,12 @@
- %%% Author : Alexey Shchepin <alexey@sevcom.net>
- %%% Purpose : Authentification
- %%% Created : 23 Nov 2002 by Alexey Shchepin <alexey@sevcom.net>
--%%% Id : $Id: ejabberd_auth.erl 307 2005-04-17 18:08:34Z tmallard $
-+%%% Id : $Id: ejabberd_auth.erl 323 2005-04-19 23:10:22Z alexey $
- %%%----------------------------------------------------------------------
-
- -module(ejabberd_auth).
- -author('alexey@sevcom.net').
---vsn('$Revision$ ').
-+-vsn('$Revision: 323 $ ').
-
- %% External exports
- -export([start/0,
-@@ -26,6 +26,8 @@
- plain_password_required/0
- ]).
-
-+-include("ejabberd.hrl").
-+
- %%%----------------------------------------------------------------------
- %%% API
- %%%----------------------------------------------------------------------
-@@ -45,7 +47,12 @@
- (auth_module()):set_password(User, Server, Password).
-
- try_register(User, Server, Password) ->
-- (auth_module()):try_register(User, Server, Password).
-+ case lists:member(jlib:nameprep(Server), ?MYHOSTS) of
-+ true ->
-+ (auth_module()):try_register(User, Server, Password);
-+ false ->
-+ {error, not_allowed}
-+ end.
-
- dirty_get_registered_users() ->
- (auth_module()):dirty_get_registered_users().
diff --git a/net-im/ejabberd/files/patch-src-jd2ejd.erl b/net-im/ejabberd/files/patch-src-jd2ejd.erl
deleted file mode 100644
index 73f6745..0000000
--- a/net-im/ejabberd/files/patch-src-jd2ejd.erl
+++ /dev/null
@@ -1,29 +0,0 @@
---- jd2ejd.erl Sun Apr 17 18:08:34 2005
-+++ jd2ejd.erl Sat Apr 23 19:28:48 2005
-@@ -3,12 +3,12 @@
- %%% Author : Alexey Shchepin <alexey@sevcom.net>
- %%% Purpose : Import of jabberd1.4 user spool file
- %%% Created : 2 Feb 2003 by Alexey Shchepin <alexey@sevcom.net>
--%%% Id : $Id: jd2ejd.erl 307 2005-04-17 18:08:34Z tmallard $
-+%%% Id : $Id: jd2ejd.erl 324 2005-04-21 14:06:15Z alexey $
- %%%----------------------------------------------------------------------
-
- -module(jd2ejd).
- -author('alexey@sevcom.net').
---vsn('$Revision$ ').
-+-vsn('$Revision: 324 $ ').
-
- %% External exports
- -export([import_file/1,
-@@ -87,8 +87,9 @@
- end.
-
-
--xdb_data(User, Server, El) ->
-- {xmlelement, _Name, Attrs, _Els} = El,
-+xdb_data(User, Server, {xmlcdata, _CData}) ->
-+ ok;
-+xdb_data(User, Server, {xmlelement, _Name, Attrs, _Els} = El) ->
- From = jlib:make_jid(User, Server, ""),
- case xml:get_attr_s("xmlns", Attrs) of
- ?NS_AUTH ->
diff --git a/net-im/ejabberd/files/patch-src-mod_disco.erl b/net-im/ejabberd/files/patch-src-mod_disco.erl
deleted file mode 100644
index 2e37176..0000000
--- a/net-im/ejabberd/files/patch-src-mod_disco.erl
+++ /dev/null
@@ -1,37 +0,0 @@
---- mod_disco.erl Sun Apr 17 18:08:34 2005
-+++ mod_disco.erl Sat Apr 23 19:28:48 2005
-@@ -3,12 +3,12 @@
- %%% Author : Alexey Shchepin <alexey@sevcom.net>
- %%% Purpose : Service Discovery (JEP-0030) support
- %%% Created : 1 Jan 2003 by Alexey Shchepin <alexey@sevcom.net>
--%%% Id : $Id: mod_disco.erl 307 2005-04-17 18:08:34Z tmallard $
-+%%% Id : $Id: mod_disco.erl 322 2005-04-19 22:19:22Z alexey $
- %%%----------------------------------------------------------------------
-
- -module(mod_disco).
- -author('alexey@sevcom.net').
---vsn('$Revision$ ').
-+-vsn('$Revision: 322 $ ').
-
- -behaviour(gen_mod).
-
-@@ -344,9 +344,17 @@
-
-
- get_vh_services(Host) ->
-- DotHost = "." ++ Host,
-+ Hosts = lists:sort(fun(H1, H2) -> length(H1) >= length(H2) end, ?MYHOSTS),
- lists:filter(fun(H) ->
-- lists:suffix(DotHost, H)
-+ case lists:dropwhile(
-+ fun(VH) ->
-+ not lists:suffix("." ++ VH, H)
-+ end, Hosts) of
-+ [] ->
-+ false;
-+ [VH | _] ->
-+ VH == Host
-+ end
- end, ejabberd_router:dirty_get_all_routes()).
-
- get_online_vh_users(Host) ->
diff --git a/net-im/ejabberd/files/patch-src-tls-tls_drv.c b/net-im/ejabberd/files/patch-src-tls-tls_drv.c
deleted file mode 100644
index c8b6ec6..0000000
--- a/net-im/ejabberd/files/patch-src-tls-tls_drv.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- tls/tls_drv.c Sat Apr 9 23:47:56 2005
-+++ tls/tls_drv.c Sat Apr 23 19:28:48 2005
-@@ -1,4 +1,4 @@
--/* $Id: tls_drv.c 305 2005-04-09 23:47:56Z aleksey $ */
-+/* $Id: tls_drv.c 327 2005-04-24 12:09:47Z alexey $ */
-
- #include <stdio.h>
- #include <string.h>
-@@ -80,8 +80,8 @@
- d->ctx = SSL_CTX_new(SSLv23_server_method());
- die_unless(d->ctx, "SSL_CTX_new failed");
-
-- res = SSL_CTX_use_certificate_chain_file(d->ctx, buf);
-- die_unless(res > 0, "ssl_ctx_use_certificate_chain_file failed");
-+ res = SSL_CTX_use_certificate_file(d->ctx, buf, SSL_FILETYPE_PEM);
-+ die_unless(res > 0, "SSL_CTX_use_certificate_file failed");
-
- res = SSL_CTX_use_PrivateKey_file(d->ctx, buf, SSL_FILETYPE_PEM);
- die_unless(res > 0, "SSL_CTX_use_PrivateKey_file failed");
diff --git a/net-im/ejabberd/files/patch-src-web-ejabberd_web_admin.erl b/net-im/ejabberd/files/patch-src-web-ejabberd_web_admin.erl
deleted file mode 100644
index e0a1c85..0000000
--- a/net-im/ejabberd/files/patch-src-web-ejabberd_web_admin.erl
+++ /dev/null
@@ -1,64 +0,0 @@
---- web/ejabberd_web_admin.erl Mon Apr 18 20:03:07 2005
-+++ web/ejabberd_web_admin.erl Sat Apr 23 19:28:48 2005
-@@ -3,7 +3,7 @@
- %%% Author : Alexey Shchepin <alexey@sevcom.net>
- %%% Purpose : Administration web interface
- %%% Created : 9 Apr 2004 by Alexey Shchepin <alexey@sevcom.net>
--%%% Id : $Id: ejabberd_web_admin.erl 316 2005-04-18 20:03:07Z alexey $
-+%%% Id : $Id: ejabberd_web_admin.erl 323 2005-04-19 23:10:22Z alexey $
- %%%----------------------------------------------------------------------
- %%% Copyright (c) 2004-2005 Alexey Shchepin
- %%% Copyright (c) 2004-2005 Process One
-@@ -11,7 +11,7 @@
-
- -module(ejabberd_web_admin).
- -author('alexey@sevcom.net').
---vsn('$Revision$ ').
-+-vsn('$Revision: 323 $ ').
-
- %% External exports
- -export([process_admin/1]).
-@@ -1143,23 +1143,26 @@
- list_users_parse_query(Query) ->
- case lists:keysearch("addnewuser", 1, Query) of
- {value, _} ->
-- {value, {_, User}} =
-+ {value, {_, JIDString}} =
- lists:keysearch("newusername", 1, Query),
- {value, {_, Password}} =
- lists:keysearch("newuserpassword", 1, Query),
-- case jlib:nodeprep(User) of
-+ case jlib:string_to_jid(JIDString) of
- error ->
- error;
-- "" ->
-- error;
-- _ ->
-- ejabberd_auth:try_register(User, Password),
-- ok
-+ #jid{user = User, server = Server} ->
-+ case ejabberd_auth:try_register(User, Server, Password) of
-+ {error, _Reason} ->
-+ error;
-+ _ ->
-+ ok
-+ end
- end;
- false ->
- nothing
- end.
-
-+
- list_users_in_diapason(Diap, Lang) ->
- Users = ejabberd_auth:dirty_get_registered_users(),
- SUsers = lists:sort([{S, U} || {U, S} <- Users]),
-@@ -1181,7 +1184,8 @@
- fun(SU = {Server, User}) ->
- US = {User, Server},
- QueueLen = length(mnesia:dirty_read({offline_msg, US})),
-- FQueueLen = [?AC(Prefix ++ "user/" ++ User ++ "/queue/",
-+ FQueueLen = [?AC(Prefix ++ "user/" ++
-+ User ++ "@" ++ Server ++ "/queue/",
- integer_to_list(QueueLen))],
- FLast =
- case ejabberd_sm:get_user_resources(User, Server) of
diff --git a/net-im/ejabberd/pkg-plist b/net-im/ejabberd/pkg-plist
index ea20494..9e85908 100644
--- a/net-im/ejabberd/pkg-plist
+++ b/net-im/ejabberd/pkg-plist
@@ -87,21 +87,30 @@ lib/erlang/lib/ejabberd-%%PORTVERSION%%/priv/msgs/es.msg
lib/erlang/lib/ejabberd-%%PORTVERSION%%/priv/msgs/fr.msg
lib/erlang/lib/ejabberd-%%PORTVERSION%%/priv/msgs/nl.msg
lib/erlang/lib/ejabberd-%%PORTVERSION%%/priv/msgs/pl.msg
+lib/erlang/lib/ejabberd-%%PORTVERSION%%/priv/msgs/pt.msg
lib/erlang/lib/ejabberd-%%PORTVERSION%%/priv/msgs/ru.msg
+lib/erlang/lib/ejabberd-%%PORTVERSION%%/priv/msgs/sv.msg
lib/erlang/lib/ejabberd-%%PORTVERSION%%/priv/msgs/uk.msg
-%%PORTDOCS%%%%DOCSDIR%%/confacls.png
-%%PORTDOCS%%%%DOCSDIR%%/confhostname.png
+%%PORTDOCS%%%%DOCSDIR%%/dev.aux
%%PORTDOCS%%%%DOCSDIR%%/dev.html
+%%PORTDOCS%%%%DOCSDIR%%/dev.log
+%%PORTDOCS%%%%DOCSDIR%%/dev.pdf
%%PORTDOCS%%%%DOCSDIR%%/dev.tex
+%%PORTDOCS%%%%DOCSDIR%%/dev.toc
%%PORTDOCS%%%%DOCSDIR%%/disco.png
-%%PORTDOCS%%%%DOCSDIR%%/discoallusers.png
-%%PORTDOCS%%%%DOCSDIR%%/discorunnodes.png
%%PORTDOCS%%%%DOCSDIR%%/discorus.png
%%PORTDOCS%%%%DOCSDIR%%/flow.dot
+%%PORTDOCS%%%%DOCSDIR%%/guide.aux
%%PORTDOCS%%%%DOCSDIR%%/guide.html
+%%PORTDOCS%%%%DOCSDIR%%/guide.log
+%%PORTDOCS%%%%DOCSDIR%%/guide.out
+%%PORTDOCS%%%%DOCSDIR%%/guide.pdf
%%PORTDOCS%%%%DOCSDIR%%/guide.tex
+%%PORTDOCS%%%%DOCSDIR%%/guide.toc
+%%PORTDOCS%%%%DOCSDIR%%/hevea.sty
%%PORTDOCS%%%%DOCSDIR%%/logo.png
%%PORTDOCS%%%%DOCSDIR%%/release_notes_%%PORTVERSION%%.txt
+%%PORTDOCS%%%%DOCSDIR%%/release_notes_0.9.txt
%%PORTDOCS%%%%DOCSDIR%%/webadmmain.png
%%PORTDOCS%%%%DOCSDIR%%/webadmmainru.png
@dirrm %%PORTDOCS%%share/doc/ejabberd
OpenPOWER on IntegriCloud