From 7e6b6bd1f80a4f194be140e878cc85c63a583f55 Mon Sep 17 00:00:00 2001 From: Jacek Migacz Date: Fri, 30 Nov 2012 16:43:41 +0100 Subject: [PATCH] Merge branch 'systemd' Conflicts: etc/wrt_preinstall_widgets.sh packaging/wrt-installer.spec Change-Id: Iec48e5d3792c4dfd644b12e6325ac38f822646b8 --- .gitignore | 3 +++ packaging/wrt-installer.spec | 22 +++++++++++++++++----- packaging/wrt-preinstall-widgets.service | 8 ++++++++ 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 .gitignore create mode 100644 packaging/wrt-preinstall-widgets.service diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..306ad56 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*~ +\#*# +.#* \ No newline at end of file diff --git a/packaging/wrt-installer.spec b/packaging/wrt-installer.spec index 3248277..3d7d5bc 100644 --- a/packaging/wrt-installer.spec +++ b/packaging/wrt-installer.spec @@ -7,6 +7,7 @@ Group: Development/Libraries License: Apache License, Version 2.0 URL: N/A Source0: %{name}-%{version}.tar.gz +Source100: wrt-preinstall-widgets.service BuildRequires: cmake BuildRequires: edje-tools BuildRequires: pkgconfig(libxml-2.0) @@ -60,6 +61,16 @@ mkdir -p %{buildroot}/usr/share/license cp LICENSE %{buildroot}/usr/share/license/%{name} %make_install +mkdir -p %{buildroot}%{_libdir}/systemd/user +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/S46lwrt_preinstall_widgets.sh +ln -s ../init.d/wrt_preinstall_widgets.sh %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh + %clean rm -rf %{buildroot} @@ -71,10 +82,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/S46lwrt_preinstall_widgets.sh ] && rm /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh -[ -h /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh ] && rm /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh -ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh -ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh # for downloadable Application icons path mkdir -p /opt/share/icons/default/small @@ -82,7 +89,12 @@ mkdir -p /opt/share/icons/default/small %files %manifest wrt-installer.manifest %attr(755,root,root) %{_bindir}/wrt-installer -%attr(775,root,root) %{_initrddir}/wrt_preinstall_widgets.sh +%attr(775,root,root) %{_initddir}/wrt_preinstall_widgets.sh +%{_sysconfdir}/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh +%{_sysconfdir}/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh %attr(644,root,root) %{_datadir}/edje/wrt/* /usr/etc/package-manager/backendlib/libwgt.so %{_datadir}/license/%{name} +%{_libdir}/*.so* +%{_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 new file mode 100644 index 0000000..2bf8181 --- /dev/null +++ b/packaging/wrt-preinstall-widgets.service @@ -0,0 +1,8 @@ +[Unit] +Description=Installation of pre-installed widgets +ConditionPathExists=/opt/media/Downloads/.preinstallWidgets +After=xorg.target e17.service + +[Service] +Type=oneshot +ExecStart=/etc/init.d/wrt_preinstall_widgets.sh -- 2.7.4