Spec & Path : try to boot on Tizen 3.0 Mobile 85/39085/1 accepted/tizen/mobile/20150508.125724 accepted/tizen/tv/20150509.061852 accepted/tizen/wearable/20150508.124742 submit/tizen/20150508.094414
authorjunkyu.han <junkyu.han@samsung.com>
Fri, 8 May 2015 09:30:29 +0000 (18:30 +0900)
committerjunkyu.han <junkyu.han@samsung.com>
Fri, 8 May 2015 09:30:29 +0000 (18:30 +0900)
Change-Id: Ibcf57501b463fe0c7481722293e48e8a51d3ca31

packaging/starter.path
packaging/starter.spec

index 724239c..f602d76 100644 (file)
@@ -2,4 +2,4 @@
 Description=Path activation for the "starter" programme
 
 [Path]
-PathExists=/tmp/amd_ready
+PathExists=/run/.wm_ready
index 381b1f3..ccd64df 100644 (file)
@@ -49,6 +49,10 @@ BuildRequires: gettext-tools
 
 Requires(post): /usr/bin/vconftool
 
+%define _systemddir /usr/lib/systemd
+%define _userdir %{_systemddir}/user
+%define _wantsdir %{_userdir}/default.target.wants
+
 %description
 Description: Starter
 
@@ -69,10 +73,12 @@ make -j1
 rm -rf %{buildroot}
 %make_install
 
-mkdir -p %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants
-install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/user/
-install -m 0644 %SOURCE2 %{buildroot}%{_libdir}/systemd/user/
-ln -s ../starter.path %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants/starter.path
+mkdir -p %{buildroot}/usr/share/license
+mkdir -p %{buildroot}%{_userdir}
+install -m 0644 %SOURCE1 %{buildroot}%{_userdir}/
+install -m 0644 %SOURCE2 %{buildroot}%{_userdir}/
+mkdir -p %{buildroot}%{_wantsdir}
+ln -s ../starter.path %{buildroot}%{_wantsdir}/starter.path
 mkdir -p %{buildroot}/usr/share/license
 cp -f LICENSE.Flora %{buildroot}/usr/share/license/%{name}
 mkdir -p %{buildroot}/opt/data/home-daemon
@@ -90,7 +96,7 @@ change_file_executable()
 
 GOPTION="-u 5000 -f"
 
-vconftool set -t int "memory/starter/sequence" 0 -i $GOPTION
+vconftool set -t int "memory/starter/sequence" 1 -i $GOPTION
 vconftool set -t int "memory/starter/use_volume_key" 0 -i $GOPTION
 vconftool set -t string file/private/lockscreen/pkgname "org.tizen.lockscreen" -u 5000 -g 5000 -f
 vconftool set -t int memory/idle_lock/state "0" -i $GOPTION
@@ -117,8 +123,8 @@ ln -sf /etc/init.d/rd3starter /etc/rc.d/rc3.d/S43starter
 %{_bindir}/starter
 /usr/ug/lib/libug-lockscreen-options.so
 /usr/ug/lib/libug-lockscreen-options.so.0.1.0
-%{_libdir}/systemd/user/starter.path
-%{_libdir}/systemd/user/starter.service
-%{_libdir}/systemd/user/core-efl.target.wants/starter.path
+%{_userdir}/starter.service
+%{_userdir}/starter.path
+%{_wantsdir}/starter.path
 /usr/share/license/%{name}
 /opt/data/home-daemon