diff --git a/debian/rules b/debian/rules
index 4b05133f48ddd7b16851cbe47447b5ce9129aa53..74058b6dd4fca925a4e96bf9fdda906483a4b9dd 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.
-export DH_COMPAT=3
+export DH_COMPAT=4
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
dh_clean -k
dh_installdirs
dh_clean -k
dh_installdirs
- for i in `cd gosa; ls | grep -v debian`; do \
+ for i in `ls | grep -v debian`; do \
cp -R $$i debian/gosa/usr/share/gosa ; \
done
cp -R $$i debian/gosa/usr/share/gosa ; \
done
- -find debian/gosa -type d -name ".svn" -exec rm -rf {} \;
+ -find debian/gosa -type d -name ".svn" -exec rm -rf {} \; &> /dev/null || /bin/true
-cp -R debian/gosa/usr/share/gosa/contrib/* debian/gosa/usr/share/doc/gosa/contrib/
-cp debian/gosa/usr/share/gosa/contrib/openldap/go*.schema debian/gosa-schema/etc/ldap/schema
-cp -R debian/gosa/usr/share/gosa/contrib/* debian/gosa/usr/share/doc/gosa/contrib/
-cp debian/gosa/usr/share/gosa/contrib/openldap/go*.schema debian/gosa-schema/etc/ldap/schema
- -mkdir debian/gosa/usr/share/doc/gosa/manual
- -mkdir -p debian/gosa-schema/usr/share/doc/gosa-schema
- -cp -R debian/gosa/usr/share/gosa/doc/* debian/gosa/usr/share/doc/gosa/manual
-cp -R INSTALL debian/gosa/usr/share/doc/gosa/README.INSTALL
-gzip -c9 debian/changelog > debian/gosa/usr/share/doc/gosa/changelog.Debian.gz
-cp -R INSTALL debian/gosa/usr/share/doc/gosa/README.INSTALL
-gzip -c9 debian/changelog > debian/gosa/usr/share/doc/gosa/changelog.Debian.gz
+ -mkdir -p debian/gosa-schema/usr/share/doc/gosa-schema
-gzip -c9 debian/changelog > debian/gosa-schema/usr/share/doc/gosa-schema/changelog.Debian.gz
-gzip -c9 debian/changelog > debian/gosa-schema/usr/share/doc/gosa-schema/changelog.Debian.gz
+ -mkdir -p debian/gosa-help-de/usr/share/doc/gosa-help-de
+ -gzip -c9 debian/changelog > debian/gosa-help-de/usr/share/doc/gosa-help-de/changelog.Debian.gz
+ -mkdir -p debian/gosa-help-en/usr/share/doc/gosa-help-en
+ -gzip -c9 debian/changelog > debian/gosa-help-en/usr/share/doc/gosa-help-en/changelog.Debian.gz
+ -mkdir -p debian/gosa-help-fr/usr/share/doc/gosa-help-fr
+ -gzip -c9 debian/changelog > debian/gosa-help-fr/usr/share/doc/gosa-help-fr/changelog.Debian.gz
+ -mkdir -p debian/gosa-help-nl/usr/share/doc/gosa-help-nl
+ -gzip -c9 debian/changelog > debian/gosa-help-nl/usr/share/doc/gosa-help-nl/changelog.Debian.gz
-gzip -c9 Changelog > debian/gosa/usr/share/doc/gosa/changelog.gz
-gzip -c9 Changelog > debian/gosa/usr/share/doc/gosa/changelog.gz
- -cp AUTHORS TODO README FAQ README.openxchange README.safemode DEVEL debian/gosa/usr/share/doc/gosa/
+ -cp AUTHORS TODO README FAQ README.safemode DEVEL debian/gosa/usr/share/doc/gosa/
-rm debian/gosa/usr/share/gosa/README debian/gosa/usr/share/gosa/INSTALL
-rm debian/gosa/usr/share/gosa/README debian/gosa/usr/share/gosa/INSTALL
- -rm debian/gosa/usr/share/gosa/README.openxchange debian/gosa/usr/share/gosa/README.safemode
+ -rm debian/gosa/usr/share/gosa/README.safemode
-rm debian/gosa/usr/share/gosa/AUTHORS debian/gosa/usr/share/gosa/Changelog
-rm debian/gosa/usr/share/gosa/DEVEL
-rm debian/gosa/usr/share/gosa/COPYING debian/gosa/usr/share/gosa/TODO
-rm debian/gosa/usr/share/gosa/FAQ
-rm debian/gosa/usr/share/gosa/AUTHORS debian/gosa/usr/share/gosa/Changelog
-rm debian/gosa/usr/share/gosa/DEVEL
-rm debian/gosa/usr/share/gosa/COPYING debian/gosa/usr/share/gosa/TODO
-rm debian/gosa/usr/share/gosa/FAQ
- -rm debian/gosa/usr/share/gosa/doxygen.conf
-mkdir -p debian/gosa/var/spool/gosa/compile
-mkdir -p debian/gosa/var/spool/gosa/config
-mkdir -p debian/gosa/var/spool/gosa/cache
-rm -rf debian/gosa/usr/share/gosa/compile
-mkdir -p debian/gosa/etc/gosa/vacation
-cp -R debian/apache.conf debian/gosa/etc/gosa/apache.conf
-mkdir -p debian/gosa/var/spool/gosa/compile
-mkdir -p debian/gosa/var/spool/gosa/config
-mkdir -p debian/gosa/var/spool/gosa/cache
-rm -rf debian/gosa/usr/share/gosa/compile
-mkdir -p debian/gosa/etc/gosa/vacation
-cp -R debian/apache.conf debian/gosa/etc/gosa/apache.conf
+ -cp -R contrib/encodings debian/gosa/etc/gosa/encodings
-cp -R plugins/personal/mail/sieve-*.txt debian/gosa/etc/gosa
-cp -R plugins/personal/mail/sieve-*.txt debian/gosa/etc/gosa
- -mv contrib/shells debian/gosa/etc/gosa
- -rm -rf debian/gosa/usr/share/gosa/contrib
- -rm -rf debian/gosa/usr/share/gosa/doc
+ -cp contrib/shells debian/gosa/etc/gosa
-rm debian/gosa/usr/share/gosa/bin/gosa
-mkdir -p debian/gosa/usr/lib/gosa
-rm debian/gosa/usr/share/gosa/bin/gosa
-mkdir -p debian/gosa/usr/lib/gosa
- -mv debian/gosa/usr/share/gosa/bin/* debian/gosa/usr/lib/gosa
+ -mv debian/gosa/usr/share/gosa/bin/* debian/gosa/usr/bin
-rm -rf debian/gosa/usr/share/gosa/bin
-rm -rf debian/gosa/usr/share/gosa/bin
- -chmod +x debian/gosa/usr/lib/gosa/*
+ -rm -rf debian/gosa/usr/share/doc/gosa/marketing
+ -find debian/gosa -type f -exec chmod -x {} \; &> /dev/null
+ -chmod +x debian/gosa/usr/bin/mkntpasswd
+ -rm -rf debian/gosa/usr/share/gosa/doc/guide/user/*/lyx-source
+ -rm -rf debian/gosa/usr/share/gosa/doc/guide/admin
+ -rm -rf debian/gosa/usr/share/gosa/doc/guide/devel
+ -for lang in de fr nl; do mkdir -p debian/gosa-help-$$lang/usr/share/gosa/doc/guide/user/$$lang; done
+ -for lang in de fr nl; do mv debian/gosa/usr/share/gosa/doc/guide/user/$$lang/* debian/gosa-help-$$lang/usr/share/gosa/doc/guide/user/$$lang/; done
+ -cp -R debian/gosa/usr/share/gosa/doc/* debian/gosa/usr/share/doc/gosa
+ -rm -rf debian/gosa/usr/share/gosa/contrib
+ -rm -rf debian/gosa/usr/share/gosa/locale/en
-rm -rf debian/gosa/usr/share/gosa/gen_locale.sh
-rm -rf debian/gosa/usr/share/gosa/gen_locale.sh
+ -rm -rf debian/gosa/usr/share/gosa/gen_online_help.sh
+ -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/gosa/update.sh
+ -rm -rf debian/gosa/usr/share/doc/gosa/guide*
-mkdir -p debian/gosa/usr/share/php/smarty/libs/plugins
-cp include/smarty/plugins/block.t.php debian/gosa/usr/share/php/smarty/libs/plugins
-rm -rf debian/gosa/usr/share/gosa/include/smarty
-mkdir -p debian/gosa/usr/share/php/smarty/libs/plugins
-cp include/smarty/plugins/block.t.php debian/gosa/usr/share/php/smarty/libs/plugins
-rm -rf debian/gosa/usr/share/gosa/include/smarty
- -find debian/gosa -type f -exec chmod -x {} \;
-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
-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
dh_installdocs
dh_installcron
dh_installexamples
dh_installdocs
dh_installcron
dh_installexamples
-# dh_undocumented
- dh_installman
+ dh_installman debian/mkntpasswd.1
dh_link
dh_strip
dh_link
dh_strip
-# dh_compress
+ dh_compress --exclude=gosa.conf
dh_fixperms
dh_perl
dh_installdeb
dh_fixperms
dh_perl
dh_installdeb