RaumZeitChef IRC-bot
Perl Perl6
Latest commit 4661dc6 Mar 4, 2016 @maikf maikf Ping: migrate to OpenHAB API
Failed to load latest commit information.
debian Add missing MooseX::Singleton dependency May 23, 2014
lib
script IRC: use TLS and enable it by default Apr 28, 2014
.gitignore add .gitignore Apr 23, 2014
LICENSE Add Makefile.PL, LICENSE, README.md and MANIFEST Nov 12, 2011
MANIFEST.SKIP add .service file, fix debian packaging Apr 24, 2014
Makefile.PL IRC: use TLS and enable it by default Apr 28, 2014
README.md add a big fat warning about the state of affairs May 9, 2014
ircbot-chef.rsyslog

README.md

RaumZeitChef ircbot

This git repository contains the source for the RaumZeitChef IRC bot.

script/ircbot-chef
A simple script to run the IRC bot, providing --version.
lib/RaumZeitLabor/IRC/Chef.pm
The bot source code.

Development

WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP

Currently rewriting architecture/plugin system to enable modular testing. In the meantime please run ./script/ircbot-chef and set --channel and set --nick to something appropiate.

WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP WIP

Building a Debian package

The preferred way to deploy code on infra.rzl (where this bot traditionally runs on) is by installing a Debian package. This has many advantages:

  1. When we need to re-install for some reason, the package has the correct dependencies, so installation is easy.

  2. If Debian ships a new version of perl, the script will survive that easily.

  3. A simple dpkg -l | grep -i raumzeit is enough to find all RaumZeitLabor-related packages and their version. The precise location of initscripts, configuration and source code can be displayed by dpkg -L raumzeitchef-ircbot.

To create a Debian package, ensure you have dpkg-dev installed, then run as root to ensure the Modules are installed globally:

sudo dpkg-buildpackage -uc -us

Now you have a package called raumzeitchef-ircbot_$VERSION_all.deb which you can deploy on infra.rzl.

Updating the Debian packaging

If you introduce new dependencies, bump the version or change the description, you have to update the Debian packaging. First, install the packaging tools we are going to use:

apt-get install dh-make-perl

Then, run the following commands:

perl Makefile.PL
make manifest
export DEBFULLNAME='Your Name' DEBEMAIL='your@full.name'
dh-make-perl refresh
debchange --nmu

Inspect the changes to debian/ and commit them.

See also

For more information about Debian packaging, see:

For online documentation about the Perl modules which are used: