diff --git a/packages/addons/service/system/pcscd-addon/addon b/packages/addons/service/system/pcscd-addon/addon deleted file mode 100755 index 4bee6bbaa6..0000000000 --- a/packages/addons/service/system/pcscd-addon/addon +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# Copyright (C) 2011-2011 Gregor Fuis (gujs@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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - - mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin/ - - cp -Pa $BUILD/pcsc-lite-*/src/pcscd $ADDON_BUILD/$PKG_ADDON_ID/bin/pcscd.bin - - mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/drivers/serial - cp -Pa $BUILD/ccid-*/src/.libs/libccidtwin.so $ADDON_BUILD/$PKG_ADDON_ID/drivers/serial - - mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/drivers/ifd-ccid.bundle/Contents/Linux/ - cp -Pa $BUILD/ccid-*/src/.libs/libccid.so $ADDON_BUILD/$PKG_ADDON_ID/drivers/ifd-ccid.bundle/Contents/Linux/ - cp -Pa $BUILD/ccid-*/src/Info.plist $ADDON_BUILD/$PKG_ADDON_ID/drivers/ifd-ccid.bundle/Contents - - mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/config - cp -Pa $PKG_DIR/config/* $ADDON_BUILD/$PKG_ADDON_ID/config/ diff --git a/packages/addons/service/system/pcscd-addon/changelog.txt b/packages/addons/service/system/pcscd-addon/changelog.txt deleted file mode 100644 index a38067b444..0000000000 --- a/packages/addons/service/system/pcscd-addon/changelog.txt +++ /dev/null @@ -1,29 +0,0 @@ -3.1.1 -- rebuild for OpenELEC-3.2 - -3.0.5 -- update to libccid-1.4.10 - -3.0.4 -- update to pcsc-lite-1.8.8 -- update to libccid-1.4.9 - -3.0.3 -- update to pcsc-lite-1.8.7 - -3.0.2 -- update to pcsc-lite-1.8.6 -- update to ccid-1.4.8 - -3.0.1 -- bump addon version - -2.1.2 -- update to pcsc-lite-1.8.3 -- update to libccid-1.4.7 - -2.1.1 -- update to addon version 2.1 - -2.0.1 -- initial version for pcsc-lite 1.8.2 / ccid 1.4.5 diff --git a/packages/addons/service/system/pcscd-addon/config/reader.conf b/packages/addons/service/system/pcscd-addon/config/reader.conf deleted file mode 100644 index d984d4a45c..0000000000 --- a/packages/addons/service/system/pcscd-addon/config/reader.conf +++ /dev/null @@ -1,10 +0,0 @@ -# Gemalto reader with serial communication -# - n is the serial port to use n in [0..3] -# - reader is the reader name. It is needed for multi-slot readers. -# Possible reader values are: GemPCPinPad, GemCorePOSPro, GemCoreSIMPro, -# GemPCTwin (default value) -# example: /dev/ttyS0:GemPCPinPad -#FRIENDLYNAME "GemPCTwin serial" -#DEVICENAME /dev/ttySn[:reader] -#LIBPATH /storage/.xbmc/addons/service.system.pcscd-addon/drivers/serial/libccidtwin.so -#CHANNELID n diff --git a/packages/addons/service/system/pcscd-addon/icon/icon.png b/packages/addons/service/system/pcscd-addon/icon/icon.png deleted file mode 100644 index 41cb661419..0000000000 Binary files a/packages/addons/service/system/pcscd-addon/icon/icon.png and /dev/null differ diff --git a/packages/addons/service/system/pcscd-addon/meta b/packages/addons/service/system/pcscd-addon/meta deleted file mode 100755 index 394ab12474..0000000000 --- a/packages/addons/service/system/pcscd-addon/meta +++ /dev/null @@ -1,37 +0,0 @@ -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# Copyright (C) 2011-2011 Gregor Fuis (gujs@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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -PKG_NAME="pcscd-addon" -PKG_VERSION="3.1" -PKG_REV="1" -PKG_ARCH="any" -PKG_LICENSE="GPL" -PKG_SITE="http://www.openelec.tv" -PKG_URL="" -PKG_DEPENDS="" -PKG_BUILD_DEPENDS="toolchain pcsc-lite libusb ccid" -PKG_PRIORITY="optional" -PKG_SECTION="service/system" -PKG_SHORTDESC="Middleware to access a smart card using SCard API (PC/SC)" -PKG_LONGDESC="Middleware to access a smart card using SCard API (PC/SC)" -PKG_IS_ADDON="yes" -PKG_ADDON_TYPE="xbmc.service" -PKG_AUTORECONF="no" diff --git a/packages/addons/service/system/pcscd-addon/source/bin/pcscd.start b/packages/addons/service/system/pcscd-addon/source/bin/pcscd.start deleted file mode 100755 index d79015d41c..0000000000 --- a/packages/addons/service/system/pcscd-addon/source/bin/pcscd.start +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -ADDON_NAME="service.system.pcscd-addon" -ADDON_DIR="$HOME/.xbmc/addons/$ADDON_NAME" -ADDON_HOME="$HOME/.xbmc/userdata/addon_data/$ADDON_NAME" - -ADDON_CONFIG_DIR="$ADDON_HOME/config" - -LOCKDIR="/var/lock/" -LOCKFILE="pcscd.disabled" - -mkdir -p $ADDON_HOME - -export PATH=$ADDON_DIR/bin:$PATH - -cd $ADDON_DIR/config -mkdir -p $ADDON_CONFIG_DIR -for config in `find . -type f -name "*.conf*"`; do - if [ ! -f $ADDON_CONFIG_DIR/$config ]; then - cp $config $ADDON_CONFIG_DIR/$config - fi -done - -if [ ! "$(pidof pcscd.bin)" ];then - if [ -f "$LOCKDIR/$LOCKFILE" ] ; then - rm -rf "$LOCKDIR/$LOCKFILE" - fi - while [ true ] ; do - if [ -f "$LOCKDIR/$LOCKFILE" ] ; then - break - fi - pcscd.bin --foreground -c $ADDON_CONFIG_DIR/reader.conf - sleep 1 - done & -fi diff --git a/packages/addons/service/system/pcscd-addon/source/bin/pcscd.stop b/packages/addons/service/system/pcscd-addon/source/bin/pcscd.stop deleted file mode 100755 index 02d1edd7e2..0000000000 --- a/packages/addons/service/system/pcscd-addon/source/bin/pcscd.stop +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -LOCKDIR="/var/lock/" -LOCKFILE="pcscd.disabled" - -mkdir -p "$LOCKDIR" -touch "$LOCKDIR/$LOCKFILE" - -if [ "$(pidof pcscd.bin)" ];then - killall -9 pcscd.bin -fi diff --git a/packages/addons/service/system/pcscd-addon/source/default.py b/packages/addons/service/system/pcscd-addon/source/default.py deleted file mode 100755 index b361cbe120..0000000000 --- a/packages/addons/service/system/pcscd-addon/source/default.py +++ /dev/null @@ -1,44 +0,0 @@ -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# Copyright (C) 2011-2011 Gregor Fuis (gujs@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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -import os -import sys -import xbmcaddon -import time -import subprocess - -__scriptname__ = "PCSC lite" -__author__ = "OpenELEC" -__url__ = "http://www.openelec.tv" -__settings__ = xbmcaddon.Addon(id='service.system.pcscd-addon') -__cwd__ = __settings__.getAddonInfo('path') -__start__ = xbmc.translatePath( os.path.join( __cwd__, 'bin', "pcscd.start") ) -__stop__ = xbmc.translatePath( os.path.join( __cwd__, 'bin', "pcscd.stop") ) - -#make binary files executable in adson 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)