SABnzbd and SICKbeard on FreeBSD

For my own archives, I have reproduced installation instructions for SABnzbd and Sickbeard on FreeBSD from Syah of the FreeBSD forums (titled: FreeBSD +Sabnzbd/Sickbeard/CouchPotato):

1. install sabnzbd+ from ports.

# cd /usr/ports/news/sabnzbdplus; make install clean

  1. install some dependencies if they are not already present on your system. Needed to run & acquire python scripts (Sick Beard, Couch Potato, Headphones)

Python # cd /usr/ports/lang/python; make install clean

Cheetah # cd /usr/ports/devel/py-cheetah; make install clean

Git # cd /usr/ports/devel/git; make install clean

3. Fetch most recent builds of the three tools

Sick Beard # cd /usr/local ; git clone git://github.com/midgetspy/Sick-Beard.git sickbeard

4. Configure auto-start for python scripts and sabnzbd+

Sick Beard # cp /usr/local/sickbeard/init.freebsd /usr/local/etc/rc.d/sickbeard

Add the following to /etc/rc.conf:
sabnzbd_enable="YES"
sickbeard_enable="YES"

5. configure all the tools to play nice together.

Totally beyond the scope of a quick & dirty update. You should read the installation instructions and refer to the individual websites for each of these projects to fully leverage this tool set.

Hopefully this gets you a bit further towards your goal.
To keep track of upstream changes to SickBeard:
# cd /usr/local/sickbeard && git pull

A few notes:

  • Step 4. will fail as SickBeard currently only comes with an Ubuntu startup script. Hatchling, from the SickBeard Forums (A FreeBSD rc.d script), kindly published a working copy of a FreeBSD rc script that is available here (and duplicated here.)
    It appears that an init script for FreeBSD is now provided with the latest git pull - unfortunately, it’s not perfect, and needs to be modified for SickBeard to shut down properly.
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14

    diff --git a/init.freebsd b/init.freebsd
    index 8d9ba4b..3f65b31 100755
    --- a/init.freebsd
    +++ b/init.freebsd
    @@ -69,7 +69,7 @@ verify_sickbeard_pid() {
    sickbeard_stop() {
    echo "Stopping $name"
    verify_sickbeard_pid
    - ${WGET} -O - -q --user=${SBUSR} --password=${SBPWD} "http://${HOST}:${PORT}/home/shutdown/" >/dev/null
    + ${WGET} -O - -q --user=${SBUSR} --password=${SBPWD} "http://${HOST}:${PORT}/home/shutdown/?pid=${pid}" >/dev/null
    if [ -n "${pid}" ]; then
    wait_for_pids ${pid}
    echo "Stopped"