From 3063126e2c8ec72e900a48f7048aaf9662606792 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 3 Sep 2012 14:45:39 +0100 Subject: oprofileui-server: move initscript from qemu-config The qemu-config initscript was only starting oprofile-server, so move it to the oprofileui-server recipe. Signed-off-by: Paul Eggleton Signed-off-by: Saul Wold --- meta/recipes-bsp/qemu-config/qemu-config.bb | 11 ++----- .../qemu-config/qemu-config/qemu-autostart | 37 ---------------------- .../recipes-kernel/oprofile/oprofileui-server/init | 37 ++++++++++++++++++++++ .../oprofile/oprofileui-server_git.bb | 13 +++++++- 4 files changed, 51 insertions(+), 47 deletions(-) delete mode 100755 meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart create mode 100755 meta/recipes-kernel/oprofile/oprofileui-server/init (limited to 'meta') diff --git a/meta/recipes-bsp/qemu-config/qemu-config.bb b/meta/recipes-bsp/qemu-config/qemu-config.bb index 6775af34e3..4179fc0492 100644 --- a/meta/recipes-bsp/qemu-config/qemu-config.bb +++ b/meta/recipes-bsp/qemu-config/qemu-config.bb @@ -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 diff --git a/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart b/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart deleted file mode 100755 index db2668eb4e..0000000000 --- a/meta/recipes-bsp/qemu-config/qemu-config/qemu-autostart +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -### BEGIN INIT INFO -# Provides: hddtemp -# Required-Start: $network -# Required-Stop: $network -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: OProfile server -# Description: -### END INIT INFO - -. /etc/init.d/functions - -case "$1" in - start) - echo "Starting automatic qemu services" - . /etc/profile - /usr/bin/oprofile-server & - ;; - - stop) - echo "Stopping qemu services" - killproc oprofile-server - ;; - - restart) - $0 stop - sleep 1 - $0 start - ;; - - *) - echo "usage: $0 { start | stop | restart }" - ;; -esac - -exit 0 diff --git a/meta/recipes-kernel/oprofile/oprofileui-server/init b/meta/recipes-kernel/oprofile/oprofileui-server/init new file mode 100755 index 0000000000..2544ea4ac0 --- /dev/null +++ b/meta/recipes-kernel/oprofile/oprofileui-server/init @@ -0,0 +1,37 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: oprofile-server +# Required-Start: $network +# Required-Stop: $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: OProfileUI server +# Description: +### END INIT INFO + +. /etc/init.d/functions + +case "$1" in + start) + echo "Starting OProfileUI server" + . /etc/profile + /usr/bin/oprofile-server & + ;; + + stop) + echo "Stopping OProfileUI server" + killproc oprofile-server + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + *) + echo "usage: $0 { start | stop | restart }" + ;; +esac + +exit 0 diff --git a/meta/recipes-kernel/oprofile/oprofileui-server_git.bb b/meta/recipes-kernel/oprofile/oprofileui-server_git.bb index b9f6a811e5..e75923f2a3 100644 --- a/meta/recipes-kernel/oprofile/oprofileui-server_git.bb +++ b/meta/recipes-kernel/oprofile/oprofileui-server_git.bb @@ -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 -- cgit 1.2.3-korg