Make tmpdir for capmgr
authorSangyoon Jang <jeremy.jang@samsung.com>
Thu, 7 Jun 2018 06:56:35 +0000 (15:56 +0900)
committer장상윤/Tizen Platform Lab(SR)/Engineer/삼성전자 <jeremy.jang@samsung.com>
Tue, 12 Jun 2018 07:58:47 +0000 (16:58 +0900)
This directory will be used for db which stores remote devices and
capabilities.

Change-Id: I5d89dbdac416704c72d68495f9a7d6ba9a1171f0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
packaging/capmgr.spec
packaging/capmgr.tmpfiles.conf [new file with mode: 0644]

index e9dbf399b4955aa670f389fbb45998872391e056..316f21fcd4ab66561c540b0384b5d4bc5eecde59 100644 (file)
@@ -11,6 +11,7 @@ Source0:    %{name}-%{version}.tar.gz
 Source1001: %{name}.manifest
 Source1002: %{name}.service
 Source1003: %{name}.conf
+Source1004: %{name}.tmpfiles.conf
 Requires(post): /usr/bin/chsmack
 BuildRequires:  boost-devel
 BuildRequires:  cmake
@@ -58,6 +59,8 @@ install -m 755 -d %{buildroot}%{_unitdir}
 install -m 644 %{SOURCE1002} %{buildroot}%{_unitdir}/
 install -m 755 -d %{buildroot}%{_sysconfdir}/dbus-1/system.d
 install -m 644 %{SOURCE1003} %{buildroot}%{_sysconfdir}/dbus-1/system.d/
+install -m 755 -d %{buildroot}%{_tmpfilesdir}
+install -m 644 %{SOURCE1004} %{buildroot}%{_tmpfilesdir}/%{name}.conf
 
 install -m 755 -d %{buildroot}%{_unitdir}/multi-user.target.wants
 ln -sf ../%{name}.service %{buildroot}%{_unitdir}/multi-user.target.wants/
diff --git a/packaging/capmgr.tmpfiles.conf b/packaging/capmgr.tmpfiles.conf
new file mode 100644 (file)
index 0000000..1ce6ec9
--- /dev/null
@@ -0,0 +1 @@
+d /run/capmgr 0775 app_fw app_fw -