diff --git a/packages/network/SABnzbd/config/SABnzbd.conf b/packages/network/SABnzbd/config/SABnzbd.conf new file mode 100644 index 0000000000..770141d661 --- /dev/null +++ b/packages/network/SABnzbd/config/SABnzbd.conf @@ -0,0 +1,29 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# 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, 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ +# SABnzbd.conf + +# This configuration file allows you to setup 'SABnzbd' a +# Newsgroups downloader daemon + +# Start SABnzbd at boot ( yes / no ) + SABNZBD_START="no" + +# SABnzbd host and port (example: "0.0.0.0:8080") + SABNZBD_HOST="0.0.0.0:8080" diff --git a/packages/network/SABnzbd/init.network/57_SABnzbd b/packages/network/SABnzbd/init.network/57_SABnzbd new file mode 100644 index 0000000000..f2458293c9 --- /dev/null +++ b/packages/network/SABnzbd/init.network/57_SABnzbd @@ -0,0 +1,39 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# 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, 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +# Starting SABnzbd Newsgroup downloader daemon +# +# runlevels: openelec, textmode + +( + if [ -f /storage/.config/SABnzbd.conf ]; then + . /storage/.config/SABnzbd.conf + + if [ "$SABNZBD_START" = "yes" ]; then + + progress "Starting SABnzbd Newsgroup downloader daemon" + + SABNZBD_CONFIG=$HOME/.sabnzbd/sabnzbd.conf + SABNZBD_ARGS="-f $SABNZBD_CONFIG -s $SABNZBD_HOST -l 2" + + python /usr/share/SABnzbd/SABnzbd.py -d $SABNZBD_ARGS > /dev/null 2>&1 + fi + fi +)& diff --git a/packages/network/SABnzbd/install b/packages/network/SABnzbd/install new file mode 100755 index 0000000000..c18b3f3dc6 --- /dev/null +++ b/packages/network/SABnzbd/install @@ -0,0 +1,29 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# 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, 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/share/$1 + cp -PR $PKG_BUILD/* $INSTALL/usr/share/$1 + +mkdir -p $INSTALL/usr/config + cp $PKG_DIR/config/SABnzbd.conf $INSTALL/usr/config diff --git a/packages/network/SABnzbd/meta b/packages/network/SABnzbd/meta new file mode 100644 index 0000000000..02ab002901 --- /dev/null +++ b/packages/network/SABnzbd/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# 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, 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="SABnzbd" +PKG_VERSION="0.5.6" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="OSS" +PKG_SITE="http://sabnzbd.org/" +PKG_URL="$SOURCEFORGE_SRC/sabnzbdplus/${PKG_NAME}-${PKG_VERSION}-src.tar.gz" +PKG_DEPENDS="Cheetah pyOpenSSL yenc unrar unzip par2cmdline" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="plugins" +PKG_SHORTDESC="SABnzbd: makes Usenet as simple and streamlined as possible by automating everything we can." +PKG_LONGDESC="SABnzbd makes Usenet as simple and streamlined as possible by automating everything we can. All you have to do is add an .nzb. SABnzbd takes over from there, where it will be automatically downloaded, verified, repaired, extracted and filed away with zero human interaction." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no"