--- jsonbot-0.84.4.orig/debian/README.Debian +++ jsonbot-0.84.4/debian/README.Debian @@ -0,0 +1,7 @@ +JSONBOT for DEBIAN +------------------ +If you want to run a systemwide jsonbot, edit the file +/etc/defaults/jsonbot to change the value of RUN to "yes", then run +"/etc/init.d/jsonbot start" (it will also run on boot). + +Jeremy Malcolm --- jsonbot-0.84.4.orig/debian/changelog +++ jsonbot-0.84.4/debian/changelog @@ -0,0 +1,38 @@ +jsonbot (0.84.4-2) unstable; urgency=medium + + * QA upload. + - Set Maintainer to Debian QA Group. + * Switch to dh_python2 (Closes: #786075). + * Do not build-depend on dpatch, no patches are available. + + -- Luca Falavigna Mon, 15 Jun 2015 18:00:45 +0200 + +jsonbot (0.84.4-1) unstable; urgency=low + + * New upstream release + + -- Jeremy Malcolm Sat, 21 Apr 2012 17:56:51 +0800 + +jsonbot (0.80.3-1) unstable; urgency=low + + * New upstream release + + -- Jeremy Malcolm Fri, 25 Nov 2011 21:57:00 +0800 + +jsonbot (0.7.1.2-1) unstable; urgency=low + + * New upstream release (Closes: #625524) + + -- Jeremy Malcolm Sun, 09 Jul 2011 21:09:20 +0800 + +jsonbot (0.7.1b1-1) unstable; urgency=low + + * New upstream release. + + -- Jeremy Malcolm Sun, 29 May 2011 09:43:35 +0800 + +jsonbot (0.6.1.2-1) unstable; urgency=low + + * Initial release. (Closes: #607957) + + -- Jeremy Malcolm Tue, 23 Apr 2011 12:25:22 +0800 --- jsonbot-0.84.4.orig/debian/compat +++ jsonbot-0.84.4/debian/compat @@ -0,0 +1 @@ +7 --- jsonbot-0.84.4.orig/debian/control +++ jsonbot-0.84.4/debian/control @@ -0,0 +1,19 @@ +Source: jsonbot +Maintainer: Debian QA Group +Section: net +Priority: optional +Build-Depends: python (>= 2.6.6-3~), python-setuptools (>= 0.6b3), debhelper (>= 7), dh-python +Standards-Version: 3.9.1 +X-Python-Version: >= 2.5 + +Package: jsonbot +Architecture: all +Depends: ${python:Depends}, python-pkg-resources (>= 0.6b3), python-simplejson (>= 2.0), python-oauth (>= 1.0), python-feedparser (>= 4.0), adduser +Provides: ${python:Provides} +Recommends: python-tornado (>= 2.2), python-sleekxmpp +Description: Framework for building bots for IRC, XMPP and the Web + JSONBOT is a remote event-driven framework for building bots that talk JSON + to each other over XMPP. This distribution provides bots built on the + JSONBOT framework for console, IRC, XMPP for the shell and WWW, and XMPP + for the Google App Engine. A plugin infrastructure can be used to write + your own functionality. --- jsonbot-0.84.4.orig/debian/copyright +++ jsonbot-0.84.4/debian/copyright @@ -0,0 +1,196 @@ +This is JSONBOT, written and maintained by Bart Thate + +This package was debianized by Jeremy Malcolm . + +The original source can always be found at: + http://code.google.com/p/jsonbot/ + +Copyright Holder: B.H.J Thate + +License: + +Copyright (c) 2010 B.H.J Thate + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject +to the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Additionally, JSONBOT includes third party software that have their +own licenses, detailed below: + +From the /usr/share/pyshared/jsb/contrib directory: + +oauthtwitter.py +--------------- +Author: Hameedullah Khan +Licence: Apache License 2.0 + +On Debian systems, the complete text of the Apache 2.0 +License can be found in `/usr/share/common-licenses/Apache-2.0'. + +xmlstream.py +------------ +Copyright (C) 2001 Matthew Allum + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published +by the Free Software Foundation; either version 2, or (at your option) +any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. + +On Debian systems, the complete text of the GNU version 2 Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL-2'. + +tweepy +------ +Copyright (c) 2007 Joshua Roesslein + +The MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +From the /usr/share/pyshared/jsb/plugs directory: + +common/weather.py +----------------- +Author: Landon Fowles +This file is in the public domain + +common/seen.py +-------------- +Author: Wijnand 'tehmaze' Modderman +License: BSD + +Copyright (c) Wijnand 'tehmaze' Modderman +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + +common/ipcalc.py +----------------- +Author: Wijnand 'tehmaze' Modderman +License: BSD (see above) + +common/tinyurl.py +----------------- +Author: Wijnand 'tehmaze' Modderman +License: BSD (see above) + +core/reverse.py +--------------- +Author: Hans van Kranenburg +This file is in the public domain. + +core/sort.py +------------ +Author: Wijnand 'maze' Modderman +License: BSD (see above) + +core/underauth.py +----------------- +Author: aafshar@gmail.com +This file is in the public domain. + +core/uniq.py +------------ +Author: Wijnand 'tehmaze' Modderman +License: BSD (see above) + +core/nickserv.py +---------------- +Author: Wijnand 'tehmaze' Modderman +License: BSD (see above) + +From the /usr/share/pyshared/jsb/upload directory: + +assets/jquery* +-------------- +Author: John Resig +License: MIT (see above) or GPL-2 + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + +On Debian systems, the complete text of the GNU version 2 General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +waveapi/* +--------- +Author: Google Inc. +License: Apache License 2.0 (see above) + +webapp2/* +--------- +Author: Google Inc. +License: Apache License 2.0 (see above) + +From the /usr/share/pyshared/jsb/utils directory: + +utils/fileutils.py +------------------ +Author: Wijnand 'tehmaze' Modderman +License: BSD (see above) --- jsonbot-0.84.4.orig/debian/dirs +++ jsonbot-0.84.4/debian/dirs @@ -0,0 +1,3 @@ +etc/jsonbot +var/cache/jsb +var/log/jsb --- jsonbot-0.84.4.orig/debian/docs +++ jsonbot-0.84.4/debian/docs @@ -0,0 +1,2 @@ +README +jsb/data/examples --- jsonbot-0.84.4.orig/debian/jsb-backup.1 +++ jsonbot-0.84.4/debian/jsb-backup.1 @@ -0,0 +1,40 @@ +.TH JSONBOT 1 "22 Nov 2011" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb-backup \- The JSONBOT backup app +.SH SYNOPSIS +.B jsb-backup +is used to make backup of the datadir used by JSONBOT +.P + +.B +.SH "DESCRIPTION" +.B jsb-backup +does a backup of the JSONBOT datadir (defaults to ~/.jsb) to ~/jsb-backups directory. +.PP +.SH USAGE +.P +.B Usage: jsb-backup [options] + +Options: + --version show program's version number and exit + -h, --help show this help message and exit + -d DATADIR, --datadir=DATADIR + datadir to use + -t TARGET, --target=TARGET + target dir + -l LOGLEVEL, --loglevel=LOGLEVEL + logging level + --colors enable the use of colors + + +.SH "DOCUMENTATION" +See http://jsonbot.org for more documentation or see +http://jsonbot.googlecode.com + +.SH "SEE ALSO" +jsb(1), jsb-init(1), jsb-irc(1), jsb-fleet(1), jsb-sed(1), jsb-tornado(1), jsb-xmpp(1), +jsb-stop(1), jsb-udp(1), jsonbot(10 + +.SH AUTHOR +This manual page was written by Bart Thate , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsb-convore.1 +++ jsonbot-0.84.4/debian/jsb-convore.1 @@ -0,0 +1,47 @@ +.TH JSONBOT 1 "22 Nov 2011" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb-convore \- The JSONBOT convore program +.SH SYNOPSIS +.B jsb-convore +is a bot for the convore group chat network built on the JSONBOT framework. +.P + +.B +.SH "DESCRIPTION" +.P +.B jsb-convore +connects to a convore group in much the same way as jsb-irc +connects to an IRC channel. +.PP +.SH USAGE +.P +.B Usage: jsb-convore [options] + +Options: + --version show program's version number and exit + -h, --help show this help message and exit + -d DATADIR, --datadir=DATADIR + datadir of the bot + -o OWNER, --owner=OWNER + owner of the bot + -l LOGLEVEL, --loglevel=LOGLEVEL + loglevel of the bot + -p PASSWORD, --password=PASSWORD + set password used to connect to the server + -c CHANNEL, --channel=CHANNEL + channel to join + --name=NAME bot's name + -u USERNAME, --username=USERNAME + username of the bot + +.SH "DOCUMENTATION" +See http://jsonbot.org for more documentation or see +http://jsonbot.googlecode.com + +.SH "SEE ALSO" +jsb(1), jsb-backup(1), jsb-init(1), jsb-irc(1), jsb-xmpp(1), jsb-fleet(1), jsb-sed(1), jsb-tornado(1), jsb-stop(1), +jsb-udp(1), jsonbot(1) + +.SH AUTHOR +This manual page was written by Jeremy Malcolm , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsb-fleet.1 +++ jsonbot-0.84.4/debian/jsb-fleet.1 @@ -0,0 +1,56 @@ +.TH JSONBOT 1 "22 Nov 2011" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb-fleet \- The JSONBOT fleet program +.SH SYNOPSIS +.B jsb-fleet +is the program where you can combine IRC bots and XMPP bots into one +program. +.B +.SH "DESCRIPTION" +.P +When you want to forward IRC to other bots you need an XMPP bot to let it +communicate with these bots. The +.B jsb-fleet +progam lets you combine IRC bots and XMPP bots to forward events to other +bots with a XMPP component running. Communication to GAE bots is also done +through XMPP. + +.PP +.SH USAGE +.P +First run your bots with +.B jsb-irc +and +.B jsb-xmpp +, make sure they work. After +this you can run them all by starting +.B jsb-fleet. +.P +.B Usage: jsb-fleet [options] [list of bot names] + +Options: + --version show program's version number and exit + -h, --help show this help message and exit + -a, --all show available fleet bots + -d DATADIR, --datadir=DATADIR + datadir of the bot + -l LOGLEVEL, --loglevel=LOGLEVEL + loglevel of the bot + -o OWNER, --owner=OWNER + owner of the bot + -r PATH resume the bot from the folder specified + +.SH "DOCUMENTATION" +See http://jsonbot.org for more documentation or see +http://jsonbot.googlecode.com + +.SH "SEE ALSO" +jsb(1), jsb-backup(1), jsb-init(1), jsb-irc(1), jsb-xmpp(1), jsb-tornado(1), jsb-stop(1), +jsb-udp(1), jsonbot(1) + + +.SH "SEE ALSO" +The program is documented fully on http://jsonbot.appspot.com/docs +.SH AUTHOR +This manual page was written by Bart Thate , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsb-init.1 +++ jsonbot-0.84.4/debian/jsb-init.1 @@ -0,0 +1,33 @@ +.TH JSONBOT 1 "7 Nov 2010" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb-init \- The JSONBOT IRC program +.SH SYNOPSIS +JSONBOT is a remote event-driven framework for building bots that talk JSON +to each other over XMPP. +.B jsb-init +initialises a data directory for the bot. +.P + +.B +.SH "DESCRIPTION" +.P +.B jsb-init +is used to initialise a data directory for the bot. It should not normally be necessary +for the user to run this script, as the bot will also initialise its own data directory +when first run if it does not already exist. +.PP +.SH USAGE +.P +.B Usage: jsb-init + +.SH "DOCUMENTATION" +See http://jsonbot.appspot.com/docs for more documentation + +.SH "SEE ALSO" +jsb(1), jsb-irc(1), jsb-xmpp(1), jsb-fleet(1), jsb-release(1), jsb-run(1), +jsb-rollback(1), jsb-stop(1), jsb-upload(1), jsb-uploadall(1), jsb-udp(1) + + +.SH AUTHOR +This manual page was written by Jeremy Malcolm , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsb-irc.1 +++ jsonbot-0.84.4/debian/jsb-irc.1 @@ -0,0 +1,55 @@ +.TH JSONBOT 1 "22 Nov 2011" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb-irc \- The JSONBOT IRC program +.SH SYNOPSIS +.B jsb-irc +is the IRC program build on the JSONBOT framework +.P + +.B +.SH "DESCRIPTION" +.P +.B jsb-irc +can connect to IRC network and join a channel, react on /msg and +operate on /DCC CHAT connections. It supports SSL and ipv6. +.PP +.SH USAGE +.P +.B Usage: jsb-irc [options] + +Options: + --version show program's version number and exit + -h, --help show this help message and exit + -r PATH resume the bot from the folder specified + -d DATADIR, --datadir=DATADIR + datadir of the bot + -o OWNER, --owner=OWNER + owner of the bot + -s SERVER, --server=SERVER + server to connect to (irc) + -c CHANNEL, --channel=CHANNEL + channel to join + -l LOGLEVEL, --loglevel=LOGLEVEL + loglevel of the bot + -p PASSWORD, --password=PASSWORD + set password used to connect to the server + --name=NAME bot's name + --port=PORT set port of server to connect to + --save save to config file + -n NICK, --nick=NICK nick of the bot + --ssl use ssl + -y, --nossl don't use ssl + -6, --ipv6 enable ipv6 bot + +.SH "DOCUMENTATION" +See http://jsonbot.org for more documentation or see +http://jsonbot.googlecode.com + +.SH "SEE ALSO" +jsb(1), jsb-backup(1), jsb-init(1), jsb-xmpp(1), jsb-fleet(1), jsb-tornado(1), jsb-stop(1), +jsb-udp(1), jsonbot(1) + + +.SH AUTHOR +This manual page was written by Bart Thate , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsb-run.1 +++ jsonbot-0.84.4/debian/jsb-run.1 @@ -0,0 +1,40 @@ +.TH JSONBOT 1 "7 Nov 2010" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb-run \- The JSONBOT run program +.SH SYNOPSIS +JSONBOT is a remote event-driven framework for building bots that talk JSON +to each other over XMPP. +.B jsb-run +can be used to run an GAE bot locally. +.B +.SH "DESCRIPTION" +.P +For testing purposes +.B jsb-run +can be used to start a GAE bot local on your own box. This +program first creates a new release directory and then runs dev_appserver +(the appengine program to run a GAE program) on this directory. + +.SH REQUIREMENTS +This program needs google_appengine installed in your home dir. See +http://appengine.google.com +.PP +.SH USAGE +.P +.B Usage: jsb-run [options] + +Options: + --version show program's version number and exit + -h, --help show this help message and exit + -d DATADIR, --datadir=DATADIR + datadir to use + +.SH "DOCUMENTATION" +See http://jsonbot.appspot.com/docs for more documentation + +.SH "SEE ALSO" +jsb-release(1), jsb-rollback(1), jsb-upload(1), jsb-uploadall(1) + +.SH AUTHOR +This manual page was written by Bart Thate , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsb-sed.1 +++ jsonbot-0.84.4/debian/jsb-sed.1 @@ -0,0 +1,25 @@ +.TH JSONBOT 1 "22 Nov 2011" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb-sed \- The JSONBOT sed program +.SH SYNOPSIS +.B jsb-sed +is used to sed all files in a directory with provided sedstring. +.B +.SH "DESCRIPTION" +.P +This program allows for sedding of whole directories, used when refactoring +jsonbot code. Hope its usefull for other purposes as well. +.PP +.SH USAGE +.P +.B Usage: jsb-sed +.SH "DOCUMENTATION" +See http://jsonbot.org for more documentation or see +http://jsonbot.googlecode.com + +.SH "SEE ALSO" +jsonbot(1) + +.SH AUTHOR +This manual page was written by Bart Thate , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsb-sleek.1 +++ jsonbot-0.84.4/debian/jsb-sleek.1 @@ -0,0 +1,53 @@ +.TH JSONBOT 1 "22 Nov 2011" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb-sleek \- The JSONBOT Sleek (XMPP) program +.SH SYNOPSIS +JSONBOT is a remote event-driven framework for building bots that talk JSON +to each other over XMPP. +.B jsb-sleek +is the shell XMPP program using the SleekXMPP library. see http://sleekxmpp.com +.P + +.B +.SH "DESCRIPTION" +.P +.B jsb-sleek +can connect to xmpp servers, join a conference and react on /msg. +.PP +.SH USAGE +.P +Usage: jsb-sleek [options] + +Options: + --version show program's version number and exit + -h, --help show this help message and exit + -r PATH resume the bot from the folder specified + -d DATADIR, --datadir=DATADIR + datadir of the bot + -u USER, --user=USER JID of the bot + -o OWNER, --owner=OWNER + owner of the bot + -s SERVER, --server=SERVER + server to connect to (irc) + -c CHANNEL, --channel=CHANNEL + channel to join + -l LOGLEVEL, --loglevel=LOGLEVEL + loglevel of the bot + -p PASSWORD, --password=PASSWORD + set password used to connect to the server + --name=NAME bot's name + --port=PORT set port of server to connect to + --save save to config file + -n NICK, --nick=NICK nick of the bot + +.SH "DOCUMENTATION" +See http://jsonbot.org or http://jsonbot.appspot.com/docs for more documentation + +.SH "SEE ALSO" +jsb(1), jsb-backup(1), jsb-init(1), jsb-irc(1), jsb-fleet(1), jsb-stop(1), +jsb-udp(1), jsb-xmpp(1) + + +.SH AUTHOR +This manual page was written by Bart Thate , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsb-stop.1 +++ jsonbot-0.84.4/debian/jsb-stop.1 @@ -0,0 +1,33 @@ +.TH JSONBOT 1 "22 Nov 2011" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb-stop \- The JSONBOT stop program +.SH SYNOPSIS +.B jsb-stop +stops a running JSONBOT +.B +.SH "DESCRIPTION" +.P +If you need to stop a running JSONBOT (shell) you can do that with this +program. It uses a pid file found in the /run directory. +.PP +.SH USAGE +.P +.B Usage: jsb-stop + +Options: + --version show program's version number and exit + -h, --help show this help message and exit + -d DATADIR, --datadir=DATADIR + datadir to use + +.SH "DOCUMENTATION" +See http://jsonbot.org for more documentation or see +http://jsonbot.googlecode.com + +.SH "SEE ALSO" +jsb(1), jsb-backup(1), jsb-init(1), jsb-irc(1), jsb-xmpp(1), jsb-fleet(1), +jsb-tornado(1), jsb-udp(1), jsonbot(1) + +.SH AUTHOR +This manual page was written by Bart Thate , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsb-tornado.1 +++ jsonbot-0.84.4/debian/jsb-tornado.1 @@ -0,0 +1,45 @@ +.TH JSONBOT 1 "22 Nov 2011" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb-tornado \- The JSONBOT web console +.SH SYNOPSIS +.B jsb-tornado +is the web console program build on the JSONBOT framework +.P +.B +.SH "DESCRIPTION" +.P +.B jsb-tornado +runs on port 10102 and when accesed gives a web console that you can use to +give commands and receive notifications on. +.PP +.SH USAGE +.P +.B Usage: jsb-tornado [options] + +Options: + --version show program's version number and exit + -h, --help show this help message and exit + -r PATH resume the bot from the folder specified + -o OWNER, --owner=OWNER + owner of the bot + -d DATADIR, --datadir=DATADIR + datadir to use + -l LOGLEVEL, --loglevel=LOGLEVEL + logging level + -p PORT, --port=PORT servers listening port + -f, --fleet enable the fleet + -b, --bork bork on exception + --colors enable the use of colors in logging + --ssl enable ssl on the server + +.SH "DOCUMENTATION" +See http://jsonbot.org for more documentation or see +http://jsonbot.googlecode.com + +.SH "SEE ALSO" +jsb(1), jsb-backup(1), jsb-init(1), jsb-irc(1), jsb-xmpp(1), jsb-fleet(1), +jsb-stop(1), jsb-udp(1), jsonbot(1) + +.SH AUTHOR +This manual page was written by Bart Thate , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsb-udp.1 +++ jsonbot-0.84.4/debian/jsb-udp.1 @@ -0,0 +1,43 @@ +.TH JSONBOT 1 "22 Nov 2011" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb-udp \- The JSONBOT udp program +.SH SYNOPSIS +JSONBOT is a remote event-driven framework for building bots that talk JSON +to each other over XMPP. +.B jsb-udp +can send txt in a udp packet to the bot which in his/her turn sends it to a channel. +.B +.SH "DESCRIPTION" +.P +Sometimes you want to have the output of a program send to a channel or +conference the bot is participating in, for example logfiles (if they dont +accumulate too fast). JSONBOT provides a plugin that can do this with the +use of UDP packets send to the bot. This program is the client part and can +be used to send txt pipelined into it to a UDP port on the listening bot. +This bot will then forward the txt to the channel provided with the -p, +--printto option. +.PP +.SH USAGE +.P +.B Usage: jsb-udp [options] + +Options: + --version show program's version number and exit + -h, --help show this help message and exit + -p PATH, --printto=PATH + channel/user to print to + -c CONFIGNAME, --config=CONFIGNAME + Specify a config file + -s, --save save to config file + +.SH "DOCUMENTATION" +See http://jsonbot.org for more documentation or +http://jsonbot.googlecode.com + +.SH "SEE ALSO" +jsb(1), jsb-backup(1), jsb-init(1), jsb-irc(1), jsb-xmpp(1), jsb-fleet(1), +jsb-stop(1), jsonbot(1) + +.SH AUTHOR +This manual page was written by Bart Thate , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsb-xmpp.1 +++ jsonbot-0.84.4/debian/jsb-xmpp.1 @@ -0,0 +1,57 @@ +.TH JSONBOT 1 "22 Nov 2011" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb-xmpp \- The JSONBOT XMPP (Jabber) program +.SH SYNOPSIS +JSONBOT is a remote event-driven framework for building bots that talk JSON +to each other over XMPP. +.B jsb-xmpp +is the shell XMPP program build on this framework +.P + +.B +.SH "DESCRIPTION" +.P +.B jsb-xmpp +can connect to Jabber servers, join a conference and react on /msg. It uses +TLS to connect to these servers on the default 5222 port. +.PP +.SH USAGE +.P +Usage: jsb-xmpp [options] + +Options: + --version show program's version number and exit + -h, --help show this help message and exit + -r PATH resume the bot from the folder specified + -d DATADIR, --datadir=DATADIR + datadir of the bot + -u USER, --user=USER JID of the bot + -o OWNER, --owner=OWNER + owner of the bot + -s SERVER, --server=SERVER + server to connect to (irc) + -c CHANNEL, --channel=CHANNEL + channel to join + -l LOGLEVEL, --loglevel=LOGLEVEL + loglevel of the bot + -p PASSWORD, --password=PASSWORD + set password used to connect to the server + --openfire enable openfire mode + --register try to register the user on the server + --name=NAME bot's name + --port=PORT set port of server to connect to + --save save to config file + --colors enable the use of colors + -n NICK, --nick=NICK nick of the bot + +.SH "DOCUMENTATION" +See http://jsonbot.org or http://jsonbot.appspot.com/docs for more documentation + +.SH "SEE ALSO" +jsb(1), jsb-backup(1), jsb-init(1), jsb-irc(1), jsb-fleet(1), jsb-stop(1), +jsb-udp(1), jsb-sleek(1) + + +.SH AUTHOR +This manual page was written by Bart Thate , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsb.1 +++ jsonbot-0.84.4/debian/jsb.1 @@ -0,0 +1,41 @@ +.TH JSONBOT 1 "22 Nov 2011" "Debian GNU/Linux" "jsb manual" +.SH NAME +.B jsb \- The JSONBOT console program +.SH SYNOPSIS +.B jsb +is the console app build on the JSONBOT framework +.B +.SH "DESCRIPTION" +.B jsb +is mainly used to quickly debug new written plugins, so you can test them +without having to run a network connected bot. +.PP +.SH USAGE +.P +.B Usage: jsb [options] + +Options: + --version show program's version number and exit + -h, --help show this help message and exit + -d DATADIR, --datadir=DATADIR + datadir to use + -x COMMAND, --execute=COMMAND + command to execute + -c CHANNEL, --channel=CHANNEL + channel to operate on + -n NAME, --name=NAME name of the console bot + -l LOGLEVEL, --loglevel=LOGLEVEL + logging level + + +.SH "DOCUMENTATION" +See http://jsonbot.org for more documentation or see +http://jsonbot.googlecode.com + +.SH "SEE ALSO" +jsb-backup(1), jsb-init(1), jsb-irc(1), jsb-xmpp(1), jsb-fleet(1), jsb-tornado(1), +jsb-sed(1), jsb-stop(1), jsb-udp(1), jsonbot(1) + +.SH AUTHOR +This manual page was written by Bart Thate , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsonbot.1 +++ jsonbot-0.84.4/debian/jsonbot.1 @@ -0,0 +1,54 @@ +.TH JSONBOT 1 "22 Nov 2011" "Debian GNU/Linux" "jsb manual" +.SH NAME +JSONBOT \- The JSON everywhere bot! +.SH SYNOPSIS +JSONBOT is a remote event-driven framework for building bots that talk JSON +to each other over XMPP. This manual page documents briefly the +.B jsb +distribution.. +.P +.B +.SH "DESCRIPTION" +.P + +This distribution provides bots built on this framework for console, IRC, +XMPP, Convore and WWW on the shell. + +.PP +.SH USAGE +JSONBOT uses command line options to configure a bot. See the --help option to get more help on a command +options or see the corresponding man page. +.PP + +the jsb pakage contains the following programs: + + * jsb - console version of jsb + * jsb-backup - create backup of JSONBOT datadir + * jsb-convore - convore version of jsb + * jsb-init - create data directory and config examples, default ~/.jsb + * jsb-irc - IRC version of jsb + * jsb-fleet - mix IRC and XMPP bots + * jsb-sed - sed a whole directory + * jsb-stop - stop a running bot + * jsb-tornado - a shell web server based on tornado + * jsb-udp - send udp packets to the bot that will relay the data + * jsb-xmpp - XMPP version of jsb + +note: JSONBOT is in BETA stage right now and still subject to change of +protocols and API. + +see http://jsonbot.googlecode.com. +see https://jsonbot.org for documentation on the bot. + +.PP +.SH "SEE ALSO" +The program is documented fully on http://jsonbot.org or see +http://jsonbot.googlecode.com + +.SH "SEE ALSO" +jsb(1), jsb-backup(1), jsb-init(1), jsb-irc(1), jsb-xmpp(1), jsb-fleet(1), +jsb-tornado(1), jsb-stop(1), jsb-udp(1) + +.SH AUTHOR +This manual page was written by Bart Thate , +for the Debian GNU/Linux system (but may be used by others). --- jsonbot-0.84.4.orig/debian/jsonbot.default +++ jsonbot-0.84.4/debian/jsonbot.default @@ -0,0 +1,10 @@ +# Defaults for the jsonbot initscript + +# Set to yes to start a system-wide instance of jsonbot +RUN=no + +# Set to the user jsonbot should run as +RUNUSER=jsb + +# Arguments to jsb-fleet +ARGSTRING="" --- jsonbot-0.84.4.orig/debian/jsonbot.init +++ jsonbot-0.84.4/debian/jsonbot.init @@ -0,0 +1,115 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: jsonbot +# Required-Start: $local_fs $remote_fs $network $named +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: JSONBOT IRC, XMPP and Web robot +# Description: Framework for building bots for IRC, XMPP and the Web +### END INIT INFO + +NAME=jsonbot +DESC="JSONBOT IRC, XMPP and Web robot" +DATADIR=/var/cache/jsb +PIDFILE=/var/run/jsonbot.pid + +PID=`cat $PIDFILE` 2>/dev/null + +# Include jsonbot defaults if available +if [ -f /etc/default/jsonbot ] ; then + . /etc/default/jsonbot +fi + +if [ "$RUN" != "yes" ] ; then + echo "$NAME disabled; edit /etc/default/jsonbot" + exit 0 +fi + +if [ -n "$RUNUSER" ] ; then + RUNUSER=jsb +fi + +status() +{ + test -n "$PID" && ps auxw | grep -v grep | grep jsb-fleet | grep -q -s " $PID " && return 0 + return 1 +} + +stop() +{ + if status + then + kill -KILL $PID + fi +} + +start() +{ + status && exit 1 # already running + if [ -d $DATADIR ]; then + cd $DATADIR + else + mkdir -p $DATADIR + cd $DATADIR + fi + if [ -f config/mainconfig ]; then + su $RUNUSER -c "jsb-fleet -d $DATADIR $ARGSTRING 2>/dev/null &" + echo "" + else + export PYTHONPATH="$PYTHONPATH:/usr/share/pyshared" + su $RUNUSER -c "jsb-init -d /var/cache/jsb" + if ! [ -f /etc/jsonbot/mainconfig ]; then + rm -rf /etc/jsonbot + mv /var/cache/jsb/config /etc/jsonbot + chmod go-rx /etc/jsonbot + fi + rm -rf /var/cache/jsb/config + ln -s /etc/jsonbot /var/cache/jsb/config + echo "" + echo "jsonbot has not been configured. Please edit /etc/jsonbot/mainconfig, and if" + echo "applicable the irc and jabber bot files in /etc/jsonbot/fleet, then run this" + echo "script again to start jsonbot." + fi +} + +case "$1" in +start) + echo -n "Starting $DESC: $NAME" + start + case "$?" in + 0) echo "." ; exit 0 ;; + 1) echo " (already running)." ; exit 0 ;; + *) echo " (failed)." ; exit 1 ;; + esac + ;; +stop) + echo -n "Stopping $DESC: $NAME" + stop + case "$?" in + 0) echo "." ; exit 0 ;; + 1) echo " (not running)." ; exit 0 ;; + *) echo " (failed)." ; exit 1 ;; + esac + ;; +restart|force-reload|reload) + echo -n "Restarting $DESC: $NAME" + stop + start + ;; +status) + echo -n "Status of $DESC service: " + status + case "$?" in + 0) echo "running." ; exit 0 ;; + 1) echo "not running." ; exit 3 ;; + esac + ;; +*) + echo "Usage: /etc/init.d/jsonbot {start|stop|reload|force-reload|restart|status}" >&2 + exit 1 + ;; +esac + +*t --- jsonbot-0.84.4.orig/debian/jsonbot.postinst +++ jsonbot-0.84.4/debian/jsonbot.postinst @@ -0,0 +1,56 @@ +#!/bin/sh +# postinst script for jsonbot +# +# see: dh_installdeb(1) +. /usr/share/debconf/confmodule + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + # If jsonbot was never installed before + if ! getent passwd jsb >/dev/null; then + adduser --disabled-password --quiet --system \ + --home /var/cache/jsb --no-create-home \ + --shell /bin/sh --gecos "JSONBOT" --group jsb + fi + if ! [ -d /var/cache/jsb ]; then + mkdir /var/cache/jsb 2>/dev/null + fi + if ! [ -d /var/log/jsb ]; then + mkdir /var/log/jsb 2>/dev/null + fi + chown -R jsb:jsb /var/cache/jsb + chown jsb:jsb /var/log/jsb + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- jsonbot-0.84.4.orig/debian/jsonbot.postrm +++ jsonbot-0.84.4/debian/jsonbot.postrm @@ -0,0 +1,47 @@ +#!/bin/sh +# postrm script for jsonbot +# +# see: dh_installdeb(1) +. /usr/share/debconf/confmodule + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + deluser --force --quiet --system jsb > /dev/null || true + delgroup --quiet --system jsb > /dev/null || true + rm -rf /var/cache/jsb > /dev/null + rm -rf /var/log/jsb > /dev/null + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- jsonbot-0.84.4.orig/debian/manpages +++ jsonbot-0.84.4/debian/manpages @@ -0,0 +1,14 @@ +debian/jsb.1 +debian/jsb-convore.1 +debian/jsb-fleet.1 +debian/jsb-init.1 +debian/jsb-irc.1 +debian/jsb-run.1 +debian/jsb-stop.1 +debian/jsb-udp.1 +debian/jsb-xmpp.1 +debian/jsb-sed.1 +debian/jsb-tornado.1 +debian/jsb-backup.1 +debian/jsb-sleek.1 +debian/jsonbot.1 --- jsonbot-0.84.4.orig/debian/rules +++ jsonbot-0.84.4/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +# Unset the environment variables set by dpkg-buildpackage. (This is +# necessary because distutils is brittle with compiler/linker flags +# set. Specifically, packages using f2py will break without this.) +unexport CPPFLAGS +unexport CFLAGS +unexport CXXFLAGS +unexport FFLAGS +unexport LDFLAGS + +override_dh_auto_install: + python setup.py install --root=debian/jsonbot --install-layout=deb --install-scripts=/usr/bin + #ln -s debian/jsonbot/data/examples debian/jsonbot/usr/shared/pyshared/jsb/examples + rm -rf debian/jsonbot/usr/jsb + rm -f debian/jsonbot/usr/bin/jsb-upgrade + rm -f debian/jsonbot/usr/bin/jsb-sed + rm -rf debian/jsonbot/usr/lib/python2.7/dist-packages/jsb/contrib/simplejson + rm -f debian/jsonbot/usr/lib/python2.7/dist-packages/jsb/contrib/oauth.py + rm -f debian/jsonbot/usr/lib/python2.7/dist-packages/jsb/contrib/tweepy/oauth.py + rm -f debian/jsonbot/usr/lib/python2.7/dist-packages/jsb/contrib/feedparser.py + rm -rf debian/jsonbot/usr/lib/python2.7/dist-packages/jsb/contrib/tornado + +override_dh_auto_build: + +%: + dh $@ --with python2 --- jsonbot-0.84.4.orig/jsb.egg-info/PKG-INFO +++ jsonbot-0.84.4/jsb.egg-info/PKG-INFO @@ -1,4 +1,4 @@ -Metadata-Version: 1.0 +Metadata-Version: 1.1 Name: jsb Version: 0.84.4 Summary: The bot for you! --- jsonbot-0.84.4.orig/jsb.egg-info/SOURCES.txt +++ jsonbot-0.84.4/jsb.egg-info/SOURCES.txt @@ -1,6 +1,7 @@ Changelog MANIFEST.in README +setup.cfg setup.py bin/jsb bin/jsb-backup