<%method .meta>

Bandersnatch & ejabberd


  1. Get the latest Net::Jabber with all requirements. There are several ways, use your favourite:
    bash# apt-get install libnet-jabber-perl
    bash# cd /usr/ports/net/p5-Net-Jabber && make all install clean

  2. Get the bandersnatch itself
    bash$ svn co http://oss.svn.funkypenguin.co.za/bandersnatch/ bash$ cd bandersnatch
  3. Add our component as a parameter for mod_service_log in modules list
    {mod_service_log,[{loggers, ["bandersnatch.jabber.abandonedsoft.com"]}]},
  4. Also make ejabberd accessible for component. Add this snippet to Listened ports list.
    {5526, ejabberd_service, [{ip, {127, 0, 0, 1}}, {access, all}, {hosts, ["bandersnatch.jabber.abandonedsoft.com"], [{password, "secret"}]}]},
  5. Restart ejabberd
  6. Read doc/bandersnatch.html, create database, check config.xml to make sure that we're going to use the same name/secret/port as in ejabberd.cfg.
    ... skipped ... <server> <connectiontype>tcpip</connectiontype> <hostname>localhost</hostname> <port>5526</port> <secret>secret</secret> </server> <component> <name>bandersnatch.jabber.abandonedsoft.com</name> </component> ... skipped ...
  7. Run the script
    bash$ perl bandersnatch config.xml

Disclaimer
This article provided AS IS. Author is not responsible for any damages, upsets or idiosyncrasies caused by this article.

-- 
gonzo