From 712bd5a8dd7b51f85058945fe6d336bc6398b9c7 Mon Sep 17 00:00:00 2001 From: "junkyu.han" Date: Thu, 25 Jun 2015 19:37:15 +0900 Subject: [PATCH] Modify systemd dependency Change-Id: Idbeec328356102a4cb88872a513be2b8a29f7c1a --- packaging/boot-animation.path | 5 +++++ packaging/boot-animation.service | 11 ++++++++++ packaging/boot-animation.spec | 44 ++++++++++++++++++---------------------- 3 files changed, 36 insertions(+), 24 deletions(-) create mode 100644 packaging/boot-animation.path diff --git a/packaging/boot-animation.path b/packaging/boot-animation.path new file mode 100644 index 0000000..919fc63 --- /dev/null +++ b/packaging/boot-animation.path @@ -0,0 +1,5 @@ +[Unit] +Description=This path will tell you that boot-animation is ready to launch + +[Path] +PathExists=/run/.wm_ready diff --git a/packaging/boot-animation.service b/packaging/boot-animation.service index d0a334e..34e65c6 100644 --- a/packaging/boot-animation.service +++ b/packaging/boot-animation.service @@ -6,6 +6,17 @@ ConditionPathExists=!/tmp/restart ConditionKernelCommandLine=|!bootmode=silent [Service] +Environment=ECORE_EVAS_ENGINE=wayland_egl +Environment=ECORE_IMF_INPUT_PANEL_ENABLED=1 +Environment=ECORE_IMF_MODULE=isf +Environment=EFL_WAYLAND_USE_XDG_SHELL=defined +Environment=ELM_ACCEL=gl +Environment=ELM_DISPLAY=wl +Environment=ELM_ENGINE=wayland_egl +Environment=ELM_PROFILE=mobile +Environment=ELM_SCALE=4.0 +Environment=WAYLAND_DISPLAY=wayland-0 +Environment=XDG_RUNTIME_DIR=/tmp Type=oneshot Nice=-20 ExecStart=/usr/bin/boot-animation --start diff --git a/packaging/boot-animation.spec b/packaging/boot-animation.spec index c5bb584..0185335 100644 --- a/packaging/boot-animation.spec +++ b/packaging/boot-animation.spec @@ -20,16 +20,15 @@ Source1: boot-animation.service Source2: shutdown-animation.service Source3: silent-animation.service Source4: late-tizen-system.service +Source5: boot-animation.path License: Apache Group: Samsung/Application BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: cmake BuildRequires: edje, edje-bin, embryo, embryo-bin BuildRequires: pkgconfig(ecore) -#BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(libexif) BuildRequires: pkgconfig(elementary) -#BuildRequires: pkgconfig(utilX) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(mm-bootsound) BuildRequires: pkgconfig(capi-appfw-preference) @@ -62,16 +61,16 @@ mkdir -p %{buildroot}/usr/share/license cp -f LICENSE %{buildroot}/usr/share/license/%{name} %make_install -mkdir -p %{buildroot}%{_libdir}/systemd/system/tizen-system.target.wants -install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/system/boot-animation.service -ln -s ../boot-animation.service %{buildroot}%{_libdir}/systemd/system/tizen-system.target.wants/ -#mkdir -p %{buildroot}%{_libdir}/systemd/system/shutdown.target.wants -install -m 0644 %SOURCE2 %{buildroot}%{_libdir}/systemd/system/shutdown-animation.service -#ln -s ../shutdown-animation.service %{buildroot}%{_libdir}/systemd/system/shutdown.target.wants/ -install -m 0644 %SOURCE3 %{buildroot}%{_libdir}/systemd/system/silent-animation.service -ln -s ../silent-animation.service %{buildroot}%{_libdir}/systemd/system/tizen-system.target.wants/ -install -m 0644 %SOURCE4 %{buildroot}%{_libdir}/systemd/system/late-tizen-system.service -ln -s ../late-tizen-system.service %{buildroot}%{_libdir}/systemd/system/tizen-system.target.wants/ +mkdir -p %{buildroot}/usr/lib/systemd/system/multi-user.target.wants +install -m 0644 %SOURCE1 %{buildroot}/usr/lib/systemd/system/boot-animation.service +ln -s ../boot-animation.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/ +install -m 0644 %SOURCE2 %{buildroot}/usr/lib/systemd/system/shutdown-animation.service +install -m 0644 %SOURCE3 %{buildroot}/usr/lib/systemd/system/silent-animation.service +ln -s ../silent-animation.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/ +install -m 0644 %SOURCE4 %{buildroot}/usr/lib/systemd/system/late-tizen-system.service +ln -s ../late-tizen-system.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/ +install -m 0644 %SOURCE5 %{buildroot}/usr/lib/systemd/system/boot-animation.path +ln -s ../boot-animation.path %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/ %clean make clean @@ -95,18 +94,15 @@ make clean /usr/share/keysound/poweron.wav %endif %if %{?ARCH} == emulator -#/usr/share/edje/emul/1X1_poweron.edj -#/usr/share/edje/emul/1X1_poweroff.edj -#/usr/share/edje/emul/3X4_poweron.edj -#/usr/share/edje/emul/3X4_poweroff.edj %endif /usr/share/license/%{name} %{_bindir}/boot-animation -%{_libdir}/systemd/system/boot-animation.service -%{_libdir}/systemd/system/tizen-system.target.wants/boot-animation.service -%{_libdir}/systemd/system/shutdown-animation.service -%{_libdir}/systemd/system/silent-animation.service -%{_libdir}/systemd/system/tizen-system.target.wants/silent-animation.service -#%{_libdir}/systemd/system/shutdown.target.wants/shutdown-animation.service -%{_libdir}/systemd/system/late-tizen-system.service -%{_libdir}/systemd/system/tizen-system.target.wants/late-tizen-system.service +/usr/lib/systemd/system/boot-animation.service +/usr/lib/systemd/system/multi-user.target.wants/boot-animation.service +/usr/lib/systemd/system/shutdown-animation.service +/usr/lib/systemd/system/silent-animation.service +/usr/lib/systemd/system/multi-user.target.wants/silent-animation.service +/usr/lib/systemd/system/late-tizen-system.service +/usr/lib/systemd/system/multi-user.target.wants/late-tizen-system.service +/usr/lib/systemd/system/boot-animation.path +/usr/lib/systemd/system/multi-user.target.wants/boot-animation.path -- 2.7.4