Revision 5cb95a53
Von Holger Lindemann vor mehr als 14 Jahren hinzugefügt
DEBIAN/DEBIAN/conffiles | ||
---|---|---|
1 |
/etc/apache2/conf.d/lx-office-erp.apache2.conf |
|
2 |
/usr/lib/lx-office-erp/config/lx-erp.conf |
|
1 |
/etc/lx-office-erp/lx-office-erp.apache2.conf |
|
2 |
/etc/lx-office-erp/lx-office-erp.cherokee |
|
3 |
/etc/lx-office-erp/lx-office-erp.cherokee.handler |
DEBIAN/DEBIAN/config | ||
---|---|---|
8 | 8 |
. /usr/share/debconf/confmodule |
9 | 9 |
db_version 2.0 |
10 | 10 |
|
11 |
echo "! config $STATE !" >> /tmp/lxo-erp.log |
|
12 |
|
|
11 | 13 |
STATE=1 |
12 | 14 |
LASTSTATE=4 |
13 | 15 |
while [ "$STATE" != 0 ] && [ "$STATE" -le "$LASTSTATE" ]; do |
16 |
echo "! config $STATE !" >> /tmp/lxo-erp.log |
|
14 | 17 |
case "$STATE" in |
15 | 18 |
1) |
16 | 19 |
db_set lx-office-erp/admin-password-conf true || true |
... | ... | |
28 | 31 |
fi |
29 | 32 |
;; |
30 | 33 |
3) |
31 |
db_get lx-office-erp/admin-password-conf
|
|
34 |
db_get lx-office-erp/admin-password-conf |
|
32 | 35 |
if [ "$RET" = "true" ]; then |
33 | 36 |
db_get lx-office-erp/admin-password || true |
34 | 37 |
PASSPHRASE="$RET" |
DEBIAN/DEBIAN/control | ||
---|---|---|
1 | 1 |
Package: lx-office-erp |
2 | 2 |
Version: 0 |
3 |
Architecture: i386 |
|
4 |
Maintainer: Holger Lindemann <hli@lx-system.de>, Adrian Weibel <adrian_weibel@web.de> |
|
3 |
Architecture: all |
|
4 |
Section: universe/web |
|
5 |
Priority: optional |
|
5 | 6 |
Installed-Size: 0 |
7 |
Maintainer: Holger Lindemann <hli@lx-system.de>, Adrian Weibel <adrian_weibel@web.de> |
|
6 | 8 |
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 |
7 | 9 |
Suggests: tetex-base, tetex-bin, tetex-extra, xpdf | evince | okular |
8 |
Section: universe/web |
|
9 |
Priority: extra |
|
10 | 10 |
Homepage: http://www.lx-office.org |
11 | 11 |
Description: Extended double entry accounting system for the german market. |
12 | 12 |
Lx-Office is derived from sql-ledger and rewritten |
DEBIAN/DEBIAN/postinst | ||
---|---|---|
7 | 7 |
set -e |
8 | 8 |
# x = xtrace |
9 | 9 |
#set -x |
10 |
echo "! Postinst $1 !"
|
|
10 |
echo " ! "`date`" Postinst $1 !" >> /tmp/lxo-erp.log
|
|
11 | 11 |
|
12 | 12 |
source /usr/share/debconf/confmodule |
13 | 13 |
|
... | ... | |
26 | 26 |
|
27 | 27 |
config_postgresql_factory_script() { |
28 | 28 |
|
29 |
echo "Starting factory postgresql config script: scripts/inst_postgres.sh.." |
|
30 |
|
|
29 |
echo "Starting factory postgresql config script: scripts/inst_postgres_deb.sh.." |
|
31 | 30 |
cd /usr/lib/lx-office-erp/ |
32 |
|
|
33 | 31 |
./scripts/inst_postgres_deb.sh |
34 |
|
|
35 | 32 |
echo "Factory postgresql config script done." |
36 | 33 |
} |
37 | 34 |
|
... | ... | |
84 | 81 |
db_get lx-office-erp/admin-password |
85 | 82 |
ADMINPASSWORD="$RET" |
86 | 83 |
|
87 |
cat /usr/lib/lx-office-erp/config/authentication.pl.default | \ |
|
84 |
#cat /usr/lib/lx-office-erp/config/authentication.pl.default | \ |
|
85 |
cat /etc/lx-office-erp/authentication.pl.default | \ |
|
88 | 86 |
sed --expression "s/\$self->{admin_password} = 'admin';/\$self->{admin_password} = '$ADMINPASSWORD';/g" \ |
89 | 87 |
> /tmp/1.txt |
90 | 88 |
|
91 |
mv /tmp/1.txt /usr/lib/lx-office-erp/config/authentication.pl |
|
89 |
#mv /tmp/1.txt /usr/lib/lx-office-erp/config/authentication.pl |
|
90 |
mv /tmp/1.txt /etc/lx-office-erp/authentication.pl |
|
92 | 91 |
|
93 |
chmod 0600 /usr/lib/lx-office-erp/config/authentication.pl |
|
94 |
chown www-data:www-data /usr/lib/lx-office-erp/config/authentication.pl |
|
92 |
#chmod 0600 /usr/lib/lx-office-erp/config/authentication.pl
|
|
93 |
#chown www-data:www-data /usr/lib/lx-office-erp/config/authentication.pl
|
|
95 | 94 |
|
96 | 95 |
} |
97 | 96 |
|
... | ... | |
100 | 99 |
db_get lx-office-erp/lx-office-erp-user-postgresql-password |
101 | 100 |
PASSWORD="$RET" |
102 | 101 |
|
103 |
cat /usr/lib/lx-office-erp/config/authentication.pl | \ |
|
102 |
#cat /usr/lib/lx-office-erp/config/authentication.pl | \ |
|
103 |
cat /etc/lx-office-erp/authentication.pl | \ |
|
104 | 104 |
sed --expression "s/'password' => '',/'password' => '$PASSWORD',/g" \ |
105 | 105 |
> /tmp/1.txt |
106 | 106 |
|
107 |
mv /tmp/1.txt /usr/lib/lx-office-erp/config/authentication.pl |
|
107 |
#mv /tmp/1.txt /usr/lib/lx-office-erp/config/authentication.pl |
|
108 |
mv /tmp/1.txt /etc/lx-office-erp/authentication.pl |
|
108 | 109 |
|
109 | 110 |
} |
110 | 111 |
|
111 | 112 |
set_lx_office_erp_authentication_db_user() { |
112 | 113 |
USER="lxoffice" |
113 | 114 |
|
114 |
cat /usr/lib/lx-office-erp/config/authentication.pl | \ |
|
115 |
#cat /usr/lib/lx-office-erp/config/authentication.pl | \ |
|
116 |
cat /etc/lx-office-erp/authentication.pl | \ |
|
115 | 117 |
sed --expression "s/'user' => 'postgres',/'user' => '$USER',/g" \ |
116 | 118 |
> /tmp/1.txt |
117 | 119 |
|
118 |
mv /tmp/1.txt /usr/lib/lx-office-erp/config/authentication.pl |
|
120 |
#mv /tmp/1.txt /usr/lib/lx-office-erp/config/authentication.pl |
|
121 |
mv /tmp/1.txt /etc/lx-office-erp/authentication.pl |
|
119 | 122 |
} |
120 | 123 |
|
124 |
set_user_rights() { |
|
125 |
chown -R www-data:www-data /usr/lib/lx-office-erp/users |
|
126 |
chown -R www-data:www-data /usr/lib/lx-office-erp/templates |
|
127 |
chown www-data:www-data /etc/lx-office-erp/lx-erp.conf |
|
128 |
chown www-data:www-data /usr/lib/lx-office-erp/menu.ini |
|
129 |
chown www-data:www-data /etc/lx-office-erp/authentication.pl |
|
130 |
chmod 0600 /etc/lx-office-erp/lx-erp.conf |
|
131 |
chmod 0600 /etc/lx-office-erp/authentication.pl |
|
132 |
} |
|
121 | 133 |
|
122 | 134 |
disable_ipv6_on_lo_interface() { |
123 | 135 |
# 2009-04-25 |
... | ... | |
131 | 143 |
echo "ifconfig lo inet6 del ::1/128" >> $RCLOCAL |
132 | 144 |
|
133 | 145 |
} |
134 |
|
|
135 |
|
|
136 |
|
|
137 |
|
|
146 |
mk_new_menu() { |
|
147 |
if [ -e /usr/lib/lx-office-crm ] ; then |
|
148 |
#crm vorhanden, dann die menu.ini mit der höchsten VersNr nehmen |
|
149 |
for i in `ls -1 /usr/lib/lx-office-crm/update/menu*ini` ; do |
|
150 |
cat $i > /usr/lib/lx-office-erp/menu.ini |
|
151 |
done; |
|
152 |
cat /usr/lib/lx-office-erp/menu.default >> /usr/lib/lx-office-erp/menu.ini |
|
153 |
else |
|
154 |
cp /usr/lib/lx-office-erp/menu.default /usr/lib/lx-office-erp/menu.ini |
|
155 |
fi |
|
156 |
} |
|
157 |
|
|
158 |
mk_new_config() { |
|
159 |
if ! [ -f /etc/lx-office-erp/lx-erp.conf ] ; then |
|
160 |
cp /etc/lx-office-erp/lx-erp.conf.default /etc/lx-office-erp/lx-erp.conf |
|
161 |
fi |
|
162 |
} |
|
163 |
|
|
164 |
mk_links() { |
|
165 |
if ! [ -f /usr/lib/lx-office-erp/config/authentication.pl ] ; then |
|
166 |
ln -s /etc/lx-office-erp/authentication.pl /usr/lib/lx-office-erp/config/authentication.pl |
|
167 |
fi; |
|
168 |
if ! [ -f /usr/lib/lx-office-erp/config/lx-erp.conf ] ; then |
|
169 |
ln -s /etc/lx-office-erp/lx-erp.conf /usr/lib/lx-office-erp/config/lx-erp.conf |
|
170 |
fi; |
|
171 |
if [ -e /etc/apache2 ] ; then |
|
172 |
if ! [ -f /etc/apache2/conf.d/lx-office-erp.apache2.conf ] ; then |
|
173 |
ln -s /etc/lx-office-erp/lx-office-erp.apache2.conf /etc/apache2/conf.d/lx-office-erp.apache2.conf |
|
174 |
fi; |
|
175 |
fi; |
|
176 |
if [ -e /etc/cherokee/sites-available ] ; then |
|
177 |
if ! [ -f /etc/cherokee/sites-available/lx-office-erp.cherokee ] ; then |
|
178 |
cat /etc/lx-office-erp/lx-office-erp.cherokee.handler >> /etc/cherokee/sites-available/default |
|
179 |
ln -s /etc/lx-office-erp/lx-office-erp.cherokee /etc/cherokee/sites-available/lx-office-erp.cherokee |
|
180 |
fi; |
|
181 |
fi; |
|
182 |
} |
|
183 |
reload_web_server() { |
|
184 |
if [ -f /etc/init.d/apache* ] ; then |
|
185 |
/etc/init.d/apache* reload |
|
186 |
fi |
|
187 |
if [ -f /etc/init.d/cherokee ] ; then |
|
188 |
/etc/init.d/cherokee reload |
|
189 |
fi |
|
190 |
} |
|
138 | 191 |
case "$1" in |
139 |
install) |
|
140 |
echo "Install" |
|
141 | 192 |
|
142 | 193 |
upgrade) |
143 |
echo "Upgrade" |
|
144 |
|
|
145 |
configure) |
|
146 |
|
|
147 |
# config_postgresql_sql_routines |
|
148 |
# config_postgresql_roles |
|
149 |
# config_postgresql_accounts_sec |
|
150 |
|
|
151 |
config_postgresql_factory_script |
|
152 |
|
|
153 |
chown -R www-data:www-data /usr/lib/lx-office-erp/users |
|
154 |
chown -R www-data:www-data /usr/lib/lx-office-erp/templates |
|
155 |
|
|
156 |
set_lx_office_erp_web_admin_password |
|
157 |
set_lx_office_erp_authentication_db_user |
|
158 |
set_lx_office_erp_authentication_db_password |
|
159 |
|
|
160 |
disable_ipv6_on_lo_interface |
|
194 |
echo " ! "`date`" $1 !" >> /tmp/lxo-erp.log |
|
195 |
|
|
196 |
VER=`cat /var/www/lx-office-erp/VERSION | cut -d '.' -f2` |
|
197 |
if [ $VER = '6' ]; then |
|
198 |
echo " ! 2.6 !" >> /tmp/lxo-erp.log |
|
199 |
echo "Version 2.6" |
|
200 |
mk_new_menu |
|
201 |
else |
|
202 |
mk_new_menu |
|
203 |
mk_new_config |
|
204 |
config_postgresql_factory_script |
|
205 |
set_lx_office_erp_web_admin_password |
|
206 |
set_lx_office_erp_authentication_db_user |
|
207 |
set_lx_office_erp_authentication_db_password |
|
208 |
disable_ipv6_on_lo_interface |
|
209 |
mk_links |
|
210 |
fi; |
|
211 |
|
|
212 |
set_user_rights |
|
213 |
reload_web_server |
|
214 |
;; |
|
161 | 215 |
|
162 |
/etc/init.d/apache* reload |
|
216 |
install|configure) |
|
217 |
echo " ! "`date`" $1 !" >> /tmp/lxo-erp.log |
|
218 |
|
|
219 |
mk_new_menu |
|
220 |
mk_new_config |
|
221 |
config_postgresql_factory_script |
|
222 |
set_lx_office_erp_web_admin_password |
|
223 |
set_lx_office_erp_authentication_db_user |
|
224 |
set_lx_office_erp_authentication_db_password |
|
225 |
disable_ipv6_on_lo_interface |
|
226 |
mk_links |
|
227 |
|
|
228 |
set_user_rights |
|
229 |
reload_web_server |
|
163 | 230 |
|
164 | 231 |
;; |
165 | 232 |
|
... | ... | |
176 | 243 |
# generated by other debhelper scripts. |
177 | 244 |
|
178 | 245 |
|
179 |
|
|
180 | 246 |
echo "done!!" |
181 | 247 |
|
182 | 248 |
exit 0 |
DEBIAN/DEBIAN/postrm | ||
---|---|---|
1 | 1 |
#!/bin/sh |
2 | 2 |
set -e |
3 |
echo "! Postrm $1 !" |
|
3 |
#set -x |
|
4 |
echo " ! "`date`" Postrm $1 !" >> /tmp/lxo-erp.log |
|
4 | 5 |
|
5 | 6 |
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then |
6 | 7 |
rm -rf /var/lib/lx-office-erp/templates/* |
DEBIAN/DEBIAN/preinst | ||
---|---|---|
1 | 1 |
#!/bin/sh |
2 | 2 |
#Nur für das Update von einer 2.6.0 nötig, da hier gnadenlos gelöscht wird |
3 | 3 |
set -e |
4 |
echo "! Preinst $1 !"
|
|
4 |
echo " ! "`date`" Preinst $1 !" >> /tmp/lxo-erp.log
|
|
5 | 5 |
if [ "$1" = "upgrade" ]; then |
6 |
echo "#!/bin/sh" > /var/lib/dpkg/info/lx-office-erp.postrm |
|
7 |
echo "set -e" >> /var/lib/dpkg/info/lx-office-erp.postrm |
|
8 |
echo "echo '! postrm2 $1 !'" >> /var/lib/dpkg/info/lx-office-erp.postrm
|
|
9 |
chmod +x /var/lib/dpkg/info/lx-office-erp.postrm |
|
6 |
echo "#!/bin/sh" > /var/lib/dpkg/info/lx-office-erp.postrm
|
|
7 |
echo "set -e" >> /var/lib/dpkg/info/lx-office-erp.postrm
|
|
8 |
echo "echo ' ! '`date`' postrm2 $1 !'" >> /var/lib/dpkg/info/lx-office-erp.postrm
|
|
9 |
chmod +x /var/lib/dpkg/info/lx-office-erp.postrm
|
|
10 | 10 |
fi |
11 | 11 |
|
DEBIAN/etc/apache2/conf.d/lx-office-erp.apache2.conf | ||
---|---|---|
1 |
/etc/lx-office-erp/lx-office-erp.apache2.conf |
DEBIAN/etc/lx-office-erp/lx-erp.conf | ||
---|---|---|
1 |
use Cwd; |
|
2 |
|
|
3 |
use vars qw($dbcharset $eur $ghostscript_bin $html2ps_bin $language $latex_bin $latex_templates $lizenzen $memberfile |
|
4 |
$opendocument_templates $openofficeorg_daemon $openofficeorg_daemon_port $openofficeorg_writer_bin |
|
5 |
$pg_dump_exe $pg_restore_exe $sendmail $show_best_before $sid $spool $templates $userspath $vertreter $webdav $xvfb_bin); |
|
6 |
|
|
7 |
# path to user configuration files |
|
8 |
$userspath = "users"; |
|
9 |
|
|
10 |
# spool directory for batch printing |
|
11 |
$spool = "spool"; |
|
12 |
|
|
13 |
# templates base directory |
|
14 |
$templates = "templates"; |
|
15 |
|
|
16 |
# member file |
|
17 |
$memberfile = "users/members"; |
|
18 |
|
|
19 |
# Wenn nicht Bilanzierung dann auf 1 setzen |
|
20 |
$eur = 1; |
|
21 |
|
|
22 |
# location of sendmail |
|
23 |
$sendmail = '| /usr/sbin/sendmail -t<%if myconfig_email%> -f <%myconfig_email%><%end%>'; |
|
24 |
|
|
25 |
# set language for login and admin |
|
26 |
$language = "de"; |
|
27 |
|
|
28 |
# Oracle |
|
29 |
$sid = "T80509"; |
|
30 |
$ENV{"ORACLE_HOME"} = "/usr/local/oracle"; |
|
31 |
|
|
32 |
# if you have latex installed set to 1 |
|
33 |
$latex_templates = 1; |
|
34 |
|
|
35 |
# if the server can't find gzip, latex, dvips or pdflatex, add the path |
|
36 |
$ENV{PATH} .= ":/usr/local/bin"; |
|
37 |
|
|
38 |
# on mac os X using Fink's Perl libs, add the path |
|
39 |
$ENV{PERL5LIB} .= ":/sw/lib/perl5"; |
|
40 |
|
|
41 |
# Aktivierung der verschiedenen Spezialmodule |
|
42 |
$webdav = 0; |
|
43 |
$lizenzen = 1; |
|
44 |
$vertreter = 0; |
|
45 |
|
|
46 |
# Zeige Felder f?r Mindesthaltbarkeitsdatum |
|
47 |
$show_best_before = 0; |
|
48 |
|
|
49 |
## Support fuer OpenDocument-Vorlagen |
|
50 |
# Diese Option legt fest, ob OpenDocument-Vorlagen generell verfuegbar sind. |
|
51 |
$opendocument_templates = 1; |
|
52 |
|
|
53 |
# Die folgenden zwei Variablen legen Pfade zu Programmen fest, die benoetigt |
|
54 |
# werden, um OpenDocument-Vorlagen in PDFs umzuwandeln. |
|
55 |
|
|
56 |
# Pfad zu OpenOffice.org writer |
|
57 |
$openofficeorg_writer_bin = "/usr/bin/oowriter"; |
|
58 |
|
|
59 |
# Soll OpenOffice dauerhaft gestartet bleiben? Die Konvertierung nachfolgender |
|
60 |
# Dokumente geht dann schneller. Allerdings wird auf dem System ein |
|
61 |
# installiertes Python mit den Python-UNO-Bindings benoetigt, die Bestandteil |
|
62 |
# von OpenOffice sind. |
|
63 |
$openofficeorg_daemon = 1; |
|
64 |
$openofficeorg_daemon_port = 2002; |
|
65 |
|
|
66 |
# Pfad zum "X virtual frame buffer", unter dem OpenOffice gestartet wird. |
|
67 |
# Zusaetzlich muessen die Programme "xauth" und "mcookie" gefunden werden |
|
68 |
# koennen, was eine Aenderung an PATH bedeuten kann. |
|
69 |
$ENV{"PATH"} = $ENV{"PATH"} . ":/usr/X11R6/bin:/usr/X11/bin"; |
|
70 |
$xvfb_bin = "/usr/bin/Xvfb"; |
|
71 |
|
|
72 |
# Das charset, in dem die Daten in der Datenbank abgelegt sind. |
|
73 |
$dbcharset = 'UTF-8'; # F?r UNICODE UTF-8 |
|
74 |
# $dbcharset = "ISO-8859-15"; |
|
75 |
|
|
76 |
|
|
77 |
# Pfad zu 'html2ps' zum Export von Listenansichten als PDF |
|
78 |
$html2ps_bin = "/usr/bin/html2ps"; |
|
79 |
$ghostscript_bin = "/usr/bin/gs"; |
|
80 |
|
|
81 |
# Name von bzw. Pfad zu 'pdflatex' oder einer anderen kompatiblen Version |
|
82 |
# wie z.B. 'xetex' |
|
83 |
$latex_bin = 'pdflatex'; |
|
84 |
|
|
85 |
# Datenbankbackups werden mit dem externen Programm "pg_dump" erledigt. |
|
86 |
# Wenn es nicht im aktuellen Pfad vorhanden ist, so muss hier der vollst?ndige |
|
87 |
# Pfad eingetragen werden. Wenn die Variable auf "DISABLED" gesetzt wird, |
|
88 |
# so wird der Men?punkt zum Backup von Datenbanken im Administrationsfrontend |
|
89 |
# nicht angeboten. |
|
90 |
# Das gleiche gilt analog f?r das Wiederherstellen mittels "pg_restore". |
|
91 |
$pg_dump_exe = "pg_dump"; |
|
92 |
$pg_restore_exe = "pg_restore"; |
|
93 |
|
|
94 |
# Globale Debug-Ausgaben (de-)aktivieren? Moegliche Werte sind |
|
95 |
# LXDebug::NONE - keine Debugausgaben |
|
96 |
# LXDebug::INFO |
|
97 |
# LXDebug::DEBUG1 |
|
98 |
# LXDebug::DEBUG2 |
|
99 |
# LXDebug::QUERY - SQL Queries |
|
100 |
# LXDebug::TRACE - Tracing von Funktionsaufrufen |
|
101 |
# LXDebug::BACKTRACE_ON_ERROR - Vollst?ndiger Aufrufpfad, wenn $form->error() aufgerufen wird |
|
102 |
# LXDebug::ALL - alle Debugausgaben |
|
103 |
# |
|
104 |
# LXDebug::DEVEL - wie INFO | QUERY | TRACE | BACKTRACE_ON_ERROR |
|
105 |
# |
|
106 |
# Beipiel: |
|
107 |
# $LXDebug::global_level = LXDebug::TRACE | LXDebug::QUERY; |
|
108 |
$LXDebug::global_level = LXDebug::NONE; |
|
109 |
|
|
110 |
# ?berwachung der Inhalte von $form aktiviert oder nicht? Wenn ja, |
|
111 |
# dann k?nnen einzelne Variablen mit |
|
112 |
# $form->{"Watchdog::<variablenname>"} = 1; |
|
113 |
# ?berwacht werden. Bedeutet aber auch einen Geschwindigkeitsverlust, |
|
114 |
# weshalb sie normalerweise deaktiviert ist. |
|
115 |
$LXDebug::watch_form = 0; |
|
116 |
|
|
117 |
# Zum debuggen von Latexausgaben. Wenn diese Option auf 1 gesetzt wird, werden |
|
118 |
# tempor?re Dateien, die bei der Erstellung von PDFs aus Latex erzeugt werden, |
|
119 |
# nach Abschlu? der Erstellung oder im Fehlerfall nicht gel?scht, damit man sie |
|
120 |
# untersuchen kann. |
|
121 |
$::keep_temp_files = 0; |
|
122 |
|
|
123 |
1; |
DEBIAN/etc/lx-office-erp/lx-erp.conf.default | ||
---|---|---|
1 |
use Cwd; |
|
2 |
|
|
3 |
use vars qw($dbcharset $eur $ghostscript_bin $html2ps_bin $language $latex_bin $latex_templates $lizenzen $memberfile |
|
4 |
$opendocument_templates $openofficeorg_daemon $openofficeorg_daemon_port $openofficeorg_writer_bin |
|
5 |
$pg_dump_exe $pg_restore_exe $sendmail $show_best_before $sid $spool $templates $userspath $vertreter $webdav $xvfb_bin); |
|
6 |
|
|
7 |
# path to user configuration files |
|
8 |
$userspath = "users"; |
|
9 |
|
|
10 |
# spool directory for batch printing |
|
11 |
$spool = "spool"; |
|
12 |
|
|
13 |
# templates base directory |
|
14 |
$templates = "templates"; |
|
15 |
|
|
16 |
# member file |
|
17 |
$memberfile = "users/members"; |
|
18 |
|
|
19 |
# Wenn nicht Bilanzierung dann auf 1 setzen |
|
20 |
$eur = 1; |
|
21 |
|
|
22 |
# location of sendmail |
|
23 |
$sendmail = '| /usr/sbin/sendmail -t<%if myconfig_email%> -f <%myconfig_email%><%end%>'; |
|
24 |
|
|
25 |
# set language for login and admin |
|
26 |
$language = "de"; |
|
27 |
|
|
28 |
# Oracle |
|
29 |
$sid = "T80509"; |
|
30 |
$ENV{"ORACLE_HOME"} = "/usr/local/oracle"; |
|
31 |
|
|
32 |
# if you have latex installed set to 1 |
|
33 |
$latex_templates = 1; |
|
34 |
|
|
35 |
# if the server can't find gzip, latex, dvips or pdflatex, add the path |
|
36 |
$ENV{PATH} .= ":/usr/local/bin"; |
|
37 |
|
|
38 |
# on mac os X using Fink's Perl libs, add the path |
|
39 |
$ENV{PERL5LIB} .= ":/sw/lib/perl5"; |
|
40 |
|
|
41 |
# Aktivierung der verschiedenen Spezialmodule |
|
42 |
$webdav = 0; |
|
43 |
$lizenzen = 1; |
|
44 |
$vertreter = 0; |
|
45 |
|
|
46 |
# Zeige Felder f?r Mindesthaltbarkeitsdatum |
|
47 |
$show_best_before = 0; |
|
48 |
|
|
49 |
## Support fuer OpenDocument-Vorlagen |
|
50 |
# Diese Option legt fest, ob OpenDocument-Vorlagen generell verfuegbar sind. |
|
51 |
$opendocument_templates = 1; |
|
52 |
|
|
53 |
# Die folgenden zwei Variablen legen Pfade zu Programmen fest, die benoetigt |
|
54 |
# werden, um OpenDocument-Vorlagen in PDFs umzuwandeln. |
|
55 |
|
|
56 |
# Pfad zu OpenOffice.org writer |
|
57 |
$openofficeorg_writer_bin = "/usr/bin/oowriter"; |
|
58 |
|
|
59 |
# Soll OpenOffice dauerhaft gestartet bleiben? Die Konvertierung nachfolgender |
|
60 |
# Dokumente geht dann schneller. Allerdings wird auf dem System ein |
|
61 |
# installiertes Python mit den Python-UNO-Bindings benoetigt, die Bestandteil |
|
62 |
# von OpenOffice sind. |
|
63 |
$openofficeorg_daemon = 1; |
|
64 |
$openofficeorg_daemon_port = 2002; |
|
65 |
|
|
66 |
# Pfad zum "X virtual frame buffer", unter dem OpenOffice gestartet wird. |
|
67 |
# Zusaetzlich muessen die Programme "xauth" und "mcookie" gefunden werden |
|
68 |
# koennen, was eine Aenderung an PATH bedeuten kann. |
|
69 |
$ENV{"PATH"} = $ENV{"PATH"} . ":/usr/X11R6/bin:/usr/X11/bin"; |
|
70 |
$xvfb_bin = "/usr/bin/Xvfb"; |
|
71 |
|
|
72 |
# Das charset, in dem die Daten in der Datenbank abgelegt sind. |
|
73 |
$dbcharset = 'UTF-8'; # F?r UNICODE UTF-8 |
|
74 |
# $dbcharset = "ISO-8859-15"; |
|
75 |
|
|
76 |
|
|
77 |
# Pfad zu 'html2ps' zum Export von Listenansichten als PDF |
|
78 |
$html2ps_bin = "/usr/bin/html2ps"; |
|
79 |
$ghostscript_bin = "/usr/bin/gs"; |
|
80 |
|
|
81 |
# Name von bzw. Pfad zu 'pdflatex' oder einer anderen kompatiblen Version |
|
82 |
# wie z.B. 'xetex' |
|
83 |
$latex_bin = 'pdflatex'; |
|
84 |
|
|
85 |
# Datenbankbackups werden mit dem externen Programm "pg_dump" erledigt. |
|
86 |
# Wenn es nicht im aktuellen Pfad vorhanden ist, so muss hier der vollst?ndige |
|
87 |
# Pfad eingetragen werden. Wenn die Variable auf "DISABLED" gesetzt wird, |
|
88 |
# so wird der Men?punkt zum Backup von Datenbanken im Administrationsfrontend |
|
89 |
# nicht angeboten. |
|
90 |
# Das gleiche gilt analog f?r das Wiederherstellen mittels "pg_restore". |
|
91 |
$pg_dump_exe = "pg_dump"; |
|
92 |
$pg_restore_exe = "pg_restore"; |
|
93 |
|
|
94 |
# Globale Debug-Ausgaben (de-)aktivieren? Moegliche Werte sind |
|
95 |
# LXDebug::NONE - keine Debugausgaben |
|
96 |
# LXDebug::INFO |
|
97 |
# LXDebug::DEBUG1 |
|
98 |
# LXDebug::DEBUG2 |
|
99 |
# LXDebug::QUERY - SQL Queries |
|
100 |
# LXDebug::TRACE - Tracing von Funktionsaufrufen |
|
101 |
# LXDebug::BACKTRACE_ON_ERROR - Vollst?ndiger Aufrufpfad, wenn $form->error() aufgerufen wird |
|
102 |
# LXDebug::ALL - alle Debugausgaben |
|
103 |
# |
|
104 |
# LXDebug::DEVEL - wie INFO | QUERY | TRACE | BACKTRACE_ON_ERROR |
|
105 |
# |
|
106 |
# Beipiel: |
|
107 |
# $LXDebug::global_level = LXDebug::TRACE | LXDebug::QUERY; |
|
108 |
$LXDebug::global_level = LXDebug::NONE; |
|
109 |
|
|
110 |
# ?berwachung der Inhalte von $form aktiviert oder nicht? Wenn ja, |
|
111 |
# dann k?nnen einzelne Variablen mit |
|
112 |
# $form->{"Watchdog::<variablenname>"} = 1; |
|
113 |
# ?berwacht werden. Bedeutet aber auch einen Geschwindigkeitsverlust, |
|
114 |
# weshalb sie normalerweise deaktiviert ist. |
|
115 |
$LXDebug::watch_form = 0; |
|
116 |
|
|
117 |
# Zum debuggen von Latexausgaben. Wenn diese Option auf 1 gesetzt wird, werden |
|
118 |
# tempor?re Dateien, die bei der Erstellung von PDFs aus Latex erzeugt werden, |
|
119 |
# nach Abschlu? der Erstellung oder im Fehlerfall nicht gel?scht, damit man sie |
|
120 |
# untersuchen kann. |
|
121 |
$::keep_temp_files = 0; |
|
122 |
|
|
123 |
1; |
DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee | ||
---|---|---|
2 | 2 |
## Virtual server for lx-office-erp |
3 | 3 |
## |
4 | 4 |
Directory /lx-office-erp { |
5 |
Handler common
|
|
5 |
Handler common |
|
6 | 6 |
DocumentRoot /usr/lib/lx-office-erp/ |
7 |
} |
|
7 |
} |
|
8 |
Directory /lx-office-erp/image { |
|
9 |
DocumentRoot /usr/share/lx-office-erp/ |
|
10 |
} |
|
11 |
Directory /lx-office-erp/css{ |
|
12 |
DocumentRoot /var/lib/lx-office-erp/css |
|
13 |
} |
|
14 |
Directory /lx-office-erp/templates{ |
|
15 |
DocumentRoot /var/lib/lx-office-erp/templates |
|
16 |
} |
|
17 |
Directory /lx-office-erp/users{ |
|
18 |
DocumentRoot /var/lib/lx-office-erp/users |
|
19 |
} |
|
20 |
Directory /lx-office-erp/webdav{ |
|
21 |
DocumentRoot /var/lib/lx-office-erp/webdav |
|
22 |
} |
|
23 |
Directory /lx-office-erp/spool{ |
|
24 |
DocumentRoot /var/lib/lx-office-erp/spool |
|
25 |
} |
DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee.handler | ||
---|---|---|
1 |
Extension pl { |
|
2 |
Handler cgi |
|
3 |
} |
DEBIAN/mk_erp_deb.sh | ||
---|---|---|
6 | 6 |
#hier wurde das Git-Paket entpakt: |
7 | 7 |
SRC=/tmp/lx-office-erp |
8 | 8 |
#hier wird das Debian-Paket gebaut: |
9 |
DEST=/media/work/lx-office/lx-office-erp_$VER-$NR-all
|
|
9 |
DEST=/tmp/lx-office/lx-office-erp_$VER-$NR-all
|
|
10 | 10 |
|
11 | 11 |
mkdir -p $DEST |
12 | 12 |
cd $DEST |
... | ... | |
16 | 16 |
rm ./mk*.sh |
17 | 17 |
|
18 | 18 |
#Dateien kopieren: |
19 |
#aber keine fertigen Konfigurationen, nur *.default |
|
19 | 20 |
cp -a $SRC/SL usr/lib/lx-office-erp |
20 | 21 |
cp -a $SRC/bin usr/lib/lx-office-erp |
21 | 22 |
cp -a $SRC/js usr/lib/lx-office-erp |
... | ... | |
28 | 29 |
cp -a $SRC/*.pl usr/lib/lx-office-erp |
29 | 30 |
cp $SRC/VERSION usr/lib/lx-office-erp |
30 | 31 |
cp $SRC/index.html usr/lib/lx-office-erp |
31 |
|
|
32 |
cp $SRC/config/lx-erp.conf etc/lx-office-erp/lx-erp.conf.default |
|
33 |
cp $SRC/config/authentication.pl.default etc/lx-office-erp/ |
|
34 |
cp $SRC/menu.ini usr/lib/lx-office-erp/menu.default |
|
32 | 35 |
cp -a $SRC/css var/lib/lx-office-erp |
33 | 36 |
cp -a $SRC/templates var/lib/lx-office-erp |
34 | 37 |
cp -a $SRC/users var/lib/lx-office-erp |
35 | 38 |
cp -a $SRC/xslt var/lib/lx-office-erp |
36 | 39 |
|
37 |
cp -a $SRC/doc usr/share/doc/lx-office-erp
|
|
38 |
cp -a $SRC/image/* usr/share/lx-office-erp |
|
40 |
cp -a $SRC/doc/* usr/share/doc/lx-office-erp/
|
|
41 |
cp -a $SRC/image/* usr/share/lx-office-erp/
|
|
39 | 42 |
|
40 |
#Gitfiles löschen |
|
43 |
#Git- und dummy-files löschen
|
|
41 | 44 |
find . -name ".git*" -exec rm -rf {} \; |
42 | 45 |
find . -name ".dummy" -exec rm -rf {} \; |
43 | 46 |
|
44 | 47 |
#Rechte setzen |
45 | 48 |
chown -R www-data: usr/lib/lx-office-erp |
46 | 49 |
chown -R www-data: var/lib/lx-office-erp |
50 |
chown -R www-data: etc/lx-office-erp |
|
47 | 51 |
|
48 | 52 |
#MD5 Summe bilden: |
49 | 53 |
find usr/ -name "*" -type f -exec md5sum {} \; > DEBIAN/md5sum |
... | ... | |
58 | 62 |
mv DEBIAN/1.tmp DEBIAN/control |
59 | 63 |
cat DEBIAN/control | sed --expression "s/Version: 0/Version: $VER-$NR/g" > DEBIAN/1.tmp |
60 | 64 |
mv DEBIAN/1.tmp DEBIAN/control |
65 |
#Revisionsnummer evtl. von Hand eintragen |
|
61 | 66 |
|
62 | 67 |
#Paket bauen: |
63 | 68 |
cd .. |
DEBIAN/usr/lib/lx-office-erp/config/lx-erp.conf | ||
---|---|---|
1 |
/etc/lx-office-erp/lx-erp.conf |
DEBIAN/usr/lib/lx-office-erp/image | ||
---|---|---|
1 |
/usr/share/lx-office-erp |
Auch abrufbar als: Unified diff
Deb-Pakete bauen, diveres Anpassungen