]> code.ossystems Code Review - openembedded-core.git/commitdiff
oprofileui-server: move initscript from qemu-config
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 3 Sep 2012 13:45:39 +0000 (14:45 +0100)
committerSaul Wold <sgw@linux.intel.com>
Tue, 4 Sep 2012 05:52:55 +0000 (22:52 -0700)
The qemu-config initscript was only starting oprofile-server, so move it
to the oprofileui-server recipe.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-bsp/qemu-config/qemu-config.bb
meta/recipes-kernel/oprofile/oprofileui-server/init [moved from meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart with 74% similarity]
meta/recipes-kernel/oprofile/oprofileui-server_git.bb

index 6775af34e3f488940fe1d88ba6d29f55ec7a55a3..4179fc0492efa05d0ef0b09ece97a05d4ec392e2 100644 (file)
@@ -11,8 +11,7 @@ PR = "r25"
 
 SRC_URI = "file://distcc.sh \
            file://exports \
-           file://shutdown.desktop \
-           file://qemu-autostart"
+           file://shutdown.desktop"
 
 S = "${WORKDIR}"
 
@@ -24,9 +23,6 @@ do_install() {
     
     install -d ${D}${datadir}/applications
     install -m 0644 shutdown.desktop ${D}${datadir}/applications/
-
-    install -d ${D}${sysconfdir}/init.d
-    install qemu-autostart ${D}${sysconfdir}/init.d/
 }
 
 pkg_postinst_${PN} () {
@@ -36,7 +32,4 @@ pkg_postinst_${PN} () {
 
 RDEPENDS_${PN} = "distcc packagegroup-core-nfs-server oprofileui-server bash"
 
-inherit update-rc.d allarch
-
-INITSCRIPT_NAME = "qemu-autostart"
-INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ."
+inherit allarch
similarity index 74%
rename from meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart
rename to meta/recipes-kernel/oprofile/oprofileui-server/init
index db2668eb4e03068e7e0c0c5a9b652a0f53aa09df..2544ea4ac0b837c00b18c15ee14d8c09b65b9c8e 100755 (executable)
@@ -1,11 +1,11 @@
 #!/bin/sh
 ### BEGIN INIT INFO
-# Provides:          hddtemp
+# Provides:          oprofile-server
 # Required-Start:    $network
 # Required-Stop:     $network
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
-# Short-Description: OProfile server
+# Short-Description: OProfileUI server
 # Description:       
 ### END INIT INFO
 
 
 case "$1" in
   start)
-        echo "Starting automatic qemu services"
+        echo "Starting OProfileUI server"
        . /etc/profile
        /usr/bin/oprofile-server &
   ;;
 
   stop)
-        echo "Stopping qemu services"
+        echo "Stopping OProfileUI server"
         killproc oprofile-server
   ;;
 
index b9f6a811e510ce50dc9eaddd6fb9c9df5fe2c156..e75923f2a354db39c6a2a19113bddffd152cff84 100644 (file)
@@ -6,8 +6,19 @@ PR = "r0"
 
 S = "${WORKDIR}/git"
 
-SRC_URI = "git://git.yoctoproject.org/oprofileui;protocol=git"
+SRC_URI = "git://git.yoctoproject.org/oprofileui;protocol=git \
+           file://init"
 
 EXTRA_OECONF += "--disable-client --enable-server"
 
 RDEPENDS_${PN} = "oprofile"
+
+do_install_append() {
+       install -d ${D}${sysconfdir}/init.d
+       install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/oprofileui-server
+}
+
+INITSCRIPT_NAME = "oprofileui-server"
+INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ."
+
+inherit update-rc.d