CONFIGURE_FILE(msg-service.pc.in msg-service.pc @ONLY)
INSTALL(FILES ${CMAKE_BINARY_DIR}/msg-service.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
-SET(RC_LOCAL_SCRIPT msg-server)
-INSTALL(PROGRAMS ${RC_LOCAL_SCRIPT} DESTINATION /etc/rc.d/init.d)
-
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/msg-service.service DESTINATION /usr/lib/systemd/system)
# LICENSE file
-
[Unit]
-Description=Start the msg-server
+Description=Messaging Framework
[Service]
-Type=forking
-ExecStart=/etc/rc.d/init.d/msg-server
+ExecStart=/usr/bin/msg-server
Nice=5
OOMScoreAdjust=-100
Restart=always
[Install]
-WantedBy=tizen-middleware.target
\ No newline at end of file
+WantedBy=multi-user.target
Name: msg-service
Version: 0.9.4
-Release: 1
+Release: 2
License: Flora
Summary: Messaging Framework Library
Group: System/Libraries
%make_install
-mkdir -p %{buildroot}/usr/lib/systemd/system/network.target.wants
-ln -s ../msg-service.service %{buildroot}/usr/lib/systemd/system/network.target.wants/msg-service.service
-
-mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d
-ln -s %{_sysconfdir}/rc.d/init.d/msg-server %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S70msg-server
-mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d
-ln -s %{_sysconfdir}/rc.d/init.d/msg-server %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S70msg-server
+mkdir -p %{buildroot}/usr/lib/systemd/system/multi-user.target.wants
+ln -s ../msg-service.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/msg-service.service
mkdir -p %{buildroot}/opt/usr/data/msg-service
if [ -f /usr/lib/rpm-plugins/msm.so ]
then
chsmack -a 'msg-service::db' /opt/usr/dbspace/.msg_service.db*
- chsmack -a "_" -e "_" /etc/rc.d/init.d/msg-server
- chsmack -a "_" -e "_" /etc/rc.d/rc3.d/S70msg-server
- chsmack -a "_" -e "_" /etc/rc.d/rc5.d/S70msg-server
fi
########## Setting Config Value (Internal keys) ##########
%{_bindir}/msg-server
%{_datadir}/media/Sherbet.wav
%attr(0644,root,root)/usr/share/msg-service/plugin.cfg
-%{_sysconfdir}/rc.d/init.d/msg-server
-%{_sysconfdir}/rc.d/rc3.d/S70msg-server
-%{_sysconfdir}/rc.d/rc5.d/S70msg-server
/usr/lib/systemd/system/msg-service.service
-/usr/lib/systemd/system/network.target.wants/msg-service.service
+/usr/lib/systemd/system/multi-user.target.wants/msg-service.service
/usr/share/license/msg-service/LICENSE.Flora
/opt/etc/smack/accesses.d/msg-service.rule
/etc/config/sysinfo-message.xml