diff --git a/gosa-core/debian/rules b/gosa-core/debian/rules
index 40b91dee7413f831642a10e8680b2b65479d944e..4fdd5619a8deac4079aa7130cf9a14b2d8fb5352 100755 (executable)
--- a/gosa-core/debian/rules
+++ b/gosa-core/debian/rules
#export DH_VERBOSE=1
# Configure smarty location
-export SMARTY_LOCATION=$(dpkg -L smarty | grep Smarty.class.php)
+export SMARTY_LOCATION=/usr/share/php/smarty/libs
build: patch
#*************************************************
# Configure smarty location - hey ubuntu's please change SMARTY_LOCATION up there
sed -i 's%"CONFIG_TEMPLATE_DIR", "../contrib/"%"CONFIG_TEMPLATE_DIR", "/usr/share/doc/gosa/contrib/"%g' debian/gosa/usr/share/gosa/include/functions.inc
cp include/smarty/plugins/block.render.php debian/smarty-render/usr/share/php/smarty/libs/plugins
+ cp include/smarty/plugins/function.msgPool.php debian/smarty-render/usr/share/php/smarty/libs/plugins
rm -rf debian/gosa/usr/share/gosa/include/smarty; \
- sed -i "s%require(\"smarty/Smarty.class.php\");%require(\"${SMARTY_LOCATION}\");%g" debian/gosa/usr/share/gosa/include/php_setup.inc
+ sed -i "s%require(\"smarty/Smarty.class.php\");%require(\"${SMARTY_LOCATION}/Smarty.class.php\");%g" debian/gosa/usr/share/gosa/include/php_setup.inc
# Configure update location
sed -i 's%^define.*__FILE__.*%define ("GOSA_HOME", "/usr/share/gosa");%g' debian/gosa/usr/sbin/update-gosa