From ef0f6ed3fded9aca18b6c29e8e4ebae0bfb95298 Mon Sep 17 00:00:00 2001 From: Joerg Bornkessel Date: Sun, 7 Jan 2007 01:29:35 +0000 Subject: [PATCH] initial ebuild Package-Manager: portage-2.1.1-r2 --- media-plugins/vdr-dvdconvert/ChangeLog | 13 ++ media-plugins/vdr-dvdconvert/Manifest | 52 +++++ .../files/commands.dvdconvert.conf | 5 + .../files/digest-vdr-dvdconvert-1.0.2 | 6 + .../vdr-dvdconvert/files/dvd2dvdr-1.0.2.conf | 50 ++++ .../vdr-dvdconvert/files/dvdlogrotate | 22 ++ .../vdr-dvdconvert/files/rc-addon.sh | 18 ++ .../files/vdr-dvdconvert-1.0.2-gentoo.diff | 220 ++++++++++++++++++ .../vdr-dvdconvert-1.0.2-vobcopy-perm.diff | 84 +++++++ media-plugins/vdr-dvdconvert/metadata.xml | 17 ++ .../vdr-dvdconvert-1.0.2.ebuild | 68 ++++++ 11 files changed, 555 insertions(+) create mode 100644 media-plugins/vdr-dvdconvert/ChangeLog create mode 100644 media-plugins/vdr-dvdconvert/Manifest create mode 100644 media-plugins/vdr-dvdconvert/files/commands.dvdconvert.conf create mode 100644 media-plugins/vdr-dvdconvert/files/digest-vdr-dvdconvert-1.0.2 create mode 100644 media-plugins/vdr-dvdconvert/files/dvd2dvdr-1.0.2.conf create mode 100644 media-plugins/vdr-dvdconvert/files/dvdlogrotate create mode 100644 media-plugins/vdr-dvdconvert/files/rc-addon.sh create mode 100644 media-plugins/vdr-dvdconvert/files/vdr-dvdconvert-1.0.2-gentoo.diff create mode 100644 media-plugins/vdr-dvdconvert/files/vdr-dvdconvert-1.0.2-vobcopy-perm.diff create mode 100644 media-plugins/vdr-dvdconvert/metadata.xml create mode 100644 media-plugins/vdr-dvdconvert/vdr-dvdconvert-1.0.2.ebuild diff --git a/media-plugins/vdr-dvdconvert/ChangeLog b/media-plugins/vdr-dvdconvert/ChangeLog new file mode 100644 index 000000000000..8d06c81295c4 --- /dev/null +++ b/media-plugins/vdr-dvdconvert/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for media-plugins/vdr-dvdconvert +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-dvdconvert/ChangeLog,v 1.1 2007/01/07 01:29:35 hd_brummy Exp $ + +*vdr-dvdconvert-1.0.2 (07 Jan 2007) + + 07 Jan 2007; Joerg Bornkessel + +files/vdr-dvdconvert-1.0.2-gentoo.diff, + +files/vdr-dvdconvert-1.0.2-vobcopy-perm.diff, +files/dvd2dvdr-1.0.2.conf, + +files/commands.dvdconvert.conf, +files/dvdlogrotate, +files/rc-addon.sh, + +metadata.xml, +vdr-dvdconvert-1.0.2.ebuild: + initial ebuild + diff --git a/media-plugins/vdr-dvdconvert/Manifest b/media-plugins/vdr-dvdconvert/Manifest new file mode 100644 index 000000000000..a69af5c2c452 --- /dev/null +++ b/media-plugins/vdr-dvdconvert/Manifest @@ -0,0 +1,52 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX commands.dvdconvert.conf 437 RMD160 cd804e4fbb890cf09040914415a195f083cd73bd SHA1 9f8136d72d00e30b6fd0d97143068a79be37e5e7 SHA256 a60db4d911fba09f3f86e8d3472d2de8bcb57b6c83c1094642d6218f97f9f912 +MD5 6df6c083929e7a1c1c5e5d4d1415d2fe files/commands.dvdconvert.conf 437 +RMD160 cd804e4fbb890cf09040914415a195f083cd73bd files/commands.dvdconvert.conf 437 +SHA256 a60db4d911fba09f3f86e8d3472d2de8bcb57b6c83c1094642d6218f97f9f912 files/commands.dvdconvert.conf 437 +AUX dvd2dvdr-1.0.2.conf 2052 RMD160 b57d39c8096fa64496c7fb314d7915dd0fb00241 SHA1 abb52ed296943354cfa1945bca48b900d3689b95 SHA256 9c019c2b97dd3e59a620b4b7c59c04bb01a9db980186c099303ce3241c400b35 +MD5 e37916425c2280d43468fe2c0686b81c files/dvd2dvdr-1.0.2.conf 2052 +RMD160 b57d39c8096fa64496c7fb314d7915dd0fb00241 files/dvd2dvdr-1.0.2.conf 2052 +SHA256 9c019c2b97dd3e59a620b4b7c59c04bb01a9db980186c099303ce3241c400b35 files/dvd2dvdr-1.0.2.conf 2052 +AUX dvdlogrotate 430 RMD160 0eea9b69ff9d12e064452ad1caef75378c29227a SHA1 708c7eca2c1be01a28c1ae8798d4a4b9af532e79 SHA256 2dbfb78fd068c275fb33c706ed16a6323178f71b69ea4fabbd3db2403ea3b74f +MD5 79cf60002e95264e2db23e4af96d8673 files/dvdlogrotate 430 +RMD160 0eea9b69ff9d12e064452ad1caef75378c29227a files/dvdlogrotate 430 +SHA256 2dbfb78fd068c275fb33c706ed16a6323178f71b69ea4fabbd3db2403ea3b74f files/dvdlogrotate 430 +AUX rc-addon.sh 425 RMD160 e540d28f573a0c7e5ad833e9abc7b033052da95b SHA1 d6d657d15aea0e837c575e4a02f3efd0114ddade SHA256 9318805553e7da059c58ef93ac04e78713ad2f56309413e93b46850ae7f35e1f +MD5 fe69756534d86939f11972b6f7c32600 files/rc-addon.sh 425 +RMD160 e540d28f573a0c7e5ad833e9abc7b033052da95b files/rc-addon.sh 425 +SHA256 9318805553e7da059c58ef93ac04e78713ad2f56309413e93b46850ae7f35e1f files/rc-addon.sh 425 +AUX vdr-dvdconvert-1.0.2-gentoo.diff 11958 RMD160 eee966ed6d84391c19926c257d8bf1e3a759cc0b SHA1 9247640163b61248343aa6ce33e6709060ccdd50 SHA256 71b04745d9403e543ffb034bfb44e0e9a4b77228d950b831b610685c40b9a5b0 +MD5 f156547dc4b22bb14384cb8e51e8cadd files/vdr-dvdconvert-1.0.2-gentoo.diff 11958 +RMD160 eee966ed6d84391c19926c257d8bf1e3a759cc0b files/vdr-dvdconvert-1.0.2-gentoo.diff 11958 +SHA256 71b04745d9403e543ffb034bfb44e0e9a4b77228d950b831b610685c40b9a5b0 files/vdr-dvdconvert-1.0.2-gentoo.diff 11958 +AUX vdr-dvdconvert-1.0.2-vobcopy-perm.diff 2982 RMD160 19708633dac0f44046dd7a4274f8df02219484cd SHA1 bb014986e73577c7e886ef45797a7989e5f2e062 SHA256 ee773e81ea556c7331cbe2dff59d076db906e3a6d9306c826792d20647da327a +MD5 01200b94dbd00419f8ce4da3303360cd files/vdr-dvdconvert-1.0.2-vobcopy-perm.diff 2982 +RMD160 19708633dac0f44046dd7a4274f8df02219484cd files/vdr-dvdconvert-1.0.2-vobcopy-perm.diff 2982 +SHA256 ee773e81ea556c7331cbe2dff59d076db906e3a6d9306c826792d20647da327a files/vdr-dvdconvert-1.0.2-vobcopy-perm.diff 2982 +DIST px-files-20070104.tar.bz2 934482 RMD160 f33911d5ba49c8ad31c2b4fa4364271b82a25143 SHA1 8ec1f0f80e102a6fde42f6ea025146e4b49954f1 SHA256 5f9d39da9a6858d16489166e42fe01b5148ec3e3743872551f8d5706b5d370c6 +DIST vdr-dvdconvert-1.0.2.tar.bz2 26537 RMD160 251a62c505f96207186247dfb91d6029b89a0b56 SHA1 cbf63a3d1ed04888bd85d2cfd3fe34515b397678 SHA256 ad2d29b42dbc9fd3ec2a08bfca8cf5116f5738c82814971529eb6a6cb4356da4 +EBUILD vdr-dvdconvert-1.0.2.ebuild 1890 RMD160 39bb2b870f1db86c20284d904286fdd2c806e560 SHA1 9bfe1fd4beb51e7ab0813b3d6ab7f74530bc4dce SHA256 272b4262df85481427d3e3b1f25a30948f2d450cc2ed48c83d948faa48f8bf94 +MD5 78f810ac6c3878e9de2433329eac75e4 vdr-dvdconvert-1.0.2.ebuild 1890 +RMD160 39bb2b870f1db86c20284d904286fdd2c806e560 vdr-dvdconvert-1.0.2.ebuild 1890 +SHA256 272b4262df85481427d3e3b1f25a30948f2d450cc2ed48c83d948faa48f8bf94 vdr-dvdconvert-1.0.2.ebuild 1890 +MISC ChangeLog 585 RMD160 c4c7b856413bf9e4e1f56522fa76a441d883830d SHA1 eb739f1cfa4ac483842d1163ed49194d8c59543c SHA256 e8bc47c58282e9b8d349b8652de43df5ff77f7d79920a3123d13e8161a634c46 +MD5 8be8aaa688e5767b2ad278d7cf8f8a1f ChangeLog 585 +RMD160 c4c7b856413bf9e4e1f56522fa76a441d883830d ChangeLog 585 +SHA256 e8bc47c58282e9b8d349b8652de43df5ff77f7d79920a3123d13e8161a634c46 ChangeLog 585 +MISC metadata.xml 558 RMD160 e7c53447af00d82dcb2396609300c8118969a211 SHA1 a9ea0588ac9d06f091ca4b331fd252ce25ebed68 SHA256 0dd2cfd4934fc9c6f7a8b28a1b45e8334482989fd8b3a3d0063bab4e3223cb6e +MD5 d7ffb2ad6b55772255ec9ec358c497cc metadata.xml 558 +RMD160 e7c53447af00d82dcb2396609300c8118969a211 metadata.xml 558 +SHA256 0dd2cfd4934fc9c6f7a8b28a1b45e8334482989fd8b3a3d0063bab4e3223cb6e metadata.xml 558 +MD5 9901c3cb9ec468191c9d5c25ec8b9286 files/digest-vdr-dvdconvert-1.0.2 518 +RMD160 c408058f659bd5770a28d6b41b3c0dd4a25c22b4 files/digest-vdr-dvdconvert-1.0.2 518 +SHA256 8e73b2607358751970b230ce39428792ef559cb8612514061117663ce0a93f45 files/digest-vdr-dvdconvert-1.0.2 518 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.5 (GNU/Linux) +Comment: GnuPG-Pack Basics: http://home.arcor.de/rose-indorf + +iD8DBQFFoE1hdn07HTTCgIoRAgYxAKC3vEKkOdvwZ0t1PpdYPbIM6bixvwCfWNPk +jTdtYy/Gk3j/2wUHcCWSDj4= +=XLqF +-----END PGP SIGNATURE----- diff --git a/media-plugins/vdr-dvdconvert/files/commands.dvdconvert.conf b/media-plugins/vdr-dvdconvert/files/commands.dvdconvert.conf new file mode 100644 index 000000000000..e942106f7dd8 --- /dev/null +++ b/media-plugins/vdr-dvdconvert/files/commands.dvdconvert.conf @@ -0,0 +1,5 @@ +# /etc/vdr/commands/commands.dvdconvert.conf +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-dvdconvert/files/commands.dvdconvert.conf,v 1.1 2007/01/07 01:29:35 hd_brummy Exp $ +D V D C O N V E R T ... : echo "no function" +-1 DVD2DVD START -: /usr/share/vdr/dvdconvert/bin/dvd2dvd.sh >> /var/log/dvdconvert/dvd2dvd.log 2>&1 & +-2 DVD2VDR START -: /usr/share/vdr/dvdconvert/bin/dvd2vdr.sh >> /var/log/dvdconvert/dvd2vdr.log 2>&1 & diff --git a/media-plugins/vdr-dvdconvert/files/digest-vdr-dvdconvert-1.0.2 b/media-plugins/vdr-dvdconvert/files/digest-vdr-dvdconvert-1.0.2 new file mode 100644 index 000000000000..676ccf599c2e --- /dev/null +++ b/media-plugins/vdr-dvdconvert/files/digest-vdr-dvdconvert-1.0.2 @@ -0,0 +1,6 @@ +MD5 cca91396c0edd02ce824ceb8b28da293 px-files-20070104.tar.bz2 934482 +RMD160 f33911d5ba49c8ad31c2b4fa4364271b82a25143 px-files-20070104.tar.bz2 934482 +SHA256 5f9d39da9a6858d16489166e42fe01b5148ec3e3743872551f8d5706b5d370c6 px-files-20070104.tar.bz2 934482 +MD5 a7e9d6c57fc23f3eb7f1782ca1d68729 vdr-dvdconvert-1.0.2.tar.bz2 26537 +RMD160 251a62c505f96207186247dfb91d6029b89a0b56 vdr-dvdconvert-1.0.2.tar.bz2 26537 +SHA256 ad2d29b42dbc9fd3ec2a08bfca8cf5116f5738c82814971529eb6a6cb4356da4 vdr-dvdconvert-1.0.2.tar.bz2 26537 diff --git a/media-plugins/vdr-dvdconvert/files/dvd2dvdr-1.0.2.conf b/media-plugins/vdr-dvdconvert/files/dvd2dvdr-1.0.2.conf new file mode 100644 index 000000000000..e84ae6e98591 --- /dev/null +++ b/media-plugins/vdr-dvdconvert/files/dvd2dvdr-1.0.2.conf @@ -0,0 +1,50 @@ +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-dvdconvert/files/dvd2dvdr-1.0.2.conf,v 1.1 2007/01/07 01:29:35 hd_brummy Exp $ + +########################################################################### +# define some variables +########################################################################### + +VIDEODIR=/var/vdr/video # video directory of vdr +ISODIR=/var/vdr/video/dvd-images # dir for the isofiles +WORKDIR=/var/vdr/video/.dvdconvert # working directory of dvdconvert + # create this by your self, if you change some path + +DVD_DEVICE=/dev/dvd # dvd device + +LANGUAGE="de" # select preferred language + # "de", "en" + +DVD_SIZE=4300000000 # DVD Size 4,3GB + + +#TITLE_MIN_LENGTH=60 # mimimun length in sec for + # a title on a DVD to be + # considered for conversion + +PRIO=15 # priority from 1 to 19 +SLEEPTIME=10 # wait for user action +VERBOSE=1 # be verbose - 0: off, 1: on +DEBUG=1 # debug info - 0: off, 1-3: level +FORCE=0 # force exec - 0: off, 1: on (erzwingen) +CLEAN=0 # clean dirs - 0: off, 1: on (abschliesendes loeschen) +REMOVE=1 # remove tmp file - 0: off, 1: on (temp. loeschen im Betrieb) + +REMOVE_ISO=1 # remove iso file - 0: off, 1: on +BURN=1 # burn a dvd - 0: off, 1: on +RW_FORMAT=1 # format a dvd+rw or dvd-rw disk - 0: off, 1: on + +OSDINFO=1 # svdrpsend - 0: off, 1: on + +A52DEC_GAIN="+5.0" # add gain in decibels +CREATE_MARKS=0 # create a marks.vdr for vdr - 0: off, 1: on + + +########################################################################### +# define required tools +########################################################################### + +JAVA_BIN=/usr/bin/java # ??? +PROJECTX_JAR=/usr/share/vdr/dvdconvert/pX/pX.jar # or PX.jar for newer java version +PROJECTX_INI=/usr/share/vdr/dvdconvert/pX/pX.ini # or PX.ini for newer java version +XVFB_BIN=/usr/X11R6/bin/Xvfb diff --git a/media-plugins/vdr-dvdconvert/files/dvdlogrotate b/media-plugins/vdr-dvdconvert/files/dvdlogrotate new file mode 100644 index 000000000000..37fc05789bc9 --- /dev/null +++ b/media-plugins/vdr-dvdconvert/files/dvdlogrotate @@ -0,0 +1,22 @@ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-dvdconvert/files/dvdlogrotate,v 1.1 2007/01/07 01:29:35 hd_brummy Exp $ + +/var/log/dvdconvert/dvd2vdr.log { + compress + dateext + maxage 365 + rotate 99 + size=+4096k + notifempty + missingok + copytruncate +} +/var/log/dvdconvert/dvd2dvd.log { + compress + dateext + maxage 365 + rotate 99 + size=+4096k + notifempty + missingok + copytruncate +} diff --git a/media-plugins/vdr-dvdconvert/files/rc-addon.sh b/media-plugins/vdr-dvdconvert/files/rc-addon.sh new file mode 100644 index 000000000000..9ca9fc92df3c --- /dev/null +++ b/media-plugins/vdr-dvdconvert/files/rc-addon.sh @@ -0,0 +1,18 @@ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-dvdconvert/files/rc-addon.sh,v 1.1 2007/01/07 01:29:35 hd_brummy Exp $ +# +# rc-addon-script for plugin dvdconvert +# +# Joerg Bornkessel + +DVDCONVERT_CONF="/usr/share/vdr/dvdconvert/dvdconvert.conf" + +plugin_pre_vdr_start() { + +add_plugin_param "-c ${DVDCONVERT_CONF}" + +} + +# for compatibility +if [[ ${SCRIPT_API:-1} -lt 2 ]]; then +plugin_pre_vdr_start +fi diff --git a/media-plugins/vdr-dvdconvert/files/vdr-dvdconvert-1.0.2-gentoo.diff b/media-plugins/vdr-dvdconvert/files/vdr-dvdconvert-1.0.2-gentoo.diff new file mode 100644 index 000000000000..78c081e2ec33 --- /dev/null +++ b/media-plugins/vdr-dvdconvert/files/vdr-dvdconvert-1.0.2-gentoo.diff @@ -0,0 +1,220 @@ +addapted all path to gentoo system +typo fixed + +Joerg Bornkessel 04 Jan 2007 +diff -Naur dvdconvert-1.0.2.orig/dvdconvert.c dvdconvert-1.0.2/dvdconvert.c +--- dvdconvert-1.0.2.orig/dvdconvert.c 2007-01-05 20:09:55.308636742 +0100 ++++ dvdconvert-1.0.2/dvdconvert.c 2007-01-05 20:10:06.461272295 +0100 +@@ -74,12 +74,12 @@ + char *p1, *p2; + + if( cfgFile == NULL ) +- strcpy(configFile,AddDirectory( cPlugin::ConfigDirectory(), CFG_FILE )); ++ strcpy(configFile,AddDirectory( cPlugin::ConfigDirectory("../../../usr/share/vdr/dvdconvert"), CFG_FILE )); + else + strcpy(configFile,cfgFile); + + if( scrFile == NULL ) +- strcpy(scriptFile,AddDirectory( cPlugin::ConfigDirectory(), SCRIPT_FILE )); ++ strcpy(scriptFile,AddDirectory( cPlugin::ConfigDirectory("../../../usr/share/vdr/dvdconvert/bin"), SCRIPT_FILE )); + else + strcpy(scriptFile,scrFile); + +diff -Naur dvdconvert-1.0.2.orig/scripts/dvd2dvd-1.0.2.sh dvdconvert-1.0.2/scripts/dvd2dvd-1.0.2.sh +--- dvdconvert-1.0.2.orig/scripts/dvd2dvd-1.0.2.sh 2007-01-05 20:09:55.300636285 +0100 ++++ dvdconvert-1.0.2/scripts/dvd2dvd-1.0.2.sh 2007-01-05 20:10:24.358292186 +0100 +@@ -33,7 +33,7 @@ + WORKDIR=/video0/vdr/tmp/dvd2dvd # working directory of dvd2dvd + DVD_DEVICE=/dev/cdrom # dvd device + +-DVD2DVD_CONF=/video0/vdr/conf/plugins/dvd2dvd.conf ++DVD2DVD_CONF=/etc/vdr/plugins/dvdconvert/dvdconvert + + # this file overrides some + # internal settings and +@@ -111,7 +111,7 @@ + DVDRECORD_OPT_2="-dao driveropts=burnfree" + DVDFORMAT_OPT="-Z" + +-LOGDIR=/var/log/vdr ++LOGDIR=/var/log/dvdconvert + LOGFILE=$LOGDIR/dvd2dvd.log + LOCKFILE=$LOGDIR/dvd2dvd.LOCK + +diff -Naur dvdconvert-1.0.2.orig/scripts/dvd2vdr-1.0.1.sh dvdconvert-1.0.2/scripts/dvd2vdr-1.0.1.sh +--- dvdconvert-1.0.2.orig/scripts/dvd2vdr-1.0.1.sh 2007-01-05 20:09:55.284635374 +0100 ++++ dvdconvert-1.0.2/scripts/dvd2vdr-1.0.1.sh 2007-01-05 20:10:06.529276171 +0100 +@@ -32,7 +32,7 @@ + WORKDIR=/video0/vdr/tmp/dvd2vdr # working directory of dvd2vdr + DVD_DEVICE=/dev/cdrom # dvd device + +-DVD2VDR_CONF=/video0/vdr/conf/plugins/dvd2vdr.conf ++DVD2VDR_CONF=/etc/vdr/plugins/dvdconvert/dvdconvert + + # this file overrides some + # internal settings and +@@ -97,7 +97,7 @@ + GENINDEX_BIN=genindex + GENINDEX_MJPEGFIX_BIN=genindex-mjpegfix + +-LOGDIR=/var/log/vdr ++LOGDIR=/var/log/dvdconvert + LOGFILE=$LOGDIR/dvd2vdr.log + LOCKFILE=$LOGDIR/dvd2vdr.LOCK + +@@ -654,7 +654,7 @@ + cat ${TEMPDIR}/vobcopy_*.log >> $LOGFILE + if [ $TITLENUM = "AUTO" ] ; then + TITLENUM=`cat ${TEMPDIR}/vobcopy_*.log | \ +- grep 'Using Title' | head -n 1 | awk '{print $4}'` && \ ++ grep 'Using Title' | head -n 1 | awk '{print $4}'` + fi + ;; + esac +diff -Naur dvdconvert-1.0.2.orig/scripts/dvdconvert.conf dvdconvert-1.0.2/scripts/dvdconvert.conf +--- dvdconvert-1.0.2.orig/scripts/dvdconvert.conf 2007-01-05 20:09:55.292635831 +0100 ++++ dvdconvert-1.0.2/scripts/dvdconvert.conf 2007-01-05 20:10:06.537276626 +0100 +@@ -4,39 +4,39 @@ + # + :dvd2vdr + --- Einstellungen_dvd2vdr --- +-/usr/local/bin/start_dvd2vdr.sh:ACTION:0:L:1:all,copy,demux,encode,mplex,split,move:Actions: +-/usr/local/bin/start_dvd2vdr.sh:LANGUAGE:0:L:1:de,en:Language: +-/usr/local/bin/start_dvd2vdr.sh:OSDINFO:1:B:0:Nein,Ja:OSD-Info: +-/usr/local/bin/start_dvd2vdr.sh:TITLE: :A:15:abcdefghijklmnopqrstuvwxyz0123456789-_ABCDEFGHIJKLMNOPQRSTUVWXYZ:Title (optional): +-/usr/local/bin/start_dvd2vdr.sh:TITLENUM: :A:3:0,99,MAX,AUTO:Specific title (00-99) or (MAX = max. Frames) or (AUTO = vobcopy-test)(optional): +-/usr/local/bin/start_dvd2vdr.sh:ACTION_DEMUX:0:L:0:tcextract,projectX:Demuxer: +-/usr/local/bin/start_dvd2vdr.sh:WITHOUT_X:0:B:1:Nein,Ja:Start Xvfb (optional): +-/usr/local/bin/start_dvd2vdr.sh:A52DEC_GAIN: :I:2:-96,96:Audio gain (-96.0 to +96.0)(optional): +-/usr/local/bin/start_dvd2vdr.sh:ACTION_ENCODE:0:L:0:toolame,mp2enc:Encoder: +-/usr/local/bin/start_dvd2vdr.sh:ACTION_MPLEX:0:L:0:tcmplex,tcmplex-panteltje:Remuxer: +-/usr/local/bin/start_dvd2vdr.sh:ACTION_GENINDEX:0:L:0:genindex-mjpegfix,genindex:Write index.vdr: +-/usr/local/bin/start_dvd2vdr.sh:REMOVE:0:B:1:Nein,Ja:Remove tmp files: +-/usr/local/bin/start_dvd2vdr.sh:CLEAN:0:B:1:Nein,Ja:Clean dirs: +-/usr/local/bin/start_dvd2vdr.sh:VERBOSE:1:B:1:Nein,Ja:Turns verbosity on: ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:ACTION:0:L:1:all,copy,demux,encode,mplex,split,move:Actions: ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:LANGUAGE:0:L:1:de,en:Language: ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:OSDINFO:1:B:0:Nein,Ja:OSD-Info: ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:TITLE: :A:15:abcdefghijklmnopqrstuvwxyz0123456789-_ABCDEFGHIJKLMNOPQRSTUVWXYZ:Title (optional): ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:TITLENUM: :A:3:0,99,MAX,AUTO:Specific title (00-99) or (MAX = max. Frames) or (AUTO = vobcopy-test)(optional): ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:ACTION_DEMUX:0:L:0:tcextract,projectX:Demuxer: ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:WITHOUT_X:0:B:1:Nein,Ja:Start Xvfb (optional): ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:A52DEC_GAIN: :I:2:-96,96:Audio gain (-96.0 to +96.0)(optional): ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:ACTION_ENCODE:0:L:0:toolame,mp2enc:Encoder: ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:ACTION_MPLEX:0:L:0:tcmplex-panteltje:Remuxer: ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:ACTION_GENINDEX:0:L:0:genindex:Write index.vdr: ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:REMOVE:0:B:1:Nein,Ja:Remove tmp files: ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:CLEAN:0:B:1:Nein,Ja:Clean dirs: ++/usr/share/vdr/dvdconvert/bin/start_dvd2vdr.sh:VERBOSE:1:B:1:Nein,Ja:Turns verbosity on: + : + --- + # + --- + :dvd2dvd + --- Einstellungen_dvd2dvd --- +-/usr/local/bin/start_dvd2dvd.sh:ACTION1:0:L:1:all,copy,demux,encode,reqant,mplex,dvdauthor,iso,move:Actions: +-/usr/local/bin/start_dvd2dvd.sh:LANGUAGE1:0:L:1:de,en:Language: +-/usr/local/bin/start_dvd2dvd.sh:OSDINFO1:1:B:0:Nein,Ja:OSD-Info: +-/usr/local/bin/start_dvd2dvd.sh:TITLE1: :A:15:abcdefghijklmnopqrstuvwxyz0123456789-_ABCDEFGHIJKLMNOPQRSTUVWXYZ:Title (optional): +-/usr/local/bin/start_dvd2dvd.sh:TITLENUM1: :A:3:0,99,MAX,AUTO:Specific title (00-99) or (MAX = max. Frames) or (AUTO = vobcopy-test)(optional): +-/usr/local/bin/start_dvd2dvd.sh:ACTION_DEMUX1:0:L:0:tcextract,projectX:Demuxer: +-/usr/local/bin/start_dvd2dvd.sh:WITHOUT_X1:0:B:1:Nein,Ja:Start Xvfb (optional): +-/usr/local/bin/start_dvd2dvd.sh:A52DEC_GAIN1: :I:2:-96,96:Audio gain (-96.0 to +96.0)(optional): +-/usr/local/bin/start_dvd2dvd.sh:ACTION_ENCODE1:0:L:0:toolame,mp2enc:Encoder: +-/usr/local/bin/start_dvd2dvd.sh:ACTION_MPLEX1:0:L:0:tcmplex,tcmplex-panteltje:Remuxer: +-/usr/local/bin/start_dvd2dvd.sh:BURN1:1:B:1:Nein,Ja:Burn DVD: +-/usr/local/bin/start_dvd2dvd.sh:RW_FORMAT1:0:B:1:Nein,Ja:Format DVD-RW: +-/usr/local/bin/start_dvd2dvd.sh:REMOVE_ISO1:0:B:1:Nein,Ja:Remove this iso file: +-/usr/local/bin/start_dvd2dvd.sh:REMOVE1:0:B:1:Nein,Ja:Remove tmp files: +-/usr/local/bin/start_dvd2dvd.sh:CLEAN1:0:B:1:Nein,Ja:Clean dirs: +-/usr/local/bin/start_dvd2dvd.sh:VERBOSE1:1:B:1:Nein,Ja:Turns verbosity on: ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:ACTION1:0:L:1:all,copy,demux,encode,reqant,mplex,dvdauthor,iso,move:Actions: ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:LANGUAGE1:0:L:1:de,en:Language: ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:OSDINFO1:1:B:0:Nein,Ja:OSD-Info: ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:TITLE1: :A:15:abcdefghijklmnopqrstuvwxyz0123456789-_ABCDEFGHIJKLMNOPQRSTUVWXYZ:Title (optional): ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:TITLENUM1: :A:3:0,99,MAX,AUTO:Specific title (00-99) or (MAX = max. Frames) or (AUTO = vobcopy-test)(optional): ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:ACTION_DEMUX1:0:L:0:tcextract,projectX:Demuxer: ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:WITHOUT_X1:0:B:1:Nein,Ja:Start Xvfb (optional): ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:A52DEC_GAIN1: :I:2:-96,96:Audio gain (-96.0 to +96.0)(optional): ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:ACTION_ENCODE1:0:L:0:toolame,mp2enc:Encoder: ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:ACTION_MPLEX1:0:L:0:tcmplex-panteltje:Remuxer: ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:BURN1:1:B:1:Nein,Ja:Burn DVD: ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:RW_FORMAT1:0:B:1:Nein,Ja:Format DVD-RW: ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:REMOVE_ISO1:0:B:1:Nein,Ja:Remove this iso file: ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:REMOVE1:0:B:1:Nein,Ja:Remove tmp files: ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:CLEAN1:0:B:1:Nein,Ja:Clean dirs: ++/usr/share/vdr/dvdconvert/bin/start_dvd2dvd.sh:VERBOSE1:1:B:1:Nein,Ja:Turns verbosity on: +diff -Naur dvdconvert-1.0.2.orig/scripts/dvdconvert.sh dvdconvert-1.0.2/scripts/dvdconvert.sh +--- dvdconvert-1.0.2.orig/scripts/dvdconvert.sh 2007-01-05 20:09:55.284635374 +0100 ++++ dvdconvert-1.0.2/scripts/dvdconvert.sh 2007-01-05 20:10:06.545277082 +0100 +@@ -1,9 +1,9 @@ + #!/bin/sh +-CFG_FILE="/etc/vdr/plugins/dvdconvert.conf" +-CFG_SAVE="/etc/vdr/plugins/dvdconvert.conf.save" ++CFG_FILE="/usr/share/vdr/dvdconvert/dvdconvert.conf" ++CFG_SAVE="/usr/share/vdr/dvdconvert/dvdconvert.conf.save" + + TODO_FILE="/tmp/~dvdconvert.sh" +-LOG_FILE="/var/log/dvdconvert.log" ++LOG_FILE="/var/log/dvdconvert/dvdconvert.log" + rm -rf $TODO_FILE > /dev/null 2>&1 + echo "#!/bin/sh" > $TODO_FILE + if [ -s $CFG_SAVE ] ; then +diff -Naur dvdconvert-1.0.2.orig/scripts/getadmval.sh dvdconvert-1.0.2/scripts/getadmval.sh +--- dvdconvert-1.0.2.orig/scripts/getadmval.sh 2007-01-05 20:09:55.284635374 +0100 ++++ dvdconvert-1.0.2/scripts/getadmval.sh 2007-01-05 20:10:06.553277538 +0100 +@@ -1,5 +1,5 @@ + #!/bin/sh +-CFG_FILE="/etc/vdr/plugins/dvdconvert.conf" ++CFG_FILE="/usr/share/vdr/dvdconvert/dvdconvert.conf" + + VAL=`cat $CFG_FILE | grep ":$1:" | cut -f 3 -d ":"` + TYPE=`cat $CFG_FILE | grep ":$1:" | cut -f 4 -d ":"` +diff -Naur dvdconvert-1.0.2.orig/scripts/setadmval.sh dvdconvert-1.0.2/scripts/setadmval.sh +--- dvdconvert-1.0.2.orig/scripts/setadmval.sh 2007-01-05 20:09:55.284635374 +0100 ++++ dvdconvert-1.0.2/scripts/setadmval.sh 2007-01-05 20:10:06.561277993 +0100 +@@ -1,5 +1,5 @@ + #!/bin/sh +-CFG_FILE="/etc/vdr/plugins/dvdconvert.conf" ++CFG_FILE="/usr/share/vdr/dvdconvert/dvdconvert.conf" + + VAL=$2 + NAME=$1 +diff -Naur dvdconvert-1.0.2.orig/scripts/start_dvd2dvd.sh dvdconvert-1.0.2/scripts/start_dvd2dvd.sh +--- dvdconvert-1.0.2.orig/scripts/start_dvd2dvd.sh 2007-01-05 20:09:55.292635831 +0100 ++++ dvdconvert-1.0.2/scripts/start_dvd2dvd.sh 2007-01-05 20:10:06.569278450 +0100 +@@ -1,10 +1,10 @@ + #!/bin/bash + +-GETVAL="sh /usr/local/bin/getadmval.sh" +-SETVAL="sh /usr/local/bin/setadmval.sh" +-DVD2DVD_CFG="/etc/vdr/plugins/dvd2dvd.conf" +-DVD2DVD="/usr/local/bin/dvd2dvd.sh" +-LOG_FILE="/var/log/vdr/dvd2dvd.log" ++GETVAL="sh /usr/share/vdr/dvdconvert/bin/getadmval.sh" ++SETVAL="sh /usr/share/vdr/dvdconvert/bin/setadmval.sh" ++DVD2DVD_CFG="/etc/vdr/plugins/dvdconvert/dvdconvert" ++DVD2DVD="/usr/share/vdr/dvdconvert/bin/dvd2dvd.sh" ++LOG_FILE="/var/log/dvdconvert/dvd2dvd.log" + + ACTION=`$GETVAL ACTION1` + echo "ACTION="$ACTION > $DVD2DVD_CFG +diff -Naur dvdconvert-1.0.2.orig/scripts/start_dvd2vdr.sh dvdconvert-1.0.2/scripts/start_dvd2vdr.sh +--- dvdconvert-1.0.2.orig/scripts/start_dvd2vdr.sh 2007-01-05 20:09:55.276634919 +0100 ++++ dvdconvert-1.0.2/scripts/start_dvd2vdr.sh 2007-01-05 20:10:06.577278905 +0100 +@@ -1,10 +1,10 @@ + #!/bin/bash + +-GETVAL="sh /usr/local/bin/getadmval.sh" +-SETVAL="sh /usr/local/bin/setadmval.sh" +-DVD2VDR_CFG="/etc/vdr/plugins/dvd2vdr.conf" +-DVD2VDR="/usr/local/bin/dvd2vdr.sh" +-LOG_FILE="/var/log/vdr/dvd2vdr.log" ++GETVAL="sh /usr/share/vdr/dvdconvert/bin/getadmval.sh" ++SETVAL="sh /usr/share/vdr/dvdconvert/bin/setadmval.sh" ++DVD2VDR_CFG="/etc/vdr/plugins/dvdconvert/dvdconvert" ++DVD2VDR="/usr/share/vdr/dvdconvert/bin/dvd2vdr.sh" ++LOG_FILE="/var/log/dvdconvert/dvd2vdr.log" + + ACTION=`$GETVAL ACTION` + echo "ACTION="$ACTION > $DVD2VDR_CFG diff --git a/media-plugins/vdr-dvdconvert/files/vdr-dvdconvert-1.0.2-vobcopy-perm.diff b/media-plugins/vdr-dvdconvert/files/vdr-dvdconvert-1.0.2-vobcopy-perm.diff new file mode 100644 index 000000000000..b0e0f9ce51ea --- /dev/null +++ b/media-plugins/vdr-dvdconvert/files/vdr-dvdconvert-1.0.2-vobcopy-perm.diff @@ -0,0 +1,84 @@ +fix permission problems with vobcopy, see + +http://www.vdr-portal.de/board/thread.php?postid=561530#post561530 +http://www.vdr-portal.de/board/thread.php?postid=561577#post561577 + +Joerg Bornkessel 06 Jan 2007 +diff -Naur dvdconvert-1.0.2.orig/scripts/dvd2dvd-1.0.2.sh dvdconvert-1.0.2/scripts/dvd2dvd-1.0.2.sh +--- dvdconvert-1.0.2.orig/scripts/dvd2dvd-1.0.2.sh 2007-01-06 21:06:21.535061777 +0100 ++++ dvdconvert-1.0.2/scripts/dvd2dvd-1.0.2.sh 2007-01-06 21:12:44.440882336 +0100 +@@ -708,20 +708,22 @@ + sleep $SLEEPTIME + fi + done ++ ++ [[ -e ${WORKDIR}/vobcopy_*.log ]] && rm -f ${WORKDIR}/vobcopy_*.log + + case $ACTION_GETTITLE in + ${GETTITLE_TOOLS[0]}) + ;; + ${GETTITLE_TOOLS[1]}) + d2v_log "`echo && echo \$\> $VOBCOPY_BIN -i $DVD_DEVICE \ +- -v -v -I -L ${TEMPDIR} 2\> /dev/null`" ++ -v -v -I -L ${WORKDIR} 2\> /dev/null`" + $VOBCOPY_BIN -i $DVD_DEVICE -v -v -I \ +- -L ${TEMPDIR} 2> /dev/null && \ +- TITLE=`cat ${TEMPDIR}/vobcopy_*.log | \ ++ -L ${WORKDIR} 2> /dev/null && \ ++ TITLE=`cat ${WORKDIR}/vobcopy_*.log | \ + grep 'Name of the dvd' | head -n 1 | awk '{print $6}'` && \ +- cat ${TEMPDIR}/vobcopy_*.log >> $LOGFILE ++ cat ${WORKDIR}/vobcopy_*.log >> $LOGFILE + if [ $TITLENUM = "AUTO" ] ; then +- TITLENUM=`cat ${TEMPDIR}/vobcopy_*.log | \ ++ TITLENUM=`cat ${WORKDIR}/vobcopy_*.log | \ + grep 'Using Title' | head -n 1 | awk '{print $4}'` + fi + ;; +@@ -1549,6 +1551,7 @@ + + [ $ACTION = "all" -o $CLEAN = 1 ] && rm -rf $TEMPDIR && d2v_log "\$TEMPDIR '$TEMPDIR' deleted" + ++rm -f ${WORKDIR}/vobcopy_*.log + rm -f $LOCKFILE + + d2v_log_separator +diff -Naur dvdconvert-1.0.2.orig/scripts/dvd2vdr-1.0.1.sh dvdconvert-1.0.2/scripts/dvd2vdr-1.0.1.sh +--- dvdconvert-1.0.2.orig/scripts/dvd2vdr-1.0.1.sh 2007-01-06 21:06:21.531061547 +0100 ++++ dvdconvert-1.0.2/scripts/dvd2vdr-1.0.1.sh 2007-01-06 21:14:29.690880190 +0100 +@@ -640,20 +640,22 @@ + sleep $SLEEPTIME + fi + done ++ ++ [[ -e ${WORKDIR}/vobcopy_*.log ]] && rm -f ${WORKDIR}/vobcopy_*.log + + case $ACTION_GETTITLE in + ${GETTITLE_TOOLS[0]}) + ;; + ${GETTITLE_TOOLS[1]}) + d2v_log "`echo && echo \$\> $VOBCOPY_BIN -i $DVD_DEVICE \ +- -v -v -I -L ${TEMPDIR} 2\> /dev/null`" ++ -v -v -I -L ${WORKDIR} 2\> /dev/null`" + $VOBCOPY_BIN -i $DVD_DEVICE -v -v -I \ +- -L ${TEMPDIR} 2> /dev/null && \ ++ -L ${WORKDIR} 2> /dev/null && \ + TITLE=`cat ${TEMPDIR}/vobcopy_*.log | \ + grep 'Name of the dvd' | head -n 1 | awk '{print $6}'` && \ +- cat ${TEMPDIR}/vobcopy_*.log >> $LOGFILE ++ cat ${WORKDIR}/vobcopy_*.log >> $LOGFILE + if [ $TITLENUM = "AUTO" ] ; then +- TITLENUM=`cat ${TEMPDIR}/vobcopy_*.log | \ ++ TITLENUM=`cat ${WORKDIR}/vobcopy_*.log | \ + grep 'Using Title' | head -n 1 | awk '{print $4}'` + fi + ;; +@@ -1371,6 +1373,7 @@ + + [ $ACTION = "all" -a $CLEAN = 1 ] && rm -rf $TEMPDIR && d2v_log "\$TEMPDIR '$TEMPDIR' deleted" + ++rm -f ${WORKDIR}/vobcopy_*.log + rm -f $LOCKFILE + + d2v_log_separator + diff --git a/media-plugins/vdr-dvdconvert/metadata.xml b/media-plugins/vdr-dvdconvert/metadata.xml new file mode 100644 index 000000000000..582609d3d6db --- /dev/null +++ b/media-plugins/vdr-dvdconvert/metadata.xml @@ -0,0 +1,17 @@ + + + + media-tv + + vdr@gentoo.org + Gentoo VDR Project + + + Programm is used to convert DVD to *.vdr files + also you can copy DVD to DVD. + + + Mit diesem Programm koennen DVD's zu *.vdr files umgewandetl werden. + Ebenso koennen Kopien von DVD's erstellt werden. + + diff --git a/media-plugins/vdr-dvdconvert/vdr-dvdconvert-1.0.2.ebuild b/media-plugins/vdr-dvdconvert/vdr-dvdconvert-1.0.2.ebuild new file mode 100644 index 000000000000..f9e6bed99982 --- /dev/null +++ b/media-plugins/vdr-dvdconvert/vdr-dvdconvert-1.0.2.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-dvdconvert/vdr-dvdconvert-1.0.2.ebuild,v 1.1 2007/01/07 01:29:35 hd_brummy Exp $ + +inherit vdr-plugin eutils + +DESCRIPTION="VDR plugin: for exec dvd2vdr & dvd2dvd scripts" +HOMEPAGE="http://home.lausitz.net/lini/vdr/" +SRC_URI="http://home.lausitz.net/lini/vdr/${P}.tar.bz2 + projectx? ( http://dev.gentoo.org/~hd_brummy/distfiles/px-files-20070104.tar.bz2 )" + +KEYWORDS="~x86 ~amd64" +SLOT="0" +LICENSE="GPL-2" +IUSE="projectx" + +RDEPEND="media-video/vdr + >=media-video/dvdauthor-0.6.10 + >=media-video/vobcopy-1.0.0 + media-video/requant + media-video/transcode + media-video/tcmplex-panteltje + media-libs/a52dec + media-sound/lame + media-sound/toolame + projectx? ( media-video/projectx )" + +PATCHES="${FILESDIR}/${P}-gentoo.diff ${FILESDIR}/${P}-vobcopy-perm.diff" + +pkg_setup() { + vdr-plugin_pkg_setup + + if has_version "<=media-video/dvdconvert-1.0.0" ; then + echo + eerror "Found existing media-video/dvdconvert install" + elog "Please unmerge media-video/dvdconvert at first" + elog "and cleanup all old config files of media-video/dvdconvert" + die "Found existing media-video/dvdconvert install" + fi +} + +src_install() { + vdr-plugin_src_install + + insinto /usr/share/vdr/dvdconvert + doins ${S}/scripts/dvdconvert.{conf,conf.save} + + use projectx && insinto /usr/share/vdr/dvdconvert/pX + use projectx && doins ${WORKDIR}/px-files/* + + exeinto /usr/share/vdr/dvdconvert/bin + doexe ${S}/scripts/*.sh + + insinto /etc/vdr/commands + doins ${FILESDIR}/commands.dvdconvert.conf + + insinto /etc/vdr/plugins/dvdconvert + newins ${FILESDIR}/dvd2dvdr-${PV}.conf dvdconvert + + insinto /etc/logrotate.d + newins ${FILESDIR}/dvdlogrotate dvdconvert + + diropts -ovdr -gvdr + keepdir /var/log/dvdconvert + keepdir /var/vdr/video/.dvdconvert + + dodoc README-PLUGIN +} -- 2.26.2