From 5cb95a53e72b965aa8347bf9ecc19f78d1db4740 Mon Sep 17 00:00:00 2001 From: Holger Lindemann Date: Wed, 31 Mar 2010 20:06:59 +0200 Subject: [PATCH] Deb-Pakete bauen, diveres Anpassungen --- DEBIAN/DEBIAN/conffiles | 5 +- DEBIAN/DEBIAN/config | 5 +- DEBIAN/DEBIAN/control | 8 +- DEBIAN/DEBIAN/postinst | 144 +++++++++++++----- DEBIAN/DEBIAN/postrm | 3 +- DEBIAN/DEBIAN/preinst | 10 +- .../apache2/conf.d/lx-office-erp.apache2.conf | 1 - DEBIAN/etc/lx-office-erp/lx-erp.conf | 123 --------------- DEBIAN/etc/lx-office-erp/lx-erp.conf.default | 123 --------------- .../etc/lx-office-erp/lx-office-erp.cherokee | 22 ++- .../lx-office-erp.cherokee.handler | 3 + DEBIAN/mk_erp_deb.sh | 15 +- .../usr/lib/lx-office-erp/config/lx-erp.conf | 1 - DEBIAN/usr/lib/lx-office-erp/image | 1 + 14 files changed, 157 insertions(+), 307 deletions(-) delete mode 120000 DEBIAN/etc/apache2/conf.d/lx-office-erp.apache2.conf delete mode 100644 DEBIAN/etc/lx-office-erp/lx-erp.conf delete mode 100644 DEBIAN/etc/lx-office-erp/lx-erp.conf.default create mode 100644 DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee.handler delete mode 120000 DEBIAN/usr/lib/lx-office-erp/config/lx-erp.conf create mode 120000 DEBIAN/usr/lib/lx-office-erp/image diff --git a/DEBIAN/DEBIAN/conffiles b/DEBIAN/DEBIAN/conffiles index be00446ca..4cb0a3b35 100644 --- a/DEBIAN/DEBIAN/conffiles +++ b/DEBIAN/DEBIAN/conffiles @@ -1,2 +1,3 @@ -/etc/apache2/conf.d/lx-office-erp.apache2.conf -/usr/lib/lx-office-erp/config/lx-erp.conf +/etc/lx-office-erp/lx-office-erp.apache2.conf +/etc/lx-office-erp/lx-office-erp.cherokee +/etc/lx-office-erp/lx-office-erp.cherokee.handler diff --git a/DEBIAN/DEBIAN/config b/DEBIAN/DEBIAN/config index 44f3010b4..6be8117e4 100755 --- a/DEBIAN/DEBIAN/config +++ b/DEBIAN/DEBIAN/config @@ -8,9 +8,12 @@ set -e . /usr/share/debconf/confmodule db_version 2.0 +echo "! config $STATE !" >> /tmp/lxo-erp.log + STATE=1 LASTSTATE=4 while [ "$STATE" != 0 ] && [ "$STATE" -le "$LASTSTATE" ]; do + echo "! config $STATE !" >> /tmp/lxo-erp.log case "$STATE" in 1) db_set lx-office-erp/admin-password-conf true || true @@ -28,7 +31,7 @@ while [ "$STATE" != 0 ] && [ "$STATE" -le "$LASTSTATE" ]; do fi ;; 3) - db_get lx-office-erp/admin-password-conf + db_get lx-office-erp/admin-password-conf if [ "$RET" = "true" ]; then db_get lx-office-erp/admin-password || true PASSPHRASE="$RET" diff --git a/DEBIAN/DEBIAN/control b/DEBIAN/DEBIAN/control index c25465cc0..af7e92a7b 100644 --- a/DEBIAN/DEBIAN/control +++ b/DEBIAN/DEBIAN/control @@ -1,12 +1,12 @@ Package: lx-office-erp Version: 0 -Architecture: i386 -Maintainer: Holger Lindemann , Adrian Weibel +Architecture: all +Section: universe/web +Priority: optional Installed-Size: 0 +Maintainer: Holger Lindemann , Adrian Weibel Depends: patch, apache2 | apache | lighttpd, postgresql | postgresql-7.4 | postgresql-8.0 | postgresql-8.1 | postgresql-8.2 | postgresql-8.3 | postgresql-8.4, libdbi-perl, libdbd-pg-perl, libpg-perl, libarchive-zip-perl, libyaml-perl, libtext-csv-perl, libio-stringy-perl, libtemplate-perl, libpdf-api2-perl, libcgi-ajax-perl, liblist-moreutils-perl, libxml-writer-perl, libtext-csv-xs-perl | libtext-csv-perl, liburi-perl Suggests: tetex-base, tetex-bin, tetex-extra, xpdf | evince | okular -Section: universe/web -Priority: extra Homepage: http://www.lx-office.org Description: Extended double entry accounting system for the german market. Lx-Office is derived from sql-ledger and rewritten diff --git a/DEBIAN/DEBIAN/postinst b/DEBIAN/DEBIAN/postinst index cfcaa8538..54b53e5da 100755 --- a/DEBIAN/DEBIAN/postinst +++ b/DEBIAN/DEBIAN/postinst @@ -7,7 +7,7 @@ set -e # x = xtrace #set -x -echo "! Postinst $1 !" +echo " ! "`date`" Postinst $1 !" >> /tmp/lxo-erp.log source /usr/share/debconf/confmodule @@ -26,12 +26,9 @@ source /usr/share/debconf/confmodule config_postgresql_factory_script() { - echo "Starting factory postgresql config script: scripts/inst_postgres.sh.." - + echo "Starting factory postgresql config script: scripts/inst_postgres_deb.sh.." cd /usr/lib/lx-office-erp/ - ./scripts/inst_postgres_deb.sh - echo "Factory postgresql config script done." } @@ -84,14 +81,16 @@ set_lx_office_erp_web_admin_password() { db_get lx-office-erp/admin-password ADMINPASSWORD="$RET" - cat /usr/lib/lx-office-erp/config/authentication.pl.default | \ + #cat /usr/lib/lx-office-erp/config/authentication.pl.default | \ + cat /etc/lx-office-erp/authentication.pl.default | \ sed --expression "s/\$self->{admin_password} = 'admin';/\$self->{admin_password} = '$ADMINPASSWORD';/g" \ > /tmp/1.txt - mv /tmp/1.txt /usr/lib/lx-office-erp/config/authentication.pl + #mv /tmp/1.txt /usr/lib/lx-office-erp/config/authentication.pl + mv /tmp/1.txt /etc/lx-office-erp/authentication.pl - chmod 0600 /usr/lib/lx-office-erp/config/authentication.pl - chown www-data:www-data /usr/lib/lx-office-erp/config/authentication.pl + #chmod 0600 /usr/lib/lx-office-erp/config/authentication.pl + #chown www-data:www-data /usr/lib/lx-office-erp/config/authentication.pl } @@ -100,24 +99,37 @@ set_lx_office_erp_authentication_db_password() { db_get lx-office-erp/lx-office-erp-user-postgresql-password PASSWORD="$RET" - cat /usr/lib/lx-office-erp/config/authentication.pl | \ + #cat /usr/lib/lx-office-erp/config/authentication.pl | \ + cat /etc/lx-office-erp/authentication.pl | \ sed --expression "s/'password' => '',/'password' => '$PASSWORD',/g" \ > /tmp/1.txt - mv /tmp/1.txt /usr/lib/lx-office-erp/config/authentication.pl + #mv /tmp/1.txt /usr/lib/lx-office-erp/config/authentication.pl + mv /tmp/1.txt /etc/lx-office-erp/authentication.pl } set_lx_office_erp_authentication_db_user() { USER="lxoffice" - cat /usr/lib/lx-office-erp/config/authentication.pl | \ + #cat /usr/lib/lx-office-erp/config/authentication.pl | \ + cat /etc/lx-office-erp/authentication.pl | \ sed --expression "s/'user' => 'postgres',/'user' => '$USER',/g" \ > /tmp/1.txt - mv /tmp/1.txt /usr/lib/lx-office-erp/config/authentication.pl + #mv /tmp/1.txt /usr/lib/lx-office-erp/config/authentication.pl + mv /tmp/1.txt /etc/lx-office-erp/authentication.pl } +set_user_rights() { + chown -R www-data:www-data /usr/lib/lx-office-erp/users + chown -R www-data:www-data /usr/lib/lx-office-erp/templates + chown www-data:www-data /etc/lx-office-erp/lx-erp.conf + chown www-data:www-data /usr/lib/lx-office-erp/menu.ini + chown www-data:www-data /etc/lx-office-erp/authentication.pl + chmod 0600 /etc/lx-office-erp/lx-erp.conf + chmod 0600 /etc/lx-office-erp/authentication.pl +} disable_ipv6_on_lo_interface() { # 2009-04-25 @@ -131,35 +143,90 @@ disable_ipv6_on_lo_interface() { echo "ifconfig lo inet6 del ::1/128" >> $RCLOCAL } - - - - +mk_new_menu() { + if [ -e /usr/lib/lx-office-crm ] ; then + #crm vorhanden, dann die menu.ini mit der höchsten VersNr nehmen + for i in `ls -1 /usr/lib/lx-office-crm/update/menu*ini` ; do + cat $i > /usr/lib/lx-office-erp/menu.ini + done; + cat /usr/lib/lx-office-erp/menu.default >> /usr/lib/lx-office-erp/menu.ini + else + cp /usr/lib/lx-office-erp/menu.default /usr/lib/lx-office-erp/menu.ini + fi +} + +mk_new_config() { + if ! [ -f /etc/lx-office-erp/lx-erp.conf ] ; then + cp /etc/lx-office-erp/lx-erp.conf.default /etc/lx-office-erp/lx-erp.conf + fi +} + +mk_links() { + if ! [ -f /usr/lib/lx-office-erp/config/authentication.pl ] ; then + ln -s /etc/lx-office-erp/authentication.pl /usr/lib/lx-office-erp/config/authentication.pl + fi; + if ! [ -f /usr/lib/lx-office-erp/config/lx-erp.conf ] ; then + ln -s /etc/lx-office-erp/lx-erp.conf /usr/lib/lx-office-erp/config/lx-erp.conf + fi; + if [ -e /etc/apache2 ] ; then + if ! [ -f /etc/apache2/conf.d/lx-office-erp.apache2.conf ] ; then + ln -s /etc/lx-office-erp/lx-office-erp.apache2.conf /etc/apache2/conf.d/lx-office-erp.apache2.conf + fi; + fi; + if [ -e /etc/cherokee/sites-available ] ; then + if ! [ -f /etc/cherokee/sites-available/lx-office-erp.cherokee ] ; then + cat /etc/lx-office-erp/lx-office-erp.cherokee.handler >> /etc/cherokee/sites-available/default + ln -s /etc/lx-office-erp/lx-office-erp.cherokee /etc/cherokee/sites-available/lx-office-erp.cherokee + fi; + fi; +} +reload_web_server() { + if [ -f /etc/init.d/apache* ] ; then + /etc/init.d/apache* reload + fi + if [ -f /etc/init.d/cherokee ] ; then + /etc/init.d/cherokee reload + fi +} case "$1" in - install) - echo "Install" upgrade) - echo "Upgrade" - - configure) - -# config_postgresql_sql_routines -# config_postgresql_roles -# config_postgresql_accounts_sec - - config_postgresql_factory_script - - chown -R www-data:www-data /usr/lib/lx-office-erp/users - chown -R www-data:www-data /usr/lib/lx-office-erp/templates - - set_lx_office_erp_web_admin_password - set_lx_office_erp_authentication_db_user - set_lx_office_erp_authentication_db_password - - disable_ipv6_on_lo_interface + echo " ! "`date`" $1 !" >> /tmp/lxo-erp.log + + VER=`cat /var/www/lx-office-erp/VERSION | cut -d '.' -f2` + if [ $VER = '6' ]; then + echo " ! 2.6 !" >> /tmp/lxo-erp.log + echo "Version 2.6" + mk_new_menu + else + mk_new_menu + mk_new_config + config_postgresql_factory_script + set_lx_office_erp_web_admin_password + set_lx_office_erp_authentication_db_user + set_lx_office_erp_authentication_db_password + disable_ipv6_on_lo_interface + mk_links + fi; + + set_user_rights + reload_web_server + ;; - /etc/init.d/apache* reload + install|configure) + echo " ! "`date`" $1 !" >> /tmp/lxo-erp.log + + mk_new_menu + mk_new_config + config_postgresql_factory_script + set_lx_office_erp_web_admin_password + set_lx_office_erp_authentication_db_user + set_lx_office_erp_authentication_db_password + disable_ipv6_on_lo_interface + mk_links + + set_user_rights + reload_web_server ;; @@ -176,7 +243,6 @@ esac # generated by other debhelper scripts. - echo "done!!" exit 0 diff --git a/DEBIAN/DEBIAN/postrm b/DEBIAN/DEBIAN/postrm index 75e41c9e1..51f2247ff 100755 --- a/DEBIAN/DEBIAN/postrm +++ b/DEBIAN/DEBIAN/postrm @@ -1,6 +1,7 @@ #!/bin/sh set -e -echo "! Postrm $1 !" +#set -x +echo " ! "`date`" Postrm $1 !" >> /tmp/lxo-erp.log if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then rm -rf /var/lib/lx-office-erp/templates/* diff --git a/DEBIAN/DEBIAN/preinst b/DEBIAN/DEBIAN/preinst index 74d2d1e65..03b19fa40 100755 --- a/DEBIAN/DEBIAN/preinst +++ b/DEBIAN/DEBIAN/preinst @@ -1,11 +1,11 @@ #!/bin/sh #Nur für das Update von einer 2.6.0 nötig, da hier gnadenlos gelöscht wird set -e -echo "! Preinst $1 !" +echo " ! "`date`" Preinst $1 !" >> /tmp/lxo-erp.log if [ "$1" = "upgrade" ]; then -echo "#!/bin/sh" > /var/lib/dpkg/info/lx-office-erp.postrm -echo "set -e" >> /var/lib/dpkg/info/lx-office-erp.postrm -echo "echo '! postrm2 $1 !'" >> /var/lib/dpkg/info/lx-office-erp.postrm -chmod +x /var/lib/dpkg/info/lx-office-erp.postrm + echo "#!/bin/sh" > /var/lib/dpkg/info/lx-office-erp.postrm + echo "set -e" >> /var/lib/dpkg/info/lx-office-erp.postrm + echo "echo ' ! '`date`' postrm2 $1 !'" >> /var/lib/dpkg/info/lx-office-erp.postrm + chmod +x /var/lib/dpkg/info/lx-office-erp.postrm fi diff --git a/DEBIAN/etc/apache2/conf.d/lx-office-erp.apache2.conf b/DEBIAN/etc/apache2/conf.d/lx-office-erp.apache2.conf deleted file mode 120000 index 915cd2ad7..000000000 --- a/DEBIAN/etc/apache2/conf.d/lx-office-erp.apache2.conf +++ /dev/null @@ -1 +0,0 @@ -/etc/lx-office-erp/lx-office-erp.apache2.conf \ No newline at end of file diff --git a/DEBIAN/etc/lx-office-erp/lx-erp.conf b/DEBIAN/etc/lx-office-erp/lx-erp.conf deleted file mode 100644 index e031c3e05..000000000 --- a/DEBIAN/etc/lx-office-erp/lx-erp.conf +++ /dev/null @@ -1,123 +0,0 @@ -use Cwd; - -use vars qw($dbcharset $eur $ghostscript_bin $html2ps_bin $language $latex_bin $latex_templates $lizenzen $memberfile - $opendocument_templates $openofficeorg_daemon $openofficeorg_daemon_port $openofficeorg_writer_bin - $pg_dump_exe $pg_restore_exe $sendmail $show_best_before $sid $spool $templates $userspath $vertreter $webdav $xvfb_bin); - -# path to user configuration files -$userspath = "users"; - -# spool directory for batch printing -$spool = "spool"; - -# templates base directory -$templates = "templates"; - -# member file -$memberfile = "users/members"; - -# Wenn nicht Bilanzierung dann auf 1 setzen -$eur = 1; - -# location of sendmail -$sendmail = '| /usr/sbin/sendmail -t<%if myconfig_email%> -f <%myconfig_email%><%end%>'; - -# set language for login and admin -$language = "de"; - -# Oracle -$sid = "T80509"; -$ENV{"ORACLE_HOME"} = "/usr/local/oracle"; - -# if you have latex installed set to 1 -$latex_templates = 1; - -# if the server can't find gzip, latex, dvips or pdflatex, add the path -$ENV{PATH} .= ":/usr/local/bin"; - -# on mac os X using Fink's Perl libs, add the path -$ENV{PERL5LIB} .= ":/sw/lib/perl5"; - -# Aktivierung der verschiedenen Spezialmodule -$webdav = 0; -$lizenzen = 1; -$vertreter = 0; - -# Zeige Felder für Mindesthaltbarkeitsdatum -$show_best_before = 0; - -## Support fuer OpenDocument-Vorlagen -# Diese Option legt fest, ob OpenDocument-Vorlagen generell verfuegbar sind. -$opendocument_templates = 1; - -# Die folgenden zwei Variablen legen Pfade zu Programmen fest, die benoetigt -# werden, um OpenDocument-Vorlagen in PDFs umzuwandeln. - -# Pfad zu OpenOffice.org writer -$openofficeorg_writer_bin = "/usr/bin/oowriter"; - -# Soll OpenOffice dauerhaft gestartet bleiben? Die Konvertierung nachfolgender -# Dokumente geht dann schneller. Allerdings wird auf dem System ein -# installiertes Python mit den Python-UNO-Bindings benoetigt, die Bestandteil -# von OpenOffice sind. -$openofficeorg_daemon = 1; -$openofficeorg_daemon_port = 2002; - -# Pfad zum "X virtual frame buffer", unter dem OpenOffice gestartet wird. -# Zusaetzlich muessen die Programme "xauth" und "mcookie" gefunden werden -# koennen, was eine Aenderung an PATH bedeuten kann. -$ENV{"PATH"} = $ENV{"PATH"} . ":/usr/X11R6/bin:/usr/X11/bin"; -$xvfb_bin = "/usr/bin/Xvfb"; - -# Das charset, in dem die Daten in der Datenbank abgelegt sind. -$dbcharset = 'UTF-8'; # Für UNICODE UTF-8 -# $dbcharset = "ISO-8859-15"; - - -# Pfad zu 'html2ps' zum Export von Listenansichten als PDF -$html2ps_bin = "/usr/bin/html2ps"; -$ghostscript_bin = "/usr/bin/gs"; - -# Name von bzw. Pfad zu 'pdflatex' oder einer anderen kompatiblen Version -# wie z.B. 'xetex' -$latex_bin = 'pdflatex'; - -# Datenbankbackups werden mit dem externen Programm "pg_dump" erledigt. -# Wenn es nicht im aktuellen Pfad vorhanden ist, so muss hier der vollständige -# Pfad eingetragen werden. Wenn die Variable auf "DISABLED" gesetzt wird, -# so wird der Menüpunkt zum Backup von Datenbanken im Administrationsfrontend -# nicht angeboten. -# Das gleiche gilt analog für das Wiederherstellen mittels "pg_restore". -$pg_dump_exe = "pg_dump"; -$pg_restore_exe = "pg_restore"; - -# Globale Debug-Ausgaben (de-)aktivieren? Moegliche Werte sind -# LXDebug::NONE - keine Debugausgaben -# LXDebug::INFO -# LXDebug::DEBUG1 -# LXDebug::DEBUG2 -# LXDebug::QUERY - SQL Queries -# LXDebug::TRACE - Tracing von Funktionsaufrufen -# LXDebug::BACKTRACE_ON_ERROR - Vollständiger Aufrufpfad, wenn $form->error() aufgerufen wird -# LXDebug::ALL - alle Debugausgaben -# -# LXDebug::DEVEL - wie INFO | QUERY | TRACE | BACKTRACE_ON_ERROR -# -# Beipiel: -# $LXDebug::global_level = LXDebug::TRACE | LXDebug::QUERY; -$LXDebug::global_level = LXDebug::NONE; - -# Überwachung der Inhalte von $form aktiviert oder nicht? Wenn ja, -# dann können einzelne Variablen mit -# $form->{"Watchdog::"} = 1; -# überwacht werden. Bedeutet aber auch einen Geschwindigkeitsverlust, -# weshalb sie normalerweise deaktiviert ist. -$LXDebug::watch_form = 0; - -# Zum debuggen von Latexausgaben. Wenn diese Option auf 1 gesetzt wird, werden -# temporäre Dateien, die bei der Erstellung von PDFs aus Latex erzeugt werden, -# nach Abschluß der Erstellung oder im Fehlerfall nicht gelöscht, damit man sie -# untersuchen kann. -$::keep_temp_files = 0; - -1; diff --git a/DEBIAN/etc/lx-office-erp/lx-erp.conf.default b/DEBIAN/etc/lx-office-erp/lx-erp.conf.default deleted file mode 100644 index e031c3e05..000000000 --- a/DEBIAN/etc/lx-office-erp/lx-erp.conf.default +++ /dev/null @@ -1,123 +0,0 @@ -use Cwd; - -use vars qw($dbcharset $eur $ghostscript_bin $html2ps_bin $language $latex_bin $latex_templates $lizenzen $memberfile - $opendocument_templates $openofficeorg_daemon $openofficeorg_daemon_port $openofficeorg_writer_bin - $pg_dump_exe $pg_restore_exe $sendmail $show_best_before $sid $spool $templates $userspath $vertreter $webdav $xvfb_bin); - -# path to user configuration files -$userspath = "users"; - -# spool directory for batch printing -$spool = "spool"; - -# templates base directory -$templates = "templates"; - -# member file -$memberfile = "users/members"; - -# Wenn nicht Bilanzierung dann auf 1 setzen -$eur = 1; - -# location of sendmail -$sendmail = '| /usr/sbin/sendmail -t<%if myconfig_email%> -f <%myconfig_email%><%end%>'; - -# set language for login and admin -$language = "de"; - -# Oracle -$sid = "T80509"; -$ENV{"ORACLE_HOME"} = "/usr/local/oracle"; - -# if you have latex installed set to 1 -$latex_templates = 1; - -# if the server can't find gzip, latex, dvips or pdflatex, add the path -$ENV{PATH} .= ":/usr/local/bin"; - -# on mac os X using Fink's Perl libs, add the path -$ENV{PERL5LIB} .= ":/sw/lib/perl5"; - -# Aktivierung der verschiedenen Spezialmodule -$webdav = 0; -$lizenzen = 1; -$vertreter = 0; - -# Zeige Felder für Mindesthaltbarkeitsdatum -$show_best_before = 0; - -## Support fuer OpenDocument-Vorlagen -# Diese Option legt fest, ob OpenDocument-Vorlagen generell verfuegbar sind. -$opendocument_templates = 1; - -# Die folgenden zwei Variablen legen Pfade zu Programmen fest, die benoetigt -# werden, um OpenDocument-Vorlagen in PDFs umzuwandeln. - -# Pfad zu OpenOffice.org writer -$openofficeorg_writer_bin = "/usr/bin/oowriter"; - -# Soll OpenOffice dauerhaft gestartet bleiben? Die Konvertierung nachfolgender -# Dokumente geht dann schneller. Allerdings wird auf dem System ein -# installiertes Python mit den Python-UNO-Bindings benoetigt, die Bestandteil -# von OpenOffice sind. -$openofficeorg_daemon = 1; -$openofficeorg_daemon_port = 2002; - -# Pfad zum "X virtual frame buffer", unter dem OpenOffice gestartet wird. -# Zusaetzlich muessen die Programme "xauth" und "mcookie" gefunden werden -# koennen, was eine Aenderung an PATH bedeuten kann. -$ENV{"PATH"} = $ENV{"PATH"} . ":/usr/X11R6/bin:/usr/X11/bin"; -$xvfb_bin = "/usr/bin/Xvfb"; - -# Das charset, in dem die Daten in der Datenbank abgelegt sind. -$dbcharset = 'UTF-8'; # Für UNICODE UTF-8 -# $dbcharset = "ISO-8859-15"; - - -# Pfad zu 'html2ps' zum Export von Listenansichten als PDF -$html2ps_bin = "/usr/bin/html2ps"; -$ghostscript_bin = "/usr/bin/gs"; - -# Name von bzw. Pfad zu 'pdflatex' oder einer anderen kompatiblen Version -# wie z.B. 'xetex' -$latex_bin = 'pdflatex'; - -# Datenbankbackups werden mit dem externen Programm "pg_dump" erledigt. -# Wenn es nicht im aktuellen Pfad vorhanden ist, so muss hier der vollständige -# Pfad eingetragen werden. Wenn die Variable auf "DISABLED" gesetzt wird, -# so wird der Menüpunkt zum Backup von Datenbanken im Administrationsfrontend -# nicht angeboten. -# Das gleiche gilt analog für das Wiederherstellen mittels "pg_restore". -$pg_dump_exe = "pg_dump"; -$pg_restore_exe = "pg_restore"; - -# Globale Debug-Ausgaben (de-)aktivieren? Moegliche Werte sind -# LXDebug::NONE - keine Debugausgaben -# LXDebug::INFO -# LXDebug::DEBUG1 -# LXDebug::DEBUG2 -# LXDebug::QUERY - SQL Queries -# LXDebug::TRACE - Tracing von Funktionsaufrufen -# LXDebug::BACKTRACE_ON_ERROR - Vollständiger Aufrufpfad, wenn $form->error() aufgerufen wird -# LXDebug::ALL - alle Debugausgaben -# -# LXDebug::DEVEL - wie INFO | QUERY | TRACE | BACKTRACE_ON_ERROR -# -# Beipiel: -# $LXDebug::global_level = LXDebug::TRACE | LXDebug::QUERY; -$LXDebug::global_level = LXDebug::NONE; - -# Überwachung der Inhalte von $form aktiviert oder nicht? Wenn ja, -# dann können einzelne Variablen mit -# $form->{"Watchdog::"} = 1; -# überwacht werden. Bedeutet aber auch einen Geschwindigkeitsverlust, -# weshalb sie normalerweise deaktiviert ist. -$LXDebug::watch_form = 0; - -# Zum debuggen von Latexausgaben. Wenn diese Option auf 1 gesetzt wird, werden -# temporäre Dateien, die bei der Erstellung von PDFs aus Latex erzeugt werden, -# nach Abschluß der Erstellung oder im Fehlerfall nicht gelöscht, damit man sie -# untersuchen kann. -$::keep_temp_files = 0; - -1; diff --git a/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee b/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee index da56f229e..6ea1e95be 100644 --- a/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee +++ b/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee @@ -2,6 +2,24 @@ ## Virtual server for lx-office-erp ## Directory /lx-office-erp { - Handler common + Handler common DocumentRoot /usr/lib/lx-office-erp/ -} \ No newline at end of file +} +Directory /lx-office-erp/image { + DocumentRoot /usr/share/lx-office-erp/ +} +Directory /lx-office-erp/css{ + DocumentRoot /var/lib/lx-office-erp/css +} +Directory /lx-office-erp/templates{ + DocumentRoot /var/lib/lx-office-erp/templates +} +Directory /lx-office-erp/users{ + DocumentRoot /var/lib/lx-office-erp/users +} +Directory /lx-office-erp/webdav{ + DocumentRoot /var/lib/lx-office-erp/webdav +} +Directory /lx-office-erp/spool{ + DocumentRoot /var/lib/lx-office-erp/spool +} diff --git a/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee.handler b/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee.handler new file mode 100644 index 000000000..c932e3c12 --- /dev/null +++ b/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee.handler @@ -0,0 +1,3 @@ +Extension pl { + Handler cgi +} diff --git a/DEBIAN/mk_erp_deb.sh b/DEBIAN/mk_erp_deb.sh index 7ab0c2536..306edd785 100755 --- a/DEBIAN/mk_erp_deb.sh +++ b/DEBIAN/mk_erp_deb.sh @@ -6,7 +6,7 @@ NR="0" #hier wurde das Git-Paket entpakt: SRC=/tmp/lx-office-erp #hier wird das Debian-Paket gebaut: -DEST=/media/work/lx-office/lx-office-erp_$VER-$NR-all +DEST=/tmp/lx-office/lx-office-erp_$VER-$NR-all mkdir -p $DEST cd $DEST @@ -16,6 +16,7 @@ cp -a $SRC/DEBIAN/* . rm ./mk*.sh #Dateien kopieren: +#aber keine fertigen Konfigurationen, nur *.default cp -a $SRC/SL usr/lib/lx-office-erp cp -a $SRC/bin usr/lib/lx-office-erp cp -a $SRC/js usr/lib/lx-office-erp @@ -28,22 +29,25 @@ cp -a $SRC/t usr/lib/lx-office-erp cp -a $SRC/*.pl usr/lib/lx-office-erp cp $SRC/VERSION usr/lib/lx-office-erp cp $SRC/index.html usr/lib/lx-office-erp - +cp $SRC/config/lx-erp.conf etc/lx-office-erp/lx-erp.conf.default +cp $SRC/config/authentication.pl.default etc/lx-office-erp/ +cp $SRC/menu.ini usr/lib/lx-office-erp/menu.default cp -a $SRC/css var/lib/lx-office-erp cp -a $SRC/templates var/lib/lx-office-erp cp -a $SRC/users var/lib/lx-office-erp cp -a $SRC/xslt var/lib/lx-office-erp -cp -a $SRC/doc usr/share/doc/lx-office-erp -cp -a $SRC/image/* usr/share/lx-office-erp +cp -a $SRC/doc/* usr/share/doc/lx-office-erp/ +cp -a $SRC/image/* usr/share/lx-office-erp/ -#Gitfiles löschen +#Git- und dummy-files löschen find . -name ".git*" -exec rm -rf {} \; find . -name ".dummy" -exec rm -rf {} \; #Rechte setzen chown -R www-data: usr/lib/lx-office-erp chown -R www-data: var/lib/lx-office-erp +chown -R www-data: etc/lx-office-erp #MD5 Summe bilden: find usr/ -name "*" -type f -exec md5sum {} \; > DEBIAN/md5sum @@ -58,6 +62,7 @@ cat DEBIAN/control | sed --expression "s/Installed-Size: 0/Installed-Size: $SIZE mv DEBIAN/1.tmp DEBIAN/control cat DEBIAN/control | sed --expression "s/Version: 0/Version: $VER-$NR/g" > DEBIAN/1.tmp mv DEBIAN/1.tmp DEBIAN/control +#Revisionsnummer evtl. von Hand eintragen #Paket bauen: cd .. diff --git a/DEBIAN/usr/lib/lx-office-erp/config/lx-erp.conf b/DEBIAN/usr/lib/lx-office-erp/config/lx-erp.conf deleted file mode 120000 index 0fd468f28..000000000 --- a/DEBIAN/usr/lib/lx-office-erp/config/lx-erp.conf +++ /dev/null @@ -1 +0,0 @@ -/etc/lx-office-erp/lx-erp.conf \ No newline at end of file diff --git a/DEBIAN/usr/lib/lx-office-erp/image b/DEBIAN/usr/lib/lx-office-erp/image new file mode 120000 index 000000000..9d2627e47 --- /dev/null +++ b/DEBIAN/usr/lib/lx-office-erp/image @@ -0,0 +1 @@ +/usr/share/lx-office-erp \ No newline at end of file -- 2.20.1