summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-10-07 11:19:01 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-10-07 11:19:01 +0000
commit42570179b5835e10ea5f4e979427f1c0d374c4ac (patch)
treec798722a0490bc5d4b8b1186743793b8825804b1 /media-video/noad
parentUpdate dev-lang/lua mask. (diff)
downloadhistorical-42570179b5835e10ea5f4e979427f1c0d374c4ac.tar.gz
historical-42570179b5835e10ea5f4e979427f1c0d374c4ac.tar.bz2
historical-42570179b5835e10ea5f4e979427f1c0d374c4ac.zip
Added two bugfixes, see Bug #147267. Added option for more niceness of noad-process.
Package-Manager: portage-2.1.2_pre2-r5
Diffstat (limited to 'media-video/noad')
-rw-r--r--media-video/noad/ChangeLog12
-rw-r--r--media-video/noad/Manifest47
-rw-r--r--media-video/noad/files/0.6.0-r5/confd_vdraddon.noad65
-rw-r--r--media-video/noad/files/0.6.0-r5/noad-reccmd7
-rw-r--r--media-video/noad/files/0.6.0-r5/reccmds.noad.conf1
-rw-r--r--media-video/noad/files/0.6.0-r5/record-50-noad.sh62
-rw-r--r--media-video/noad/files/digest-noad-0.6.0-r53
-rw-r--r--media-video/noad/files/noad-0.6.0-delete-while-scanning.diff23
-rw-r--r--media-video/noad/files/noad-0.6.0-framesize.diff12
-rw-r--r--media-video/noad/noad-0.6.0-r5.ebuild83
10 files changed, 306 insertions, 9 deletions
diff --git a/media-video/noad/ChangeLog b/media-video/noad/ChangeLog
index 5a803de263f7..76cecdfdccce 100644
--- a/media-video/noad/ChangeLog
+++ b/media-video/noad/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for media-video/noad
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/noad/ChangeLog,v 1.9 2006/08/01 19:43:01 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/noad/ChangeLog,v 1.10 2006/10/07 11:19:01 zzam Exp $
+
+*noad-0.6.0-r5 (07 Oct 2006)
+
+ 07 Oct 2006; Matthias Schwarzott <zzam@gentoo.org>
+ +files/0.6.0-r5/noad-reccmd, +files/noad-0.6.0-delete-while-scanning.diff,
+ +files/noad-0.6.0-framesize.diff, +files/0.6.0-r5/record-50-noad.sh,
+ +files/0.6.0-r5/confd_vdraddon.noad, +files/0.6.0-r5/reccmds.noad.conf,
+ +noad-0.6.0-r5.ebuild:
+ Added two bugfixes, see Bug #147267. Added option for more niceness of
+ noad-process.
01 Aug 2006; Matthias Schwarzott <zzam@gentoo.org> metadata.xml:
Assigned to VDR-Project.
diff --git a/media-video/noad/Manifest b/media-video/noad/Manifest
index 13edc0182096..20210c59ac7f 100644
--- a/media-video/noad/Manifest
+++ b/media-video/noad/Manifest
@@ -17,6 +17,22 @@ AUX 0.6.0-r3/record-50-noad.sh 1223 RMD160 07b2a96944dea39e93c64a32dde54928c56b4
MD5 dae61c820e9874cb62337f4a66c39a21 files/0.6.0-r3/record-50-noad.sh 1223
RMD160 07b2a96944dea39e93c64a32dde54928c56b4f25 files/0.6.0-r3/record-50-noad.sh 1223
SHA256 b558a830a4d0eae8a0e393d2bc66f63727f12f3b7fecfee537b797e9867c2415 files/0.6.0-r3/record-50-noad.sh 1223
+AUX 0.6.0-r5/confd_vdraddon.noad 1223 RMD160 406d1c65aac88e0b2d1225d7c2a32b38bf17b6a8 SHA1 0c6850e7f8e3cd2cf06ca3ac28f40114104ff97d SHA256 45c5693a1af340cb2319621ba364f3724cf82e2ab8cd0840a0c2f28708008e33
+MD5 0b531da9ec0c3105ed79c4d5e35c4a5c files/0.6.0-r5/confd_vdraddon.noad 1223
+RMD160 406d1c65aac88e0b2d1225d7c2a32b38bf17b6a8 files/0.6.0-r5/confd_vdraddon.noad 1223
+SHA256 45c5693a1af340cb2319621ba364f3724cf82e2ab8cd0840a0c2f28708008e33 files/0.6.0-r5/confd_vdraddon.noad 1223
+AUX 0.6.0-r5/noad-reccmd 152 RMD160 b30fdf88b2ed0547f14a9ba163fba0a05c368ff2 SHA1 c2e493a3c5fbfeb385e7986ff68a47909c42b9a9 SHA256 4d25751987bb50677eb3909d23a3c820bbd8aeaef4aac383baff855082dab7c0
+MD5 6ed00f1a29658d3d9525a7fc5edff6f6 files/0.6.0-r5/noad-reccmd 152
+RMD160 b30fdf88b2ed0547f14a9ba163fba0a05c368ff2 files/0.6.0-r5/noad-reccmd 152
+SHA256 4d25751987bb50677eb3909d23a3c820bbd8aeaef4aac383baff855082dab7c0 files/0.6.0-r5/noad-reccmd 152
+AUX 0.6.0-r5/reccmds.noad.conf 61 RMD160 c62bdb45da8ae9aabfbd7a688f4600a5af04397f SHA1 d5fe02b78a5abd932fe0d6a5769bc8aa2e3ca54c SHA256 41dbc62f88429710b92f6d7cc45c49a967ae1376fc01b5b485b51f7e077ed20d
+MD5 4524974857d07e15856410a1001a2817 files/0.6.0-r5/reccmds.noad.conf 61
+RMD160 c62bdb45da8ae9aabfbd7a688f4600a5af04397f files/0.6.0-r5/reccmds.noad.conf 61
+SHA256 41dbc62f88429710b92f6d7cc45c49a967ae1376fc01b5b485b51f7e077ed20d files/0.6.0-r5/reccmds.noad.conf 61
+AUX 0.6.0-r5/record-50-noad.sh 1280 RMD160 3cecff39403c6d7a4cf22736534873c69505b0fd SHA1 a52ebb4ce828d756f623649ffd60182d516aa76e SHA256 9df8d54663eba19774533ccfd9b0e8516cde5c6cb36dbd4f43de6f0d1d5222b7
+MD5 8a37f935434e52b3a1ae733d1b935c12 files/0.6.0-r5/record-50-noad.sh 1280
+RMD160 3cecff39403c6d7a4cf22736534873c69505b0fd files/0.6.0-r5/record-50-noad.sh 1280
+SHA256 9df8d54663eba19774533ccfd9b0e8516cde5c6cb36dbd4f43de6f0d1d5222b7 files/0.6.0-r5/record-50-noad.sh 1280
AUX noad-0.6.0-as-needed.diff 978 RMD160 d6c74670793b76f5cc9f3ea740b001a9034c5b2a SHA1 83885096cfe13c28912fe69afd9d708f9e22caf4 SHA256 a4f8cbdeeba303ab659bafc75f5d622b1ceec6945d3c35e4f0c559d3504e8ed9
MD5 b2af6d077e29ad03e2d5ce1c8b36ec04 files/noad-0.6.0-as-needed.diff 978
RMD160 d6c74670793b76f5cc9f3ea740b001a9034c5b2a files/noad-0.6.0-as-needed.diff 978
@@ -25,10 +41,18 @@ AUX noad-0.6.0-cflags.diff 1065 RMD160 a19296d791068e56fdb9d76b054a654b79c16113
MD5 6c76642dac026347269199d32005000f files/noad-0.6.0-cflags.diff 1065
RMD160 a19296d791068e56fdb9d76b054a654b79c16113 files/noad-0.6.0-cflags.diff 1065
SHA256 7247f4dd7eade6b39808797c4bb2476bd678f98e8b4ac5aad9c7c99e8def331e files/noad-0.6.0-cflags.diff 1065
+AUX noad-0.6.0-delete-while-scanning.diff 707 RMD160 f9a9878c2b5dbf201296c095fbc7d779d3d26cb2 SHA1 a069dc2d52082481691ed4968b04d5549d93d321 SHA256 762db9658661013e32cb115c137652ed4167ff89152ea52152267dfc96cbba91
+MD5 6373bba1d2342041a90cbd379e5bff8d files/noad-0.6.0-delete-while-scanning.diff 707
+RMD160 f9a9878c2b5dbf201296c095fbc7d779d3d26cb2 files/noad-0.6.0-delete-while-scanning.diff 707
+SHA256 762db9658661013e32cb115c137652ed4167ff89152ea52152267dfc96cbba91 files/noad-0.6.0-delete-while-scanning.diff 707
AUX noad-0.6.0-directoryfix.diff 1254 RMD160 f7ed26ef2478d7a3a622e288642615b8da46318b SHA1 c129f0c23708fed6e6921c912c426c38ad0c676a SHA256 edbadaaafcb6677b73cc368062e21dd81c81d35709cd55bd87a759068d5804ed
MD5 59537f1f5164f2b2bbb0c0a5d3174112 files/noad-0.6.0-directoryfix.diff 1254
RMD160 f7ed26ef2478d7a3a622e288642615b8da46318b files/noad-0.6.0-directoryfix.diff 1254
SHA256 edbadaaafcb6677b73cc368062e21dd81c81d35709cd55bd87a759068d5804ed files/noad-0.6.0-directoryfix.diff 1254
+AUX noad-0.6.0-framesize.diff 414 RMD160 187c4be6c276f878b3e64ad484ee6cb19d7dc3ad SHA1 93da45091c53e88f51090421aaa5b7e9fddf4eb7 SHA256 f6b7769ef62f5c00de9acb9d5e20fba09c2f745dfb2872405b6780411452eb9f
+MD5 4c7b14d97e7d4c423e169168ce55d265 files/noad-0.6.0-framesize.diff 414
+RMD160 187c4be6c276f878b3e64ad484ee6cb19d7dc3ad files/noad-0.6.0-framesize.diff 414
+SHA256 f6b7769ef62f5c00de9acb9d5e20fba09c2f745dfb2872405b6780411452eb9f files/noad-0.6.0-framesize.diff 414
AUX reccmds.noad.conf 51 RMD160 1397191e9419547de617b3103b4b6f642d86add9 SHA1 d397512b782696c7d481bf7f1a9b8a38e80dc095 SHA256 56039e2703c6a39bb6a7d452b99ef626b368eaa3824f76ecae081f55da651a8e
MD5 129ab2c83615337c4242c2ec9a47a3c5 files/reccmds.noad.conf 51
RMD160 1397191e9419547de617b3103b4b6f642d86add9 files/reccmds.noad.conf 51
@@ -50,10 +74,14 @@ EBUILD noad-0.6.0-r4.ebuild 1974 RMD160 f3b8b4ed654444cccbd185b3aa46398f66a09cf6
MD5 dfd376a7101b3d711d2b167bedcf0fee noad-0.6.0-r4.ebuild 1974
RMD160 f3b8b4ed654444cccbd185b3aa46398f66a09cf6 noad-0.6.0-r4.ebuild 1974
SHA256 a2f6d16f326fe07c45e3ae45737ee0d398a19ae3529e1df5de809f327546ab4f noad-0.6.0-r4.ebuild 1974
-MISC ChangeLog 1979 RMD160 ef7b4fa77f93868eaa9b0df67b6d004bc12e9261 SHA1 4040a09013284787fe0874a798d551d11bc3b49c SHA256 841fbda3694a5f09bb3a593b8a2f0d164db47495e1647eb3b13f9db9e6a49d21
-MD5 065f3c09457a93df1dc225095541e486 ChangeLog 1979
-RMD160 ef7b4fa77f93868eaa9b0df67b6d004bc12e9261 ChangeLog 1979
-SHA256 841fbda3694a5f09bb3a593b8a2f0d164db47495e1647eb3b13f9db9e6a49d21 ChangeLog 1979
+EBUILD noad-0.6.0-r5.ebuild 2019 RMD160 532effbeeb9a2d161409e2156922a7604551a660 SHA1 96225be4eb6927b7924e401b98d88953faab5b79 SHA256 4763feaee843daaca522cf3b76b5717b5a5a475f9138ad2104c66ea67f3aa7a9
+MD5 fcaf7a1e4c3ee391f437c98cbe89ef2b noad-0.6.0-r5.ebuild 2019
+RMD160 532effbeeb9a2d161409e2156922a7604551a660 noad-0.6.0-r5.ebuild 2019
+SHA256 4763feaee843daaca522cf3b76b5717b5a5a475f9138ad2104c66ea67f3aa7a9 noad-0.6.0-r5.ebuild 2019
+MISC ChangeLog 2400 RMD160 e43e49d61016313407c3b72ba32eaae84cd20e4f SHA1 fff87e9242f89232e027c9e4e89a405fd75bb3b3 SHA256 5d0f3a0a7a39b89b7c4a1e81a317c54f839bc08fb24a20760c6db9506ea6acb5
+MD5 07d1196a0500221ab7d186bd451f54db ChangeLog 2400
+RMD160 e43e49d61016313407c3b72ba32eaae84cd20e4f ChangeLog 2400
+SHA256 5d0f3a0a7a39b89b7c4a1e81a317c54f839bc08fb24a20760c6db9506ea6acb5 ChangeLog 2400
MISC metadata.xml 345 RMD160 40fa5fcd3946fb26c10efadbe084eb5f56607153 SHA1 01fde850e9581b6a2ccdb95b24d90a1a0511417f SHA256 a6ecd52a0597c34de4d3aa2dd428d3fcbc760e35ef9daa31d6c2d911d55bead4
MD5 0dac6cdf92af4c49732fb6ac660b2132 metadata.xml 345
RMD160 40fa5fcd3946fb26c10efadbe084eb5f56607153 metadata.xml 345
@@ -64,10 +92,13 @@ SHA256 57903a89cf74860cf7d8e58b307d50def06a591c47a6b947506fe1fef60791c7 files/di
MD5 d481d5871b1b6a8779050d5a7baeb51e files/digest-noad-0.6.0-r4 235
RMD160 e1b3720b311c9cafd641d84299b3af913c8d1984 files/digest-noad-0.6.0-r4 235
SHA256 57903a89cf74860cf7d8e58b307d50def06a591c47a6b947506fe1fef60791c7 files/digest-noad-0.6.0-r4 235
+MD5 d481d5871b1b6a8779050d5a7baeb51e files/digest-noad-0.6.0-r5 235
+RMD160 e1b3720b311c9cafd641d84299b3af913c8d1984 files/digest-noad-0.6.0-r5 235
+SHA256 57903a89cf74860cf7d8e58b307d50def06a591c47a6b947506fe1fef60791c7 files/digest-noad-0.6.0-r5 235
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5rc1 (GNU/Linux)
+Version: GnuPG v1.4.5 (GNU/Linux)
-iD8DBQFEz67Rt2vP6XvVdOcRAp/iAJsGTqgMLLuib09uJqwlh8q47GsoSACdEyq0
-dODzowtkUHJgSFLfZmQOvRE=
-=kZR7
+iD8DBQFFJ40xt2vP6XvVdOcRAigDAJ4+uNkFWXO00yUdqxEtKxS06HDskACgjN3U
+IeaKltTvClfWKQ7ceHNADyM=
+=58hd
-----END PGP SIGNATURE-----
diff --git a/media-video/noad/files/0.6.0-r5/confd_vdraddon.noad b/media-video/noad/files/0.6.0-r5/confd_vdraddon.noad
new file mode 100644
index 000000000000..9b21b7adf7bb
--- /dev/null
+++ b/media-video/noad/files/0.6.0-r5/confd_vdraddon.noad
@@ -0,0 +1,65 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/noad/files/0.6.0-r5/confd_vdraddon.noad,v 1.1 2006/10/07 11:19:01 zzam Exp $
+
+#########
+##
+# run Noad
+# available Parameter
+# no | yes
+#
+VDR_USE_NOAD="yes"
+
+## do online scan while recording
+# you can choose between
+# no - disable online scan
+# live - scan only live recordings online (named @...)
+# all - scan all recordings with online mode
+# available Parameter
+# no | live | all
+#
+NOAD_ONLINE="no"
+
+## start noad with nice
+# available Parameter
+# yes | no
+NOAD_NICE="yes"
+
+## use ac3 detection
+# available Parameter
+# yes | no
+#
+NOAD_AC3="yes"
+
+## detect jumping logos
+# available Parameter
+# yes | no
+#
+NOAD_JUMP="yes"
+
+## detect overlaps
+# available Parameter
+# yes | no
+#
+NOAD_OVERLAP="yes"
+
+## send an OSD-Message to localhost:2001 for start and end
+# available Parameter
+# yes | no
+#
+NOAD_MESSAGES="yes"
+
+## only scan if sharemarks did not produce an ptsmarks.vdr file
+# available Parameter
+# yes | no
+NOAD_ONLY_SCAN_IF_NO_PTSMARKS="yes"
+
+## add your own parameter here,
+# yust run 'noad' in konsole for more parameter
+NOAD_PARAMETER=""
+
+
+
+
+
+
diff --git a/media-video/noad/files/0.6.0-r5/noad-reccmd b/media-video/noad/files/0.6.0-r5/noad-reccmd
new file mode 100644
index 000000000000..069a292f25cf
--- /dev/null
+++ b/media-video/noad/files/0.6.0-r5/noad-reccmd
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+VDR_RECORD_STATE=reccmd
+VDR_RECORD_NAME="${1}"
+
+source /usr/share/vdr/record/record-50-noad.sh "${VDR_RECORD_STATE}" "${VDR_RECORD_NAME}"
+
diff --git a/media-video/noad/files/0.6.0-r5/reccmds.noad.conf b/media-video/noad/files/0.6.0-r5/reccmds.noad.conf
new file mode 100644
index 000000000000..5d35495a90b8
--- /dev/null
+++ b/media-video/noad/files/0.6.0-r5/reccmds.noad.conf
@@ -0,0 +1 @@
+Scan for Commercials (noad) :/usr/share/vdr/bin/noad-reccmd
diff --git a/media-video/noad/files/0.6.0-r5/record-50-noad.sh b/media-video/noad/files/0.6.0-r5/record-50-noad.sh
new file mode 100644
index 000000000000..85957348b364
--- /dev/null
+++ b/media-video/noad/files/0.6.0-r5/record-50-noad.sh
@@ -0,0 +1,62 @@
+# $Header: /var/cvsroot/gentoo-x86/media-video/noad/files/0.6.0-r5/record-50-noad.sh,v 1.1 2006/10/07 11:19:01 zzam Exp $
+#
+# Joerg Bornkessel <hd_brummy@gentoo.org>
+# Mathias Schwarzott <zzam@gentoo.org>
+#
+
+source /etc/conf.d/vdraddon.noad
+
+CMD="/usr/bin/noad"
+
+# Parameter to start NoAd
+# parameter are "no | yes"
+
+
+ALLOW_ONLINE=yes
+
+if [[ ${VDR_RECORD_STATE} == reccmd ]]; then
+ # script started from reccmd
+ VDR_USE_NOAD=yes
+ VDR_RECORD_STATE=after
+ ALLOW_ONLINE=no
+ NOAD_ONLY_SCAN_IF_NO_PTSMARKS=no
+fi
+
+[[ ${VDR_USE_NOAD} == "yes" ]] || return
+
+
+case "${VDR_RECORD_STATE}" in
+after) : ;;
+
+before) [[ "${NOAD_ONLINE}" == "no" ]] && return ;;
+
+*) return ;;
+esac
+
+if [[ ${ALLOW_ONLINE} == yes ]]; then
+ case "${NOAD_ONLINE}" in
+ live|yes)
+ CMD="${CMD} --online=1"
+ ;;
+ all)
+ CMD="${CMD} --online=2"
+ ;;
+ esac
+fi
+
+if [[ ${NOAD_ONLY_SCAN_IF_NO_PTSMARKS} == yes ]]; then
+ [[ -f ${VDR_RECORD_NAME}/ptsmarks.vdr ]] && return
+fi
+
+[[ "${NOAD_AC3}" == "yes" ]] && CMD="${CMD} -a"
+[[ "${NOAD_JUMP}" == "yes" ]] && CMD="${CMD} -j"
+[[ "${NOAD_OVERLAP}" == "yes" ]] && CMD="${CMD} -o"
+[[ "${NOAD_MESSAGES}" == "yes" ]] && CMD="${CMD} -O"
+
+if [[ ${NOAD_NICE} == yes ]]; then
+ CMD="nice ${CMD}"
+fi
+
+CMD="${CMD} ${NOAD_PARAMETER}"
+${CMD} "${VDR_RECORD_STATE}" "${VDR_RECORD_NAME}"
+
diff --git a/media-video/noad/files/digest-noad-0.6.0-r5 b/media-video/noad/files/digest-noad-0.6.0-r5
new file mode 100644
index 000000000000..05e249e57c9d
--- /dev/null
+++ b/media-video/noad/files/digest-noad-0.6.0-r5
@@ -0,0 +1,3 @@
+MD5 62947d5afec56cdb9884535d9813530d noad-0.6.0.tar.bz2 151369
+RMD160 762c8efeb89d681a77d83d0df70668b62a7057dd noad-0.6.0.tar.bz2 151369
+SHA256 f473f0137fa9ba8f7a736d9ca019fe5491e1744b17b54a1bdbfc23a9c8001183 noad-0.6.0.tar.bz2 151369
diff --git a/media-video/noad/files/noad-0.6.0-delete-while-scanning.diff b/media-video/noad/files/noad-0.6.0-delete-while-scanning.diff
new file mode 100644
index 000000000000..0de5a8f2c929
--- /dev/null
+++ b/media-video/noad/files/noad-0.6.0-delete-while-scanning.diff
@@ -0,0 +1,23 @@
+diff -ru noad-0.6.0-orig/tools.cpp noad-0.6.0/tools.cpp
+--- noad-0.6.0-orig/tools.cpp 2006-09-22 14:33:32.000000000 +0200
++++ noad-0.6.0/tools.cpp 2006-10-06 10:09:35.000000000 +0200
+@@ -17,6 +17,8 @@
+ #include <time.h>
+ #include <unistd.h>
+ #include <execinfo.h>
++#include <sys/types.h>
++#include <signal.h>
+
+ extern int SysLogLevel;
+
+@@ -961,6 +963,10 @@
+ esyslog(LOG_ERR, "ERROR: frame larger than buffer (%d > %d)", Length, Max);
+ Length = Max;
+ }
++ if (f == -1) {
++ esyslog(LOG_ERR, "ERROR: cannot open video-file (recording deleted while scanning or bad index-file)");
++ kill(getpid(),SIGTERM);
++ }
+ //int r = safe_read(f, b, Length);
+ int r = read( f,b,Length);
+ if (r < 0)
diff --git a/media-video/noad/files/noad-0.6.0-framesize.diff b/media-video/noad/files/noad-0.6.0-framesize.diff
new file mode 100644
index 000000000000..9f0e9d01d3e6
--- /dev/null
+++ b/media-video/noad/files/noad-0.6.0-framesize.diff
@@ -0,0 +1,12 @@
+diff -ru noad-0.6.0-orig/vdr_cl.h noad-0.6.0/vdr_cl.h
+--- noad-0.6.0-orig/vdr_cl.h 2006-10-07 11:25:46.164645112 +0200
++++ noad-0.6.0/vdr_cl.h 2006-10-07 11:26:01.022074938 +0200
+@@ -52,7 +52,7 @@
+
+ #define KILOBYTE(n) ((n) * 1024)
+ // The maximum size of a single frame:
+-#define MAXFRAMESIZE KILOBYTE(192)
++#define MAXFRAMESIZE KILOBYTE(256)
+
+ #define FRAMESPERSEC 25
+ #define FRAMESPERMIN (FRAMESPERSEC*60)
diff --git a/media-video/noad/noad-0.6.0-r5.ebuild b/media-video/noad/noad-0.6.0-r5.ebuild
new file mode 100644
index 000000000000..4af2a12651e3
--- /dev/null
+++ b/media-video/noad/noad-0.6.0-r5.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/noad/noad-0.6.0-r5.ebuild,v 1.1 2006/10/07 11:19:01 zzam Exp $
+
+inherit eutils autotools
+
+DESCRIPTION="Mark commercial Breaks in VDR records"
+HOMEPAGE="http://www.freepgs.com/noad/"
+SRC_URI="http://www.freepgs.com/${PN}/${P}.tar.bz2
+ mirror://vdrfiles/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="ffmpeg imagemagick"
+
+DEPEND="media-libs/libmpeg2
+ media-video/vdr
+ ffmpeg? ( >=media-video/ffmpeg-0.4.8 )
+ imagemagick? ( >=media-gfx/imagemagick-6.2.4.2-r1 )"
+RDEPEND=">=media-tv/gentoo-vdr-scripts-0.3.5"
+
+src_unpack() {
+
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/${P}-directoryfix.diff
+ epatch ${FILESDIR}/${P}-as-needed.diff
+ epatch ${FILESDIR}/${P}-cflags.diff
+ epatch ${FILESDIR}/${P}-framesize.diff
+ epatch ${FILESDIR}/${P}-delete-while-scanning.diff
+
+ rm configure
+ eautoreconf
+}
+
+src_compile() {
+
+ econf \
+ $(use_with ffmpeg) \
+ $(use_with imagemagick magick) \
+ --with-tools \
+ --with-mpeginclude=/usr/include/mpeg2dec
+
+ emake || die "emake faild"
+}
+
+src_install() {
+
+ dobin noad showindex
+ use imagemagick && dobin markpics
+
+ dodoc COPYING README INSTALL
+ # example scripts are installed as dokumentation
+ dodoc allnewnoad allnoad allnoadnice clearlogos noadifnew stat2html
+
+ CONF_SOURCE=${FILESDIR}/0.6.0-r5
+ insinto /etc/conf.d
+ newins ${CONF_SOURCE}/confd_vdraddon.noad vdraddon.noad
+
+ insinto /usr/share/vdr/record
+ doins ${CONF_SOURCE}/record-50-noad.sh
+
+ insinto /etc/vdr/reccmds
+ doins ${CONF_SOURCE}/reccmds.noad.conf
+
+ exeinto /usr/share/vdr/bin
+ doexe ${CONF_SOURCE}/noad-reccmd
+}
+
+pkg_postinst() {
+
+ einfo
+ einfo "Congratulations, you have just installed noad!,"
+ einfo "To integrate noad in VDR you should do this:"
+ einfo
+ einfo "start and set Parameter in /etc/conf.d/vdraddon.noad"
+ einfo
+ einfo "Note: You can use here all pararmeters for noad,"
+ einfo "please look in the documentation of noad."
+ einfo
+}