mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
SABnzbd: inital convert to addon, needs some more work
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
80903c5d7f
commit
0ea96108c5
36
packages/addons/downloadmanager/SABnzbd/addon
Executable file
36
packages/addons/downloadmanager/SABnzbd/addon
Executable file
@ -0,0 +1,36 @@
|
|||||||
|
#!/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 $ADDON_BUILD/$PKG_ADDON_ID/$1
|
||||||
|
cp -PR $PKG_BUILD/* $ADDON_BUILD/$PKG_ADDON_ID/$1
|
||||||
|
|
||||||
|
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
cp $BUILD/par2cmdline*/par2 $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
cp $BUILD/unrar/unrar $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
cp $BUILD/unzip*/unzip $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
|
||||||
|
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/pylib
|
||||||
|
cp -R $BUILD/Cheetah*/.install/usr/lib/python*/site-packages/* $ADDON_BUILD/$PKG_ADDON_ID/pylib
|
||||||
|
cp -R $BUILD/pyOpenSSL*/.install/usr/lib/python*/site-packages/* $ADDON_BUILD/$PKG_ADDON_ID/pylib
|
||||||
|
cp -R $BUILD/yenc*/.install/usr/lib/python*/site-packages/* $ADDON_BUILD/$PKG_ADDON_ID/pylib
|
2
packages/addons/downloadmanager/SABnzbd/changelog.txt
Normal file
2
packages/addons/downloadmanager/SABnzbd/changelog.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
0.99.1
|
||||||
|
- initial version SABnzbd-0.6.0RC2
|
BIN
packages/addons/downloadmanager/SABnzbd/icon/icon.png
Normal file
BIN
packages/addons/downloadmanager/SABnzbd/icon/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
@ -27,11 +27,13 @@ PKG_SITE="http://sabnzbd.org/"
|
|||||||
#PKG_URL="$SOURCEFORGE_SRC/sabnzbdplus/${PKG_NAME}-${PKG_VERSION}-src.tar.gz"
|
#PKG_URL="$SOURCEFORGE_SRC/sabnzbdplus/${PKG_NAME}-${PKG_VERSION}-src.tar.gz"
|
||||||
PKG_URL="$SOURCEFORGE_SRC/sabnzbdplus/sabnzbdplus-beta/sabnzbd-${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}-src.tar.gz"
|
PKG_URL="$SOURCEFORGE_SRC/sabnzbdplus/sabnzbdplus-beta/sabnzbd-${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}-src.tar.gz"
|
||||||
PKG_DEPENDS="Python Cheetah pyOpenSSL yenc unrar unzip par2cmdline"
|
PKG_DEPENDS="Python Cheetah pyOpenSSL yenc unrar unzip par2cmdline"
|
||||||
PKG_BUILD_DEPENDS="toolchain Python"
|
PKG_BUILD_DEPENDS="toolchain Python Cheetah pyOpenSSL yenc unrar unzip par2cmdline"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="plugins"
|
PKG_SECTION="downloadmanager"
|
||||||
PKG_SHORTDESC="SABnzbd makes Usenet as simple and streamlined as possible by automating everything we can."
|
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 a .nzb file. SABnzbd+ takes over from there, where it will be automatically downloaded, verified, repaired, extracted and filed away with zero human interaction."
|
PKG_LONGDESC="SABnzbd makes Usenet as simple and streamlined as possible by automating everything we can. All you have to do is add a .nzb file. 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_IS_ADDON="yes"
|
||||||
|
PKG_ADDON_TYPE="xbmc.service"
|
||||||
|
|
||||||
PKG_AUTORECONF="no"
|
PKG_AUTORECONF="no"
|
14
packages/downloadmanager/SABnzbd/install → packages/addons/downloadmanager/SABnzbd/source/default.py
Executable file → Normal file
14
packages/downloadmanager/SABnzbd/install → packages/addons/downloadmanager/SABnzbd/source/default.py
Executable file → Normal file
@ -1,5 +1,3 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||||
@ -20,11 +18,9 @@
|
|||||||
# http://www.gnu.org/copyleft/gpl.html
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
. config/options $1
|
import sys
|
||||||
|
import xbmcaddon
|
||||||
|
import os
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/lib/$1
|
if ( __name__ == "__main__" ):
|
||||||
cp -PR $PKG_BUILD/* $INSTALL/usr/lib/$1
|
os.system("sh start.sh")
|
||||||
|
|
||||||
mkdir -p $INSTALL/etc/avahi/services
|
|
||||||
cp $PKG_DIR/config/sabnzbd-http.service $INSTALL/etc/avahi/services
|
|
||||||
cp $PKG_DIR/config/sabnzbd-https.service $INSTALL/etc/avahi/services
|
|
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
|
<strings>
|
||||||
|
|
||||||
|
<!-- SABnzbd -->
|
||||||
|
<string id="1000">SABnzbd</string>
|
||||||
|
<string id="1010">Gebruikers instellingen</string>
|
||||||
|
<string id="1021">Gebruik verificatie</string>
|
||||||
|
<string id="1022">Gebruikersnaam</string>
|
||||||
|
<string id="1023">Wachtwoord</string>
|
||||||
|
<string id="2010">Netwerk instellingen</string>
|
||||||
|
<string id="2021">Toegestane IP adressen</string>
|
||||||
|
|
||||||
|
</strings>
|
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
|
<strings>
|
||||||
|
|
||||||
|
<!-- SABnzbd -->
|
||||||
|
<string id="1000">SABnzbd</string>
|
||||||
|
<string id="1010">User Settings</string>
|
||||||
|
<string id="1021">Use authentification</string>
|
||||||
|
<string id="1022">Username</string>
|
||||||
|
<string id="1023">Password</string>
|
||||||
|
<string id="2010">Network Settings</string>
|
||||||
|
<string id="2021">Allowed IP addresses</string>
|
||||||
|
|
||||||
|
</strings>
|
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
|
<strings>
|
||||||
|
|
||||||
|
<!-- SABnzbd -->
|
||||||
|
<string id="1000">SABnzbd</string>
|
||||||
|
<string id="1010">Préférences utilisateur</string>
|
||||||
|
<string id="1021">Utiliser une authentification</string>
|
||||||
|
<string id="1022">Nom d'utilisateur</string>
|
||||||
|
<string id="1023">Mot de passe</string>
|
||||||
|
<string id="2010">Préférences réseau</string>
|
||||||
|
<string id="2021">Adresses IP autorisées</string>
|
||||||
|
|
||||||
|
</strings>
|
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
|
<strings>
|
||||||
|
|
||||||
|
<!-- SABnzbd -->
|
||||||
|
<string id="1000">SABnzbd</string>
|
||||||
|
<string id="1010">Benutzer Einstellungen</string>
|
||||||
|
<string id="1021">Authentifizierung verwenden</string>
|
||||||
|
<string id="1022">Benutzername</string>
|
||||||
|
<string id="1023">Passwort</string>
|
||||||
|
<string id="2010">Netzwerk Einstellungen</string>
|
||||||
|
<string id="2021">Erlaubte IP Adressen</string>
|
||||||
|
|
||||||
|
</strings>
|
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
|
<strings>
|
||||||
|
|
||||||
|
<!-- SABnzbd -->
|
||||||
|
<string id="1000">SABnzbd</string>
|
||||||
|
<string id="1010">Bruker Instillinger</string>
|
||||||
|
<string id="1021">Bruk inlogging</string>
|
||||||
|
<string id="1022">Brukernavn</string>
|
||||||
|
<string id="1023">Passord</string>
|
||||||
|
<string id="2010">Nettverksinstillinger</string>
|
||||||
|
<string id="2021">Tilatte IP addresser</string>
|
||||||
|
|
||||||
|
</strings>
|
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
|
<settings>
|
||||||
|
|
||||||
|
<!-- SABnzbd -->
|
||||||
|
<category label="1000">
|
||||||
|
<setting label="1010" type="lsep"/>
|
||||||
|
<setting type="sep" />
|
||||||
|
<setting id="SABNZBD_AUTH" type="bool" label="1021" default="false" />
|
||||||
|
<setting id="SABNZBD_USER" type="text" label="1022" default="openelec" enable="eq(-1,true)"/>
|
||||||
|
<setting id="SABNZBD_PWD" type="text" label="1023" default="openelec" enable="eq(-2,true)"/>
|
||||||
|
|
||||||
|
<setting label="2010" type="lsep"/>
|
||||||
|
<setting type="sep" />
|
||||||
|
<setting id="SABNZBD_IP" type="text" label="2021" default="0.0.0.0"/>
|
||||||
|
</category>
|
||||||
|
</settings>
|
65
packages/addons/downloadmanager/SABnzbd/source/start.sh
Executable file
65
packages/addons/downloadmanager/SABnzbd/source/start.sh
Executable file
@ -0,0 +1,65 @@
|
|||||||
|
#!/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
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
export PATH="$PATH:./bin"
|
||||||
|
export PYTHONPATH="$PYTHONPATH:./pylib"
|
||||||
|
|
||||||
|
SABNZBD_HOME="$HOME/.xbmc/userdata/addon_data/addon.downloadmanager.SABnzbd"
|
||||||
|
SABNZBD_SETTINGS="$SABNZBD_HOME/settings.xml"
|
||||||
|
|
||||||
|
mkdir -p $SABNZBD_HOME
|
||||||
|
|
||||||
|
# if [ ! -f "$SABNZBD_SETTINGS" ]; then
|
||||||
|
# cp settings.xml $SABNZBD_SETTINGS
|
||||||
|
# fi
|
||||||
|
|
||||||
|
mkdir -p /storage/downloads
|
||||||
|
mkdir -p /storage/downloads/incoming
|
||||||
|
mkdir -p /storage/downloads/watch
|
||||||
|
|
||||||
|
# TRANSMISSION_START=`grep TRANSMISSION_START $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
|
||||||
|
# TRANSMISSION_AUTH=`grep TRANSMISSION_AUTH $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
|
||||||
|
# TRANSMISSION_USER=`grep TRANSMISSION_USER $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
|
||||||
|
# TRANSMISSION_PWD=`grep TRANSMISSION_PWD $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
|
||||||
|
# TRANSMISSION_IP=`grep TRANSMISSION_IP $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
|
||||||
|
|
||||||
|
# if [ -z "$TRANSMISSION_IP" ]; then
|
||||||
|
# TRANSMISSION_IP="*.*.*.*"
|
||||||
|
# fi
|
||||||
|
|
||||||
|
# TRANSMISSION_ARG="$TRANSMISSION_ARG -w /storage/downloads"
|
||||||
|
# TRANSMISSION_ARG="$TRANSMISSION_ARG --incomplete-dir /storage/downloads/incoming"
|
||||||
|
# TRANSMISSION_ARG="$TRANSMISSION_ARG --watch-dir /storage/downloads/watch"
|
||||||
|
# TRANSMISSION_ARG="$TRANSMISSION_ARG -e /var/log/transmission.log"
|
||||||
|
# TRANSMISSION_ARG="$TRANSMISSION_ARG -g /storage/.cache/transmission"
|
||||||
|
# TRANSMISSION_ARG="$TRANSMISSION_ARG -a $TRANSMISSION_IP"
|
||||||
|
|
||||||
|
# if [ "$TRANSMISSION_AUTH" = "true" ]; then
|
||||||
|
# TRANSMISSION_ARG="$TRANSMISSION_ARG -t"
|
||||||
|
# TRANSMISSION_ARG="$TRANSMISSION_ARG -u $TRANSMISSION_USER"
|
||||||
|
# TRANSMISSION_ARG="$TRANSMISSION_ARG -v $TRANSMISSION_PWD"
|
||||||
|
# else
|
||||||
|
# TRANSMISSION_ARG="$TRANSMISSION_ARG -T"
|
||||||
|
# fi
|
||||||
|
|
||||||
|
chmod +x ./bin/*
|
||||||
|
python ./SABnzbd/SABnzbd.py -d -f $SABNZBD_HOME/sabnzbd.conf -l 0 > /dev/null 2>&1
|
@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
|
|
||||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
|
||||||
<service-group>
|
|
||||||
<name replace-wildcards="yes">SABnzbd Server on %h</name>
|
|
||||||
<service>
|
|
||||||
<type>_http._tcp</type>
|
|
||||||
<port>8081</port>
|
|
||||||
<txt-record>path=/index.html</txt-record>
|
|
||||||
</service>
|
|
||||||
</service-group>
|
|
@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
|
|
||||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
|
||||||
<service-group>
|
|
||||||
<name replace-wildcards="yes">SABnzbd Server on %h (secured)</name>
|
|
||||||
<service>
|
|
||||||
<type>_http._tcp</type>
|
|
||||||
<port>8082</port>
|
|
||||||
<txt-record>path=/index.html</txt-record>
|
|
||||||
</service>
|
|
||||||
</service-group>
|
|
@ -141,9 +141,6 @@
|
|||||||
# build and install Samba Server (yes / no)
|
# build and install Samba Server (yes / no)
|
||||||
SAMBA_SERVER="yes"
|
SAMBA_SERVER="yes"
|
||||||
|
|
||||||
# build and install SABnzbd Newsgroup downloader daemon (yes / no)
|
|
||||||
SABNZBD="no"
|
|
||||||
|
|
||||||
# build and install some tools for including in release (yes / no)
|
# build and install some tools for including in release (yes / no)
|
||||||
# some of this tools are: htop, nano, wgetpaste
|
# some of this tools are: htop, nano, wgetpaste
|
||||||
TOOLS="yes"
|
TOOLS="yes"
|
||||||
|
@ -141,9 +141,6 @@
|
|||||||
# build and install Samba Server (yes / no)
|
# build and install Samba Server (yes / no)
|
||||||
SAMBA_SERVER="yes"
|
SAMBA_SERVER="yes"
|
||||||
|
|
||||||
# build and install SABnzbd Newsgroup downloader daemon (yes / no)
|
|
||||||
SABNZBD="yes"
|
|
||||||
|
|
||||||
# build and install some tools for including in release (yes / no)
|
# build and install some tools for including in release (yes / no)
|
||||||
# some of this tools are: htop, nano, wgetpaste
|
# some of this tools are: htop, nano, wgetpaste
|
||||||
TOOLS="yes"
|
TOOLS="yes"
|
||||||
|
@ -141,9 +141,6 @@
|
|||||||
# build and install Samba Server (yes / no)
|
# build and install Samba Server (yes / no)
|
||||||
SAMBA_SERVER="yes"
|
SAMBA_SERVER="yes"
|
||||||
|
|
||||||
# build and install SABnzbd Newsgroup downloader daemon (yes / no)
|
|
||||||
SABNZBD="yes"
|
|
||||||
|
|
||||||
# build and install some tools for including in release (yes / no)
|
# build and install some tools for including in release (yes / no)
|
||||||
# some of this tools are: htop, nano, wgetpaste
|
# some of this tools are: htop, nano, wgetpaste
|
||||||
TOOLS="yes"
|
TOOLS="yes"
|
||||||
|
@ -141,9 +141,6 @@
|
|||||||
# build and install Samba Server (yes / no)
|
# build and install Samba Server (yes / no)
|
||||||
SAMBA_SERVER="yes"
|
SAMBA_SERVER="yes"
|
||||||
|
|
||||||
# build and install SABnzbd Newsgroup downloader daemon (yes / no)
|
|
||||||
SABNZBD="yes"
|
|
||||||
|
|
||||||
# build and install some tools for including in release (yes / no)
|
# build and install some tools for including in release (yes / no)
|
||||||
# some of this tools are: htop, nano, wgetpaste
|
# some of this tools are: htop, nano, wgetpaste
|
||||||
TOOLS="yes"
|
TOOLS="yes"
|
||||||
|
@ -95,10 +95,6 @@ mkdir -p $INSTALL
|
|||||||
# Network support
|
# Network support
|
||||||
[ "$NETWORK" = "yes" ] && $SCRIPTS/install network
|
[ "$NETWORK" = "yes" ] && $SCRIPTS/install network
|
||||||
|
|
||||||
# SABnzbd support
|
|
||||||
[ "$SABNZBD" = "yes" ] && $SCRIPTS/install SABnzbd
|
|
||||||
[ "$SABNZBD" = "yes" ] && $SCRIPTS/install Sick-Beard
|
|
||||||
|
|
||||||
# Graphic support
|
# Graphic support
|
||||||
[ ! "$DISPLAYSERVER" = "no" ] && $SCRIPTS/install $DISPLAYSERVER
|
[ ! "$DISPLAYSERVER" = "no" ] && $SCRIPTS/install $DISPLAYSERVER
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user