mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge branch 'master' of github.com:OpenELEC/OpenELEC.tv into openelec-next
This commit is contained in:
commit
1f6825c5e4
@ -24,8 +24,3 @@
|
||||
|
||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/
|
||||
cp -PR $PKG_BUILD/* $ADDON_BUILD/$PKG_ADDON_ID/
|
||||
cp -PR $ADDON_BUILD/$PKG_ADDON_ID/settings_example.py $ADDON_BUILD/$PKG_ADDON_ID/settings.py
|
||||
sed 's/\/path\/to\/maraschino.db/\/storage\/.xbmc\/userdata\/addon_data\/service.web.maraschino\/maraschino.db/' -i $ADDON_BUILD/$PKG_ADDON_ID/settings.py
|
||||
|
||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/pylib
|
||||
cp -R $BUILD/CherryPy*/.install/usr/lib/python*/site-packages/* $ADDON_BUILD/$PKG_ADDON_ID/pylib
|
@ -1,3 +1,7 @@
|
||||
2.1.2
|
||||
- update to maraschino-40e2ce0
|
||||
- add possibilty to start / stop addon from addon manager with enable / disable
|
||||
|
||||
2.1.1
|
||||
- update to addon version 2.1
|
||||
- update to maraschino-707e82c
|
||||
|
@ -19,8 +19,8 @@
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="maraschino"
|
||||
PKG_VERSION="707e82c"
|
||||
PKG_REV="1"
|
||||
PKG_VERSION="40e2ce0"
|
||||
PKG_REV="2"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="OSS"
|
||||
PKG_SITE="http://www.maraschinoproject.com/"
|
||||
|
@ -24,9 +24,8 @@
|
||||
ADDON_DIR="$HOME/.xbmc/addons/service.web.maraschino"
|
||||
ADDON_HOME="$HOME/.xbmc/userdata/addon_data/service.web.maraschino"
|
||||
|
||||
export PYTHONPATH="$PYTHONPATH:$ADDON_DIR/pylib"
|
||||
|
||||
################################################################################
|
||||
# start maraschino
|
||||
################################################################################
|
||||
python $ADDON_DIR/maraschino-cherrypy.py -q
|
||||
python $ADDON_DIR/Maraschino.py --datadir=$ADDON_HOME
|
2
packages/addons/service/web/maraschino/source/bin/maraschino.stop
Executable file
2
packages/addons/service/web/maraschino/source/bin/maraschino.stop
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
kill -9 `ps | grep -E 'python.*/Maraschino.py' | awk '{print $1}'` 2>/dev/null
|
@ -18,6 +18,22 @@
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
import xbmc, time, os, subprocess
|
||||
import xbmc, time, os, subprocess, xbmcaddon
|
||||
|
||||
subprocess.Popen("maraschino.service", shell=True, close_fds=True)
|
||||
__scriptname__ = "maraschino service"
|
||||
__author__ = "OpenELEC"
|
||||
__url__ = "http://www.openelec.tv"
|
||||
__settings__ = xbmcaddon.Addon(id='service.web.maraschino')
|
||||
__cwd__ = __settings__.getAddonInfo('path')
|
||||
__start__ = xbmc.translatePath( os.path.join( __cwd__, 'bin', "maraschino.start") )
|
||||
__stop__ = xbmc.translatePath( os.path.join( __cwd__, 'bin', "maraschino.stop") )
|
||||
|
||||
#make binary files executable in addon bin folder
|
||||
subprocess.Popen("chmod -R +x " + __cwd__ + "/bin/*" , shell=True, close_fds=True)
|
||||
|
||||
subprocess.Popen(__start__, shell=True, close_fds=True)
|
||||
|
||||
while (not xbmc.abortRequested):
|
||||
time.sleep(0.250)
|
||||
|
||||
subprocess.Popen(__stop__, shell=True, close_fds=True)
|
||||
|
@ -63,12 +63,6 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $USER_PASSWORD`"
|
||||
# create /etc/hostname
|
||||
ln -sf /proc/sys/kernel/hostname $INSTALL/etc/hostname
|
||||
|
||||
mkdir -p $INSTALL/etc/modprobe.d
|
||||
cp $PKG_DIR/modprobe.d/* $INSTALL/etc/modprobe.d
|
||||
|
||||
# add user modprobe.d dir
|
||||
mkdir -p $INSTALL/usr/config/modprobe.d
|
||||
|
||||
# add webroot
|
||||
mkdir -p $INSTALL/usr/www
|
||||
echo "It works" > $INSTALL/usr/www/index.html
|
||||
|
@ -35,3 +35,10 @@ mkdir -p $INSTALL/sbin
|
||||
ln -sf /usr/bin/kmod $INSTALL/sbin/modinfo
|
||||
ln -sf /usr/bin/kmod $INSTALL/sbin/modprobe
|
||||
|
||||
# add system modprobe.d dir
|
||||
mkdir -p $INSTALL/etc/modprobe.d
|
||||
cp $PKG_DIR/modprobe.d/* $INSTALL/etc/modprobe.d
|
||||
|
||||
# add user modprobe.d dir
|
||||
mkdir -p $INSTALL/usr/config/modprobe.d
|
||||
|
||||
|
@ -165,3 +165,8 @@ alias gre0 ip_gre
|
||||
|
||||
alias usbdevfs usbcore
|
||||
|
||||
# work around other kernel issues ############################################
|
||||
# The EHCI driver should be loaded before the ones for low speed controllers
|
||||
# or some devices may be confused when they are disconnected and reconnected.
|
||||
softdep uhci-hcd pre: ehci-hcd
|
||||
softdep ohci-hcd pre: ehci-hcd
|
@ -21,7 +21,7 @@
|
||||
|
||||
echo "getting sources..."
|
||||
if [ ! -d hts-tvheadend.git ]; then
|
||||
git clone https://github.com/andoma/tvheadend.git hts-tvheadend.git
|
||||
git clone https://github.com/tvheadend/tvheadend.git hts-tvheadend.git
|
||||
fi
|
||||
|
||||
cd hts-tvheadend.git
|
||||
|
Loading…
x
Reference in New Issue
Block a user