mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
addons: add first version of oscam to service addons
This commit is contained in:
parent
8a96784240
commit
3ea90cf07f
29
packages/addons/service/softcam/oscam/addon
Executable file
29
packages/addons/service/softcam/oscam/addon
Executable file
@ -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 $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||
cp -P $PKG_BUILD/oscam $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||
cp -PR $PKG_DIR/config/oscam.conf $ADDON_BUILD/$PKG_ADDON_ID/oscam-default.conf
|
||||
|
||||
|
27
packages/addons/service/softcam/oscam/build
Executable file
27
packages/addons/service/softcam/oscam/build
Executable file
@ -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
|
||||
|
||||
cd $PKG_BUILD
|
||||
cmake -DWEBIF=1
|
||||
make
|
2
packages/addons/service/softcam/oscam/changelog.txt
Normal file
2
packages/addons/service/softcam/oscam/changelog.txt
Normal file
@ -0,0 +1,2 @@
|
||||
0.99.1
|
||||
- initial version oscam-5377
|
31
packages/addons/service/softcam/oscam/config/oscam.conf
Normal file
31
packages/addons/service/softcam/oscam/config/oscam.conf
Normal file
@ -0,0 +1,31 @@
|
||||
# oscam.conf generated automatically by Streamboard OSCAM 1.00-unstable_svn build #0
|
||||
# Read more: http://streamboard.gmc.to/svn/oscam/trunk/Distribution/doc/txt/oscam.conf.txt
|
||||
|
||||
[global]
|
||||
usrfile = /storage/.xbmc/userdata/addon_data/service.softcam.oscam/log/oscamuser.log
|
||||
logfile = /storage/.xbmc/userdata/addon_data/service.softcam.oscam/log/oscam.log
|
||||
cwlogdir = /storage/.xbmc/userdata/addon_data/service.softcam.oscam/log/cw
|
||||
nice = -1
|
||||
saveinithistory = 1
|
||||
|
||||
[monitor]
|
||||
port = 988
|
||||
aulow = 120
|
||||
hideclient_to = 15
|
||||
monlevel = 1
|
||||
appendchaninfo = 0
|
||||
|
||||
[webif]
|
||||
httpport = 8888
|
||||
httpuser = oscam
|
||||
httppwd = oscam
|
||||
httpallowed = 0.0.0.0-255.255.255.255
|
||||
|
||||
[anticasc]
|
||||
enabled = 1
|
||||
numusers = 1
|
||||
samples = 5
|
||||
penalty = 1
|
||||
aclogfile = /storage/.xbmc/userdata/addon_data/service.softcam.oscam/log/aclog.log
|
||||
denysamples = 4
|
||||
|
BIN
packages/addons/service/softcam/oscam/icon/icon.png
Normal file
BIN
packages/addons/service/softcam/oscam/icon/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
39
packages/addons/service/softcam/oscam/meta
Normal file
39
packages/addons/service/softcam/oscam/meta
Normal file
@ -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
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="oscam"
|
||||
PKG_VERSION="5377"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://streamboard.gmc.to/wiki/index.php/OSCam/en"
|
||||
#PKG_URL="$OPENELEC_SRC/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
|
||||
PKG_URL="http://gujs.openelec.tv/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
|
||||
PKG_DEPENDS="libiconv avahi openssl"
|
||||
PKG_BUILD_DEPENDS="toolchain libiconv avahi openssl"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="service/softcam"
|
||||
PKG_SHORTDESC="oscam: OSCam is Open Source Conditional Access Modul."
|
||||
PKG_LONGDESC="OSCam is Open Source Conditional Access Modul."
|
||||
|
||||
PKG_IS_ADDON="yes"
|
||||
PKG_ADDON_TYPE="xbmc.service"
|
||||
|
||||
PKG_AUTORECONF="no"
|
72
packages/addons/service/softcam/oscam/source/bin/oscam.service
Executable file
72
packages/addons/service/softcam/oscam/source/bin/oscam.service
Executable file
@ -0,0 +1,72 @@
|
||||
#!/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
|
||||
################################################################################
|
||||
|
||||
#Check if process is already running
|
||||
if [ ! $(pidof oscam) ]; then
|
||||
|
||||
ADDON_DIR="$HOME/.xbmc/addons/service.softcam.oscam"
|
||||
ADDON_HOME="$HOME/.xbmc/userdata/addon_data/service.softcam.oscam"
|
||||
ADDON_LOG_DIR="$ADDON_HOME/log"
|
||||
|
||||
ADDON_CONF_DIR="$ADDON_HOME/config"
|
||||
ADDON_CONF="$ADDON_CONF_DIR/oscam.conf"
|
||||
ADDON_CONF_AC="$ADDON_CONF_DIR/oscam.ac"
|
||||
ADDON_CONF_CERT="$ADDON_CONF_DIR/oscam.cert"
|
||||
ADDON_CONF_DVBAPI="$ADDON_CONF_DIR/oscam.dvbapi"
|
||||
ADDON_CONF_GUESS="$ADDON_CONF_DIR/oscam.guess"
|
||||
ADDON_CONF_IRD="$ADDON_CONF_DIR/oscam.ird"
|
||||
ADDON_CONF_PROVID="$ADDON_CONF_DIR/oscam.provid"
|
||||
ADDON_CONF_SERVER="$ADDON_CONF_DIR/oscam.server"
|
||||
ADDON_CONF_SERVICES="$ADDON_CONF_DIR/oscam.services"
|
||||
ADDON_CONF_SRVID="$ADDON_CONF_DIR/oscam.srvid"
|
||||
ADDON_CONF_TIERS="$ADDON_CONF_DIR/oscam.tiers"
|
||||
ADDON_CONF_USER="$ADDON_CONF_DIR/oscam.user"
|
||||
|
||||
OSCAM_ARG="-c $ADDON_CONF_DIR"
|
||||
|
||||
mkdir -p $ADDON_HOME
|
||||
mkdir -p $ADDON_CONF_DIR
|
||||
mkdir -p $ADDON_LOG_DIR
|
||||
|
||||
if [ ! -f "$ADDON_CONF" ]; then
|
||||
cp $ADDON_DIR/oscam-default.conf $ADDON_CONF
|
||||
fi
|
||||
|
||||
touch $ADDON_CONF_AC
|
||||
touch $ADDON_CONF_CERT
|
||||
touch $ADDON_CONF_DVBAPI
|
||||
touch $ADDON_CONF_GUESS
|
||||
touch $ADDON_CONF_IRD
|
||||
touch $ADDON_CONF_PROVID
|
||||
touch $ADDON_CONF_SERVER
|
||||
touch $ADDON_CONF_SERVICES
|
||||
touch $ADDON_CONF_SRVID
|
||||
touch $ADDON_CONF_TIERS
|
||||
touch $ADDON_CONF_USER
|
||||
|
||||
#Restart process if it terminates.
|
||||
(while true; do
|
||||
oscam $OSCAM_ARG > /dev/null 2>&1
|
||||
sleep 1
|
||||
done)&
|
||||
fi
|
||||
|
23
packages/addons/service/softcam/oscam/source/default.py
Normal file
23
packages/addons/service/softcam/oscam/source/default.py
Normal file
@ -0,0 +1,23 @@
|
||||
################################################################################
|
||||
# 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
|
||||
################################################################################
|
||||
|
||||
import xbmc, time, os, subprocess
|
||||
|
||||
os.system("oscam.service")
|
44
tools/mkpkg/mkpkg_oscam
Executable file
44
tools/mkpkg/mkpkg_oscam
Executable file
@ -0,0 +1,44 @@
|
||||
#!/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
|
||||
################################################################################
|
||||
|
||||
|
||||
echo "getting sources..."
|
||||
svn checkout http://streamboard.gmc.to/svn/oscam/trunk oscam-latest
|
||||
|
||||
echo "getting version..."
|
||||
cd oscam-latest
|
||||
SVN_REV=`LANG=C svn info 2>/dev/null | grep Revision: | sed -e 's/.*\: //'`
|
||||
echo $SVN_REV
|
||||
cd ..
|
||||
|
||||
echo "copying sources..."
|
||||
rm -rf oscam-$SVN_REV
|
||||
cp -R oscam-latest oscam-$SVN_REV
|
||||
|
||||
echo "cleaning sources..."
|
||||
find oscam-$SVN_REV -name .svn -exec rm -rf {} ";"
|
||||
|
||||
echo "packing sources..."
|
||||
tar cvjf oscam-$SVN_REV.tar.bz2 oscam-$SVN_REV
|
||||
|
||||
echo "remove temporary sourcedir..."
|
||||
rm -rf oscam-$SVN_REV
|
Loading…
x
Reference in New Issue
Block a user