LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
SRC_URI = ""
+ALLOW_EMPTY_${PN} = "1"
inherit allarch useradd
-ALLOW_EMPTY_${PN} = "1"
-
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = "-g 191 display; -g 100 users; -g 1004 input; -g 190 systemd-journal; -g 54 lock"
USERADD_PARAM_${PN} += " -d /home/alice -m -u 5001 -g users -G users,display -r -s /bin/sh alice; "
USERADD_PARAM_${PN} += " -d /home/bob -m -u 5002 -g users -G users,display -r -s /bin/sh bob; "
USERADD_PARAM_${PN} += " -d /home/carol -m -u 5003 -g users -G users,display -r -s /bin/sh carol; "
-USERADD_PARAM_${PN} += " -d /home/guest -m -u 9999 -g users -G users,display -r -s /bin/sh guest; "
-USERADD_PARAM_${PN} += " -d /home/app -m -u 5000 -g users -G users,display -r -s /bin/sh app "
+USERADD_PARAM_${PN} += " -d /home/guest -m -u 9999 -g users -G users,display -r -s /bin/sh guest "
LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
SRC_URI = ""
-
-inherit allarch useradd
-
-
ALLOW_EMPTY_${PN} = "1"
+inherit allarch useradd
USERADD_PACKAGES = "${PN}"
-GROUPADD_PARAM_${PN} = "-g 100 users; -g 5000 app; -g 192 weston-launch; -g 54 lock; -g 190 systemd-journal "
+GROUPADD_PARAM_${PN} = "-g 100 users; -g 5000 app; -g 54 lock; -g 190 systemd-journal "
USERADD_PARAM_${PN} += " -u 5000 -d /home/app -m -g users -G users,weston-launch -r -s /bin/sh app "
#!/bin/sh -e
ln -fs tizen_common.png $D${prefix}/share/backgrounds/tizen/current
-
-}
\ No newline at end of file
+}
do_install_append() {
rm -f ${D}/lib/systemd/user/dbus.socket
- mkdir -p ${D}/lib/systemd/system/graphical.target.wants
- ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5000.service
-
-
echo "[Unit]" > ${D}/lib/systemd/user/default.target
echo "Description=User session default target" >> ${D}/lib/systemd/user/default.target
rm -f ${D}/lib/systemd/user/default.target
ln -sf weston.target ${D}/lib/systemd/user/default.target
-
}
user-session-units_files += "/lib/systemd/user/*"
SRC_URI += "file://0003-Automatically-restart-display-manager.patch"
SRC_URI += "file://0004-Modifications-for-yocto-build.patch"
+DEPENDS += "config-tizen-common"
+RDEPENDS_${PN} += "config-tizen-common"
do_install_append() {
install -m 755 uid.sh ${D}/etc/profile.d
+
mkdir -p ${D}/lib/systemd/user/default.target.wants
ln -sf ../weston-user.service ${D}/lib/systemd/user/default.target.wants/weston-user.service
+
+ mkdir -p ${D}/lib/systemd/system/multi-user.target.wants
+ ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-5001.service
+ ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-5002.service
+ ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-5003.service
+ ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-9999.service
+ ln -sf ../user-session@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session@5001.service
+ ln -sf ../user-session@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session@5002.service
+ ln -sf ../user-session@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session@5003.service
+ ln -sf ../user-session@.service ${D}/lib/systemd/system/multi-user.target.wants/user-session@9999.service
+}
+
+pkg_preinst_${PN}() {
+ #!/bin/sh -e
+
+ # setup display manager service
+ mkdir -p /lib/systemd/system/graphical.target.wants/
+ ln -sf ../display-manager.path /lib/systemd/system/graphical.target.wants/
+ # setup display manager access (inside user session)
+ mkdir -p /lib/systemd/user/default.target.requires/
+ ln -sf ../weston-user.service /lib/systemd/user/default.target.requires/
}
pkg_postinst_${PN} () {
- for user in alice bob carol app guest; do
+ for user in alice bob carol guest; do
for appdir in desktop manifest dbspace; do
mkdir -p $D/home/$user/.applications/$appdir
done
weston-common_files += "/lib/systemd/user/default.target.wants/weston-user.service"
weston-common_files += "/home/*"
-pkg_preinst_${PN}() {
- #!/bin/sh -e
-}
+FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-5001.service"
+FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-5002.service"
+FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-5003.service"
+FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session-launch@seat0-9999.service"
+FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session@5001.service"
+FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session@5002.service"
+FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session@5003.service"
+FILES_${PN} += "/lib/systemd/system/multi-user.target.wants/user-session@9999.service"
rm -fr ${D}/usr/lib/weston/.debug/desktop-shell.so
rm -fr ${D}/usr/lib/weston/gl-renderer.so
rm -fr ${D}/usr/lib/weston/.debug/gl-renderer.so
+
+ # Enable a logind session for 'app' user on seat0 (the default seat for
+ # graphical sessions)
+ mkdir -p ${D}/lib/systemd/system/graphical.target.wants
+ ln -sf ../user-session-launch@.service ${D}/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5000.service
}
pkg_postinst_${PN} () {
# home dir must have the same label
chsmack -a User /home/app
- # Enable a logind session for 'app' user on seat0 (the default seat for
- # graphical sessions)
- mkdir -p /usr/lib/systemd/system/graphical.target.wants
- ln -s ../user-session-launch@.service /usr/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5000.service
ln -sf weston.target /usr/lib/systemd/user/default.target
# Add over-riding environment to enable the web runtime to
FILES_${PN} += "${prefix}/lib/weston-ivi-shell/weston-screenshooter"
FILES_${PN} += "${prefix}/lib/weston-ivi-shell/weston-simple-im"
FILES_${PN} += "${prefix}/lib/weston/cms-static.so"
+FILES_${PN} += "/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5000.service"
FILES_${PN}-dev += "${prefix}/include/weston/ivi-shell-ext.h"
FILES_${PN} += "${prefix}/bin/weston-scaler"
FILES_${PN} += "${prefix}/bin/weston-stacking"
FILES_${PN} += "${prefix}/bin/weston-multi-resource"
-