Your message dated Wed, 23 Jul 2008 14:02:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#488991: fixed in ejabberd 2.0.1-3
has caused the Debian Bug report #488991,
regarding More options for mod_ctlextra
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
488991: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488991
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: ejabberd
Version: 2.0.0-7
Severity: wishlist

I found a very useful patch for mod_ctlextra here :
https://forge.process-one.net/browse/ejabberd-modules/mod_ctlextra/trunk/src/mod_ctlextra.erl?r1=509&r2=539&u=3&ignore=&k=

This patch adds 2 commands :

ejabberdctl srg-list-groups host | list the shared roster groups from host
ejabberdctl srg-get-info group host  |  get info of a specific group on host

They are very useful when using other shared rosters commands.
I've adapted the patch so that it can be added in debian/patches for version 2.0.0-7. It applies on ejabberd-2.0.0/src/mod_ctlextra.erl which is created by another patch in the package : mod_ctlextra.patch
So this patch should appear after mod_ctlextra.patch in debian/patches/series.

This is my first contribution, I hope my patch is correctly built.
It rebuilt the package successfully, the installation works too and finally, the new commands are available and work.

Please find attached the patch that could be added in debian/patches.
Merging the two patches can also be considered.

Regards,

--
Florian CARGOET <[EMAIL PROTECTED]>
Evolix - Informatique et Logiciels Libres http://www.evolix.fr/


--- ejabberd-2.0.0/src.orig/mod_ctlextra.erl	2008-07-02 01:25:08.000000000 +0200
+++ ejabberd-2.0.0/src/mod_ctlextra.erl	2008-07-02 01:37:47.000000000 +0200
@@ -46,7 +46,8 @@
 		{"srg-delete group host", "delete the group"},
 		{"srg-user-add user server group host", "add [EMAIL PROTECTED] to group on host"},
 		{"srg-user-del user server group host", "delete [EMAIL PROTECTED] from group on host"},
-			
+     {"srg-list-groups host", "list the shared roster groups from host"},
+     		{"srg-get-info group host", "get info of a specific group on host"},
 		% mod_vcard
 		{"vcard-get user host data [data2]", "get data from the vCard of the user"},
 		{"vcard-set user host data [data2] content", "set data to content on the vCard"},
@@ -177,6 +178,25 @@
 	{atomic, ok} = mod_shared_roster:remove_user_from_group(Host, {User, Server}, Group),
     ?STATUS_SUCCESS;
 
+ctl_process(_Val, ["srg-list-groups", Host]) ->
+    lists:foreach(
+        fun(SrgGroup) ->
+	                io:format("~s~n",[SrgGroup])
+        end,
+        lists:sort(mod_shared_roster:list_groups(Host))),
+    ?STATUS_SUCCESS;
+
+ctl_process(_Val, ["srg-get-info", Group, Host]) ->
+    Opts = mod_shared_roster:get_group_opts(Host,Group),
+    [io:format("~s: ~p~n", [Title, Value]) || {Title , Value} <- Opts],
+
+    Members = mod_shared_roster:get_group_explicit_users(Host,Group),
+    Members_string = [ " " ++ jlib:jid_to_string(jlib:make_jid(MUser, MServer, ""))
+                     || {MUser, MServer} <- Members],
+    io:format("members:~s~n", [Members_string]),
+
+    ?STATUS_SUCCESS;
+
 ctl_process(_Val, ["muc-purge", Days]) ->
 	{purged, Num_total, Num_purged, Names_purged} = muc_purge(list_to_integer(Days)),
 	io:format("Purged ~p chatrooms from a total of ~p on the server:~n~p~n", [Num_purged, Num_total, Names_purged]),

--- End Message ---
--- Begin Message ---
Source: ejabberd
Source-Version: 2.0.1-3

We believe that the bug you reported is fixed in the latest version of
ejabberd, which is due to be installed in the Debian FTP archive:

ejabberd_2.0.1-3.diff.gz
  to pool/main/e/ejabberd/ejabberd_2.0.1-3.diff.gz
ejabberd_2.0.1-3.dsc
  to pool/main/e/ejabberd/ejabberd_2.0.1-3.dsc
ejabberd_2.0.1-3_i386.deb
  to pool/main/e/ejabberd/ejabberd_2.0.1-3_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sergei Golovan <[EMAIL PROTECTED]> (supplier of updated ejabberd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 23 Jul 2008 16:32:03 +0400
Source: ejabberd
Binary: ejabberd
Architecture: source i386
Version: 2.0.1-3
Distribution: unstable
Urgency: low
Maintainer: Torsten Werner <[EMAIL PROTECTED]>
Changed-By: Sergei Golovan <[EMAIL PROTECTED]>
Description: 
 ejabberd   - Distributed, fault-tolerant Jabber/XMPP server written in Erlang
Closes: 462357 487822 488991 490059 490681 490855 491056 491424 491493 491652 
491664
Changes: 
 ejabberd (2.0.1-3) unstable; urgency=low
 .
   [ Sergei Golovan ]
   * Synced mod_ctlextra module with upstream (closes: #488991).
   * Updated Portuguese debconf templates translation (closes: #487822).
   * Switched off autoupdating debian/control by cdbs to make
     build-dependencies consistent.
   * Added Swedish debconf templates translation (closes: #490681).
   * Updated Russian debconf templates translation (closes: #491424).
   * Updated Spanish debconf templates translation.
   * Added Galician debconf templates translation (closes: #490855).
   * Added Vietnamese debconf templates translation (closes: #491056).
   * Cleaned up LDAPS patch and fixed a bug with leaking SSL sockets
     (closes: #490059).
   * Don't return from init script until at least Erlang VM is started to make
     subsequent checks for running ejabberd simpler.
   * Added an additional check for starting Erlang VM and don't try to register
     admin user if ejabberd isn't started. This allows to shorten waiting
     interval during upgrade if it isn't desirable to start ejabberd
     automatically (closes: #462357).
   * Added Turkish debconf templates translation (closes: #491493).
   * Added Finnish debconf templates translation (closes: #491652).
   * Install SQL database schemas to examples directory.
   * Fixed crash in checking relational DB modules (closes: #491664).
 .
   [ Torsten Werner ]
   * Updated German debconf templates translation.
Files: 
 d2d6f06a5882e8f0ba92f2b6ef31c59e 1363 net optional ejabberd_2.0.1-3.dsc
 1a6d64890fb16b369c65d69895ac1e18 51878 net optional ejabberd_2.0.1-3.diff.gz
 ed095fdfa72f763b673852e7cb48cf21 1185822 net optional ejabberd_2.0.1-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIhym0IcdH02pGEFIRAv0GAJ0dMC8XkvRp0hZxm7AHlPipy1u/LACgm2pX
yne3mHRl+YBA4NFyFHluoLE=
=a2wo
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to