Change-Id: I06393b42ac5f8747183be776663c75dd8b4cf4fb
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
[D-BUS Service]
Name=org.bluez.ag_agent
[D-BUS Service]
Name=org.bluez.ag_agent
-Exec=/usr/bin/bluetooth-ag-agent
-User=network_fw
+Exec=/bin/false
+SystemdService=bluetooth-ag-agent.service
[D-BUS Service]
Name=org.bluez.hf_agent
[D-BUS Service]
Name=org.bluez.hf_agent
-Exec=/usr/bin/bluetooth-hf-agent
-User=root
+Exec=/bin/false
+SystemdService=bluetooth-hf-agent.service
[D-BUS Service]
Name=org.bluez.hid_agent
[D-BUS Service]
Name=org.bluez.hid_agent
-Exec=/usr/bin/bluetooth-hid-agent
-User=network_fw
+Exec=/bin/false
+SystemdService=bluetooth-hid-agent.service
--- /dev/null
+[Unit]
+Description=Bluetooth AG Agent
+
+[Service]
+User=network_fw
+Group=network_fw
+SmackProcessLabel=System
+Type=dbus
+BusName=org.bluez.ag_agent
+ExecStart=/usr/bin/bluetooth-ag-agent
rm -rf %{buildroot}
%make_install
rm -rf %{buildroot}
%make_install
-install -D -m 0644 packaging/bluetooth-map-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-map-agent.service
# This usage of profile macro does NOT conflict 4.0 configurability.
#%if "%{?profile}" != "mobile" && "%{?profile}" != "tv"
# Original: wearable, ivi. Added: common, "undefined"
# This usage of profile macro does NOT conflict 4.0 configurability.
#%if "%{?profile}" != "mobile" && "%{?profile}" != "tv"
# Original: wearable, ivi. Added: common, "undefined"
#install -D -m 0644 %{buildroot}/usr/bin/bluetooth-hf-agent %{buildroot}%{_bindir}/
#install -D -m 0644 %{buildroot}/usr/bin/bluetooth-ipsp-agent %{buildroot}%{_bindir}/
#%endif
#install -D -m 0644 %{buildroot}/usr/bin/bluetooth-hf-agent %{buildroot}%{_bindir}/
#install -D -m 0644 %{buildroot}/usr/bin/bluetooth-ipsp-agent %{buildroot}%{_bindir}/
#%endif
+install -D -m 0644 packaging/bluetooth-map-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-map-agent.service
install -D -m 0644 packaging/bluetooth-pbap-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-pbap-agent.service
install -D -m 0644 packaging/bluetooth-pbap-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-pbap-agent.service
+install -D -m 0644 packaging/bluetooth-ag-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-ag-agent.service
+install -D -m 0644 packaging/bluetooth-hf-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-hf-agent.service
+install -D -m 0644 packaging/bluetooth-hid-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-hf-agent.service
%files
%manifest %{name}.manifest
%files
%manifest %{name}.manifest
%attr(0666,-,-) /var/lib/bluetooth/voice-recognition-blacklist
%{_datadir}/dbus-1/system-services/org.bluez.ag_agent.service
%{_sysconfdir}/dbus-1/system.d/bluetooth-ag-agent.conf
%attr(0666,-,-) /var/lib/bluetooth/voice-recognition-blacklist
%{_datadir}/dbus-1/system-services/org.bluez.ag_agent.service
%{_sysconfdir}/dbus-1/system.d/bluetooth-ag-agent.conf
+%{_libdir}/systemd/system/bluetooth-ag-agent.service
#%exclude %{_libdir}/systemd/system/bluetooth-map-agent.service
#%exclude %{_libdir}/systemd/system/bluetooth-pbap-agent.service
#%exclude %{_libdir}/systemd/system/bluetooth-map-agent.service
#%exclude %{_libdir}/systemd/system/bluetooth-pbap-agent.service
%{_bindir}/bluetooth-hf-agent
%{_datadir}/dbus-1/system-services/org.bluez.hf_agent.service
%{_sysconfdir}/dbus-1/system.d/bluetooth-hf-agent.conf
%{_bindir}/bluetooth-hf-agent
%{_datadir}/dbus-1/system-services/org.bluez.hf_agent.service
%{_sysconfdir}/dbus-1/system.d/bluetooth-hf-agent.conf
+%{_libdir}/systemd/system/bluetooth-hf-agent.service
#%exclude %{_libdir}/systemd/system/bluetooth-map-agent.service
#%exclude %{_libdir}/systemd/system/bluetooth-pbap-agent.service
#%exclude %{_libdir}/systemd/system/bluetooth-map-agent.service
#%exclude %{_libdir}/systemd/system/bluetooth-pbap-agent.service
--- /dev/null
+[Unit]
+Description=Bluetooth HF Agent
+
+[Service]
+User=network_fw
+Group=network_fw
+SmackProcessLabel=System
+Type=dbus
+BusName=org.bluez.hf_agent
+ExecStart=/usr/bin/bluetooth-hf-agent
--- /dev/null
+[Unit]
+Description=Bluetooth HID Agent
+
+[Service]
+User=network_fw
+Group=network_fw
+SmackProcessLabel=System
+Type=dbus
+BusName=org.bluez.hid_agent
+ExecStart=/usr/bin/bluetooth-hid-agent