From: Soyoung Kim Date: Mon, 27 May 2013 13:57:49 +0000 (+0900) Subject: apply systemd for wrt_preload_widget.sh X-Git-Tag: submit/tizen_2.2/20130716.180435~1^2~110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19a33003dc3ce4f4161ff3db533ef2309b21c03b;p=framework%2Fweb%2Fwrt-installer.git apply systemd for wrt_preload_widget.sh [Issue#] N/A [Problem] N/A [Cause] N/A [Solution] apply systemd for wrt_preload_widget.sh [SCMRequest] N/A Change-Id: If9c604b67593b15f89c5b409f8f8ea3e398c00fa --- diff --git a/etc/CMakeLists.txt b/etc/CMakeLists.txt index 370d4af..c48caa4 100644 --- a/etc/CMakeLists.txt +++ b/etc/CMakeLists.txt @@ -1,3 +1,3 @@ SET(ETC_DIR ${PROJECT_SOURCE_DIR}/etc) -INSTALL(PROGRAMS ${ETC_DIR}/wrt_preinstall_widgets.sh DESTINATION /etc/rc.d/init.d) +INSTALL(PROGRAMS ${ETC_DIR}/wrt_preinstall_widgets.sh DESTINATION /usr/bin/) diff --git a/packaging/wrt-installer.spec b/packaging/wrt-installer.spec index 0c9004f..2c4eb69 100644 --- a/packaging/wrt-installer.spec +++ b/packaging/wrt-installer.spec @@ -80,11 +80,6 @@ install -m 644 %{SOURCE100} %{buildroot}%{_libdir}/systemd/user mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-mobile-session.target.wants ln -s ../wrt-preinstall-widgets.service %{buildroot}%{_libdir}/systemd/user/tizen-mobile-session.target.wants -mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d/ -mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d/ -ln -s ../init.d/wrt_preinstall_widgets.sh %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S48lwrt_preinstall_widgets.sh -ln -s ../init.d/wrt_preinstall_widgets.sh %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S48lwrt_preinstall_widgets.sh - %clean rm -rf %{buildroot} @@ -97,10 +92,6 @@ ln -sf /usr/bin/wrt-installer /usr/etc/package-manager/backend/wgt #for booting recovery mkdir -p /opt/share/widget/temp_info -[ -h /etc/rc.d/rc3.d/S48lwrt_preinstall_widgets.sh ] && rm /etc/rc.d/rc3.d/S48lwrt_preinstall_widgets.sh -[ -h /etc/rc.d/rc5.d/S48lwrt_preinstall_widgets.sh ] && rm /etc/rc.d/rc5.d/S48lwrt_preinstall_widgets.sh -ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc3.d/S48lwrt_preinstall_widgets.sh -ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc5.d/S48lwrt_preinstall_widgets.sh # for downloadable Application icons path mkdir -p /opt/share/icons/default/small @@ -110,9 +101,7 @@ mkdir -p /opt/share/icons/default/small %files %manifest wrt-installer.manifest %attr(755,root,root) %{_bindir}/wrt-installer -%attr(775,root,root) %{_initddir}/wrt_preinstall_widgets.sh -%{_sysconfdir}/rc.d/rc3.d/S48lwrt_preinstall_widgets.sh -%{_sysconfdir}/rc.d/rc5.d/S48lwrt_preinstall_widgets.sh +%attr(775,root,root) %{_bindir}/wrt_preinstall_widgets.sh /usr/etc/package-manager/backendlib/libwgt.so %{_datadir}/license/%{name} %{_libdir}/systemd/user/tizen-mobile-session.target.wants/wrt-preinstall-widgets.service @@ -121,3 +110,5 @@ mkdir -p /opt/share/icons/default/small %attr(755,root,root) %{_bindir}/wrt-installer-tests-* /opt/share/widget/tests/installer/widgets/* %endif +%{_libdir}/systemd/user/tizen-mobile-session.target.wants/wrt-preinstall-widgets.service +%{_libdir}/systemd/user/wrt-preinstall-widgets.service diff --git a/packaging/wrt-preinstall-widgets.service b/packaging/wrt-preinstall-widgets.service index 2bf8181..d80999e 100644 --- a/packaging/wrt-preinstall-widgets.service +++ b/packaging/wrt-preinstall-widgets.service @@ -5,4 +5,4 @@ After=xorg.target e17.service [Service] Type=oneshot -ExecStart=/etc/init.d/wrt_preinstall_widgets.sh +ExecStart=/usr/bin/wrt_preinstall_widgets.sh