# pkgconfig file
configure_file(esd.manifest.in esd.manifest @ONLY)
+configure_file(org.tizen.esd.service.in org.tizen.esd.service @ONLY)
INSTALL(TARGETS esd DESTINATION bin)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/eventsystem.conf DESTINATION /etc/dbus-1/system.d)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.tizen.esd.service DESTINATION ${SHARE_INSTALL_PREFIX}/dbus-1/system-services/)
\ No newline at end of file
--- /dev/null
+[D-BUS Service]
+Name=tizen.system.event.app2esd\r
+Exec=/bin/false
+SystemdService=esd.service
\ No newline at end of file
[Unit]
Description=Start the Event System Daemon
-Wants=wait-mount@opt-usr.service
-After=wait-mount@opt-usr.service
+Requires=dbus.socket buxton2.service
+After=dbus.socket buxton2.service
[Service]
User=app_fw
Group=app_fw
+Type=dbus
SmackProcessLabel=System
+BusName=tizen.system.event.app2esd
ExecStart=/usr/bin/esd
Restart=on-failure
RestartSec=0
[Install]
-WantedBy=default.target
+WantedBy=multi-user.target
\ No newline at end of file
rm -rf %{buildroot}
%make_install
-mkdir -p %{buildroot}%{_unitdir}/graphical.target.wants
+mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
install -m 0644 %SOURCE1 %{buildroot}%{_unitdir}/esd.service
-ln -sf ../esd.service %{buildroot}%{_unitdir}/graphical.target.wants/esd.service
+ln -sf ../esd.service %{buildroot}%{_unitdir}/multi-user.target.wants/esd.service
%post -p /sbin/ldconfig
%defattr(-,root,root,-)
%{_bindir}/esd
%{_unitdir}/esd.service
-%{_unitdir}/graphical.target.wants/esd.service
+%{_unitdir}/multi-user.target.wants/esd.service
+%attr(0644,root,root) %{_datadir}/dbus-1/system-services/org.tizen.esd.service
%license LICENSE
%files devel