add systemd unit files
authorWilliam Douglas <william.douglas@intel.com>
Tue, 26 Jun 2012 18:49:20 +0000 (11:49 -0700)
committerWilliam Douglas <william.douglas@intel.com>
Tue, 26 Jun 2012 18:50:25 +0000 (11:50 -0700)
Change-Id: I07e4321ebeec76f0325a713439297531a8a6f441
Signed-off-by: William Douglas <william.douglas@intel.com>
packaging/msg-service.changes [new file with mode: 0644]
packaging/msg-service.service [new file with mode: 0644]
packaging/msg-service.spec

diff --git a/packaging/msg-service.changes b/packaging/msg-service.changes
new file mode 100644 (file)
index 0000000..af789ef
--- /dev/null
@@ -0,0 +1,14 @@
+* Tue Jun 26 2012 William Douglas <william.douglas@intel.com> 366ffb6
+- add systemd unit files
+
+* Fri Jun 22 2012 William Douglas <william.douglas@intel.com> 396ceae
+- move post section db creation to install
+
+* Wed Jun 13 2012 Kim Kibum <kb0929.kim@samsung.com> 111748f
+- apply FSL license
+
+* Tue May 29 2012 Ryan Ware <ryan.r.ware@intel.com> cc9de80
+- Add default Smack manifest for msg-service.spec
+
+* Mon Apr 30 2012 Kim Kibum <kb0929.kim@samsung.com> 3e4fded
+- update tizen source
diff --git a/packaging/msg-service.service b/packaging/msg-service.service
new file mode 100644 (file)
index 0000000..cd27b1b
--- /dev/null
@@ -0,0 +1,10 @@
+
+[Unit]
+Description=Start the msg-server
+
+[Service]
+ExecStart=/usr/bin/msg-server
+
+[Install]
+WantedBy=tizen-middleware.target
+
index 71ed1f8..6cdf30b 100644 (file)
@@ -5,7 +5,8 @@ License:        Samsung Proprietary
 Summary:        Messaging Framework Library 
 Group:          System/Libraries
 Source0:       %{name}-%{version}.tar.gz
-Source1001: packaging/msg-service.manifest 
+Source101:      msg-service.service
+Source1001:     msg-service.manifest 
 
 Requires(post): /usr/bin/vconftool
 Requires(post): /sbin/ldconfig
@@ -144,6 +145,11 @@ then
         INSERT INTO MSG_ADDRESS_TABLE VALUES (0, 0, 0, '', 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, '');"
 fi
 
+mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants
+install -m 0644 %SOURCE101 %{buildroot}%{_libdir}/systemd/user/
+ln -s ../msg-service.service %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants/msg-service.service
+
+
 %post tools -p /sbin/ldconfig
 %post -n sms-plugin -p /sbin/ldconfig
 %post -n mms-plugin -p /sbin/ldconfig
@@ -293,6 +299,8 @@ vconftool set -t int db/msg/recv_mms 0 -u 0
 %attr(0644,root,root)/opt/etc/msg-service/A.smi
 %attr(0644,root,root)/opt/etc/msg-service/V091120_104905.3gp
 %attr(0644,root,root)/opt/etc/msg-service/alert_on_call.mp3
+%{_libdir}/systemd/user/msg-service.service
+%{_libdir}/systemd/user/tizen-middleware.target.wants/msg-service.service
 
 %files -n sms-plugin
 %manifest msg-service.manifest