installer vdr-plugin-sc sur yavdr 0.3 pour la version 1.7.20

Publié le par 78.ultima

bonjour,

 

voici pour yavdr 0.3, la methode que utilisé pour installer vdr (1.7.20/1.7.20) - The Video Disk Recorder
sc (1.0.0pre-HG-442eee2f550d+) - A software emulated CAMll path name of an

 

Installer make-special-vdr_1.9.tar.gz

cd /usr/local/src

wget -c http://e-tobi.net/vdr-experimental/pool-sid/source/base/make-special-vdr_1.9.tar.gz

tar xvf make-special-vdr_1.9.tar.gz

cd make-special-vdr-1.9

cp make-special-vdr /usr/local/bin

chmod a+x /usr/local/bin/make-special-vdr

cd /usr/share/vdr-dev/

ln -s /usr/local/bin/make-special-vdr make-special-vdr.sh

 

------------------------------------------------------------------------------------------------------------------------------------------

cd /usr/local/src

mkdir vdr-plugin-sc
cd vdr-plugin-sc
# recupere sur internet le fichier ci-dessous
wget -c http://www.malila.fi/vdr/vdr-plugin-sc_0.9.x-hg2-template.tar.bz2

tar jxvf vdr-plugin-sc_0.9.x-hg2-template.tar.bz2


aptitude install build-essential vdr-dev \
dpatch libssl-dev fakeroot mercurial cdbs

dpkg-source -x vdr-plugin-sc_0.9.x~hg2.dsc
cd vdr-plugin-sc-0.9.x~hg2/
fakeroot ./debian/rules update

cd build/

# pour la compilation avec le vdr de la debian yavdr 0.3
# remplacer la ligne avec - par la ligne avec le +
vi Makefile


-INCLUDES      = -I$(VDRDIR)/include
+INCLUDES      = -I$(VDRDIR) -I$(DVBDIR)/include
 DEFINES       = -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
 SHAREDDEFINES = -DAPIVERSNUM=$(APIVERSNUM) -D_GNU_SOURCE
 LIBS          = -lcrypto
@@ -67,13 +67,13 @@

 ### The version number of VDR (taken from VDR's "config.h"):

