View Single Post
  #3   (View Single Post)  
Old 1st July 2008
Darwimy Darwimy is offline
Port Guard
 
Join Date: Jun 2008
Location: Germany
Posts: 36
Default

I use rTorrent and rtgui a lot, although it has some drawbacks. The first is that the version of xmlrpc-c used with rTorrent on FreeBSD does not support 64 bit integers. You will recognize this by negative traffic shown in rtgui. You will have to get the latest version of xmlrpc-c from the developer's subversion repository and hack the rtorrent port.

Furthermore for rTorrent and rtgui you may want to start it automatically on system startup. Use the following startup script (place it in /usr/local/etc/rc.d/ and set rtorrent_enable=YES in your rc.conf):

It requires the sysutils/screen port.

Code:
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: rtorrent
# REQUIRE: DAEMON
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
# SET THEM IN THE /etc/rc.conf FILE
#

. /etc/rc.subr

name="rtorrent"
rcvar=`set_rcvar`

load_rc_config $name

: ${rtorrent_enable="NO"}
: ${rtorrent_user="your user"}
: ${rtorrent_config="/usr/home/your user/.rtorrent.rc"}

rtorrent_flags="-n -o import=${rtorrent_config} ${rtorrent_flags}"

command="/usr/local/bin/screen"
flags="-d -m rtorrent ${rtorrent_flags}"
procname="rtorrent"

run_rc_command "$1"
Reply With Quote