Revision 30c4906a
Von Sven Schöling vor mehr als 14 Jahren hinzugefügt
DEBIAN/README | ||
---|---|---|
4 | 4 |
|
5 | 5 |
git clone git://lx-office.linet-services.de/lx-office-erp.git |
6 | 6 |
|
7 |
Die Datei mk_erp_deb.sh
|
|
8 |
In das neue Verzeichnis lx-office-erp wechsel und die Datei
|
|
9 |
DEBIAN/mk_erp_deb.sh mit einem Editor öffnen. Die Pfade:
|
|
10 |
SRC und DEST ggf. anpassen und wieder speichern.
|
|
7 |
Die Datei mk_erp_deb.sh |
|
8 |
In das neue Verzeichnis lx-office-erp wechsel und die Datei |
|
9 |
DEBIAN/mk_erp_deb.sh mit einem Editor öffnen. Die Pfade: |
|
10 |
SRC und DST ggf. anpassen und wieder speichern. |
|
11 | 11 |
|
12 | 12 |
Die Datei DEBIAN/mk_erp_deb.sh ausführen. Fertig. |
DEBIAN/etc/lx-office-erp/lx-office-erp.apache2.conf | ||
---|---|---|
1 |
AddHandler cgi-script .pl |
|
2 |
Alias /lx-office/ /usr/lib/lx-office-erp/ |
|
3 |
|
|
4 |
<Directory /usr/lib/lx-office-erp> |
|
5 |
Options ExecCGI Includes FollowSymlinks |
|
6 |
DirectoryIndex login.pl |
|
7 |
AddDefaultCharset UTF-8 |
|
8 |
</Directory> |
|
9 |
|
|
10 |
<Directory /usr/lib/lx-office-erp/users> |
|
11 |
Order Deny,Allow |
|
12 |
Deny from All |
|
13 |
</Directory> |
DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee | ||
---|---|---|
1 |
## |
|
2 |
## Virtual server for lx-office-erp |
|
3 |
## |
|
4 |
Directory /lx-office-erp { |
|
5 |
Handler common |
|
6 |
DocumentRoot /usr/lib/lx-office-erp/ |
|
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/files/lx-office-erp | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
# |
|
3 |
## shell script for lx-office-erp to start the login manager in a browser |
|
4 |
|
|
5 |
set -e |
|
6 |
|
|
7 |
/usr/bin/sensible-browser http://localhost/lx-office-erp/login.pl |
|
8 |
|
|
9 |
|
DEBIAN/files/lx-office-erp.apache2.conf | ||
---|---|---|
1 |
AddHandler cgi-script .pl |
|
2 |
Alias /lx-office/ /usr/lib/lx-office-erp/ |
|
3 |
|
|
4 |
<Directory /usr/lib/lx-office-erp> |
|
5 |
Options ExecCGI Includes FollowSymlinks |
|
6 |
DirectoryIndex login.pl |
|
7 |
AddDefaultCharset UTF-8 |
|
8 |
</Directory> |
|
9 |
|
|
10 |
<Directory /usr/lib/lx-office-erp/users> |
|
11 |
Order Deny,Allow |
|
12 |
Deny from All |
|
13 |
</Directory> |
DEBIAN/files/lx-office-erp.cherokee | ||
---|---|---|
1 |
## |
|
2 |
## Virtual server for lx-office-erp |
|
3 |
## |
|
4 |
Directory /lx-office-erp { |
|
5 |
Handler common |
|
6 |
DocumentRoot /usr/lib/lx-office-erp/ |
|
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/files/lx-office-erp.cherokee.handler | ||
---|---|---|
1 |
Extension pl { |
|
2 |
Handler cgi |
|
3 |
} |
DEBIAN/mk_erp_deb.sh | ||
---|---|---|
1 | 1 |
#!/bin/bash |
2 |
VER="2.6.1" |
|
2 |
|
|
3 | 3 |
#Jedes neue Paket der gleichen Version bekommt eine eigene Nummer |
4 | 4 |
NR="0" |
5 | 5 |
|
6 | 6 |
#hier wurde das Git-Paket entpakt: |
7 | 7 |
SRC=/tmp/lx-office-erp |
8 |
|
|
8 | 9 |
#hier wird das Debian-Paket gebaut: |
9 |
DEST=/tmp/lx-office/lx-office-erp_$VER-$NR-all |
|
10 |
DST=/tmp/lx-office |
|
11 |
|
|
12 |
|
|
13 |
################################################ |
|
14 |
# ab hier keine Konfiguration mehr |
|
15 |
################################################ |
|
16 |
|
|
17 |
VERSION=`cat ../VERSION` |
|
18 |
DEST=$DST/lx-office-erp_$VER-$NR-all |
|
19 |
|
|
20 |
FILES=' |
|
21 |
usr/lib/lx-office-erp/ |
|
22 |
usr/share/lx-office-erp/ |
|
23 |
usr/share/doc/lx-office-erp/ |
|
24 |
var/lib/lx-office-erp/spool/ |
|
25 |
var/lib/lx-office-erp/users/ |
|
26 |
var/lib/lx-office-erp/css/ |
|
27 |
var/lib/lx-office-erp/xslt/ |
|
28 |
var/lib/lx-office-erp/templates/ |
|
29 |
var/lib/lx-office-erp/webdav/lieferantenbestellungen/ |
|
30 |
var/lib/lx-office-erp/webdav/anfragen/ |
|
31 |
var/lib/lx-office-erp/webdav/gutschriften/ |
|
32 |
var/lib/lx-office-erp/webdav/einkaufsrechnungen/ |
|
33 |
var/lib/lx-office-erp/webdav/rechnungen/ |
|
34 |
var/lib/lx-office-erp/webdav/bestellungen/ |
|
35 |
var/lib/lx-office-erp/webdav/angebote/ |
|
36 |
usr/lib/lx-office-erp/ |
|
37 |
usr/share/lx-office-erp/ |
|
38 |
usr/share/doc/lx-office-erp/ |
|
39 |
usr/share/man/man1/:lx-office-erp.1.gz |
|
40 |
etc/lx-office-erp/:lx-office-erp.cherokee.handler |
|
41 |
etc/lx-office-erp/:lx-office-erp.apache2.conf |
|
42 |
etc/lx-office-erp/:lx-office-erp.cherokee |
|
43 |
usr/bin/:lx-office-erp |
|
44 |
' |
|
45 |
|
|
46 |
for filespec in $FILES; do |
|
47 |
set - `echo $filespec | sed -e 's/:/ /g'` |
|
48 |
dir=$1 |
|
49 |
file=$2 |
|
50 |
|
|
51 |
mkdir -p $dir |
|
52 |
if [ -f "./files/$file" ]; then |
|
53 |
cp ./files/$file $dir/$file |
|
54 |
else |
|
55 |
echo '1' > $dir/.dummy |
|
56 |
fi |
|
57 |
done |
|
58 |
|
|
59 |
SYMLINKS=' |
|
60 |
css:/var/lib/lx-office-erp/css |
|
61 |
doc:/usr/share/doc/lx-office-erp/ |
|
62 |
image:/usr/share/lx-office-erp |
|
63 |
spool:/var/lib/lx-office-erp/spool |
|
64 |
templates:/var/lib/lx-office-erp/templates |
|
65 |
users:/var/lib/lx-office-erp/users/ |
|
66 |
webdav:/var/lib/lx-office-erp/webdav |
|
67 |
xslt:/var/lib/lx-office-erp/xslt |
|
68 |
' |
|
69 |
|
|
70 |
for symspec in $SYMLINKS; do |
|
71 |
set - `echo $symspec | sed -e 's/:/ /g'` |
|
72 |
src=$1 |
|
73 |
tar=$2 |
|
74 |
|
|
75 |
ln -s $tar ./usr/lib/lx-office-erp/$src |
|
76 |
done |
|
77 |
#fertig |
|
10 | 78 |
|
11 | 79 |
mkdir -p $DEST |
12 | 80 |
cd $DEST |
DEBIAN/usr/bin/lx-office-erp | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
# |
|
3 |
## shell script for lx-office-erp to start the login manager in a browser |
|
4 |
|
|
5 |
set -e |
|
6 |
|
|
7 |
/usr/bin/sensible-browser http://localhost/lx-office-erp/login.pl |
|
8 |
|
|
9 |
|
DEBIAN/usr/lib/lx-office-erp/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/usr/lib/lx-office-erp/css | ||
---|---|---|
1 |
/var/lib/lx-office-erp/css |
DEBIAN/usr/lib/lx-office-erp/doc | ||
---|---|---|
1 |
/usr/share/doc/lx-office-erp/ |
DEBIAN/usr/lib/lx-office-erp/image | ||
---|---|---|
1 |
/usr/share/lx-office-erp |
DEBIAN/usr/lib/lx-office-erp/spool | ||
---|---|---|
1 |
/var/lib/lx-office-erp/spool |
DEBIAN/usr/lib/lx-office-erp/templates | ||
---|---|---|
1 |
/var/lib/lx-office-erp/templates |
DEBIAN/usr/lib/lx-office-erp/users | ||
---|---|---|
1 |
/var/lib/lx-office-erp/users/ |
DEBIAN/usr/lib/lx-office-erp/webdav | ||
---|---|---|
1 |
/var/lib/lx-office-erp/webdav |
DEBIAN/usr/lib/lx-office-erp/xslt | ||
---|---|---|
1 |
/var/lib/lx-office-erp/xslt |
DEBIAN/usr/share/doc/lx-office-erp/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/usr/share/lx-office-erp/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/var/lib/lx-office-erp/css/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/var/lib/lx-office-erp/spool/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/var/lib/lx-office-erp/templates/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/var/lib/lx-office-erp/users/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/var/lib/lx-office-erp/webdav/anfragen/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/var/lib/lx-office-erp/webdav/angebote/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/var/lib/lx-office-erp/webdav/bestellungen/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/var/lib/lx-office-erp/webdav/einkaufsrechnungen/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/var/lib/lx-office-erp/webdav/gutschriften/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/var/lib/lx-office-erp/webdav/lieferantenbestellungen/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/var/lib/lx-office-erp/webdav/rechnungen/.dummy | ||
---|---|---|
1 |
1 |
DEBIAN/var/lib/lx-office-erp/xslt/.dummy | ||
---|---|---|
1 |
1 |
Auch abrufbar als: Unified diff
DEBIAN paket generator ein wenig eingedampft.
Verzeichnisstruktur wird jetzt beim packen erzeugt, alle benötigten Dateien liegen unter DEBIAN/files.
Verseion wird jetzt aus der VERSION Datei von Lx-Office geholt.