From: cajus Date: Wed, 12 Dec 2007 09:30:35 +0000 (+0000) Subject: Updated build process X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b7cd73e1d6d5b82ad2f87c1ad90ed0b3080da2ac;p=gosa.git Updated build process git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8092 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/fix_config.sh b/contrib/fix_config.sh deleted file mode 100755 index b17fd7ab5..000000000 --- a/contrib/fix_config.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -CONF=/etc/gosa/gosa.conf -cat << EOF - -This script will take your current $CONF and will update the menu and tab tags. It -will not touch the parts you have touched between the main tabs. A backup copy is -created. - -EOF -read -n1 -sp "Do you want to continue? (y/n)" answer -echo - -if [ "$answer" != "y" -a "$answer" != "Y" ]; then - echo "Aborted." - echo - exit 1 -fi - -if [ ! -f $CONF ]; then - echo "Can't find $CONF Aborted." - echo - exit 1 -fi - -cp $CONF $CONF.orig - -sed '/
/d;/<\/conf>/d' gosa.conf > $CONF -sed -n '/
/p' $CONF.orig >> $CONF -echo '' >> $CONF diff --git a/contrib/scripts/gosa b/contrib/scripts/gosa new file mode 100755 index 000000000..d6cd93a9c --- /dev/null +++ b/contrib/scripts/gosa @@ -0,0 +1,128 @@ +#!/bin/sh +# Start script for GOsa to be started via mozilla + +url="" +if [ $# -ne 1 ]; then + echo "Usage: $(basename $0) " + exit 1 +fi + +# Check for presence of gosa profile +if [ ! -d $HOME/.mozilla/firefox/*.gosa ]; then + firefox -CreateProfile gosa + config=`echo $HOME/.mozilla/firefox/*.gosa/` + + cat << EOF > $config/prefs.js +# Mozilla User Preferences + +/* Do not edit this file. + * + * If you make changes to this file while the browser is running, + * the changes will be overwritten when the browser exits. + * + * To make a manual change to preferences, you can visit the URL about:config + * For more information, see http://www.mozilla.org/unix/customizing.html#prefs + */ + +user_pref("app.update.autoUpdateEnabled", false); +user_pref("app.update.enabled", false); +user_pref("browser.download.folderList", 2); +user_pref("browser.download.manager.showWhenStarting", false); +user_pref("browser.formfill.enable", false); +user_pref("browser.preferences.lastpanel", 1); +user_pref("browser.search.selectedEngine", "Damnfresh"); +user_pref("browser.startup.homepage", "$url"); +user_pref("browser.startup.homepage_override.mstone", "rv:1.8.1.1"); +user_pref("extensions.disabledObsolete", true); +user_pref("extensions.lastAppVersion", "2.0.0.1"); +user_pref("extensions.update.autoUpdateEnabled", false); +user_pref("intl.charsetmenu.browser.cache", "ISO-8859-1"); +user_pref("network.cookie.prefsMigrated", true); +user_pref("security.OCSP.URL", ""); +user_pref("security.OCSP.signingCA", "Builtin Object Token:IPS CLASE1 root"); +user_pref("security.warn_entering_secure", false); +user_pref("security.warn_leaving_secure", false); +user_pref("security.warn_submit_insecure", false); +user_pref("security.warn_viewing_mixed", false); +user_pref("signon.rememberSignons", false); +user_pref("security.warn_submit_insecure", false); +EOF + + cat << EOF > $config/84795799.s +#2c +http://vserver-02 +. +EOF + + [ ! -d $config/chrome ] && mkdir -p $config/chrome + cat << EOF > $config/chrome/userChrome.css +#main-menubar { + display: none; +} +#navigator-throbber { + display: none; +} +EOF + +cat << EOF > $config/localstore.rdf + + + + + + + + + + +EOF +fi + + +# Start mozilla with GOsa profile +firefox -P gosa + diff --git a/contrib/scripts/start-gosa.sh b/contrib/scripts/start-gosa.sh deleted file mode 100755 index d6cd93a9c..000000000 --- a/contrib/scripts/start-gosa.sh +++ /dev/null @@ -1,128 +0,0 @@ -#!/bin/sh -# Start script for GOsa to be started via mozilla - -url="" -if [ $# -ne 1 ]; then - echo "Usage: $(basename $0) " - exit 1 -fi - -# Check for presence of gosa profile -if [ ! -d $HOME/.mozilla/firefox/*.gosa ]; then - firefox -CreateProfile gosa - config=`echo $HOME/.mozilla/firefox/*.gosa/` - - cat << EOF > $config/prefs.js -# Mozilla User Preferences - -/* Do not edit this file. - * - * If you make changes to this file while the browser is running, - * the changes will be overwritten when the browser exits. - * - * To make a manual change to preferences, you can visit the URL about:config - * For more information, see http://www.mozilla.org/unix/customizing.html#prefs - */ - -user_pref("app.update.autoUpdateEnabled", false); -user_pref("app.update.enabled", false); -user_pref("browser.download.folderList", 2); -user_pref("browser.download.manager.showWhenStarting", false); -user_pref("browser.formfill.enable", false); -user_pref("browser.preferences.lastpanel", 1); -user_pref("browser.search.selectedEngine", "Damnfresh"); -user_pref("browser.startup.homepage", "$url"); -user_pref("browser.startup.homepage_override.mstone", "rv:1.8.1.1"); -user_pref("extensions.disabledObsolete", true); -user_pref("extensions.lastAppVersion", "2.0.0.1"); -user_pref("extensions.update.autoUpdateEnabled", false); -user_pref("intl.charsetmenu.browser.cache", "ISO-8859-1"); -user_pref("network.cookie.prefsMigrated", true); -user_pref("security.OCSP.URL", ""); -user_pref("security.OCSP.signingCA", "Builtin Object Token:IPS CLASE1 root"); -user_pref("security.warn_entering_secure", false); -user_pref("security.warn_leaving_secure", false); -user_pref("security.warn_submit_insecure", false); -user_pref("security.warn_viewing_mixed", false); -user_pref("signon.rememberSignons", false); -user_pref("security.warn_submit_insecure", false); -EOF - - cat << EOF > $config/84795799.s -#2c -http://vserver-02 -. -EOF - - [ ! -d $config/chrome ] && mkdir -p $config/chrome - cat << EOF > $config/chrome/userChrome.css -#main-menubar { - display: none; -} -#navigator-throbber { - display: none; -} -EOF - -cat << EOF > $config/localstore.rdf - - - - - - - - - - -EOF -fi - - -# Start mozilla with GOsa profile -firefox -P gosa - diff --git a/debian/gosa.postinst b/debian/gosa.postinst index 0c45ec06a..bcf54d1e7 100755 --- a/debian/gosa.postinst +++ b/debian/gosa.postinst @@ -49,6 +49,9 @@ for source in /usr/bin/convert /usr/bin/lpstat; do fi done +# Update gosa +/usr/sbin/update-gosa + # Finally restart servers for server in $servers; do if [ -x /usr/sbin/invoke-rc.d ]; then diff --git a/debian/rules b/debian/rules index b095ca434..e1699bea6 100755 --- a/debian/rules +++ b/debian/rules @@ -77,6 +77,8 @@ install-stamp: # Install binaries -mv debian/gosa/usr/share/gosa/bin/* debian/gosa/usr/bin + -mkdir debian/gosa/usr/sbin + -mv debian/gosa/usr/share/gosa/update-gosa debian/gosa/usr/sbin # Install documentation -for lang in en de fr nl; do mkdir -p debian/gosa-help-$$lang/usr/share/gosa/doc/guide/user/$$lang; done @@ -108,6 +110,11 @@ install-stamp: rm -rf debian/gosa/usr/share/gosa/include/smarty; \ 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%include/class_location.inc%/etc/gosa/classes%g' debian/gosa/usr/sbin/update-gosa + sed -i 's%$class_mapping= get_classes();%$class_mapping= get_classes("/usr/share/gosa");%g' debian/gosa/usr/sbin/update-gosa + sed -i 's%class_location.inc%/etc/gosa/classes%g' debian/gosa/usr/share/gosa/include/functions.inc + # Fix permissions -find debian/gosa -type f -exec chmod -x {} \; &> /dev/null -find debian/smarty-render -type f -exec chmod -x {} \; &> /dev/null