From 54b8e84356b513b0fa6e5bcdfed75000ff8e0575 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 3 Sep 2012 14:45:40 +0100 Subject: qemu-config: split out shutdown icon to its own recipe Cleanly shutting down the machine from Sato is useful on other machines, not all of which have a power button that otherwise enables this, so make it not specific to qemu* and add it to task-core-x11-sato. (From OE-Core rev: 738005f4713c0da7bc04582a41efa956efdb9cc0) Signed-off-by: Paul Eggleton Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-bsp/qemu-config/qemu-config.bb | 11 +---------- .../qemu-config/qemu-config/shutdown.desktop | 10 ---------- .../packagegroups/packagegroup-core-x11-sato.bb | 1 + .../shutdown-desktop/shutdown-desktop.bb | 20 ++++++++++++++++++++ .../shutdown-desktop/shutdown.desktop | 10 ++++++++++ 5 files changed, 32 insertions(+), 20 deletions(-) delete mode 100644 meta/recipes-bsp/qemu-config/qemu-config/shutdown.desktop create mode 100644 meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb create mode 100644 meta/recipes-sato/shutdown-desktop/shutdown-desktop/shutdown.desktop diff --git a/meta/recipes-bsp/qemu-config/qemu-config.bb b/meta/recipes-bsp/qemu-config/qemu-config.bb index 4179fc0492..06f2f326b4 100644 --- a/meta/recipes-bsp/qemu-config/qemu-config.bb +++ b/meta/recipes-bsp/qemu-config/qemu-config.bb @@ -10,8 +10,7 @@ COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemumips|qemuppc)" PR = "r25" SRC_URI = "file://distcc.sh \ - file://exports \ - file://shutdown.desktop" + file://exports" S = "${WORKDIR}" @@ -20,14 +19,6 @@ do_install() { install -m 0755 distcc.sh ${D}${sysconfdir}/profile.d/ install -m 0644 exports ${D}${sysconfdir}/ - - install -d ${D}${datadir}/applications - install -m 0644 shutdown.desktop ${D}${datadir}/applications/ -} - -pkg_postinst_${PN} () { - grep -q qemuarm $D${sysconfdir}/hostname && \ - sed -i $D${datadir}/applications/shutdown.desktop -e 's/^Exec=halt/Exec=reboot/' } RDEPENDS_${PN} = "distcc packagegroup-core-nfs-server oprofileui-server bash" diff --git a/meta/recipes-bsp/qemu-config/qemu-config/shutdown.desktop b/meta/recipes-bsp/qemu-config/qemu-config/shutdown.desktop deleted file mode 100644 index 272688922c..0000000000 --- a/meta/recipes-bsp/qemu-config/qemu-config/shutdown.desktop +++ /dev/null @@ -1,10 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Type=Application -Name=Shutdown -Comment=Close down the machine safely -Exec=halt -Icon=system-shutdown -Terminal=false -Categories=Utility; -StartupNotify=true \ No newline at end of file diff --git a/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb b/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb index 5d781ae2fe..53e15d3550 100644 --- a/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +++ b/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb @@ -37,6 +37,7 @@ RDEPENDS_${PN}-base = "\ sato-icon-theme \ settings-daemon \ gtk-sato-engine \ + shutdown-desktop \ libsdl \ ${NETWORK_MANAGER} \ " diff --git a/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb b/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb new file mode 100644 index 0000000000..d0f507e673 --- /dev/null +++ b/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb @@ -0,0 +1,20 @@ +SUMMARY = "Provides an icon to shut down the system cleanly" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ + file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +SRC_URI = "file://shutdown.desktop" + +S = "${WORKDIR}" + +do_install() { + install -d ${D}${datadir}/applications + install -m 0644 shutdown.desktop ${D}${datadir}/applications/ +} + +pkg_postinst_${PN} () { + grep -q qemuarm $D${sysconfdir}/hostname && \ + sed -i $D${datadir}/applications/shutdown.desktop -e 's/^Exec=halt/Exec=reboot/' +} + +inherit allarch diff --git a/meta/recipes-sato/shutdown-desktop/shutdown-desktop/shutdown.desktop b/meta/recipes-sato/shutdown-desktop/shutdown-desktop/shutdown.desktop new file mode 100644 index 0000000000..272688922c --- /dev/null +++ b/meta/recipes-sato/shutdown-desktop/shutdown-desktop/shutdown.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=Shutdown +Comment=Close down the machine safely +Exec=halt +Icon=system-shutdown +Terminal=false +Categories=Utility; +StartupNotify=true \ No newline at end of file -- cgit v1.2.3-54-g00ecf