From: srinivasa.m Date: Fri, 3 Apr 2020 10:04:32 +0000 (+0530) Subject: [Non ACR]Systemd based dbus dummyasm service activation X-Git-Tag: submit/tizen_5.5/20200406.054043 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen_5.5%2F20200406.054043;p=platform%2Fcore%2Faccount%2Ffido-client.git [Non ACR]Systemd based dbus dummyasm service activation Change-Id: Ia5f666ed26ffe00bbb3ec32c27fbf4e3b2fd8e20 Signed-off-by: srinivasa.m --- diff --git a/packaging/dummyasm.service b/packaging/dummyasm.service new file mode 100755 index 0000000..e1ee0f6 --- /dev/null +++ b/packaging/dummyasm.service @@ -0,0 +1,13 @@ +[Unit] +Description= dummyasm service + +[Service] +User=service_fw +Group=service_fw +SmackProcessLabel=System +Type=dbus +BusName=org.tizen.dummyasm +ExecStart=/usr/bin/dummyasm-service + +[Install] +WantedBy=multi-user.target diff --git a/packaging/fido-client.spec b/packaging/fido-client.spec index 376ffb1..fd82d1d 100755 --- a/packaging/fido-client.spec +++ b/packaging/fido-client.spec @@ -16,6 +16,7 @@ Source3: org.tizen.fido.service Source4: org.tizen.dummyasm.service Source5: org.tizen.dummyasm.conf +Source6: dummyasm.service BuildRequires: cmake BuildRequires: pkgconfig(glib-2.0) @@ -129,6 +130,9 @@ install -m 644 %SOURCE3 %{buildroot}%{_unitdir}/fido.service mkdir -p %{buildroot}/usr/share/dbus-1/system-services install -m 0644 %SOURCE4 %{buildroot}/usr/share/dbus-1/system-services/org.tizen.dummyasm.service +mkdir -p %{buildroot}%{_unitdir} +install -m 644 %SOURCE6 %{buildroot}%{_unitdir}/dummyasm.service + mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/dbus-1/system.d/ @@ -149,6 +153,9 @@ cp -af %{SOURCE4} %{buildroot}%{_libdir}/systemd/system/ mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants ln -s %SOURCE4 %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/org.tizen.dummyasm.service + +mkdir -p %{buildroot}%{_unitdir} +install -m 644 %SOURCE3 %{buildroot}%{_unitdir}/dummyasm.service %endif @@ -272,6 +279,7 @@ This is a dummy ASM for testing FIDO client. %config %{_sysconfdir}/dbus-1/system.d/org.tizen.dummyasm.conf %{_bindir}/dummyasm-service %attr(0644,root,root) /usr/share/dbus-1/system-services/org.tizen.dummyasm.service +%attr(0644,root,root) %{_unitdir}/dummyasm.service %{_libdir}/fido/asm/dummy_asm.json %else diff --git a/packaging/org.tizen.dummyasm.service b/packaging/org.tizen.dummyasm.service old mode 100644 new mode 100755 index 1cf69a6..07cbbea --- a/packaging/org.tizen.dummyasm.service +++ b/packaging/org.tizen.dummyasm.service @@ -1,4 +1,7 @@ +[Unit] +Description=dummyasm service DBUS + [D-BUS Service] Name=org.tizen.dummyasm -Exec=/usr/bin/dummyasm-service -User=service_fw +Exec=/bin/false +SystemdService=dummyasm.service