diff options
author | Jörg Bornkessel <hd_brummy@gentoo.org> | 2006-03-26 23:03:13 +0000 |
---|---|---|
committer | Jörg Bornkessel <hd_brummy@gentoo.org> | 2006-03-26 23:03:13 +0000 |
commit | 7cf67a57eeab38db4c57fd62b83f0c9eccbe7b71 (patch) | |
tree | 158727bffb6e7a937702e85df68b12094807e108 /media-video/noad/files | |
parent | Add support for ia64. Change the way we do the CFLAGS and GHC_CFLAGS again. M... (diff) | |
download | gentoo-2-7cf67a57eeab38db4c57fd62b83f0c9eccbe7b71.tar.gz gentoo-2-7cf67a57eeab38db4c57fd62b83f0c9eccbe7b71.tar.bz2 gentoo-2-7cf67a57eeab38db4c57fd62b83f0c9eccbe7b71.zip |
initial ebuild; older Versions on Gentoo.de Overlay
(Portage version: 2.0.54)
Diffstat (limited to 'media-video/noad/files')
-rw-r--r-- | media-video/noad/files/digest-noad-0.6.0-r2 | 1 | ||||
-rw-r--r-- | media-video/noad/files/noad-0.6.0-directoryfix.diff | 48 | ||||
-rw-r--r-- | media-video/noad/files/reccmds.noad.conf | 1 | ||||
-rw-r--r-- | media-video/noad/files/record-20-noad.sh | 53 | ||||
-rw-r--r-- | media-video/noad/files/vdraddon.noad | 45 |
5 files changed, 148 insertions, 0 deletions
diff --git a/media-video/noad/files/digest-noad-0.6.0-r2 b/media-video/noad/files/digest-noad-0.6.0-r2 new file mode 100644 index 000000000000..ebbd7f5e3f24 --- /dev/null +++ b/media-video/noad/files/digest-noad-0.6.0-r2 @@ -0,0 +1 @@ +MD5 62947d5afec56cdb9884535d9813530d noad-0.6.0.tar.bz2 151369 diff --git a/media-video/noad/files/noad-0.6.0-directoryfix.diff b/media-video/noad/files/noad-0.6.0-directoryfix.diff new file mode 100644 index 000000000000..23e94e858618 --- /dev/null +++ b/media-video/noad/files/noad-0.6.0-directoryfix.diff @@ -0,0 +1,48 @@ +taken from http://vdr-portal.de/board/thread.php?threadid=38968 + +diff -Nur noad.old/svdrpc.cpp noad.new/svdrpc.cpp +--- noad.old/svdrpc.cpp 2005-02-12 18:32:10.000000000 +0100 ++++ noad.new/svdrpc.cpp 2005-09-13 12:52:08.000000000 +0200 +@@ -250,13 +250,30 @@ + { + char *baseName = NULL; + char *cp = NULL; +- char *vend = strchr(filename,'/'); +- if( vend ) ++ char *fname = NULL; ++ char *vend = NULL; ++ ++ asprintf(&fname, "%s", filename); ++ if(fname[strlen(fname) - 1] == '/') ++ fname[strlen(fname) - 1] = '\0'; ++ vend = strrchr(fname,'/'); ++ if(vend) { ++ *vend = '\0'; ++ vend = strrchr(fname,'/'); ++ } ++ ++ if( vend && vend[1] == '_') ++ { ++ *vend = '\0'; ++ vend = strrchr(fname,'/'); ++ } ++ ++ if( vend && strchr(vend+1, '/')) + vend = strchr(vend+1,'/'); + if( vend ) +- asprintf(&baseName,"mesg %s %s",msg,vend+1); ++ asprintf(&baseName,"mesg %s '%s'",msg,vend+1); + else +- asprintf(&baseName,"mesg %s %s",msg, filename); ++ asprintf(&baseName,"mesg %s '%s'",msg, filename); + if( baseName[strlen(baseName)-1] == '/' ) + baseName[strlen(baseName)-1] = '\0'; + vend = strrchr(baseName, '/'); +@@ -268,6 +285,7 @@ + + free(baseName); + free(cp); ++ free(fname); + } + + void noadStartMessage( const char *s) diff --git a/media-video/noad/files/reccmds.noad.conf b/media-video/noad/files/reccmds.noad.conf new file mode 100644 index 000000000000..966642c645f5 --- /dev/null +++ b/media-video/noad/files/reccmds.noad.conf @@ -0,0 +1 @@ +Starte NoaD :/usr/bin/noad -a -o -O after "${2}" diff --git a/media-video/noad/files/record-20-noad.sh b/media-video/noad/files/record-20-noad.sh new file mode 100644 index 000000000000..75e99b6b990b --- /dev/null +++ b/media-video/noad/files/record-20-noad.sh @@ -0,0 +1,53 @@ +# $Header: /var/cvsroot/gentoo-x86/media-video/noad/files/record-20-noad.sh,v 1.1 2006/03/26 23:03:13 hd_brummy 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 | liverecord | afterrecord" + +[[ ${VDR_USE_NOAD} != "no" ]] || return + +# Start NoAd after Record + +if [[ "${VDR_USE_NOAD}" == "afterrecord" ]] && [[ "${VDR_RECORD_STATE}" == "after" ]]; then + + [[ "${NOAD_AC3}" == "yes" ]] && CMD="${CMD} -a" + + [[ "${NOAD_JUMP}" == "yes" ]] && CMD="${CMD} -j" + + [[ "${NOAD_OVERLAP}" == "yes" ]] && CMD="${CMD} -o" + + [[ "${NOAD_MESSAGES}" == "yes" ]] && CMD="${CMD} -O" + + CMD="${CMD} ${NOAD_PARAMETER}" + + ${CMD} ${VDR_RECORD_STATE} "${2}" +fi + +# Section for noad on timeshift + +if [[ "${VDR_USE_NOAD}" == "liverecord" ]]; then + + [[ "${NOAD_AC3}" == "yes" ]] && CMD="${CMD} -a" + + [[ "${NOAD_JUMP}" == "yes" ]] && CMD="${CMD} -j" + + [[ "${NOAD_OVERLAP}" == "yes" ]] && CMD="${CMD} -o" + + [[ "${NOAD_MESSAGES}" == "yes" ]] && CMD="${CMD} -O" + + CMD="${CMD} --online" + + CMD="${CMD} ${NOAD_PARAMETER}" + + ${CMD} ${VDR_RECORD_STATE} "${2}" +fi + +# uncomment for debug +#echo $1 $2 >> /tmp/my-record-log-file diff --git a/media-video/noad/files/vdraddon.noad b/media-video/noad/files/vdraddon.noad new file mode 100644 index 000000000000..02ca3353c1e4 --- /dev/null +++ b/media-video/noad/files/vdraddon.noad @@ -0,0 +1,45 @@ +# 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/vdraddon.noad,v 1.1 2006/03/26 23:03:13 hd_brummy Exp $ + +######### +## +# run Noad +# available Parameter +# no | liverecord | afterrecord +# +VDR_USE_NOAD="afterrecord" + +## 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" + +## add your own parameter here, +# yust run 'noad' in konsole for more parameter +NOAD_PARAMETER="" + + + + + + |