summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95ec53a)
raw | patch | inline | side by side (parent: 95ec53a)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 4 Apr 2007 14:38:58 +0000 (14:38 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 4 Apr 2007 14:38:58 +0000 (14:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5983 594d385d-05f5-0310-b6e9-bd551577e9d8
debian/rules | patch | blob | history |
diff --git a/debian/rules b/debian/rules
index 71d6555bff68018c2673f12b868361551e186098..0ddad67f7a2c68227e38a23bc074a8b0abef1f1e 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
# Some lines taken from debmake, by Cristoph Lameter.
export DH_COMPAT=4
+SARGE_PACKAGE=`cat debian/changelog | head -n1 | grep sarge`
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-rm -rf debian/gosa/usr/share/gosa/gen_function_list.php
-rm -rf debian/gosa/usr/share/gosa/update.sh
-rm -rf debian/gosa/usr/share/doc/gosa/guide*
- -rm -rf debian/gosa/usr/share/gosa/include/smarty
- -sed 's%"CONFIG_TEMPLATE_DIR", "../contrib/"%"CONFIG_TEMPLATE_DIR", "/usr/share/doc/gosa/contrib/"%g' debian/gosa/usr/share/gosa/include/functions.inc > debian/gosa/usr/share/gosa/include/functions.inc.new
- -mv debian/gosa/usr/share/gosa/include/functions.inc.new debian/gosa/usr/share/gosa/include/functions.inc
- -sed 's%require("smarty/Smarty.class.php");%require("/usr/share/php/smarty/libs/Smarty.class.php");%g' debian/gosa/usr/share/gosa/include/php_setup.inc > debian/gosa/usr/share/gosa/include/php_setup.inc.new
- -mv debian/gosa/usr/share/gosa/include/php_setup.inc.new debian/gosa/usr/share/gosa/include/php_setup.inc
+ -if [ -z "${SARGE_PACKAGE}" ]; then \
+ rm -rf debian/gosa/usr/share/gosa/include/smarty; \
+ sed 's%"CONFIG_TEMPLATE_DIR", "../contrib/"%"CONFIG_TEMPLATE_DIR", "/usr/share/doc/gosa/contrib/"%g' debian/gosa/usr/share/gosa/include/functions.inc > debian/gosa/usr/share/gosa/include/functions.inc.new; \
+ mv debian/gosa/usr/share/gosa/include/functions.inc.new debian/gosa/usr/share/gosa/include/functions.inc; \
+ sed 's%require("smarty/Smarty.class.php");%require("/usr/share/php/smarty/libs/Smarty.class.php");%g' debian/gosa/usr/share/gosa/include/php_setup.inc > debian/gosa/usr/share/gosa/include/php_setup.inc.new; \
+ mv debian/gosa/usr/share/gosa/include/php_setup.inc.new debian/gosa/usr/share/gosa/include/php_setup.inc; \
+ fi
touch install-stamp
patch: patch-stamp
cd debian/gosa && find ./etc -type f -print | sed -e 's#^./#/#' > DEBIAN/conffiles
chmod 644 debian/gosa/DEBIAN/conffiles
- dh_gencontrol
+ -if [ -z "${SARGE_PACKAGE}" ]; then \
+ dh_gencontrol; \
+ else \
+ dh_gencontrol -- -cdebian/control.sarge; \
+ fi
dh_md5sums
dh_builddeb