-VDRVERSION := $(shell sed -ne '/define VDRVERSION/ s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/include/vdr/config.h)
-APIVERSION := $(shell sed -ne '/define APIVERSION/ s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/include/vdr/config.h)
+VDRVERSION := $(shell sed -ne '/define VDRVERSION/ s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
+APIVERSION := $(shell sed -ne '/define APIVERSION/ s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
 ifeq ($(strip $(APIVERSION)),)
    APIVERSION = $(VDRVERSION)
 endif
-VDRVERSNUM := $(shell sed -ne '/define VDRVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(VDRDIR)/include/vdr/config.h)
-APIVERSNUM := $(shell sed -ne '/define APIVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(VDRDIR)/include/vdr/config.h)
+VDRVERSNUM := $(shell sed -ne '/define VDRVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(VDRDIR)/config.h)
+APIVERSNUM := $(shell sed -ne '/define APIVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(VDRDIR)/config.h)
 ifeq ($(strip $(APIVERSNUM)),)
    APIVERSNUM = $(VDRVERSNUM)
 endif
@@ -95,7 +95,7 @@
 endif
 I18Nmsgs  = $(addprefix $(LOCALEDIR)/,$(addsuffix /LC_MESSAGES/$(I18Nmo),$(notdir $(foreach file, $(wildcard $(PODIR)/*.po), $(basename $(file))))))
 LOCALEDIR = $(VDRDIR)/locale
-HASLOCALE = $(shell grep -l 'I18N_DEFAULT_LOCALE' $(VDRDIR)/include/vdr/i18n.h)
+HASLOCALE = $(shell grep -l 'I18N_DEFAULT_LOCALE' $(VDRDIR)/i18n.h)

 ifeq ($(strip $(HASLOCALE)),)
   OBJS += i18n.o
@@ -106,7 +106,7 @@
 # test VDR version
 BYVERS = $(strip $(shell if test $(APIVERSNUM) -ge 010703; then echo "*"; fi))
 # test if PlayTsVideo() exists (e.g. TSplay patch)
-BYTSPL = $(strip $(shell grep -l 'PlayTsVideo' $(VDRDIR)/include/vdr/device.h))
+BYTSPL = $(strip $(shell grep -l 'PlayTsVideo' $(VDRDIR)/device.h))

 ifneq ($(BYVERS)$(BYTSPL),)
   SHAREDDEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
@@ -127,7 +127,7 @@
 endif

 # max number of CAIDs per slot
-MAXCAID := $(shell sed -ne '/define MAXCASYSTEMIDS/ s/^.[a-zA-Z ]*\([0-9]*\).*$$/\1/p' $(VDRDIR)/ci.c)
+MAXCAID = 64
 ifneq ($(strip $(MAXCAID)),)
   DEFINES += -DVDR_MAXCAID=$(MAXCAID)
 endif
@@ -135,7 +135,7 @@
 # FFdeCSA
CPUOPT     ?= pentium
PARALLEL   ?= PARALLEL_32_INT
-CSAFLAGS   ?= -Wall -fPIC -g -O3 -mmmx -fomit-frame-pointer -fexpensive-optimizations -funroll-loops
+CSAFLAGS   ?= -Wall -fPIC -g -O2 -mmmx -fomit-frame-pointer -fexpensive-optimizations -funroll-loops
 FFDECSADIR  = FFdecsa
 FFDECSA     = $(FFDECSADIR)/FFdecsa.o
 FFDECSATEST = $(FFDECSADIR)/FFdecsa_test.done
:wq

make all DVBDIR=/usr VDRDIR=/usr/include/vdr LIBDIR=.

###### chemin d'install des diff fichiers
vdr-plugin-sc-0.9.x~hg2/debian# cat install
libvdr-sc.so.*                  usr/lib/vdr/plugins/
systems/*/libsc-*.so.*          usr/lib/vdr/plugins/
debian/plugin.sc.conf           etc/vdr/plugins/
debian/vdr-plugin-sc.groups     usr/share/vdr/groups.d/
debian/reload-softcam.key       usr/lib/vdr-plugin-sc/
debian/commands.vdr-sc.conf     usr/share/vdr/command-hooks/
debian/tmp/usr/share/locale

###
cp libvdr-sc.so.1.7.20 /usr/lib/vdr/plugins/
for i in `find ./ -name "libsc*.so.1.7.20"`;do cp $i /usr/lib/vdr/plugins/; done
cd ../debian
cp plugin.sc.conf /etc/vdr/plugins/plugin.sc.conf
echo "dialout" >> /usr/share/vdr/groups.d/vdr.groups

cd /etc/vdr/plugins
vi /etc/vdr/plugins/order.conf
# ajouter sc en premier ligne
sc
:wq

mkdir sc/
mkdir sc/nagra 
mkdir sc/seca 
mkdir sc/viaccess
touch sc/cardclient.conf
cd /var/lib/vdr/plugins/
ln -s /etc/vdr/plugins/sc sc

# autre fichier du repertoire en ln, pouvent etre utile.
viaccess -> /etc/vdr/plugins/sc/viaccess
seca -> /etc/vdr/plugins/sc/seca
sc -> /etc/vdr/plugins/sc
nagra -> /etc/vdr/plugins/sc/nagra
SoftCam.Key -> /etc/vdr/plugins/sc/SoftCam.Key
Ird-Beta.KID -> /etc/vdr/plugins/sc/Ird-Beta.KID
smartcard.conf -> /etc/vdr/plugins/sc/smartcard.conf
Seca.KID -> /etc/vdr/plugins/sc/Seca.KID
Viaccess.KID -> /etc/vdr/plugins/sc/Viaccess.KID
cardclient.conf -> /etc/vdr/plugins/sc/cardclient.conf

 

# verifier le fonctionnement

tail -f /var/log/user.log&

stop vdr

start vdr

Publié dans HTPC

Pour être informé des derniers articles, inscrivez vous :
Commenter cet article