Revision 30c4906a
Von Sven Schöling vor mehr als 14 Jahren hinzugefügt
DEBIAN/README | ||
---|---|---|
|
||
git clone git://lx-office.linet-services.de/lx-office-erp.git
|
||
|
||
Die Datei mk_erp_deb.sh
|
||
In das neue Verzeichnis lx-office-erp wechsel und die Datei
|
||
DEBIAN/mk_erp_deb.sh mit einem Editor öffnen. Die Pfade:
|
||
SRC und DEST ggf. anpassen und wieder speichern.
|
||
Die Datei mk_erp_deb.sh
|
||
In das neue Verzeichnis lx-office-erp wechsel und die Datei
|
||
DEBIAN/mk_erp_deb.sh mit einem Editor öffnen. Die Pfade:
|
||
SRC und DST ggf. anpassen und wieder speichern.
|
||
|
||
Die Datei DEBIAN/mk_erp_deb.sh ausführen. Fertig.
|
DEBIAN/etc/lx-office-erp/lx-office-erp.apache2.conf | ||
---|---|---|
AddHandler cgi-script .pl
|
||
Alias /lx-office/ /usr/lib/lx-office-erp/
|
||
|
||
<Directory /usr/lib/lx-office-erp>
|
||
Options ExecCGI Includes FollowSymlinks
|
||
DirectoryIndex login.pl
|
||
AddDefaultCharset UTF-8
|
||
</Directory>
|
||
|
||
<Directory /usr/lib/lx-office-erp/users>
|
||
Order Deny,Allow
|
||
Deny from All
|
||
</Directory>
|
DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee | ||
---|---|---|
##
|
||
## Virtual server for lx-office-erp
|
||
##
|
||
Directory /lx-office-erp {
|
||
Handler common
|
||
DocumentRoot /usr/lib/lx-office-erp/
|
||
}
|
||
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
|
||
}
|
DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee.handler | ||
---|---|---|
Extension pl {
|
||
Handler cgi
|
||
}
|
DEBIAN/files/lx-office-erp | ||
---|---|---|
#!/bin/sh
|
||
#
|
||
## shell script for lx-office-erp to start the login manager in a browser
|
||
|
||
set -e
|
||
|
||
/usr/bin/sensible-browser http://localhost/lx-office-erp/login.pl
|
||
|
||
|
DEBIAN/files/lx-office-erp.apache2.conf | ||
---|---|---|
AddHandler cgi-script .pl
|
||
Alias /lx-office/ /usr/lib/lx-office-erp/
|
||
|
||
<Directory /usr/lib/lx-office-erp>
|
||
Options ExecCGI Includes FollowSymlinks
|
||
DirectoryIndex login.pl
|
||
AddDefaultCharset UTF-8
|
||
</Directory>
|
||
|
||
<Directory /usr/lib/lx-office-erp/users>
|
||
Order Deny,Allow
|
||
Deny from All
|
||
</Directory>
|
DEBIAN/files/lx-office-erp.cherokee | ||
---|---|---|
##
|
||
## Virtual server for lx-office-erp
|
||
##
|
||
Directory /lx-office-erp {
|
||
Handler common
|
||
DocumentRoot /usr/lib/lx-office-erp/
|
||
}
|
||
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
|
||
}
|
DEBIAN/files/lx-office-erp.cherokee.handler | ||
---|---|---|
Extension pl {
|
||
Handler cgi
|
||
}
|
DEBIAN/mk_erp_deb.sh | ||
---|---|---|
#!/bin/bash
|
||
VER="2.6.1"
|
||
|
||
#Jedes neue Paket der gleichen Version bekommt eine eigene Nummer
|
||
NR="0"
|
||
|
||
#hier wurde das Git-Paket entpakt:
|
||
SRC=/tmp/lx-office-erp
|
||
|
||
#hier wird das Debian-Paket gebaut:
|
||
DEST=/tmp/lx-office/lx-office-erp_$VER-$NR-all
|
||
DST=/tmp/lx-office
|
||
|
||
|
||
################################################
|
||
# ab hier keine Konfiguration mehr
|
||
################################################
|
||
|
||
VERSION=`cat ../VERSION`
|
||
DEST=$DST/lx-office-erp_$VER-$NR-all
|
||
|
||
FILES='
|
||
usr/lib/lx-office-erp/
|
||
usr/share/lx-office-erp/
|
||
usr/share/doc/lx-office-erp/
|
||
var/lib/lx-office-erp/spool/
|
||
var/lib/lx-office-erp/users/
|
||
var/lib/lx-office-erp/css/
|
||
var/lib/lx-office-erp/xslt/
|
||
var/lib/lx-office-erp/templates/
|
||
var/lib/lx-office-erp/webdav/lieferantenbestellungen/
|
||
var/lib/lx-office-erp/webdav/anfragen/
|
||
var/lib/lx-office-erp/webdav/gutschriften/
|
||
var/lib/lx-office-erp/webdav/einkaufsrechnungen/
|
||
var/lib/lx-office-erp/webdav/rechnungen/
|
||
var/lib/lx-office-erp/webdav/bestellungen/
|
||
var/lib/lx-office-erp/webdav/angebote/
|
||
usr/lib/lx-office-erp/
|
||
usr/share/lx-office-erp/
|
||
usr/share/doc/lx-office-erp/
|
||
usr/share/man/man1/:lx-office-erp.1.gz
|
||
etc/lx-office-erp/:lx-office-erp.cherokee.handler
|
||
etc/lx-office-erp/:lx-office-erp.apache2.conf
|
||
etc/lx-office-erp/:lx-office-erp.cherokee
|
||
usr/bin/:lx-office-erp
|
||
'
|
||
|
||
for filespec in $FILES; do
|
||
set - `echo $filespec | sed -e 's/:/ /g'`
|
||
dir=$1
|
||
file=$2
|
||
|
||
mkdir -p $dir
|
||
if [ -f "./files/$file" ]; then
|
||
cp ./files/$file $dir/$file
|
||
else
|
||
echo '1' > $dir/.dummy
|
||
fi
|
||
done
|
||
|
||
SYMLINKS='
|
||
css:/var/lib/lx-office-erp/css
|
||
doc:/usr/share/doc/lx-office-erp/
|
||
image:/usr/share/lx-office-erp
|
||
spool:/var/lib/lx-office-erp/spool
|
||
templates:/var/lib/lx-office-erp/templates
|
||
users:/var/lib/lx-office-erp/users/
|
||
webdav:/var/lib/lx-office-erp/webdav
|
||
xslt:/var/lib/lx-office-erp/xslt
|
||
'
|
||
|
||
for symspec in $SYMLINKS; do
|
||
set - `echo $symspec | sed -e 's/:/ /g'`
|
||
src=$1
|
||
tar=$2
|
||
|
||
ln -s $tar ./usr/lib/lx-office-erp/$src
|
||
done
|
||
#fertig
|
||
|
||
mkdir -p $DEST
|
||
cd $DEST
|
DEBIAN/usr/bin/lx-office-erp | ||
---|---|---|
#!/bin/sh
|
||
#
|
||
## shell script for lx-office-erp to start the login manager in a browser
|
||
|
||
set -e
|
||
|
||
/usr/bin/sensible-browser http://localhost/lx-office-erp/login.pl
|
||
|
||
|
DEBIAN/usr/lib/lx-office-erp/.dummy | ||
---|---|---|
1
|
DEBIAN/usr/lib/lx-office-erp/css | ||
---|---|---|
/var/lib/lx-office-erp/css
|
DEBIAN/usr/lib/lx-office-erp/doc | ||
---|---|---|
/usr/share/doc/lx-office-erp/
|
DEBIAN/usr/lib/lx-office-erp/image | ||
---|---|---|
/usr/share/lx-office-erp
|
DEBIAN/usr/lib/lx-office-erp/spool | ||
---|---|---|
/var/lib/lx-office-erp/spool
|
DEBIAN/usr/lib/lx-office-erp/templates | ||
---|---|---|
/var/lib/lx-office-erp/templates
|
DEBIAN/usr/lib/lx-office-erp/users | ||
---|---|---|
/var/lib/lx-office-erp/users/
|
DEBIAN/usr/lib/lx-office-erp/webdav | ||
---|---|---|
/var/lib/lx-office-erp/webdav
|
DEBIAN/usr/lib/lx-office-erp/xslt | ||
---|---|---|
/var/lib/lx-office-erp/xslt
|
DEBIAN/usr/share/doc/lx-office-erp/.dummy | ||
---|---|---|
1
|
DEBIAN/usr/share/lx-office-erp/.dummy | ||
---|---|---|
1
|
DEBIAN/var/lib/lx-office-erp/css/.dummy | ||
---|---|---|
1
|
DEBIAN/var/lib/lx-office-erp/spool/.dummy | ||
---|---|---|
1
|
DEBIAN/var/lib/lx-office-erp/templates/.dummy | ||
---|---|---|
1
|
DEBIAN/var/lib/lx-office-erp/users/.dummy | ||
---|---|---|
1
|
DEBIAN/var/lib/lx-office-erp/webdav/anfragen/.dummy | ||
---|---|---|
1
|
DEBIAN/var/lib/lx-office-erp/webdav/angebote/.dummy | ||
---|---|---|
1
|
DEBIAN/var/lib/lx-office-erp/webdav/bestellungen/.dummy | ||
---|---|---|
1
|
DEBIAN/var/lib/lx-office-erp/webdav/einkaufsrechnungen/.dummy | ||
---|---|---|
1
|
DEBIAN/var/lib/lx-office-erp/webdav/gutschriften/.dummy | ||
---|---|---|
1
|
DEBIAN/var/lib/lx-office-erp/webdav/lieferantenbestellungen/.dummy | ||
---|---|---|
1
|
DEBIAN/var/lib/lx-office-erp/webdav/rechnungen/.dummy | ||
---|---|---|
1
|
DEBIAN/var/lib/lx-office-erp/xslt/.dummy | ||
---|---|---|
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.