make link sdbd.service file to emulator target dir 82/10782/2
authoryoonki.park <yoonki.park@samsung.com>
Fri, 11 Oct 2013 14:48:06 +0000 (23:48 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 23 Oct 2013 01:51:51 +0000 (18:51 -0700)
Change-Id: I26a4a042b694777dde1f60f79a977ef927cd59a0
Signed-off-by: yoonki.park <yoonki.park@samsung.com>
packaging/sdbd.spec

index 53c6391..1161e9d 100644 (file)
@@ -1,7 +1,7 @@
 Name:       sdbd
 Summary:    SDB daemon
 Version:    2.2.13
-Release:    0
+Release:    1
 License:    Apache-2.0
 Summary:    SDB daemon
 Group:      System/Utilities
@@ -37,6 +37,8 @@ rm -rf %{buildroot}
 mkdir -p %{buildroot}%{_libdir}/systemd/system
 %if 0%{?simulator}
 install -m 0644 %SOURCE1002 %{buildroot}%{_libdir}/systemd/system/sdbd.service
+mkdir -p %{buildroot}/%{_libdir}/systemd/system/emulator.target.wants
+ln -s %{_libdir}/systemd/system/sdbd.service %{buildroot}/%{_libdir}/systemd/system/emulator.target.wants/
 %else
 install -m 0644 %SOURCE1001 %{buildroot}%{_libdir}/systemd/system/sdbd.service
 %endif
@@ -55,5 +57,8 @@ chsmack -t /home/developer
 %{_prefix}/sbin/sdk_launch
 %{_sysconfdir}/init.d/sdbd
 %{_libdir}/systemd/system/sdbd.service
+%if 0%{?simulator}
+%{_libdir}/systemd/system/emulator.target.wants/sdbd.service
+%endif
 
 %changelog