From: Mu-Woong Date: Tue, 30 Jun 2015 13:43:05 +0000 (+0900) Subject: Add systemd conf file for dbus daemon X-Git-Tag: submit/tizen_mobile/20150630.143244^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f726e78ab8df77aedbb3042965547cdb98e5ecdf;p=platform%2Fcore%2Fcontext%2Fcontext-service.git Add systemd conf file for dbus daemon Change-Id: Ie6579e5bc59937a57ba0f23faeec4bad58cf7504 Signed-off-by: Mu-Woong --- diff --git a/packaging/context-service.spec b/packaging/context-service.spec index 99ac01a..5508ac7 100644 --- a/packaging/context-service.spec +++ b/packaging/context-service.spec @@ -6,6 +6,7 @@ Group: System/Service License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source1: context-service.service +Source2: org.tizen.context.conf # For active window hooking, we need to use 'ecore' mainloop instead of the 'glib' mainloop. %define MAINLOOP glib @@ -87,6 +88,9 @@ cp data/access-config.xml %{buildroot}/opt/data/context-service/ cp data/trigger-template.json %{buildroot}/opt/data/context-service/ sh data/template-json-to-sql.sh data/trigger-template.json > %{buildroot}/opt/data/context-service/trigger-template.sql +mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d +install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/dbus-1/system.d/ + %post sqlite3 -echo /opt/dbspace/.context-service.db < /opt/data/context-service/trigger-template.sql chsmack -a "context-service" /opt/dbspace/.context-service.db* @@ -107,6 +111,7 @@ systemctl daemon-reload %files %manifest packaging/%{name}.manifest +%config %{_sysconfdir}/dbus-1/system.d/* %defattr(-,root,root,-) %{_bindir}/* %{_unitdir}/context-service.service diff --git a/packaging/org.tizen.context.conf b/packaging/org.tizen.context.conf new file mode 100644 index 0000000..be59b20 --- /dev/null +++ b/packaging/org.tizen.context.conf @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + +