1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 00:59:48 +00:00

oprofileui-server: move initscript from qemu-config

The qemu-config initscript was only starting oprofile-server, so move it
to the oprofileui-server recipe.

(From OE-Core rev: 3063126e2c8ec72e900a48f7048aaf9662606792)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton
2012-09-03 14:45:39 +01:00
committed by Richard Purdie
parent 1256507769
commit c2e68c6fb9
3 changed files with 18 additions and 14 deletions
+2 -9
View File
@@ -11,8 +11,7 @@ PR = "r25"
SRC_URI = "file://distcc.sh \ SRC_URI = "file://distcc.sh \
file://exports \ file://exports \
file://shutdown.desktop \ file://shutdown.desktop"
file://qemu-autostart"
S = "${WORKDIR}" S = "${WORKDIR}"
@@ -24,9 +23,6 @@ do_install() {
install -d ${D}${datadir}/applications install -d ${D}${datadir}/applications
install -m 0644 shutdown.desktop ${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} () { pkg_postinst_${PN} () {
@@ -36,7 +32,4 @@ pkg_postinst_${PN} () {
RDEPENDS_${PN} = "distcc packagegroup-core-nfs-server oprofileui-server bash" RDEPENDS_${PN} = "distcc packagegroup-core-nfs-server oprofileui-server bash"
inherit update-rc.d allarch inherit allarch
INITSCRIPT_NAME = "qemu-autostart"
INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ."
@@ -1,11 +1,11 @@
#!/bin/sh #!/bin/sh
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: hddtemp # Provides: oprofile-server
# Required-Start: $network # Required-Start: $network
# Required-Stop: $network # Required-Stop: $network
# Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
# Default-Stop: 0 1 6 # Default-Stop: 0 1 6
# Short-Description: OProfile server # Short-Description: OProfileUI server
# Description: # Description:
### END INIT INFO ### END INIT INFO
@@ -13,13 +13,13 @@
case "$1" in case "$1" in
start) start)
echo "Starting automatic qemu services" echo "Starting OProfileUI server"
. /etc/profile . /etc/profile
/usr/bin/oprofile-server & /usr/bin/oprofile-server &
;; ;;
stop) stop)
echo "Stopping qemu services" echo "Stopping OProfileUI server"
killproc oprofile-server killproc oprofile-server
;; ;;
@@ -6,8 +6,19 @@ PR = "r0"
S = "${WORKDIR}/git" 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" EXTRA_OECONF += "--disable-client --enable-server"
RDEPENDS_${PN} = "oprofile" 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