meta-tizen: Add missing files and symlinks
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 28 May 2014 15:55:59 +0000 (17:55 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 17:20:14 +0000 (09:20 -0800)
Change-Id: I1a3f0714e846649ad2187bd48f603e5dd2457b22
(From meta-tizen rev: 8a52256d62b02f2b75308512cf8cd3cb65bd07d2)

Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-tizen/recipes-tizen/user-session-units/user-session-units-extraconf.inc

index 9f23380..d928fd3 100644 (file)
@@ -1,6 +1,26 @@
 do_install_append() {
-    rm -f ${D}/lib/systemd/user/dbus.service
     rm -f ${D}/lib/systemd/user/dbus.socket
+
+    mkdir -p ${D}/lib/systemd/system/multi-user-target.wants
+    
+    ln -sf ${D}/lib/systemd/system/user-session-launch@.service ${D}/lib/systemd/system/multi-user-target.wants/user-session-launch@5001.service
+    ln -sf ${D}/lib/systemd/system/user-session-launch@.service ${D}/lib/systemd/system/multi-user-target.wants/user-session-launch@5002.service
+    ln -sf ${D}/lib/systemd/system/user-session-launch@.service ${D}/lib/systemd/system/multi-user-target.wants/user-session-launch@5003.service
+    ln -sf ${D}/lib/systemd/system/user-session-launch@.service ${D}/lib/systemd/system/multi-user-target.wants/user-session-launch@9999.service
+
+    ln -sf ${D}/lib/systemd/system/user-session@.service ${D}/lib/systemd/system/multi-user-target.wants/user-session@5001.service
+    ln -sf ${D}/lib/systemd/system/user-session@.service ${D}/lib/systemd/system/multi-user-target.wants/user-session@5002.service
+    ln -sf ${D}/lib/systemd/system/user-session@.service ${D}/lib/systemd/system/multi-user-target.wants/user-session@5003.service
+    ln -sf ${D}/lib/systemd/system/user-session@.service ${D}/lib/systemd/system/multi-user-target.wants/user-session@9999.service
+
+    mkdir -p ${D}/lib/systemd/user/default.target.wants
+
+    echo "[Unit]" > ${D}/lib/systemd/user/default.target
+    echo "Description=User session default target" >> ${D}/lib/systemd/user/default.target
+
+    ln -sf ${D}/lib/systemd/user/weston-user.service ${D}/lib/systemd/user/default.target.wants/weston-user.service
+
+    ln -sf ${D}/lib/systemd/user/dbus.service ${D}/lib/systemd/user/default.target.wants/dbus.service
 }
 
-user-session-units_files += "/lib/systemd/user"
+user-session-units_files += "/lib/systemd/user/*"