From: Sven Schöling Date: Wed, 21 Jul 2010 10:29:15 +0000 (+0200) Subject: DEBIAN paket generator ein wenig eingedampft. X-Git-Tag: release-2.6.2beta1~237 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=30c4906a52fb72ea43c33cf1bd4a139aa0f30839;p=kivitendo-erp.git 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. --- diff --git a/DEBIAN/README b/DEBIAN/README index f6156d8bf..39f0c1e65 100644 --- a/DEBIAN/README +++ b/DEBIAN/README @@ -4,9 +4,9 @@ ERP aus dem Git clonen: 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. diff --git a/DEBIAN/etc/lx-office-erp/lx-office-erp.apache2.conf b/DEBIAN/etc/lx-office-erp/lx-office-erp.apache2.conf deleted file mode 100644 index 2eea3de9a..000000000 --- a/DEBIAN/etc/lx-office-erp/lx-office-erp.apache2.conf +++ /dev/null @@ -1,13 +0,0 @@ -AddHandler cgi-script .pl -Alias /lx-office/ /usr/lib/lx-office-erp/ - - - Options ExecCGI Includes FollowSymlinks - DirectoryIndex login.pl - AddDefaultCharset UTF-8 - - - - Order Deny,Allow - Deny from All - \ No newline at end of file diff --git a/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee b/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee deleted file mode 100644 index 6ea1e95be..000000000 --- a/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee +++ /dev/null @@ -1,25 +0,0 @@ -## -## 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 -} diff --git a/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee.handler b/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee.handler deleted file mode 100644 index c932e3c12..000000000 --- a/DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee.handler +++ /dev/null @@ -1,3 +0,0 @@ -Extension pl { - Handler cgi -} diff --git a/DEBIAN/files/lx-office-erp b/DEBIAN/files/lx-office-erp new file mode 100755 index 000000000..7f41914ea --- /dev/null +++ b/DEBIAN/files/lx-office-erp @@ -0,0 +1,9 @@ +#!/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 + + diff --git a/DEBIAN/files/lx-office-erp.1.gz b/DEBIAN/files/lx-office-erp.1.gz new file mode 100644 index 000000000..d68e3a64a Binary files /dev/null and b/DEBIAN/files/lx-office-erp.1.gz differ diff --git a/DEBIAN/files/lx-office-erp.apache2.conf b/DEBIAN/files/lx-office-erp.apache2.conf new file mode 100644 index 000000000..2eea3de9a --- /dev/null +++ b/DEBIAN/files/lx-office-erp.apache2.conf @@ -0,0 +1,13 @@ +AddHandler cgi-script .pl +Alias /lx-office/ /usr/lib/lx-office-erp/ + + + Options ExecCGI Includes FollowSymlinks + DirectoryIndex login.pl + AddDefaultCharset UTF-8 + + + + Order Deny,Allow + Deny from All + \ No newline at end of file diff --git a/DEBIAN/files/lx-office-erp.cherokee b/DEBIAN/files/lx-office-erp.cherokee new file mode 100644 index 000000000..6ea1e95be --- /dev/null +++ b/DEBIAN/files/lx-office-erp.cherokee @@ -0,0 +1,25 @@ +## +## 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 +} diff --git a/DEBIAN/files/lx-office-erp.cherokee.handler b/DEBIAN/files/lx-office-erp.cherokee.handler new file mode 100644 index 000000000..c932e3c12 --- /dev/null +++ b/DEBIAN/files/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 306edd785..5856051cc 100755 --- a/DEBIAN/mk_erp_deb.sh +++ b/DEBIAN/mk_erp_deb.sh @@ -1,12 +1,80 @@ #!/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 diff --git a/DEBIAN/usr/bin/lx-office-erp b/DEBIAN/usr/bin/lx-office-erp deleted file mode 100755 index 7f41914ea..000000000 --- a/DEBIAN/usr/bin/lx-office-erp +++ /dev/null @@ -1,9 +0,0 @@ -#!/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 - - diff --git a/DEBIAN/usr/lib/lx-office-erp/.dummy b/DEBIAN/usr/lib/lx-office-erp/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/usr/lib/lx-office-erp/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/usr/lib/lx-office-erp/css b/DEBIAN/usr/lib/lx-office-erp/css deleted file mode 120000 index f541bfe43..000000000 --- a/DEBIAN/usr/lib/lx-office-erp/css +++ /dev/null @@ -1 +0,0 @@ -/var/lib/lx-office-erp/css \ No newline at end of file diff --git a/DEBIAN/usr/lib/lx-office-erp/doc b/DEBIAN/usr/lib/lx-office-erp/doc deleted file mode 120000 index 05b8e11a1..000000000 --- a/DEBIAN/usr/lib/lx-office-erp/doc +++ /dev/null @@ -1 +0,0 @@ -/usr/share/doc/lx-office-erp/ \ No newline at end of file diff --git a/DEBIAN/usr/lib/lx-office-erp/image b/DEBIAN/usr/lib/lx-office-erp/image deleted file mode 120000 index 9d2627e47..000000000 --- a/DEBIAN/usr/lib/lx-office-erp/image +++ /dev/null @@ -1 +0,0 @@ -/usr/share/lx-office-erp \ No newline at end of file diff --git a/DEBIAN/usr/lib/lx-office-erp/spool b/DEBIAN/usr/lib/lx-office-erp/spool deleted file mode 120000 index a2386a82b..000000000 --- a/DEBIAN/usr/lib/lx-office-erp/spool +++ /dev/null @@ -1 +0,0 @@ -/var/lib/lx-office-erp/spool \ No newline at end of file diff --git a/DEBIAN/usr/lib/lx-office-erp/templates b/DEBIAN/usr/lib/lx-office-erp/templates deleted file mode 120000 index 156887ded..000000000 --- a/DEBIAN/usr/lib/lx-office-erp/templates +++ /dev/null @@ -1 +0,0 @@ -/var/lib/lx-office-erp/templates \ No newline at end of file diff --git a/DEBIAN/usr/lib/lx-office-erp/users b/DEBIAN/usr/lib/lx-office-erp/users deleted file mode 120000 index 1adc475c6..000000000 --- a/DEBIAN/usr/lib/lx-office-erp/users +++ /dev/null @@ -1 +0,0 @@ -/var/lib/lx-office-erp/users/ \ No newline at end of file diff --git a/DEBIAN/usr/lib/lx-office-erp/webdav b/DEBIAN/usr/lib/lx-office-erp/webdav deleted file mode 120000 index 4816277ed..000000000 --- a/DEBIAN/usr/lib/lx-office-erp/webdav +++ /dev/null @@ -1 +0,0 @@ -/var/lib/lx-office-erp/webdav \ No newline at end of file diff --git a/DEBIAN/usr/lib/lx-office-erp/xslt b/DEBIAN/usr/lib/lx-office-erp/xslt deleted file mode 120000 index f85c349df..000000000 --- a/DEBIAN/usr/lib/lx-office-erp/xslt +++ /dev/null @@ -1 +0,0 @@ -/var/lib/lx-office-erp/xslt \ No newline at end of file diff --git a/DEBIAN/usr/share/doc/lx-office-erp/.dummy b/DEBIAN/usr/share/doc/lx-office-erp/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/usr/share/doc/lx-office-erp/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/usr/share/lx-office-erp/.dummy b/DEBIAN/usr/share/lx-office-erp/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/usr/share/lx-office-erp/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/usr/share/man/man1/lx-office-erp.1.gz b/DEBIAN/usr/share/man/man1/lx-office-erp.1.gz deleted file mode 100644 index d68e3a64a..000000000 Binary files a/DEBIAN/usr/share/man/man1/lx-office-erp.1.gz and /dev/null differ diff --git a/DEBIAN/var/lib/lx-office-erp/css/.dummy b/DEBIAN/var/lib/lx-office-erp/css/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/var/lib/lx-office-erp/css/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/var/lib/lx-office-erp/spool/.dummy b/DEBIAN/var/lib/lx-office-erp/spool/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/var/lib/lx-office-erp/spool/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/var/lib/lx-office-erp/templates/.dummy b/DEBIAN/var/lib/lx-office-erp/templates/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/var/lib/lx-office-erp/templates/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/var/lib/lx-office-erp/users/.dummy b/DEBIAN/var/lib/lx-office-erp/users/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/var/lib/lx-office-erp/users/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/var/lib/lx-office-erp/webdav/anfragen/.dummy b/DEBIAN/var/lib/lx-office-erp/webdav/anfragen/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/var/lib/lx-office-erp/webdav/anfragen/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/var/lib/lx-office-erp/webdav/angebote/.dummy b/DEBIAN/var/lib/lx-office-erp/webdav/angebote/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/var/lib/lx-office-erp/webdav/angebote/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/var/lib/lx-office-erp/webdav/bestellungen/.dummy b/DEBIAN/var/lib/lx-office-erp/webdav/bestellungen/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/var/lib/lx-office-erp/webdav/bestellungen/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/var/lib/lx-office-erp/webdav/einkaufsrechnungen/.dummy b/DEBIAN/var/lib/lx-office-erp/webdav/einkaufsrechnungen/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/var/lib/lx-office-erp/webdav/einkaufsrechnungen/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/var/lib/lx-office-erp/webdav/gutschriften/.dummy b/DEBIAN/var/lib/lx-office-erp/webdav/gutschriften/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/var/lib/lx-office-erp/webdav/gutschriften/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/var/lib/lx-office-erp/webdav/lieferantenbestellungen/.dummy b/DEBIAN/var/lib/lx-office-erp/webdav/lieferantenbestellungen/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/var/lib/lx-office-erp/webdav/lieferantenbestellungen/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/var/lib/lx-office-erp/webdav/rechnungen/.dummy b/DEBIAN/var/lib/lx-office-erp/webdav/rechnungen/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/var/lib/lx-office-erp/webdav/rechnungen/.dummy +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/DEBIAN/var/lib/lx-office-erp/xslt/.dummy b/DEBIAN/var/lib/lx-office-erp/xslt/.dummy deleted file mode 100644 index d00491fd7..000000000 --- a/DEBIAN/var/lib/lx-office-erp/xslt/.dummy +++ /dev/null @@ -1 +0,0 @@ -1