summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2008-04-04 19:59:36 +0000
committerDoug Goldstein <cardoe@gentoo.org>2008-04-04 19:59:36 +0000
commita4a38cd1033b516dda2add2bcb863bedde5f1da1 (patch)
treea915ac03174ef1ca8e1e30185f14a66837980374 /media-plugins
parentfix bug #216091. crash when stringlist was non-existant (diff)
downloadhistorical-a4a38cd1033b516dda2add2bcb863bedde5f1da1.tar.gz
historical-a4a38cd1033b516dda2add2bcb863bedde5f1da1.tar.bz2
historical-a4a38cd1033b516dda2add2bcb863bedde5f1da1.zip
re-add missing mtd init script. bug #216137
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'media-plugins')
-rw-r--r--media-plugins/mythvideo/ChangeLog6
-rw-r--r--media-plugins/mythvideo/files/mtd.init.d24
-rw-r--r--media-plugins/mythvideo/mythvideo-0.21_p16468.ebuild8
3 files changed, 36 insertions, 2 deletions
diff --git a/media-plugins/mythvideo/ChangeLog b/media-plugins/mythvideo/ChangeLog
index 3e44e66c1ae0..7becb9225cef 100644
--- a/media-plugins/mythvideo/ChangeLog
+++ b/media-plugins/mythvideo/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-plugins/mythvideo
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/mythvideo/ChangeLog,v 1.68 2008/03/09 20:46:05 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/mythvideo/ChangeLog,v 1.69 2008/04/04 19:59:35 cardoe Exp $
+
+ 04 Apr 2008; Doug Goldstein <cardoe@gentoo.org> +files/mtd.init.d,
+ mythvideo-0.21_p16468.ebuild:
+ re-add missing mtd init script. bug #216137
*mythvideo-0.21_p16468 (09 Mar 2008)
diff --git a/media-plugins/mythvideo/files/mtd.init.d b/media-plugins/mythvideo/files/mtd.init.d
new file mode 100644
index 000000000000..ada7cadb94ef
--- /dev/null
+++ b/media-plugins/mythvideo/files/mtd.init.d
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+ use mysql
+}
+
+start() {
+
+ ebegin "Starting MythTV Transcoding Daemon"
+ start-stop-daemon --start --quiet \
+ --exec /usr/bin/mtd \
+ --make-pidfile --pidfile /var/run/mtd.pid \
+ --background
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping MythTV Transcoding Daemon"
+ start-stop-daemon --stop --quiet --pidfile=/var/run/mtd.pid
+ eend $?
+}
diff --git a/media-plugins/mythvideo/mythvideo-0.21_p16468.ebuild b/media-plugins/mythvideo/mythvideo-0.21_p16468.ebuild
index 24b000ef9020..dfb3a40af139 100644
--- a/media-plugins/mythvideo/mythvideo-0.21_p16468.ebuild
+++ b/media-plugins/mythvideo/mythvideo-0.21_p16468.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/mythvideo/mythvideo-0.21_p16468.ebuild,v 1.1 2008/03/09 20:46:05 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/mythvideo/mythvideo-0.21_p16468.ebuild,v 1.2 2008/04/04 19:59:35 cardoe Exp $
inherit mythtv-plugins
@@ -17,6 +17,12 @@ RDEPEND="dev-perl/libwww-perl
sys-apps/eject"
DEPEND="${RDEPEND}"
+src_install() {
+ mythtv-plugins_src_install
+
+ newinitd "${FILESDIR}"/mtd.init.d mtd
+}
+
pkg_postinst() {
elog "MythVideo can use any media player to playback files, since"
elog "it's a setting in the setup menu."