summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2016-11-18 17:58:20 +0900
committerJEONGHYUN YUN <jh0506.yun@samsung.com>2016-12-29 19:36:40 +0900
commit5ec96388e523e8e6715ee3e0d143e193b8650b3a (patch)
treefdb9ca69e124a2b898c5688df4c9cbf8555e30fd
parenteba79794acd2d2ce09d63f18195638210f58f799 (diff)
downloadfontconfig-5ec96388e523e8e6715ee3e0d143e193b8650b3a.tar.gz
fontconfig-5ec96388e523e8e6715ee3e0d143e193b8650b3a.tar.bz2
fontconfig-5ec96388e523e8e6715ee3e0d143e193b8650b3a.zip
Make system cache folder in the post field of installation
Change-Id: I89c268c2f6822cd45d4a71d4ae91c9c541cfeb97
-rw-r--r--packaging/fontconfig.conf2
-rw-r--r--packaging/fontconfig.spec9
2 files changed, 6 insertions, 5 deletions
diff --git a/packaging/fontconfig.conf b/packaging/fontconfig.conf
index c986446a..dbec49dc 100644
--- a/packaging/fontconfig.conf
+++ b/packaging/fontconfig.conf
@@ -1,5 +1,3 @@
-t /opt/var/cache/fontconfig - - - - security.SMACK64="User::App::Shared"
-t /opt/var/cache/fontconfig - - - - security.SMACK64TRANSMUTE="TRUE"
d /opt/share/fonts 0755 app_fw users
t /opt/share/fonts - - - - security.SMACK64="User::App::Shared"
t /opt/share/fonts - - - - security.SMACK64TRANSMUTE="TRUE"
diff --git a/packaging/fontconfig.spec b/packaging/fontconfig.spec
index 1511de7b..334b4450 100644
--- a/packaging/fontconfig.spec
+++ b/packaging/fontconfig.spec
@@ -98,6 +98,12 @@ mkdir -p %{TZ_SYS_RO_SHARE}/fonts
mkdir -p %{TZ_SYS_RO_SHARE}/fallback_fonts
mkdir -p %{TZ_SYS_RO_SHARE}/app_fonts
+mkdir -p %{TZ_SYS_VAR}/cache/fontconfig
+chown root:root %{TZ_SYS_VAR}/cache/fontconfig
+chmod 755 %{TZ_SYS_VAR}/cache/fontconfig
+chsmack -t %{TZ_SYS_VAR}/cache/fontconfig
+chsmack -a User::App::Shared %{TZ_SYS_VAR}/cache/fontconfig
+
# Skip making fontconfig cache folder for users. (/opt/home/app/.cache)
# The path will be changed according to a name of user.
#rm -rf %{TZ_USER_CACHE}/fontconfig
@@ -120,9 +126,6 @@ mkdir -p %{TZ_SYS_RO_SHARE}/app_fonts
# The HOME setting is to avoid problems if HOME hasn't been reset
if [ -x %{TZ_SYS_BIN}/fc-cache ] && %{TZ_SYS_BIN}/fc-cache --version 2>&1 | grep -q %{version} ; then
fc-cache -rf --system-only
-chsmack -t %{TZ_SYS_VAR}/cache/fontconfig
-chsmack -a User::App::Shared %{TZ_SYS_VAR}/cache/fontconfig
-chsmack -a User::App::Shared %{TZ_SYS_VAR}/cache/fontconfig/*
fi
%postun -p /sbin/ldconfig