[oe-commits] Koen Kooi : cloud9: convert to systemd bbclass

git at git.openembedded.org git at git.openembedded.org
Fri Feb 3 16:47:52 UTC 2012


Module: meta-openembedded.git
Branch: master
Commit: 5e073def1ac2d590131ba797cd56791b2dfe938e
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=5e073def1ac2d590131ba797cd56791b2dfe938e

Author: Koen Kooi <koen at dominion.thruhere.net>
Date:   Thu Feb  2 19:21:28 2012 +0100

cloud9: convert to systemd bbclass

Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb b/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb
index cc2454a..4e95075 100644
--- a/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb
+++ b/meta-oe/recipes-devtools/cloud9/cloud9_0.5.1.bb
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4784c3bcff601fd8f9515f52a11e7018"
 
 DEPENDS = "libxml2 nodejs-native"
 
-PR = "r12"
+PR = "r13"
 
 SRC_URI = "git://github.com/ajaxorg/cloud9.git;name=cloud9ide \
            git://github.com/ajaxorg/o3;destsuffix=o3;name=o3 \
@@ -112,13 +112,7 @@ FILES_${PN}-dbg += "${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o
 FILES_${PN} += "${base_libdir}/systemd/system"
 RDEPENDS_${PN} = "nodejs gzip"
 
-pkg_postinst_${PN} () {
-    # can't do this offline
-    if [ "x$D" != "x" ]; then
-        exit 1
-    fi
+inherit systemd
 
-    if [ -e ${base_bindir}/systemctl ] ; then
-        systemctl enable cloud9.service
-    fi
-}
+SYSTEMD_PACKAGES = "${PN}"
+SYSTEMD_SERVICE_${PN} = "cloud9.service"





More information about the Openembedded-commits mailing list