summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-10-13 20:11:50 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-10-13 20:11:50 +0000
commita014afb1d0405bb74bc54bb3b95e8fbb34d9a054 (patch)
tree993d3885b4d085a93035e36c4e1d0bf6c9c516ed /media-plugins
parentNew version for translation updates (diff)
downloadgentoo-2-a014afb1d0405bb74bc54bb3b95e8fbb34d9a054.tar.gz
gentoo-2-a014afb1d0405bb74bc54bb3b95e8fbb34d9a054.tar.bz2
gentoo-2-a014afb1d0405bb74bc54bb3b95e8fbb34d9a054.zip
Initial import of ebuild, based on gentoo.de-version, maintained by E. Scaglione <erm67@yahoo.it>.
(Portage version: 2.1.2_pre2-r9)
Diffstat (limited to 'media-plugins')
-rw-r--r--media-plugins/vdr-vdrrip/ChangeLog16
-rw-r--r--media-plugins/vdr-vdrrip/Manifest69
-rw-r--r--media-plugins/vdr-vdrrip/files/detectlength.diff29
-rw-r--r--media-plugins/vdr-vdrrip/files/digest-vdr-vdrrip-0.3.0-r46
-rw-r--r--media-plugins/vdr-vdrrip/files/fix-ogm-ac3-vdrsync-dev.diff16
-rw-r--r--media-plugins/vdr-vdrrip/files/fixpreview.diff13
-rw-r--r--media-plugins/vdr-vdrrip/files/greppid2.diff13
-rw-r--r--media-plugins/vdr-vdrrip/files/log-patch.diff30
-rw-r--r--media-plugins/vdr-vdrrip/files/maketempdir.diff23
-rw-r--r--media-plugins/vdr-vdrrip/files/mencoderparam.diff68
-rw-r--r--media-plugins/vdr-vdrrip/files/mplayercmd.diff25
-rw-r--r--media-plugins/vdr-vdrrip/files/preserve-queue-owner.diff14
-rw-r--r--media-plugins/vdr-vdrrip/files/rc-addon.sh11
-rw-r--r--media-plugins/vdr-vdrrip/files/vdrrip-0.3.0-1.3.7.diff320
-rw-r--r--media-plugins/vdr-vdrrip/files/vdrrip-qh23
-rw-r--r--media-plugins/vdr-vdrrip/files/vdrrip-qh.conf12
-rw-r--r--media-plugins/vdr-vdrrip/metadata.xml16
-rw-r--r--media-plugins/vdr-vdrrip/vdr-vdrrip-0.3.0-r4.ebuild86
18 files changed, 790 insertions, 0 deletions
diff --git a/media-plugins/vdr-vdrrip/ChangeLog b/media-plugins/vdr-vdrrip/ChangeLog
new file mode 100644
index 000000000000..d615cb1f949f
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/ChangeLog
@@ -0,0 +1,16 @@
+# ChangeLog for media-plugins/vdr-vdrrip
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrrip/ChangeLog,v 1.1 2006/10/13 20:11:50 zzam Exp $
+
+*vdr-vdrrip-0.3.0-r4 (13 Oct 2006)
+
+ 13 Oct 2006; Matthias Schwarzott <zzam@gentoo.org>
+ +files/vdrrip-0.3.0-1.3.7.diff, +files/detectlength.diff,
+ +files/fix-ogm-ac3-vdrsync-dev.diff, +files/fixpreview.diff,
+ +files/greppid2.diff, +files/log-patch.diff, +files/maketempdir.diff,
+ +files/mencoderparam.diff, +files/mplayercmd.diff,
+ +files/preserve-queue-owner.diff, +files/rc-addon.sh, +files/vdrrip-qh,
+ +files/vdrrip-qh.conf, +metadata.xml, +vdr-vdrrip-0.3.0-r4.ebuild:
+ Initial import of ebuild, based on gentoo.de-version, maintained by E.
+ Scaglione <erm67@yahoo.it>.
+
diff --git a/media-plugins/vdr-vdrrip/Manifest b/media-plugins/vdr-vdrrip/Manifest
new file mode 100644
index 000000000000..c2b33afd912c
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/Manifest
@@ -0,0 +1,69 @@
+AUX detectlength.diff 1244 RMD160 96e1de431e03254b74b57d8221b34ce1049c164b SHA1 25d6668298df0fbb7079a7fb809636a928273d94 SHA256 978e958af0b0a57f75bdda397f17fa14f8141f5b78c25881310800533efa0c3b
+MD5 551daccfbecd5cbb831f57e41c95f1e2 files/detectlength.diff 1244
+RMD160 96e1de431e03254b74b57d8221b34ce1049c164b files/detectlength.diff 1244
+SHA256 978e958af0b0a57f75bdda397f17fa14f8141f5b78c25881310800533efa0c3b files/detectlength.diff 1244
+AUX fix-ogm-ac3-vdrsync-dev.diff 636 RMD160 65ad7f710ebb4d0888bc178c43cf6b40bf8ec097 SHA1 0b8f9b3e9cc79811115c95553cfc30177ea33ca8 SHA256 46a07b3654feb5ec1496737624d9dbcdaf6dddae3e9f6d898165a7a2333f577f
+MD5 6b4cc9993651d2d20ac733c834ce9a4f files/fix-ogm-ac3-vdrsync-dev.diff 636
+RMD160 65ad7f710ebb4d0888bc178c43cf6b40bf8ec097 files/fix-ogm-ac3-vdrsync-dev.diff 636
+SHA256 46a07b3654feb5ec1496737624d9dbcdaf6dddae3e9f6d898165a7a2333f577f files/fix-ogm-ac3-vdrsync-dev.diff 636
+AUX fixpreview.diff 576 RMD160 ea5ef413c2c15039e9b6a28358f0438ed5f8b5c4 SHA1 daacbd820dc794d334b2c48f8d297f662b91345c SHA256 8ce814de43532b4ff6e25e0abbc2d27eaf40a3b308e7311bf09ef5c0fed196e5
+MD5 05f0b455eca25baba5dc5bf6c3321c0f files/fixpreview.diff 576
+RMD160 ea5ef413c2c15039e9b6a28358f0438ed5f8b5c4 files/fixpreview.diff 576
+SHA256 8ce814de43532b4ff6e25e0abbc2d27eaf40a3b308e7311bf09ef5c0fed196e5 files/fixpreview.diff 576
+AUX greppid2.diff 549 RMD160 5c3db587889a81a33a8c3e898e9996c171d94a3f SHA1 01f86d596c4078371d43be5f97679d019a5adae0 SHA256 8ad0688012dbbb3f8dcfd86d9ae83b2389a5d6c8b25909b776ce1372a9dc7546
+MD5 2d1e79dfcee43ff4cae781557c433acd files/greppid2.diff 549
+RMD160 5c3db587889a81a33a8c3e898e9996c171d94a3f files/greppid2.diff 549
+SHA256 8ad0688012dbbb3f8dcfd86d9ae83b2389a5d6c8b25909b776ce1372a9dc7546 files/greppid2.diff 549
+AUX log-patch.diff 833 RMD160 a0432acd7c3ffbed0204f706ec3b5be77355d4a0 SHA1 d15bd74818f7dd2b67b38461f0d0cb2250a1afcb SHA256 972b23729fefcb8019dcabd834c87c646a01f5f737f37833bff53eff909b613b
+MD5 1b4a426d04acc65e6c2d7dcf28f5ba3a files/log-patch.diff 833
+RMD160 a0432acd7c3ffbed0204f706ec3b5be77355d4a0 files/log-patch.diff 833
+SHA256 972b23729fefcb8019dcabd834c87c646a01f5f737f37833bff53eff909b613b files/log-patch.diff 833
+AUX maketempdir.diff 771 RMD160 9b8a2e4ec73e366be877c24fb1f14690d369ff06 SHA1 6e1d4d9f7b942ba1f32c1f9fb378cd894639d2f9 SHA256 ab90d54d188a0256a9c1c491b9e386b6b63664bdceae8fe7a5696baccd9777dd
+MD5 2cedc1d7e410512fda8b0a892d341ee1 files/maketempdir.diff 771
+RMD160 9b8a2e4ec73e366be877c24fb1f14690d369ff06 files/maketempdir.diff 771
+SHA256 ab90d54d188a0256a9c1c491b9e386b6b63664bdceae8fe7a5696baccd9777dd files/maketempdir.diff 771
+AUX mencoderparam.diff 2775 RMD160 c09d964d37abdffb2158d1fa5bba10132a4ba3db SHA1 4a5f85f1a670f4ae747443fda13d0d26a77f162f SHA256 e30d800c74b0d4ced0c5a370391c32728035170e5c294ce086ffe0385de5f38d
+MD5 daa066ec430a4b4512cf2623572d12bd files/mencoderparam.diff 2775
+RMD160 c09d964d37abdffb2158d1fa5bba10132a4ba3db files/mencoderparam.diff 2775
+SHA256 e30d800c74b0d4ced0c5a370391c32728035170e5c294ce086ffe0385de5f38d files/mencoderparam.diff 2775
+AUX mplayercmd.diff 1475 RMD160 3300ff38946e46ff9644897efe4f2143caf715b0 SHA1 e234f2b79869792dea272de89a168fb5aac4cf9f SHA256 fdf013c4e386646b5b92d838557d67032e6298df5f84ae9fe992baa1d89ccb42
+MD5 e2abcfcce5c641430f0e2f781bb164e2 files/mplayercmd.diff 1475
+RMD160 3300ff38946e46ff9644897efe4f2143caf715b0 files/mplayercmd.diff 1475
+SHA256 fdf013c4e386646b5b92d838557d67032e6298df5f84ae9fe992baa1d89ccb42 files/mplayercmd.diff 1475
+AUX preserve-queue-owner.diff 544 RMD160 27de8815d1aca721da7783dab4b1cce6087e9efc SHA1 302bca3643705deee593ff4fc41158fbc008f70c SHA256 06973e32b79b3f18a871f63a47fa7107e775e17143ea27885b232dff5580e710
+MD5 546a1ce85c59868836a9d322aa91f0a3 files/preserve-queue-owner.diff 544
+RMD160 27de8815d1aca721da7783dab4b1cce6087e9efc files/preserve-queue-owner.diff 544
+SHA256 06973e32b79b3f18a871f63a47fa7107e775e17143ea27885b232dff5580e710 files/preserve-queue-owner.diff 544
+AUX rc-addon.sh 238 RMD160 05afcb1dae7b10a4aad42282ff3623fa2f7e4a40 SHA1 62c49682857572ccd02d1f31152af068636616b2 SHA256 fd5d0ced8ba62caa5975644ca93709ab94277a1cf3496cb326d35a431c297423
+MD5 a4dca2bad4820e59d90442647738a8ec files/rc-addon.sh 238
+RMD160 05afcb1dae7b10a4aad42282ff3623fa2f7e4a40 files/rc-addon.sh 238
+SHA256 fd5d0ced8ba62caa5975644ca93709ab94277a1cf3496cb326d35a431c297423 files/rc-addon.sh 238
+AUX vdrrip-0.3.0-1.3.7.diff 7957 RMD160 d7f597442b2b3d12af640db54650979bf7db1872 SHA1 ac53f4b4cfd8168b9352c72b36a337d9549eca3a SHA256 609d3cb24efa5d310c0aecc90f25b2be58a9e3061ddd035acbcfef4190095f99
+MD5 bcbc46e17d0abd4034405717c9806615 files/vdrrip-0.3.0-1.3.7.diff 7957
+RMD160 d7f597442b2b3d12af640db54650979bf7db1872 files/vdrrip-0.3.0-1.3.7.diff 7957
+SHA256 609d3cb24efa5d310c0aecc90f25b2be58a9e3061ddd035acbcfef4190095f99 files/vdrrip-0.3.0-1.3.7.diff 7957
+AUX vdrrip-qh 690 RMD160 ffa18f75105291f9d2da20d9c8cf06e2a01058f2 SHA1 0c9907df3a7997f674da5c59f1b6754f01033d1f SHA256 fe8809a0673c2084e5291e63dd70b83a9ec41cdce13a9c0cc5b92da5660b0e0c
+MD5 ac18d62053dcc7e87e49352b1706baec files/vdrrip-qh 690
+RMD160 ffa18f75105291f9d2da20d9c8cf06e2a01058f2 files/vdrrip-qh 690
+SHA256 fe8809a0673c2084e5291e63dd70b83a9ec41cdce13a9c0cc5b92da5660b0e0c files/vdrrip-qh 690
+AUX vdrrip-qh.conf 324 RMD160 d3a6e56d96959fe038ec8d0d24ef7b15a04178b8 SHA1 f803fcc025391fb80c4153702d8791f5e0580559 SHA256 8ba8a7a03d953e91d0083df1ca0b3c31415b3596d088aa2c7d03c2605dbc05b0
+MD5 37fd9ab5348490ec7bebf2a1e956d5dc files/vdrrip-qh.conf 324
+RMD160 d3a6e56d96959fe038ec8d0d24ef7b15a04178b8 files/vdrrip-qh.conf 324
+SHA256 8ba8a7a03d953e91d0083df1ca0b3c31415b3596d088aa2c7d03c2605dbc05b0 files/vdrrip-qh.conf 324
+DIST queuehandler-fixed-0.3.0.sh 25777 RMD160 4e8928b884205556e9d2bbe1b29c9b0ad4029b88 SHA1 a2ba4c94fec951088b9a37b3564bf283fd65e473 SHA256 b6c9729de47ce0ebafdfa8ae8dc2022adc292718d37f79d8569f13d865b25d5f
+DIST vdr-vdrrip-0.3.0.tgz 94937 RMD160 9a3d418e715e3fbcf5d010a21c671b13fd269b99 SHA1 1a5602cde8d1bf10a3d04c22c7233426acdb769a SHA256 9fda896cacbb78b2139ae6baa53f08a992768a78d0dce33b836b0c2ae797702b
+EBUILD vdr-vdrrip-0.3.0-r4.ebuild 2594 RMD160 c59532478e89d641b78b221454bac40fbec46df4 SHA1 257de1392abbe042cba25fba13502ea261442997 SHA256 9096cdfda0c745e6b3391ba77410679312c88929e159ba6fd50a9c56ec660a12
+MD5 822f1661666e12fe9db793d0a4f94ad9 vdr-vdrrip-0.3.0-r4.ebuild 2594
+RMD160 c59532478e89d641b78b221454bac40fbec46df4 vdr-vdrrip-0.3.0-r4.ebuild 2594
+SHA256 9096cdfda0c745e6b3391ba77410679312c88929e159ba6fd50a9c56ec660a12 vdr-vdrrip-0.3.0-r4.ebuild 2594
+MISC ChangeLog 709 RMD160 2457fc47ca245b28e6a4573b51e9228ea6d571e3 SHA1 5faece13a2308beec300db1a190be486b26ba844 SHA256 b1c99c0821565263fbf95baf060d7069eb3472cfbf545304e98d772a58d6af94
+MD5 d76e0d0ea7777c6f0f77a0321fa121fb ChangeLog 709
+RMD160 2457fc47ca245b28e6a4573b51e9228ea6d571e3 ChangeLog 709
+SHA256 b1c99c0821565263fbf95baf060d7069eb3472cfbf545304e98d772a58d6af94 ChangeLog 709
+MISC metadata.xml 381 RMD160 0e3b0b21452d7c20ff180ccfc0b5b95d5b52beef SHA1 32e7107b506f8c6cced9c0f99fb1f7234de78a0a SHA256 6bfc8b347b55b3649ce9573dd95c74e702d4f1bf255debd4643551939873dcfc
+MD5 d9a53b2460c0ab8df1f0b328d069c929 metadata.xml 381
+RMD160 0e3b0b21452d7c20ff180ccfc0b5b95d5b52beef metadata.xml 381
+SHA256 6bfc8b347b55b3649ce9573dd95c74e702d4f1bf255debd4643551939873dcfc metadata.xml 381
+MD5 29e30deb53518ad6a72fcb1d5d750dc2 files/digest-vdr-vdrrip-0.3.0-r4 497
+RMD160 ac1f1477d7d541c4000c49d3ea9b126644cf7841 files/digest-vdr-vdrrip-0.3.0-r4 497
+SHA256 b6c3e5bd3d61811aecf68aba9ed25725576d65b5e596a4936e422f357b5ba53f files/digest-vdr-vdrrip-0.3.0-r4 497
diff --git a/media-plugins/vdr-vdrrip/files/detectlength.diff b/media-plugins/vdr-vdrrip/files/detectlength.diff
new file mode 100644
index 000000000000..9f6b3f800aa4
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/detectlength.diff
@@ -0,0 +1,29 @@
+diff -r -u vdrrip-0.3.0/scripts/queuehandler.sh vdrrip-0.3.0.gentoo/scripts/queuehandler.sh
+--- vdrrip-0.3.0/scripts/queuehandler.sh 2006-10-06 00:12:10.000000000 +0200
++++ vdrrip-0.3.0.gentoo/scripts/queuehandler.sh 2006-10-06 00:11:50.000000000 +0200
+@@ -305,6 +305,12 @@
+
+ # start the preview in the middle of the movie
+ local length=`"$mp" -identify -frames 0 "$dir/001.vdr" 2>/dev/null | grep ID_LENGTH | cut -d"=" -f2`
++ # repeat command if failed first time
++ if [ -z "$length" ]
++ then
++ length=`"$mp" -identify -frames 0 "$dir/001.vdr" 2>/dev/null | \
++ grep ID_LENGTH | cut -d"=" -f2`
++ fi
+ let local ss=length/2
+ previewval="-ss $ss -endpos $previewlength"
+ }
+@@ -790,6 +796,12 @@
+ # detect length of splitted file and add it to $splitpos
+ local length=`$mplayer -identify -frames 0 $tempdir/$ofile 2>/dev/null | \
+ grep ID_LENGTH | cut -d= -f2`
++ # repeat command if failed first time
++ if [ -z "$length" ]
++ then
++ length=`$mplayer -identify -frames 0 $tempdir/$ofile 2>/dev/null | \
++ grep ID_LENGTH | cut -d= -f2`
++ fi
+ let splitpos=splitpos+length-overlap
+ let count=count+1
+ done
diff --git a/media-plugins/vdr-vdrrip/files/digest-vdr-vdrrip-0.3.0-r4 b/media-plugins/vdr-vdrrip/files/digest-vdr-vdrrip-0.3.0-r4
new file mode 100644
index 000000000000..a8ba5765ee75
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/digest-vdr-vdrrip-0.3.0-r4
@@ -0,0 +1,6 @@
+MD5 3c5363fd3017458b566e3503ccfaea2c queuehandler-fixed-0.3.0.sh 25777
+RMD160 4e8928b884205556e9d2bbe1b29c9b0ad4029b88 queuehandler-fixed-0.3.0.sh 25777
+SHA256 b6c9729de47ce0ebafdfa8ae8dc2022adc292718d37f79d8569f13d865b25d5f queuehandler-fixed-0.3.0.sh 25777
+MD5 7ba3581d26b3ffc2ebfc400f95bf72fd vdr-vdrrip-0.3.0.tgz 94937
+RMD160 9a3d418e715e3fbcf5d010a21c671b13fd269b99 vdr-vdrrip-0.3.0.tgz 94937
+SHA256 9fda896cacbb78b2139ae6baa53f08a992768a78d0dce33b836b0c2ae797702b vdr-vdrrip-0.3.0.tgz 94937
diff --git a/media-plugins/vdr-vdrrip/files/fix-ogm-ac3-vdrsync-dev.diff b/media-plugins/vdr-vdrrip/files/fix-ogm-ac3-vdrsync-dev.diff
new file mode 100644
index 000000000000..f00d899cbe39
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/fix-ogm-ac3-vdrsync-dev.diff
@@ -0,0 +1,16 @@
+diff -r -u vdrrip-0.3.0/scripts/queuehandler.sh vdrrip-0.3.0.gentoo/scripts/queuehandler.sh
+--- vdrrip-0.3.0/scripts/queuehandler.sh 2004-04-22 20:54:13.000000000 +0200
++++ vdrrip-0.3.0.gentoo/scripts/queuehandler.sh 2006-10-06 08:39:20.000000000 +0200
+@@ -337,6 +337,11 @@
+ log_info "demuxing all vdr-files from directory $dir"
+ evecho "demuxing vdr-files"
+ execute "$vdrsync $dir -o $tempdir"
++ # vdrsync 0.1.2.2 developer version creates bd.mpa
++ if [ -e "$tempdir/bd.mpa" ]
++ then
++ mv "$tempdir/bd.mpa" "$tempdir/bd.ac3"
++ fi
+ fi
+ ;;
+ *)
+Only in vdrrip-0.3.0.gentoo/scripts: queuehandler.sh.orig
diff --git a/media-plugins/vdr-vdrrip/files/fixpreview.diff b/media-plugins/vdr-vdrrip/files/fixpreview.diff
new file mode 100644
index 000000000000..924bb3e3af03
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/fixpreview.diff
@@ -0,0 +1,13 @@
+diff -r -u vdrrip-0.3.0/scripts/queuehandler.sh vdrrip-0.3.0.gentoo/scripts/queuehandler.sh
+--- vdrrip-0.3.0/scripts/queuehandler.sh 2006-10-06 19:12:01.000000000 +0200
++++ vdrrip-0.3.0.gentoo/scripts/queuehandler.sh 2006-10-06 19:12:37.000000000 +0200
+@@ -311,7 +311,7 @@
+ length=`"$mp" -identify -frames 0 "$dir/001.vdr" 2>/dev/null | \
+ grep ID_LENGTH | cut -d"=" -f2`
+ fi
+- let local ss=length/2
++ let local ss=$(echo $length | sed -e s/[.,].*//)/2
+ previewval="-ss $ss -endpos $previewlength"
+ }
+
+Only in vdrrip-0.3.0/scripts: queuehandler.sh.orig
diff --git a/media-plugins/vdr-vdrrip/files/greppid2.diff b/media-plugins/vdr-vdrrip/files/greppid2.diff
new file mode 100644
index 000000000000..ce97f3f9d77e
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/greppid2.diff
@@ -0,0 +1,13 @@
+diff -r -u vdrrip-0.3.0/scripts/queuehandler.sh vdrrip-0.3.0.gentoo/scripts/queuehandler.sh
+--- vdrrip-0.3.0/scripts/queuehandler.sh 2006-10-06 00:10:53.000000000 +0200
++++ vdrrip-0.3.0.gentoo/scripts/queuehandler.sh 2006-10-06 00:10:28.000000000 +0200
+@@ -102,7 +102,7 @@
+
+ local pids=`pgrep -d" " "$scriptname"`
+ local pid1=`echo "$pids" | cut -d" " -f1`
+- local pid2=`echo "$pids" | cut -d" " -f3`
++ local pid2=`echo "$pids" | cut -d" " -f2`
+
+ if [ "$pid1" != "$pid2" ]
+ then
+Only in vdrrip-0.3.0.gentoo/scripts: queuehandler.sh.orig
diff --git a/media-plugins/vdr-vdrrip/files/log-patch.diff b/media-plugins/vdr-vdrrip/files/log-patch.diff
new file mode 100644
index 000000000000..7d30f2c48366
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/log-patch.diff
@@ -0,0 +1,30 @@
+diff -r -u vdrrip-0.3.0.orig/scripts/queuehandler.sh vdrrip-0.3.0/scripts/queuehandler.sh
+--- vdrrip-0.3.0.orig/scripts/queuehandler.sh 2006-10-11 09:59:27.000000000 +0200
++++ vdrrip-0.3.0/scripts/queuehandler.sh 2006-10-11 10:00:48.000000000 +0200
+@@ -882,7 +882,7 @@
+ #
+ # echo $1 on stderr and write it to the syslog with priority user.error
+ #
+- logger -s -p user.error -t [vdrrip-qh] "$1"
++ logger -s -p user.error -t vdrrip-qh "$1"
+
+ if [ "$2" ]
+ then
+@@ -898,7 +898,7 @@
+ #
+ # echo $1 on stdout and write it to the syslog with priority user.info
+ #
+- logger -s -p user.info -t [vdrrip-qh] "$1" 2>&1
++ logger -s -p user.info -t vdrrip-qh "$1" 2>&1
+ }
+
+
+@@ -908,7 +908,7 @@
+ #
+ if [ "$debug" = "1" ]
+ then
+- logger -s -p user.debug -t [vdrrip-qh] "$1"
++ logger -s -p user.debug -t vdrrip-qh "$1"
+ fi
+ }
+
diff --git a/media-plugins/vdr-vdrrip/files/maketempdir.diff b/media-plugins/vdr-vdrrip/files/maketempdir.diff
new file mode 100644
index 000000000000..e3a231fbc821
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/maketempdir.diff
@@ -0,0 +1,23 @@
+diff -r -u vdrrip-0.3.0/scripts/queuehandler.sh vdrrip-0.3.0.gentoo/scripts/queuehandler.sh
+--- vdrrip-0.3.0/scripts/queuehandler.sh 2004-04-22 20:54:13.000000000 +0200
++++ vdrrip-0.3.0.gentoo/scripts/queuehandler.sh 2006-10-06 00:08:00.000000000 +0200
+@@ -92,6 +92,7 @@
+ log_error "usage: $scriptname queuefile tempdir" 1
+ fi
+
++ mkdir -p "$tempdir"
+ if [ ! -d "$tempdir" ]
+ then
+ log_error "directory $tempdir doesn't exist, aborting !" 1
+@@ -316,6 +317,11 @@
+ if [ "$error" ]; then return
+ elif [ "$dvd" ]; then return; fi
+
++ # Recreate $tempdir if removed by vdr housekeeping
++ mkdir -p "$tempdir"
++ if [ ! -d "$tempdir" ]; then return; fi
++ cd "$tempdir"
++
+ case "$container" in
+ "avi")
+ # join all vdr-files to $tempdir/temp.vdr
diff --git a/media-plugins/vdr-vdrrip/files/mencoderparam.diff b/media-plugins/vdr-vdrrip/files/mencoderparam.diff
new file mode 100644
index 000000000000..6ef0d100a4fe
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/mencoderparam.diff
@@ -0,0 +1,68 @@
+diff -r -u vdrrip-0.3.0/scripts/queuehandler.sh vdrrip-0.3.0.gentoo/scripts/queuehandler.sh
+--- vdrrip-0.3.0/scripts/queuehandler.sh 2006-10-06 18:25:15.000000000 +0200
++++ vdrrip-0.3.0.gentoo/scripts/queuehandler.sh 2006-10-06 18:54:32.000000000 +0200
+@@ -481,26 +481,41 @@
+ local vopopts="-vop $vopopts"
+ fi
+
++ if [ "$ppvalues" && "${ppvalues:1:2}" != "hb" ]
++ then
++ local mintopts=""
++ local xintopts=""
++ else
++ then
++ local mintopts=":ildct:ilme"
++ local xintopts=":interlacing"
++ fi
++
+ # encode in two passes
+ for pass in 1 2
+ do
+ if [ "$pass" = "1" ]
+ then
+ local ofile="-o /dev/null"
++ local mturbo=":turbo"
++ local xturbo=":turbo"
+ else
+ local ofile="-o $tempdir/$name.avi"
++ if [ "$useropts_lavc" ]; then log_info "\$useropts_lavc are set to \"$useropts_lavc\""; fi
++ if [ "$useropts_xvid" ]; then log_info "\$useropts_xvid are set to \"$useropts_xvid\""; fi
++ if [ "$mintopts" ]; then log_info "\Encoding an interlaced stream with \"$mintopts\""; fi
++ if [ "$xintopts" ]; then log_info "\Encoding an interlaced stream with \"$xintopts\""; fi
++ local mturbo=":$useropts_lavc$mintopts"
++ local xturbo=":$useropts_xvid$xintopts"
+ fi
+
+ # set mencoder video values
+ case "$vcodec" in
+ "lavc")
+- local vopts="-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$br_video:vqmin=$min_q:vqmax=$max_q:vpass=$pass -sws 2"
++ local vopts="-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$br_video:vqmin=$min_q:vqmax=$max_q:vpass=$pass$mturbo -sws 2"
+ ;;
+ "xvid")
+- local vopts="-ovc xvid -xvidencopts bitrate=$br_video:me_quality=6:pass=$pass -sws 2"
+- ;;
+- "divx4")
+- local vopts="-ovc divx4 -divx4opts br=$br_video:q=5:min_quant=$min_q:max_quant=$max_q:pass=$pass -sws 2"
++ local vopts="-ovc xvid -xvidencopts bitrate=$br_video:me_quality=6:pass=$pass$xturbo -sws 2"
+ ;;
+ *)
+ log_error "unknown video codec $vcodec"
+diff -r -u vdrrip-0.3.0/scripts/queuehandler.sh.conf vdrrip-0.3.0.gentoo/scripts/queuehandler.sh.conf
+--- vdrrip-0.3.0/scripts/queuehandler.sh.conf 2004-04-22 20:54:11.000000000 +0200
++++ vdrrip-0.3.0.gentoo/scripts/queuehandler.sh.conf 2006-10-06 18:58:54.000000000 +0200
+@@ -69,3 +69,14 @@
+
+ vdrhostname="localhost"
+
++ # These are the options beside the bitrate and eventually the
++ # interlace options passed to mencoder you can control the
++ # quality of the encoding by changing them here
++
++ useropts_lavc=""
++ # For a high quality high bitrate encoding use:
++ #useropts_lavc="mbd=2:trell:cbp:mv0:cmp=3:subcmp=3"
++ useropts_xvid=""
++ # For a high quality high bitrate encoding use:
++ #useropts_xvid="me_quality=6:vhq=1:notrellis:max_bframes=2"
++
diff --git a/media-plugins/vdr-vdrrip/files/mplayercmd.diff b/media-plugins/vdr-vdrrip/files/mplayercmd.diff
new file mode 100644
index 000000000000..cea555af87e1
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/mplayercmd.diff
@@ -0,0 +1,25 @@
+diff -r -u vdrrip-0.3.0/movie.c vdrrip-0.3.0.gentoo/movie.c
+--- vdrrip-0.3.0/movie.c 2004-04-21 18:47:10.000000000 +0200
++++ vdrrip-0.3.0.gentoo/movie.c 2006-10-06 09:38:31.000000000 +0200
+@@ -21,8 +21,8 @@
+
+ #define SAVEFILE "save.vdrrip"
+
+-#define IDENTCMD "%s \'%s\'%s -identify -frames 0 2>/dev/null | sed -e \'s/[`\\!$\"]/\\&/g\'"
+-#define CROPCMD "%s \'%s\'%s -vo null -ao null -really-quiet -ss %i -frames %i -vop cropdetect 2>/dev/null | grep \"crop=\" | sed \"s/.*crop\\(.*\\)).*/\\1/\" | sort | uniq -c | sort -r"
++#define IDENTCMD "%s \'%s\'%s -identify -vo null -ao null -frames 0 2>/dev/null | sed -e \'s/[`\\!$\"]/\\&/g\'"
++#define CROPCMD "%s \'%s\'%s -vo null -ao null -quiet -ss %i -frames %i -vop cropdetect 2>/dev/null | grep \"crop=\" | sed \"s/.*crop\\(.*\\)).*/\\1/\" | sort | uniq -c | sort -r"
+ #define AUDIOCMD "%s \'%s/001.vdr\' -vo null -ao null -frames 0 -aid %i 2>/dev/null | grep AUDIO"
+ #define AUDIOCMDDVD "%s %s -vo null -ao null -frames 0 -aid %i 2>/dev/null | grep AUDIO"
+ #define MENCCMD "%s %s help 2>/dev/null"
+@@ -517,7 +517,9 @@
+
+ s = strcol(strgrep("ID_VIDEO_ASPECT", p), "=", 2);
+ if (s) {
+- Aspect = atof(s);
++ /* FIXME newer mplayer does no longer return the aspect of dvb streams so it fixed to 4:3 this DOESN'T of course work with feeds or movies with different aspect ratio */
++ Aspect = atof(s);
++ if (Aspect==0) {Aspect = 1.3333333333;}
+ } else {Aspect = -1;}
+
+ CalcAspect = Aspect;
diff --git a/media-plugins/vdr-vdrrip/files/preserve-queue-owner.diff b/media-plugins/vdr-vdrrip/files/preserve-queue-owner.diff
new file mode 100644
index 000000000000..9f58103d7861
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/preserve-queue-owner.diff
@@ -0,0 +1,14 @@
+diff -r -u vdrrip-0.3.0/scripts/queuehandler.sh vdrrip-0.3.0.gentoo/scripts/queuehandler.sh
+--- vdrrip-0.3.0/scripts/queuehandler.sh 2006-10-06 08:40:46.000000000 +0200
++++ vdrrip-0.3.0.gentoo/scripts/queuehandler.sh 2006-10-06 08:41:01.000000000 +0200
+@@ -734,8 +734,8 @@
+ rm -f "$queuefile"
+ else
+ let lines=lines-1
+- tail -n $lines "$queuefile" > /tmp/queuefile.tmp
+- mv /tmp/queuefile.tmp $queuefile
++ cp -a "$queuefile" /tmp/queuefile.tmp
++ tail -n $lines /tmp/queuefile.tmp > "$queuefile"
+ fi
+
+ if [ "$error" ]
diff --git a/media-plugins/vdr-vdrrip/files/rc-addon.sh b/media-plugins/vdr-vdrrip/files/rc-addon.sh
new file mode 100644
index 000000000000..d9807872fad4
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/rc-addon.sh
@@ -0,0 +1,11 @@
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrrip/files/rc-addon.sh,v 1.1 2006/10/13 20:11:50 zzam Exp $
+#
+# rc-addon plugin-startup-skript for vdr-vdrrip
+#
+
+plugin_pre_vdr_start() {
+ # The PlugIn has to find mplayer and mencoder.
+ add_plugin_param "--MPlayer=/usr/bin/mplayer"
+ add_plugin_param "--MEncoder=/usr/bin/mencoder"
+}
+
diff --git a/media-plugins/vdr-vdrrip/files/vdrrip-0.3.0-1.3.7.diff b/media-plugins/vdr-vdrrip/files/vdrrip-0.3.0-1.3.7.diff
new file mode 100644
index 000000000000..a1bcd96ddc64
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/vdrrip-0.3.0-1.3.7.diff
@@ -0,0 +1,320 @@
+diff -Naur vdrrip-0.3.0.orig/menu-vdrrip.c vdrrip-0.3.0/menu-vdrrip.c
+--- vdrrip-0.3.0.orig/menu-vdrrip.c Sat Jun 12 13:46:39 2004
++++ vdrrip-0.3.0/menu-vdrrip.c Sat Jun 12 13:59:53 2004
+@@ -4,6 +4,10 @@
+
+ #include <vdr/plugin.h>
+ #include <vdr/videodir.h>
++#if VDRVERSNUM >= 10307
++#include <vdr/interface.h>
++#include <vdr/status.h>
++#endif
+
+ #ifdef VDRRIP_DVD
+ #include <dvdnav/ifo_read.h>
+@@ -92,14 +96,22 @@
+ # ifdef VDRRIP_DVD
+
+ cMenuVdrripWarning::cMenuVdrripWarning(const char *Title, const char *Text)
++#if VDRVERSNUM >= 10307
++:cMenuText(Title, "")
++#else
+ :cOsdMenu(Title)
++#endif
+ {
+ bool warning;
+ warning = true;
+ //warning = false;
+
+ if (warning) {
++#if VDRVERSNUM >= 10307
++ SetText(Text);
++#else
+ Add(new cMenuTextItem(Text, 1, 2, Setup.OSDwidth - 2, MAXOSDITEMS, clrWhite, clrBackground, fontOsd));
++#endif
+ SetHelp(tr("back"), tr("accept"), NULL, NULL);
+ hadsubmenu = false;
+ } else {
+@@ -120,6 +132,22 @@
+ if (hadsubmenu) {return osBack;}
+
+ switch (Key) {
++#if VDRVERSNUM >= 10307
++ // cMenuText::ProcessKey don't handle submenus
++ case kUp|k_Repeat:
++ case kUp:
++ case kDown|k_Repeat:
++ case kDown:
++ case kLeft|k_Repeat:
++ case kLeft:
++ case kRight|k_Repeat:
++ case kRight:
++ DisplayMenu()->Scroll(NORMALKEY(Key) == kUp || NORMALKEY(Key) == kLeft,
++ NORMALKEY(Key) == kLeft || NORMALKEY(Key) == kRight);
++ cStatus::MsgOsdTextItem(NULL, NORMALKEY(Key) == kUp);
++ return osContinue;
++#endif
++
+ case kRed: return osBack;
+
+ case kGreen: {
+@@ -138,13 +166,22 @@
+ ifo_handle_t *ifo_zero = NULL;
+ ifo_handle_t *ifo_tmp = NULL;
+
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtStatus, tr("checking dvd..."));
++ Skins.Flush();
++#else
+ Interface->Status(tr("checking dvd..."));
+ Interface->Flush();
++#endif
+
+ if (access(DVD, R_OK) == -1) {
+ char *s = NULL;
+ asprintf(&s, "No read privileges on %s !", DVD);
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtError, s);
++#else
+ Interface->Error(s);
++#endif
+ FREE(s);
+ return false;
+ }
+@@ -160,7 +197,11 @@
+ else {
+ char *s = NULL;
+ asprintf(&s, "Can't open ifo %d !", i);
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtError, s);
++#else
+ Interface->Error(s);
++#endif
+ FREE(s);
+ DVDClose(dvd);
+ return false;
+@@ -171,14 +212,22 @@
+ return true;
+ } else {
+ DVDClose(dvd);
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtError, "Can't open main ifo from dvd !");
++#else
+ Interface->Error("Can't open main ifo from dvd !");
++#endif
+ return false;
+ }
+ }
+
+ char *s = NULL;
+ asprintf(&s, "Can 't open %s !", DVD);
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtError, s);
++#else
+ Interface->Error(s);
++#endif
+ FREE(s);
+ return false;
+ }
+@@ -190,8 +239,13 @@
+ cMenuVdrripEncode::cMenuVdrripEncode():cOsdMenu(tr("encode vdr-recording")) {
+ R = NULL;
+
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtStatus, tr("scanning recordings..."));
++ Skins.Flush();
++#else
+ Interface->Status(tr("scanning recordings..."));
+ Interface->Flush();
++#endif
+
+ R = new cVdrripRecordings;
+ Set();
+@@ -259,7 +313,13 @@
+ FREE(s1);
+ }
+
+- if (Q->getLockStat()) {Interface->Error(tr("the queuefile is locked by the queuehandler !"));}
++ if (Q->getLockStat()) {
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtError, tr("the queuefile is locked by the queuehandler !"));
++#else
++ Interface->Error(tr("the queuefile is locked by the queuehandler !"));
++#endif
++ }
+
+ SetHelpKeys();
+ }
+@@ -353,11 +413,13 @@
+ }
+
+ void cMenuVdrripQueue::AddColItem(cOsdItem *i) {
++#if VDRVERSNUM < 10307
+ #ifdef clrScrolLine
+ i->SetColor(clrScrolLine, clrBackground);
+ #else
+ i->SetColor(clrCyan, clrBackground);
+ #endif
++#endif
+
+ Add(i);
+ }
+@@ -584,11 +646,13 @@
+ }
+
+ void cMenuVdrripEditTemplate::AddColItem(cOsdItem *i) {
++#if VDRVERSNUM < 10307
+ #ifdef clrScrolLine
+ i->SetColor(clrScrolLine, clrBackground);
+ #else
+ i->SetColor(clrCyan, clrBackground);
+ #endif
++#endif
+
+ Add(i);
+ }
+@@ -600,8 +664,13 @@
+ MovOSDsaveName = NULL;
+ FileSize[0] = MovieData[0] = CropData[0] = ScaleData[0] = NULL;
+
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtStatus, tr("reading movie-data..."));
++ Skins.Flush();
++#else
+ Interface->Status(tr("reading movie-data..."));
+ Interface->Flush();
++#endif
+
+ M = new cMovie(p, n);
+ Init();
+@@ -888,8 +957,13 @@
+
+ #ifdef VDRRIP_DVD
+ } else if (M->isDVD() && MovOSD.Title != MovOSDsave.Title && MovOSD.Title > 0) {
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtStatus, tr("reading audio-data from dvd..."));
++ Skins.Flush();
++#else
+ Interface->Status(tr("reading audio-data from dvd..."));
+ Interface->Flush();
++#endif
+ M->setDVDTitle(MovOSD.Title, true);
+ M->saveMovieData();
+ Set();
+@@ -1067,7 +1141,13 @@
+ FREE(q);
+ DELETE(Q);
+ return osBack;
+- } else {Interface->Error(tr("the queuefile is locked by the queuehandler !"));}
++ } else {
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtError, tr("the queuefile is locked by the queuehandler !"));
++#else
++ Interface->Error(tr("the queuefile is locked by the queuehandler !"));
++#endif
++ }
+
+ FREE(q);
+ DELETE(Q);
+@@ -1089,11 +1169,20 @@
+ } else {
+ if (Interface->Confirm(tr("crop black movie boarders ?"))) {
+ CropReset = true;
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtStatus, tr("search for black movie boarders"));
++ Skins.Flush();
++#else
+ Interface->Status(tr("search for black movie boarders"));
+ Interface->Flush();
++#endif
+ if (! M->setCropValues()) {
+ CropReset = false;
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtError, tr("couldn't detect black movie boarders !"));
++#else
+ Interface->Error(tr("couldn't detect black movie boarders !"));
++#endif
+ }
+ M->saveMovieData();
+ }
+@@ -1133,11 +1222,13 @@
+ }
+
+ void cMenuVdrripMovie::AddColItem(cOsdItem *i) {
++#if VDRVERSNUM < 10307
+ #ifdef clrScrolLine
+ i->SetColor(clrScrolLine, clrBackground);
+ #else
+ i->SetColor(clrCyan, clrBackground);
+ #endif
++#endif
+
+ Add(i);
+ }
+@@ -1163,8 +1254,13 @@
+ eOSState state = cOsdMenu::ProcessKey(Key);
+
+ if (Key == kOk) {
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtStatus, tr("reading audio-data from dvd..."));
++ Skins.Flush();
++#else
+ Interface->Status(tr("reading audio-data from dvd..."));
+ Interface->Flush();
++#endif
+ M->setDVDTitle(Current() + 1, true);
+ M->saveMovieData();
+ return osBack;
+diff -Naur vdrrip-0.3.0.orig/menu-vdrrip.h vdrrip-0.3.0/menu-vdrrip.h
+--- vdrrip-0.3.0.orig/menu-vdrrip.h Sat Jun 12 13:46:39 2004
++++ vdrrip-0.3.0/menu-vdrrip.h Sat Jun 12 13:58:26 2004
+@@ -7,6 +7,10 @@
+
+ #include <vdr/osd.h>
+ #include <vdr/menuitems.h>
++#if VDRVERSNUM >= 10307
++#include <vdr/menu.h>
++#include <vdr/skins.h>
++#endif
+
+ #include "movie.h"
+ #include "vdrriprecordings.h"
+@@ -51,7 +55,12 @@
+
+ #ifdef VDRRIP_DVD
+
+-class cMenuVdrripWarning : public cOsdMenu {
++class cMenuVdrripWarning
++#if VDRVERSNUM >= 10307
++ : public cMenuText {
++#else
++ : public cOsdMenu {
++#endif
+ private:
+ bool hadsubmenu;
+
+diff -Naur vdrrip-0.3.0.orig/vdrrip.c vdrrip-0.3.0/vdrrip.c
+--- vdrrip-0.3.0.orig/vdrrip.c Sat Jun 12 13:46:39 2004
++++ vdrrip-0.3.0/vdrrip.c Sat Jun 12 13:47:56 2004
+@@ -132,13 +132,21 @@
+ if (access(MPlayer, X_OK) == -1) {
+ char *s = NULL;
+ asprintf(&s, "%s doesn't exist or isn't a executable !", MPlayer);
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtError, s);
++#else
+ Interface->Error(s);
++#endif
+ FREE(s);
+ return NULL;
+ } else if (access(MEncoder, X_OK) == -1) {
+ char *s = NULL;
+ asprintf(&s, "%s doesn't exist or isn't a executable !", MEncoder);
++#if VDRVERSNUM >= 10307
++ Skins.Message(mtError, s);
++#else
+ Interface->Error(s);
++#endif
+ FREE(s);
+ return NULL;
+ } else return new cMenuVdrrip();
diff --git a/media-plugins/vdr-vdrrip/files/vdrrip-qh b/media-plugins/vdr-vdrrip/files/vdrrip-qh
new file mode 100644
index 000000000000..2802e8a0fae8
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/vdrrip-qh
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrrip/files/vdrrip-qh,v 1.1 2006/10/13 20:11:50 zzam Exp $
+
+depend() {
+ need localmount
+}
+
+start() {
+ ebegin "Starting vdrrip queuehandler"
+ start-stop-daemon --start --background \
+ --make-pidfile \
+ --pidfile /var/run/vdrrip-qh.pid --user ${USER} \
+ --exec /usr/bin/vdrrip-qh -- ${QUEUE} ${TEMPDIR} >> ${LOGFILE} 2>&1
+ eend $? "Couldn't start vdrrip-qh"
+}
+
+stop() {
+ ebegin "Stopping vdrrip queuehandler"
+ start-stop-daemon --stop --pidfile /var/run/vdrrip-qh.pid \
+ --user ${USER} /usr/bin/vdrrip-qh
+ eend $? "Couldn't stop vdrrip-qh."
+}
diff --git a/media-plugins/vdr-vdrrip/files/vdrrip-qh.conf b/media-plugins/vdr-vdrrip/files/vdrrip-qh.conf
new file mode 100644
index 000000000000..ecf8fe38774f
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/files/vdrrip-qh.conf
@@ -0,0 +1,12 @@
+# /etc/conf.d/vdrrip-qh
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrrip/files/vdrrip-qh.conf,v 1.1 2006/10/13 20:11:50 zzam Exp $
+
+USER="vdr"
+
+LOGFILE="/var/log/vdrrip-qh"
+
+TEMPDIR="/tmp/vdrrip"
+
+QUEUE="/etc/vdr/plugins/queue.vdrrip"
+
diff --git a/media-plugins/vdr-vdrrip/metadata.xml b/media-plugins/vdr-vdrrip/metadata.xml
new file mode 100644
index 000000000000..d07fad577393
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+<maintainer>
+<email>erm67@yahoo.it</email>
+<name>E. Scaglione</name>
+</maintainer>
+<maintainer>
+<email>vdr@gentoo.org</email>
+<name>Gentoo VDR Project</name>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/media-plugins/vdr-vdrrip/vdr-vdrrip-0.3.0-r4.ebuild b/media-plugins/vdr-vdrrip/vdr-vdrrip-0.3.0-r4.ebuild
new file mode 100644
index 000000000000..c7b346558764
--- /dev/null
+++ b/media-plugins/vdr-vdrrip/vdr-vdrrip-0.3.0-r4.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrrip/vdr-vdrrip-0.3.0-r4.ebuild,v 1.1 2006/10/13 20:11:50 zzam Exp $
+
+inherit vdr-plugin eutils
+
+DESCRIPTION="VDR plugin: convert video-recordings to mpeg4 for burning on CDs"
+HOMEPAGE="http://www.a-land.de/"
+SRC_URI="http://www.a-land.de/${P}.tgz
+ http://www.a-land.de/queuehandler-fixed-0.3.0.sh"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.2.0"
+RDEPEND="${DEPEND}
+ >=media-video/mplayer-1.0_pre8
+ sys-process/procps
+ sys-apps/util-linux"
+# media-video/vdrsync seems to be optional
+
+src_unpack() {
+ vdr-plugin_src_unpack
+ cp ${DISTDIR}/queuehandler-fixed-0.3.0.sh ${S}/scripts/queuehandler.sh
+
+ if
+ has_version ">=media-video/vdr-1.3.7" ;
+ then
+ einfo "applying VDR > 1.3.6 patch"
+ epatch ${FILESDIR}/vdrrip-0.3.0-1.3.7.diff
+ epatch ${FILESDIR}/mplayercmd.diff
+ epatch ${FILESDIR}/maketempdir.diff
+ epatch ${FILESDIR}/greppid2.diff
+ epatch ${FILESDIR}/detectlength.diff
+ epatch ${FILESDIR}/fix-ogm-ac3-vdrsync-dev.diff
+ epatch ${FILESDIR}/fixpreview.diff
+ epatch ${FILESDIR}/mencoderparam.diff
+ epatch ${FILESDIR}/preserve-queue-owner.diff
+ epatch ${FILESDIR}/log-patch.diff
+ fi
+
+ einfo "Patching queuehandler.sh.conf for gentoo-needs..."
+ cd ${S}
+ sed -e "s,/usr/local/bin/,/usr/bin/," \
+ -e 's,/usr/bin/mencoder_ac3,/usr/bin/mencoder,' \
+ -e 's,/usr/bin/mplayer_ac3,/usr/bin/mplayer,' \
+ -i scripts/queuehandler.sh.conf
+
+ sed -e 's,scriptdir=`dirname $0`,scriptdir=/etc/vdr/plugins/vdrrip,' \
+ -e 's,nice -+19,nice -n 19,' \
+ -i scripts/queuehandler.sh
+}
+
+src_install() {
+ vdr-plugin_src_install
+
+ # save config files
+ insinto /etc/vdr/plugins/vdrrip
+ newins scripts/queuehandler.sh.conf vdrrip-qh.conf
+ newconfd ${FILESDIR}/vdrrip-qh.conf vdrrip-qh
+ # add start script
+ exeinto /etc/init.d
+ doexe ${FILESDIR}/vdrrip-qh
+ # save in bin
+ newbin scripts/queuehandler.sh vdrrip-qh
+}
+
+pkg_postinst() {
+ vdr-plugin_pkg_postinst
+
+ einfo "You should have a look at this files:"
+ einfo
+ einfo "* /etc/vdr/plugins/vdrrip/vdrrip-qh.conf"
+ einfo
+ einfo "Use vdrrip-qh to start the vdrrip queue handler."
+ einfo "You can also run 'rc-update add /etc/init.d/vdrrip-qh default' to"
+ einfo "let vdrrip-qh start automaticly when the system starts."
+
+ einfo
+ einfo "If you used vdrrip before, mind that it runs by default as user vdr now."
+ einfo "To correct the permissions you should execute this:"
+ einfo "# chown vdr:vdr -R /var/log/vdrrip-qh /tmp/vdrrip /tmp/queuehandler.vdr"
+ einfo
+}