[oe-commits] Klaus Kurzmann : callrec: rename recipe / get scenario path from frameworkd .conf

git version control git at git.openembedded.org
Sat Aug 8 10:34:16 UTC 2009


Module: openembedded.git
Branch: shr/import
Commit: 23c0b8d88162b766432add8d04ca4d6d451416ce
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=23c0b8d88162b766432add8d04ca4d6d451416ce

Author: Klaus Kurzmann <mok at fluxnetz.de>
Date:   Sat Aug  8 12:33:22 2009 +0200

callrec: rename recipe / get scenario path from frameworkd.conf

Signed-off-by: Klaus Kurzmann <mok at fluxnetz.de>

---

 recipes/callrec/{callrec.bb => callrec_svn.bb} |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/recipes/callrec/callrec.bb b/recipes/callrec/callrec_svn.bb
similarity index 91%
rename from recipes/callrec/callrec.bb
rename to recipes/callrec/callrec_svn.bb
index 116af54..921423e 100644
--- a/recipes/callrec/callrec.bb
+++ b/recipes/callrec/callrec_svn.bb
@@ -5,13 +5,12 @@ LICENSE = "GPLv3 or later"
 SRCNAME = "callrec"
 DEPENDS = "gtk+"
 RDEPENDS += "alsa-utils-alsactl alsa-utils-aplay"
-PV = "0.2.2"
-#PR = "r0"
+PV = "0.2.3"
+PR = "r0"
 
 S = "${WORKDIR}/trunk"
 inherit autotools 
 
-#SRC_URI = "file://../trunk"
 SRC_URI = "svn://svn.projects.openmoko.org/svnroot/callrec;module=trunk"
 FILES_${PN} += "${datadir} ${sysconfdir}"
 
@@ -20,7 +19,7 @@ pkg_postinst_callrec_append() {
 	files0="gsmhandset.state"
 	files1="gsmheadset.state"
 	files2="gsmspeakerout.state"
-	state_dir="/usr/share/openmoko/scenarios"
+	state_dir=`sed -n "s/^scenario_dir\s*=\s*//p" /etc/frameworkd.conf`
 	callrec_dir="/usr/share/callrec"
 	
 	for index in 0 1 2
@@ -50,13 +49,12 @@ pkg_postinst_callrec_append() {
 		fi
 	done
 }
-
 pkg_prerm_callrec_append() {
 	#!/bin/sh
 	files0="gsmhandset.state"
 	files1="gsmheadset.state"
 	files2="gsmspeakerout.state"
-	state_dir="/usr/share/openmoko/scenarios"
+	state_dir=`sed -n "s/^scenario_dir\s*=\s*//p" /etc/frameworkd.conf`
 	
 	for index in 0 1 2
 	do





More information about the Openembedded-commits mailing list