summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-12 16:52:03 (GMT)
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-12 16:52:03 (GMT)
commit2f610de82bf66fc17bb3b9772ebe0df4fbefaad2 (patch)
treea23ba75f0dd67af2ddce537a9b525db5e2d59be2
parent8ee0928563a2ee7b51f48d2163fd32b04e461f66 (diff)
downloadtizen-mobile-session-2f610de82bf66fc17bb3b9772ebe0df4fbefaad2.zip
tizen-mobile-session-2f610de82bf66fc17bb3b9772ebe0df4fbefaad2.tar.gz
tizen-mobile-session-2f610de82bf66fc17bb3b9772ebe0df4fbefaad2.tar.bz2
Tizen 2.1 base
-rw-r--r--packaging/systemd-user-session13
-rw-r--r--packaging/tizen-middleware.target14
-rw-r--r--packaging/tizen-mobile-session.changes21
-rw-r--r--packaging/tizen-mobile-session.spec52
-rw-r--r--packaging/tizen-mobile-session.target12
-rw-r--r--packaging/user-session@.service22
6 files changed, 134 insertions, 0 deletions
diff --git a/packaging/systemd-user-session b/packaging/systemd-user-session
new file mode 100644
index 0000000..3840e78
--- /dev/null
+++ b/packaging/systemd-user-session
@@ -0,0 +1,13 @@
+auth requisite pam_nologin.so
+auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
+auth include system-auth
+account required pam_nologin.so
+account include system-auth
+password include system-auth
+
+session include system-auth
+session required pam_loginuid.so
+session required pam_namespace.so
+session optional pam_keyinit.so force revoke
+session optional pam_mkhomedir.so skel=/etc/skel umask=0022
+
diff --git a/packaging/tizen-middleware.target b/packaging/tizen-middleware.target
new file mode 100644
index 0000000..80fd860
--- /dev/null
+++ b/packaging/tizen-middleware.target
@@ -0,0 +1,14 @@
+#
+# tizen-middleware.target - a virtual target for the Mobile UI
+#
+# This target will run after core-efl.target is ready, ensuring that
+# basic and vital services are started before this target starts
+# user services and programs. Units in this target should not need
+# to add dependencies most of the time.
+#
+
+[Unit]
+Description=Default
+After=dbus.socket
+Requires=dbus.socket
+
diff --git a/packaging/tizen-mobile-session.changes b/packaging/tizen-mobile-session.changes
new file mode 100644
index 0000000..f19e805
--- /dev/null
+++ b/packaging/tizen-mobile-session.changes
@@ -0,0 +1,21 @@
+* Wed Jul 11 2012 Patrick McCarty <patrick.mccarty@linux.intel.com> c5e7eba
+- Update module list for ELM_MODULES, required for date/time settings
+
+* Mon Jul 09 2012 Patrick McCarty <patrick.mccarty@linux.intel.com> 98624ef
+- Adjust default scaling factors and DPI for the user session
+
+* Tue Jul 03 2012 Patrick McCarty <patrick.mccarty@linux.intel.com> 5a56eab
+- Fix systemd service file name: should be user-session@.service
+
+* Mon Jul 02 2012 Patrick McCarty <patrick.mccarty@linux.intel.com> 4840737
+- Add/install user-session@app.service and /etc/sysconfig/tizen-mobile-ui
+
+* Tue Jun 26 2012 William Douglas <william.douglas@intel.com> ab5de78
+- add changes
+
+* Mon Jun 25 2012 Chris E Ferron <chris.e.ferron@linux.intel.com> 442a3ea
+- inital commit
+
+* Thu Jun 07 2012 Hyesook Choi <hs20.choi@samsung.com> 8ee0928
+- Initial empty repository
+
diff --git a/packaging/tizen-mobile-session.spec b/packaging/tizen-mobile-session.spec
new file mode 100644
index 0000000..f96399f
--- /dev/null
+++ b/packaging/tizen-mobile-session.spec
@@ -0,0 +1,52 @@
+Name: tizen-mobile-session
+Summary: Target for tizen systemd user session
+Version: 1
+Release: 1
+Group: System/Libraries
+License: Public Domain
+Source0: tizen-mobile-session.target
+Source1: tizen-middleware.target
+Source2: user-session@.service
+Source3: systemd-user-session
+
+Requires: pkgconfig(systemd)
+
+%description
+Target for tizen systemd user session
+
+%install
+
+mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-mobile-session.target.wants
+mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants
+mkdir -p %{buildroot}%{_libdir}/systemd/system/graphical.target.wants
+install -m 0644 %SOURCE0 %{buildroot}%{_libdir}/systemd/user/
+install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/user/
+install -m 0644 %SOURCE2 %{buildroot}%{_libdir}/systemd/system/
+ln -sf ../user-session@.service %{buildroot}%{_libdir}/systemd/system/graphical.target.wants/user-session@app.service
+ln -sf tizen-mobile-session.target %{buildroot}%{_libdir}/systemd/user/default.target
+
+mkdir -p %{buildroot}%{_sysconfdir}/pam.d
+install -m 644 %SOURCE3 %{buildroot}%{_sysconfdir}/pam.d/
+
+mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
+cat > %{buildroot}%{_sysconfdir}/sysconfig/tizen-mobile-ui << EOF
+ECORE_IMF_MODULE=isf
+ELM_MODULES=ctxpopup_copypasteUI>entry/api:datetime_input_ctxpopup>datetime/api:object_dump>win/api
+ELM_PROFILE=mobile
+EVAS_FONT_DPI=72
+XMODIFIERS=@im=SCIM
+MULTISENSE_SND_PLAYER=tizen_snd_player
+TIZEN_DEBUG_LEVEL=1
+EOF
+
+
+%files
+%config %{_sysconfdir}/sysconfig/tizen-mobile-ui
+%config %{_sysconfdir}/pam.d/systemd-user-session
+%{_libdir}/systemd/user/tizen-mobile-session.target
+%{_libdir}/systemd/user/tizen-middleware.target
+%{_libdir}/systemd/user/tizen-mobile-session.target.wants/
+%{_libdir}/systemd/user/tizen-middleware.target.wants/
+%{_libdir}/systemd/user/default.target
+%{_libdir}/systemd/system/graphical.target.wants/user-session@app.service
+%{_libdir}/systemd/system/user-session@.service
diff --git a/packaging/tizen-mobile-session.target b/packaging/tizen-mobile-session.target
new file mode 100644
index 0000000..5a0bc5d
--- /dev/null
+++ b/packaging/tizen-mobile-session.target
@@ -0,0 +1,12 @@
+# tizen-mobile.target - a virtual target for the Mobile UI
+#
+# This target will run after core-efl.target is ready, ensuring that
+# basic and vital services are started before this target starts
+# user services and programs. Units in this target should not need
+# to add dependencies most of the time.
+#
+
+[Unit]
+Description=Default
+Wants=tizen-middleware.target
+Wants=core-efl.target
diff --git a/packaging/user-session@.service b/packaging/user-session@.service
new file mode 100644
index 0000000..7a9f58e
--- /dev/null
+++ b/packaging/user-session@.service
@@ -0,0 +1,22 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=User Manager for %I
+After=systemd-user-sessions.service
+
+[Service]
+User=%I
+PAMName=systemd-user-session
+ControlGroup=%R/user/%I/shared cpu:/
+ControlGroupModify=yes
+Type=notify
+ExecStart=-/usr/lib/systemd/systemd --user
+Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%I/dbus/user_bus_socket
+Environment=DISPLAY=:0
+Environment=XDG_RUNTIME_DIR=/run/user/%I
+EnvironmentFile=/etc/sysconfig/tizen-mobile-ui