Index: debian/changelog
===================================================================
--- debian/changelog	(revision f48b5ac569ed1ed3e6f5985c31f187c0acda07c3)
+++ debian/changelog	(revision ef352a280936d02d00eb958ff35be9181f612f70)
@@ -1,2 +1,8 @@
+gnuboat (0.4.6) jessie; urgency=low
+
+  * refactored gnuboat daemon into a python module
+  * Added logging functionality to gnuboat daemon
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Sun, 06 Aug 2017 15:30:00 +0200
 gnuboat (0.4.5) jessie; urgency=low
 
Index: bian/gnuboat-server.install
===================================================================
--- debian/gnuboat-server.install	(revision f48b5ac569ed1ed3e6f5985c31f187c0acda07c3)
+++ 	(revision )
@@ -1,4 +1,0 @@
-src/daemon/gnuboat usr/bin/
-src/daemon/gnuboat-splashscreen usr/bin/
-src/daemon/gnuboat.service lib/systemd/system/
-debian/build/webapp/webservice/* usr/share/gnuboat/webservice/
Index: bian/gnuboat-server.lintian-overrides
===================================================================
--- debian/gnuboat-server.lintian-overrides	(revision f48b5ac569ed1ed3e6f5985c31f187c0acda07c3)
+++ 	(revision )
@@ -1,1 +1,0 @@
-gnuboat-server binary: executable-not-elf-or-script usr/share/gnuboat/webservice/map.mbtiles
Index: bian/gnuboat-server.postinst
===================================================================
--- debian/gnuboat-server.postinst	(revision f48b5ac569ed1ed3e6f5985c31f187c0acda07c3)
+++ 	(revision )
@@ -1,10 +1,0 @@
-#!/bin/sh
-set -e
-
-mkdir -p /var/spool/gnuboat
-mkdir -p /var/lib/gnuboat
-chown www-data:www-data /var/spool/gnuboat /var/lib/gnuboat
-
-#DEBHELPER#
-
-exit 0
Index: bian/gnuboat-server.prerm
===================================================================
--- debian/gnuboat-server.prerm	(revision f48b5ac569ed1ed3e6f5985c31f187c0acda07c3)
+++ 	(revision )
@@ -1,15 +1,0 @@
-#!/bin/sh
-set -e
-
-rm -R /var/spool/gnuboat
-
-if [ "$(ls -A /var/lib/gnuboat/)" ]; then
-	# do not remove the data directory
-	echo "Your data directory is not empty. Leaving the data directory untouched!"
-else
-	rm -R /var/lib/gnuboat/
-fi
-
-#DEBHELPER#
-
-exit 0
Index: debian/gnuboat-webserver.install
===================================================================
--- debian/gnuboat-webserver.install	(revision ef352a280936d02d00eb958ff35be9181f612f70)
+++ debian/gnuboat-webserver.install	(revision ef352a280936d02d00eb958ff35be9181f612f70)
@@ -0,0 +1,1 @@
+debian/build/webapp/webservice/* usr/share/gnuboat/webservice/
Index: debian/gnuboat-webserver.lintian-overrides
===================================================================
--- debian/gnuboat-webserver.lintian-overrides	(revision ef352a280936d02d00eb958ff35be9181f612f70)
+++ debian/gnuboat-webserver.lintian-overrides	(revision ef352a280936d02d00eb958ff35be9181f612f70)
@@ -0,0 +1,1 @@
+gnuboat-server binary: executable-not-elf-or-script usr/share/gnuboat/webservice/map.mbtiles
Index: debian/python2-gnuboat.install
===================================================================
--- debian/python2-gnuboat.install	(revision ef352a280936d02d00eb958ff35be9181f612f70)
+++ debian/python2-gnuboat.install	(revision ef352a280936d02d00eb958ff35be9181f612f70)
@@ -0,0 +1,2 @@
+src/python/config/gnuboat.service lib/systemd/system/
+
Index: debian/python2-gnuboat.postinst
===================================================================
--- debian/python2-gnuboat.postinst	(revision ef352a280936d02d00eb958ff35be9181f612f70)
+++ debian/python2-gnuboat.postinst	(revision ef352a280936d02d00eb958ff35be9181f612f70)
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+mkdir -p /var/spool/gnuboat
+mkdir -p /var/lib/gnuboat
+mkdir -p /var/log/gnuboat
+chown www-data:www-data /var/spool/gnuboat /var/lib/gnuboat /var/log/gnuboat
+
+
+#DEBHELPER#
+
+exit 0
Index: debian/python2-gnuboat.prerm
===================================================================
--- debian/python2-gnuboat.prerm	(revision ef352a280936d02d00eb958ff35be9181f612f70)
+++ debian/python2-gnuboat.prerm	(revision ef352a280936d02d00eb958ff35be9181f612f70)
@@ -0,0 +1,26 @@
+#!/bin/sh
+set -e
+
+DIR_DATA="/var/lib/gnuboat/"
+DIR_LOG="/var/log/gnuboat/"
+DIR_SPOOL="/var/spool/gnuboat"
+
+rm -R "${DIR_SPOLL}"
+
+if [ "$(ls -A ${DIR_DATA})" ]; then
+	# do not remove the data directory
+	echo "Your data directory (${DIR_DATA}) is not empty. Leaving the data directory untouched!"
+else
+	rm -R "${DIR_DATA}"
+fi
+
+if [ "$(ls -A ${DIR_LOG})" ]; then
+        # do not remove the data directory
+        echo "Your log directory (${DIR_LOG}) is not empty. Leaving the log directory untouched!"
+else
+        rm -R "${DIR_LOG}"
+fi
+
+#DEBHELPER#
+
+exit 0
Index: debian/python3-gnuboat.install
===================================================================
--- debian/python3-gnuboat.install	(revision ef352a280936d02d00eb958ff35be9181f612f70)
+++ debian/python3-gnuboat.install	(revision ef352a280936d02d00eb958ff35be9181f612f70)
@@ -0,0 +1,1 @@
+python2-gnuboat.install
Index: debian/python3-gnuboat.postinst
===================================================================
--- debian/python3-gnuboat.postinst	(revision ef352a280936d02d00eb958ff35be9181f612f70)
+++ debian/python3-gnuboat.postinst	(revision ef352a280936d02d00eb958ff35be9181f612f70)
@@ -0,0 +1,1 @@
+python2-gnuboat.postinst
Index: debian/python3-gnuboat.prerm
===================================================================
--- debian/python3-gnuboat.prerm	(revision ef352a280936d02d00eb958ff35be9181f612f70)
+++ debian/python3-gnuboat.prerm	(revision ef352a280936d02d00eb958ff35be9181f612f70)
@@ -0,0 +1,1 @@
+python2-gnuboat.prerm
Index: debian/rules
===================================================================
--- debian/rules	(revision f48b5ac569ed1ed3e6f5985c31f187c0acda07c3)
+++ debian/rules	(revision ef352a280936d02d00eb958ff35be9181f612f70)
@@ -1,8 +1,11 @@
 #!/usr/bin/make -f
 
+#export DH_VERBOSE = 1
+export PYBUILD_NAME = gnuboat
+export PYBUILD_OPTION="-d src/python"
 DESTDIR := $(CURDIR)/debian/build/webapp
 
 %:
-	dh $@ --with systemd,python2,python3
+	dh $@ --with systemd,python2,python3 --buildsystem=pybuild
 
 override_dh_auto_build-indep:
