From 10bfc881e596781cc128f83658b49918311bb456 Mon Sep 17 00:00:00 2001 From: "yoonki.park" Date: Fri, 11 Oct 2013 23:48:06 +0900 Subject: [PATCH] make link sdbd.service file to emulator target dir Change-Id: I26a4a042b694777dde1f60f79a977ef927cd59a0 Signed-off-by: yoonki.park --- packaging/sdbd.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packaging/sdbd.spec b/packaging/sdbd.spec index 53c6391..1161e9d 100644 --- a/packaging/sdbd.spec +++ b/packaging/sdbd.spec @@ -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 -- 2.7.4