[arch-commits] CVS update of extra/multimedia/mythvideo (PKGBUILD mtd)
Juergen Hoetzel
juergen at archlinux.org
Fri Apr 4 06:11:40 UTC 2008
Date: Friday, April 4, 2008 @ 02:11:40
Author: juergen
Path: /home/cvs-extra/extra/multimedia/mythvideo
Added: mtd (1.1)
Modified: PKGBUILD (1.9 -> 1.10)
upgpkg: mythvideo 0.21-2 added Myth Transcoding Daemon script from mythdvd)
----------+
PKGBUILD | 10 ++++++----
mtd | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 4 deletions(-)
Index: extra/multimedia/mythvideo/PKGBUILD
diff -u extra/multimedia/mythvideo/PKGBUILD:1.9 extra/multimedia/mythvideo/PKGBUILD:1.10
--- extra/multimedia/mythvideo/PKGBUILD:1.9 Wed Apr 2 15:26:53 2008
+++ extra/multimedia/mythvideo/PKGBUILD Fri Apr 4 02:11:40 2008
@@ -1,17 +1,18 @@
-# $Id: PKGBUILD,v 1.9 2008/04/02 19:26:53 juergen Exp $
+# $Id: PKGBUILD,v 1.10 2008/04/04 06:11:40 juergen Exp $
# Maintainer: Juergen Hoetzel <travis at archlinux.org>
# Contributor: kleptophobiac at gmail.com
pkgname=mythvideo
pkgver=0.21
-pkgrel=1
+pkgrel=2
pkgdesc="Video playback and browsing plugin for MythTV"
arch=('i686' 'x86_64')
url="http://www.mythtv.org"
license=('GPL')
depends=("mythtv>=${pkgver}" 'mplayer' 'perlxml' 'perl-libwww' 'perl-uri' 'perl-xml-simple' 'ffmpeg')
-source=("http://www.mythtv.org/modules.php?name=Downloads&d_op=getit&lid=136&foo=/mythplugins-$pkgver.tar.bz2")
-md5sums=('6c08043227bef1384858deee12b5cdc3')
+source=("http://www.mythtv.org/modules.php?name=Downloads&d_op=getit&lid=136&foo=/mythplugins-$pkgver.tar.bz2" \
+ mtd)
+md5sums=('6c08043227bef1384858deee12b5cdc3' '476c12ba074794ad7f4ae092bdf949d6')
replaces=('mythdvd')
groups=('mythtv-extras')
@@ -29,6 +30,7 @@
make -j 2 || return 1
make INSTALL_ROOT=$startdir/pkg install
+ install -D -m755 ../mtd $startdir/pkg/etc/rc.d/mtd
}
Index: extra/multimedia/mythvideo/mtd
diff -u /dev/null extra/multimedia/mythvideo/mtd:1.1
--- /dev/null Fri Apr 4 02:11:40 2008
+++ extra/multimedia/mythvideo/mtd Fri Apr 4 02:11:40 2008
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/bin/mtd`
+case "$1" in
+ start)
+ stat_busy "Starting Myth Transcoding Daemon"
+ [ -z "$PID" ] && /usr/bin/mtd -d
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ echo $PID > /var/run/mtd.pid
+ add_daemon mythtranscode
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping Myth Transcoding Daemon"
+ [ ! -z "$PID" ] && kill $PID &>/dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon mtd
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0
More information about the arch-commits
mailing list