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.
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.
+++ /dev/null
-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>
\ No newline at end of file
+++ /dev/null
-##
-## 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
-}
+++ /dev/null
-Extension pl {
- Handler cgi
-}
--- /dev/null
+#!/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
+
+
--- /dev/null
+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>
\ No newline at end of file
--- /dev/null
+##
+## 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
+}
--- /dev/null
+Extension pl {
+ Handler cgi
+}
#!/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
+++ /dev/null
-#!/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
-
-
+++ /dev/null
-/var/lib/lx-office-erp/css
\ No newline at end of file
+++ /dev/null
-/usr/share/doc/lx-office-erp/
\ No newline at end of file
+++ /dev/null
-/usr/share/lx-office-erp
\ No newline at end of file
+++ /dev/null
-/var/lib/lx-office-erp/spool
\ No newline at end of file
+++ /dev/null
-/var/lib/lx-office-erp/templates
\ No newline at end of file
+++ /dev/null
-/var/lib/lx-office-erp/users/
\ No newline at end of file
+++ /dev/null
-/var/lib/lx-office-erp/webdav
\ No newline at end of file
+++ /dev/null
-/var/lib/lx-office-erp/xslt
\ No newline at end of file