DEBIAN paket generator ein wenig eingedampft.
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 21 Jul 2010 10:29:15 +0000 (12:29 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 21 Jul 2010 10:29:15 +0000 (12:29 +0200)
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.

35 files changed:
DEBIAN/README
DEBIAN/etc/lx-office-erp/lx-office-erp.apache2.conf [deleted file]
DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee [deleted file]
DEBIAN/etc/lx-office-erp/lx-office-erp.cherokee.handler [deleted file]
DEBIAN/files/lx-office-erp [new file with mode: 0755]
DEBIAN/files/lx-office-erp.1.gz [new file with mode: 0644]
DEBIAN/files/lx-office-erp.apache2.conf [new file with mode: 0644]
DEBIAN/files/lx-office-erp.cherokee [new file with mode: 0644]
DEBIAN/files/lx-office-erp.cherokee.handler [new file with mode: 0644]
DEBIAN/mk_erp_deb.sh
DEBIAN/usr/bin/lx-office-erp [deleted file]
DEBIAN/usr/lib/lx-office-erp/.dummy [deleted file]
DEBIAN/usr/lib/lx-office-erp/css [deleted symlink]
DEBIAN/usr/lib/lx-office-erp/doc [deleted symlink]
DEBIAN/usr/lib/lx-office-erp/image [deleted symlink]
DEBIAN/usr/lib/lx-office-erp/spool [deleted symlink]
DEBIAN/usr/lib/lx-office-erp/templates [deleted symlink]
DEBIAN/usr/lib/lx-office-erp/users [deleted symlink]
DEBIAN/usr/lib/lx-office-erp/webdav [deleted symlink]
DEBIAN/usr/lib/lx-office-erp/xslt [deleted symlink]
DEBIAN/usr/share/doc/lx-office-erp/.dummy [deleted file]
DEBIAN/usr/share/lx-office-erp/.dummy [deleted file]
DEBIAN/usr/share/man/man1/lx-office-erp.1.gz [deleted file]
DEBIAN/var/lib/lx-office-erp/css/.dummy [deleted file]
DEBIAN/var/lib/lx-office-erp/spool/.dummy [deleted file]
DEBIAN/var/lib/lx-office-erp/templates/.dummy [deleted file]
DEBIAN/var/lib/lx-office-erp/users/.dummy [deleted file]
DEBIAN/var/lib/lx-office-erp/webdav/anfragen/.dummy [deleted file]
DEBIAN/var/lib/lx-office-erp/webdav/angebote/.dummy [deleted file]
DEBIAN/var/lib/lx-office-erp/webdav/bestellungen/.dummy [deleted file]
DEBIAN/var/lib/lx-office-erp/webdav/einkaufsrechnungen/.dummy [deleted file]
DEBIAN/var/lib/lx-office-erp/webdav/gutschriften/.dummy [deleted file]
DEBIAN/var/lib/lx-office-erp/webdav/lieferantenbestellungen/.dummy [deleted file]
DEBIAN/var/lib/lx-office-erp/webdav/rechnungen/.dummy [deleted file]
DEBIAN/var/lib/lx-office-erp/xslt/.dummy [deleted file]

index f6156d8..39f0c1e 100644 (file)
@@ -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 (file)
index 2eea3de..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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
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 (file)
index 6ea1e95..0000000
+++ /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 (file)
index c932e3c..0000000
+++ /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 (executable)
index 0000000..7f41914
--- /dev/null
@@ -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 (file)
index 0000000..d68e3a6
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 (file)
index 0000000..2eea3de
--- /dev/null
@@ -0,0 +1,13 @@
+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
diff --git a/DEBIAN/files/lx-office-erp.cherokee b/DEBIAN/files/lx-office-erp.cherokee
new file mode 100644 (file)
index 0000000..6ea1e95
--- /dev/null
@@ -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 (file)
index 0000000..c932e3c
--- /dev/null
@@ -0,0 +1,3 @@
+Extension pl {
+    Handler cgi
+}
index 306edd7..5856051 100755 (executable)
@@ -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 (executable)
index 7f41914..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (symlink)
index f541bfe..0000000
+++ /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 (symlink)
index 05b8e11..0000000
+++ /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 (symlink)
index 9d2627e..0000000
+++ /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 (symlink)
index a2386a8..0000000
+++ /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 (symlink)
index 156887d..0000000
+++ /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 (symlink)
index 1adc475..0000000
+++ /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 (symlink)
index 4816277..0000000
+++ /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 (symlink)
index f85c349..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (file)
index d68e3a6..0000000
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 (file)
index d00491f..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (file)
index d00491f..0000000
+++ /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 (file)
index d00491f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-1