From 0a9edab10608810f6fd2d6d08732202b3808bb97 Mon Sep 17 00:00:00 2001 From: ant Date: Tue, 12 Apr 2011 11:31:30 -0700 Subject: [PATCH 1/3] new package: add package 'sickbeard' Signed-off-by: ant --- .../network/sickbeard/init.d/60_sickbeard | 39 +++++++++++++++++++ packages/network/sickbeard/install | 27 +++++++++++++ packages/network/sickbeard/meta | 36 +++++++++++++++++ scripts/image | 3 ++ 4 files changed, 105 insertions(+) create mode 100644 packages/network/sickbeard/init.d/60_sickbeard create mode 100755 packages/network/sickbeard/install create mode 100644 packages/network/sickbeard/meta diff --git a/packages/network/sickbeard/init.d/60_sickbeard b/packages/network/sickbeard/init.d/60_sickbeard new file mode 100644 index 0000000000..4d25dc786a --- /dev/null +++ b/packages/network/sickbeard/init.d/60_sickbeard @@ -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 Sickbeard downloader daemon +# +# runlevels: openelec, textmode + + +( + if [ -f /var/config/settings.conf ]; then + . /var/config/settings.conf + + if [ "$SABNZBD_START" = "true" ]; then + + wait_for_network + + progress "Starting sickbeard downloader daemon" + + python /usr/lib/sickbeard/SickBeard.py --datadir $HOME/.sickbeard/ + fi + fi +)& diff --git a/packages/network/sickbeard/install b/packages/network/sickbeard/install new file mode 100755 index 0000000000..b798c73f35 --- /dev/null +++ b/packages/network/sickbeard/install @@ -0,0 +1,27 @@ +#!/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/lib/$1 + cp -PR $PKG_BUILD/* $INSTALL/usr/lib/$1 + diff --git a/packages/network/sickbeard/meta b/packages/network/sickbeard/meta new file mode 100644 index 0000000000..0d4bad32ff --- /dev/null +++ b/packages/network/sickbeard/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="sickbeard" +PKG_VERSION="12.04.11" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="OSS" +PKG_SITE="http://antant.openelec.tv/" +PKG_URL="http://antant.openelec.tv/${PKG_NAME}-${PKG_VERSION}.tar.bz2" +PKG_DEPENDS="Cheetah pyOpenSSL yenc unrar unzip par2cmdline" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="plugins" +PKG_SHORTDESC="Sickbeard: automated TV show downloading." +PKG_LONGDESC="Sickbeard: automated TV show downloading." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/scripts/image b/scripts/image index be88987768..136e57d2df 100755 --- a/scripts/image +++ b/scripts/image @@ -101,6 +101,9 @@ mkdir -p $INSTALL # SABnzbd support [ "$SABNZBD" = "yes" ] && $SCRIPTS/install SABnzbd +# Sickbeard support + [ "$SICKBEARD" = "yes" ] && $SCRIPTS/install sickbeard + # Graphic support [ ! "$DISPLAYSERVER" = "no" ] && $SCRIPTS/install $DISPLAYSERVER From e4ac69858486a22e7d9000aa8b98d5521ff36c5f Mon Sep 17 00:00:00 2001 From: ant Date: Tue, 12 Apr 2011 11:53:09 -0700 Subject: [PATCH 2/3] SickBeard: changed install setting Signed-off-by: ant --- packages/network/sickbeard/init.d/60_sickbeard | 1 + packages/network/sickbeard/install | 1 + packages/network/sickbeard/meta | 1 + projects/Generic/options | 3 --- scripts/image | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/network/sickbeard/init.d/60_sickbeard b/packages/network/sickbeard/init.d/60_sickbeard index 4d25dc786a..86b7d1bcd7 100644 --- a/packages/network/sickbeard/init.d/60_sickbeard +++ b/packages/network/sickbeard/init.d/60_sickbeard @@ -1,6 +1,7 @@ ################################################################################ # This file is part of OpenELEC - http://www.openelec.tv # Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# Copyright (C) 2011 Anthony Nash (nash.ant@gmail.com) # # 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 diff --git a/packages/network/sickbeard/install b/packages/network/sickbeard/install index b798c73f35..8572c4948f 100755 --- a/packages/network/sickbeard/install +++ b/packages/network/sickbeard/install @@ -3,6 +3,7 @@ ################################################################################ # This file is part of OpenELEC - http://www.openelec.tv # Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# Copyright (C) 2011 Anthony Nash (nash.ant@gmail.com) # # 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 diff --git a/packages/network/sickbeard/meta b/packages/network/sickbeard/meta index 0d4bad32ff..ec11589f7b 100644 --- a/packages/network/sickbeard/meta +++ b/packages/network/sickbeard/meta @@ -1,6 +1,7 @@ ################################################################################ # This file is part of OpenELEC - http://www.openelec.tv # Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# Copyright (C) 2011 Anthony Nash (nash.ant@gmail.com) # # 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 diff --git a/projects/Generic/options b/projects/Generic/options index 401b75d446..dd56dc0e02 100644 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -147,9 +147,6 @@ # build and install SABnzbd Newsgroup downloader daemon (yes / no) SABNZBD="yes" -# build and install SickBeard Newsgroup downloader daemon (yes / no) - SICKBEARD="yes" - # build and install some tools for including in release (yes / no) # some of this tools are: htop, nano, wgetpaste TOOLS="yes" diff --git a/scripts/image b/scripts/image index 136e57d2df..9d0a03f8ae 100755 --- a/scripts/image +++ b/scripts/image @@ -102,7 +102,7 @@ mkdir -p $INSTALL [ "$SABNZBD" = "yes" ] && $SCRIPTS/install SABnzbd # Sickbeard support - [ "$SICKBEARD" = "yes" ] && $SCRIPTS/install sickbeard + [ "$SABNZBD" = "yes" ] && $SCRIPTS/install sickbeard # Graphic support [ ! "$DISPLAYSERVER" = "no" ] && $SCRIPTS/install $DISPLAYSERVER From 9415db9412b58a7fd656441b9ecd3a5246fbc6bb Mon Sep 17 00:00:00 2001 From: ant Date: Tue, 12 Apr 2011 12:00:15 -0700 Subject: [PATCH 3/3] Sickbeard: removed from project option files Signed-off-by: ant --- projects/ATV/options | 3 --- projects/ION/options | 3 --- projects/Intel/options | 3 --- 3 files changed, 9 deletions(-) diff --git a/projects/ATV/options b/projects/ATV/options index 257b1a8a52..82e3413434 100644 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -147,9 +147,6 @@ # build and install SABnzbd Newsgroup downloader daemon (yes / no) SABNZBD="no" -# build and install SickBeard Newsgroup downloader daemon (yes / no) - SICKBEARD="no" - # build and install some tools for including in release (yes / no) # some of this tools are: htop, nano, wgetpaste TOOLS="yes" diff --git a/projects/ION/options b/projects/ION/options index 37a240c669..f1ea80a585 100644 --- a/projects/ION/options +++ b/projects/ION/options @@ -147,9 +147,6 @@ # build and install SABnzbd Newsgroup downloader daemon (yes / no) SABNZBD="yes" -# build and install SickBeard Newsgroup downloader daemon (yes / no) - SICKBEARD="yes" - # build and install some tools for including in release (yes / no) # some of this tools are: htop, nano, wgetpaste TOOLS="yes" diff --git a/projects/Intel/options b/projects/Intel/options index 4ba0b2c70c..0210911a24 100644 --- a/projects/Intel/options +++ b/projects/Intel/options @@ -147,9 +147,6 @@ # build and install SABnzbd Newsgroup downloader daemon (yes / no) SABNZBD="yes" -# build and install SickBeard Newsgroup downloader daemon (yes / no) - SICKBEARD="yes" - # build and install some tools for including in release (yes / no) # some of this tools are: htop, nano, wgetpaste TOOLS="yes"