[Kolab-devel] [issue1107] Change templates_c directory location
Richard Bos
kolab-issues at intevation.de
Sun Feb 5 22:36:39 CET 2006
New submission from Richard Bos <radoeka at xs4all.nl>:
This is a request coming from the porting from openpkg to other distributions
department.
With the current rules the templates_c directory, that seems to be cache
for smarty pages is located at /usr/share/php/kolab/admin/templates_c for
suse. This does not seem to be the correct location. A more appropriate
location would be e.g.: /var/lib/kolab. This is similar to kolab_statedir
in the dist_conf/suse file. For kolab, kolab_statedir has been defined as
/kolab/var/kolab. Would it be okay for the kolab project to store the
templates_c directory as /kolab/var/kolab/templates_c as this would prevent
yet another build variable?
Some details:
templates_c is used in:
kolab-webadmin/php/admin/include/mysmarty.php.in: $this->compile_dir =
$basedir.'templates_c/';
This has to be changed to:
kolab-webadmin/php/admin/include/mysmarty.php.in: $this->compile_dir =
'@kolab_statedir@/templates_c/';
With kolab_statedir defined as: kolab_statedir=${localstatedir}/kolab (being
/kolab/var/kolab)
The current templates_c settings are:
drwxr-xr-x 2 kolab-n kolab-n 1256 Jan 15
15:03 /kolab/var/kolab/php/admin/templates_c
The parent directory has:
drwxr-xr-x 6 kolab kolab 160 Jul 4 2005 /kolab/var/kolab/php/admin/
The new parent directory has:
drwxr-xr-x 6 kolab kolab 360 Feb 5 08:41 /kolab/var/kolab
The new parent dir has the same settings as the current parent
directory (/kolab/var/kolab/php/admin/)
Other files to update:
kolab-webadmin> grep templates_c $(find -type f)
kolab-webadmin/kolab-webadmin.spec.in: %dir '%defattr(-,%{l_nusr},
%{l_ngrp})' %{l_prefix}/var/kolab/php/admin/templates_c
kolab-webadmin/Makefile.am: $(mkinstalldirs)
$(DESTDIR)$(phpkolabdir)/templates_c
`
----------
assignedto: martin
messages: 6469
nosy: martin, rbos
priority: wish
status: unread
title: Change templates_c directory location
________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://intevation.de/roundup/kolab/issue1107>
________________________________________________
More information about the devel
mailing list