A puppet module to install libtorrent and rtorrent from source, with the xmlrpc-c extension, as well as the rutorrent frontend, all on nginx.
The module has been divided into 4 independant stages that by default are all executed. Tested on Ubuntu 14.04 and 14.10
You can run this build with the command puppet apply --modulepath=./modules manifests/rtorrent.pp
- Installs required build dependencies, see the build manifest for packages that are installed
- Builds libtorrent and rtorrent. Roughly does
- Clones libtorrent from official github repo
- ./configure --with-posix-fallocate
- make and make install
- ldconfig
- Clones rtorrent from official github repo
- ./configure --with-xmlrpc-c=/usr/bin/xmlrpc-c-config
- make and make install
- Creates dedicated rtorrent user
- Creates /var/run/rtorrent for temp work
- Creates a default .rtorrent.rc.puppet . Due to the complexity of configuring this file you can symlink to the puppet provided one or create your own
- Creates a service in /etc/init.d to start rtorrent
- Clones rutorrent from official github repo
- Configures to use rtorrent scgi socket file
If you do not have an existing nginx or apache server setup you can use rtorrent::nginx_php which will setup a nginx webserver with php5.
This is not enabled by default