summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2009-06-22 20:54:38 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2009-06-22 20:54:38 (GMT)
commit647a0ea3db0f3fb47bd4aca565e9f90cd5245afd (patch)
tree8392eb9852334940688ecf5faabc780609bf19e5
parent552e8b2b61cff20491cdf3383b49e5cf1fae1f76 (diff)
downloadserver-647a0ea3db0f3fb47bd4aca565e9f90cd5245afd.tar.gz
Use the gettext binaries from within the /kolab installation. Explicitely turn off the safe_mode to allow correct detection of the binaries. It is not possible to catch an error in the script at the moment as the exit codes from translation.php are not correct.
-rw-r--r--kolab-webclient/kolab-webclient.spec3
1 files changed, 1 insertions, 2 deletions
diff --git a/kolab-webclient/kolab-webclient.spec b/kolab-webclient/kolab-webclient.spec
index 6c8adbd..f192f22 100644
--- a/kolab-webclient/kolab-webclient.spec
+++ b/kolab-webclient/kolab-webclient.spec
@@ -145,8 +145,7 @@ frontend to the Kolab server. The package is based on Horde.
sed -i -e 's#@@@turba_confdir@@@#%{l_prefix}/var/kolab/www/client/turba/config#' $RPM_BUILD_ROOT%{l_prefix}/etc/kolab/templates/*.php.template
# Refresh the translations
- sed -i -e 's#/usr/bin/php#/kolab/bin/php#' $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/po/translation.php
- $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/po/translation.php make --module dimp --no-compendium
+ PATH="%{l_prefix}/bin" %{l_prefix}/bin/php -d safe_mode=0 -f $RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/po/translation.php make --module dimp --no-compendium
%{l_shtool} install -c -m 644 %{l_value -s -a} %{S:4} %{S:5} \
$RPM_BUILD_ROOT%{l_prefix}/var/kolab/www/client/passwd/config