[Frugalware-git] frugalware-current: mythtv-0.21-3-i686

Priyank priyank at frugalware.org
Sat Mar 14 07:42:30 CET 2009


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=149159cb9cff65b1656ab22c719c5f866eaa8eab

commit 149159cb9cff65b1656ab22c719c5f866eaa8eab
Author: Priyank <priyank at frugalware.org>
Date:   Sat Mar 14 00:52:36 2009 +0530

mythtv-0.21-3-i686
* Fix broken rc.mythtv and add status checking support

diff --git a/source/xapps-extra/mythtv/FrugalBuild b/source/xapps-extra/mythtv/FrugalBuild
index b63f606..1cc83d1 100644
--- a/source/xapps-extra/mythtv/FrugalBuild
+++ b/source/xapps-extra/mythtv/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=mythtv
pkgver=0.21
-pkgrel=2
+pkgrel=3
pkgdesc="MythTV is a homebrew PVR project."
url="http://mythtv.org/"
depends=('qt' 'lame' 'libxvmc' 'libdvb' 'lirc')
@@ -29,7 +29,7 @@ build() {
Frcd2
}
sha1sums=('676a42fb31833baf7617148bdc8ef8ce5e352f84' \
-          '22696806db38c127b244e0b51e0bf4ea66ade0f4' \
+          'd0ef90e5bb4d3619d7576dc6cc0bc170e309713a' \
'a40bd04924c584b44e7062ded3a4fef6a9eaf6c2')

# optimization OK
diff --git a/source/xapps-extra/mythtv/rc.mythtv b/source/xapps-extra/mythtv/rc.mythtv
index 8fef562..78618bb 100644
--- a/source/xapps-extra/mythtv/rc.mythtv
+++ b/source/xapps-extra/mythtv/rc.mythtv
@@ -11,15 +11,15 @@ source /lib/initscripts/functions
TEXTDOMAIN=mythtv
TEXTDOMAINDIR=/lib/initscripts/messages

-actions=(restart start stop)
+actions=(restart start stop status)
daemon=$"MythTV"

-pid="$(pidof mythbackend 2> /dev/null)"
+pid="pidof mythbackend 2> /dev/null"

rc_start()
{
start_msg
-	if [ -z ${pid} ] ; then
+	if [ -z "$(eval $pid)" ] ; then
/usr/bin/mythbackend -d
ok $?
else
@@ -30,7 +30,7 @@ rc_start()
rc_stop()
{
stop_msg
-	if [ ! -z ${pid} ] ; then
+	if [ ! -z "$(eval $pid)" ] ; then
killall mythbackend
ok $?
else


More information about the Frugalware-git mailing list