Index: debian/changelog
===================================================================
--- debian/changelog	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/changelog	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,155 @@
+gnuboat (0.4.13) jessie; urgency=low
+
+  * Merged new features from master:
+    * 3D rendering
+    * Fixed gnuboat daemon
+    * Added data generator to simulate rrd database input
+    * Added OpenCPN hint
+    * Added colored tracks to leaflet map
+
+ -- EngSaS - Maintainer <info@engsas.de>  Thu, 24 Aug 2017 18:00:00 +0200
+gnuboat (0.4.12) jessie; urgency=low
+
+  * Removed gnuboat-webserver php5-zip dependency, cause it seems to be
+    not needed on debian systems
+
+ -- EngSaS - Maintainer <info@engsas.de>  Thu, 10 Aug 2017 21:30:00 +0200
+gnuboat (0.4.11) jessie; urgency=low
+
+  * Fixed gnuboat-webserver.postinst script
+  * Merged improved webservice and webclient from master
+  * Fixed gnuboat daemon shutdown
+  * Logfile download is possible and daemon creates
+    one logfile per day
+
+ -- EngSaS - Maintainer <info@engsas.de>  Thu, 10 Aug 2017 12:30:00 +0200
+gnuboat (0.4.10) jessie; urgency=low
+
+  * Fixed python-gnuboat.prerm script
+  * Added gnuboat-webserver.postinst script to set correct permissions for map upload
+
+ -- EngSaS - Maintainer <info@engsas.de>  Wed, 09 Aug 2017 18:00:00 +0200
+gnuboat (0.4.9) jessie; urgency=low
+
+  * Fixed gnuboat-puppet postinst script
+  * Improved webclient and webserver
+  * Configures php.ini to upload files
+
+ -- EngSaS - Maintainer <info@engsas.de>  Wed, 09 Aug 2017 16:15:00 +0200
+gnuboat (0.4.8) jessie; urgency=low
+
+  * New webclient
+  * Fixes in gnuboat daemon
+  * Fixed python-gnuboat postinst and prerm script names
+
+ -- EngSaS - Maintainer <info@engsas.de>  Tue, 08 Aug 2017 11:30:00 +0200
+gnuboat (0.4.7) jessie; urgency=low
+
+  * Fixed pynmea dependency
+  * Fixed puppet config adaption to python-gnuboat
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Sun, 06 Aug 2017 17:15:00 +0200
+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
+
+  * Added chrony as time server sourcing gpsd
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Tue, 01 Aug 2017 15:45:00 +0200
+gnuboat (0.4.4) jessie; urgency=low
+
+  * Fixed puppet configversion
+  * Fixed webservice config path error
+  * Fixed webclient main.js datatype check error
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Fri, 28 Jul 2017 19:00:00 +0200
+gnuboat (0.4.3) jessie; urgency=low
+
+  * Fixed repository pinning
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Fri, 28 Jul 2017 18:32:00 +0200
+gnuboat (0.4.2) jessie; urgency=low
+
+  * Fixed old puppet configversion
+  * Merged udev management for hostapd into puppet configuration from trunk
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Wed, 26 Jul 2017 10:30:00 +0200
+gnuboat (0.4.1) jessie; urgency=low
+
+  * uncommented gnuboat repository in puppet, as it is managed by the
+    debian-release package now
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Wed, 26 Jul 2017 09:30:00 +0200
+gnuboat (0.4.0) jessie; urgency=low
+
+  * Added gnuboat-jessie release package
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Tue, 25 Jul 2017 17:00:00 +0200
+gnuboat (0.3.4) jessie; urgency=low
+
+  * gnuboat-puppet: Fixed invalid default channel in hostapd puppet module
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Tue, 25 Jul 2017 15:00:00 +0200
+gnuboat (0.3.3) jessie; urgency=low
+
+  * gnuboat-puppet: Fixed typo in gnuboat_hiera.yaml
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Fri, 28 Apr 2017 21:00:00 +0200
+gnuboat (0.3.2) jessie; urgency=low
+
+  * Merge puppet config fixes from master
+  * gnuboat.service fix from master
+  * gnuboat-puppet install locations fixed
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Fri, 28 Apr 2017 20:20:00 +0200
+gnuboat (0.3.1) jessie; urgency=low
+
+  * Merged fixes for gnuboat daemon, webservice and webclient
+    from master
+  * Added gnuboat-puppet package
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Fri, 28 Apr 2017 16:34:00 +0200
+gnuboat (0.3.0) jessie; urgency=low
+
+  * Merged fixes for gnuboat daemon, webservice and webclient
+    from master
+  * Incompatible rrd database schema to previous versions!
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Thu, 27 Apr 2017 12:04:00 +0200
+gnuboat (0.2.1) jessie; urgency=low
+
+  * Added php5-mysql dependency for gnuboat-server
+  * Merged improvements to gnuboat-server and gnuboat-webclient
+    from master
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Sun, 23 Apr 2017 12:54:00 +0200
+gnuboat (0.2.0) jessie; urgency=low
+
+  * Merged fixed gnuboat daemon from master
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Sun, 23 Apr 2017 11:41:00 +0200
+gnuboat (0.1.3) jessie; urgency=low
+
+  * gnuboat-server: Fixed service file handling
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Fri, 21 Apr 2017 14:15:00 +0200
+gnuboat (0.1.2) jessie; urgency=low
+
+  * gnuboat-server: Improved handling of data directory by
+    postinst and prerm scripts
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Fri, 21 Apr 2017 12:06:00 +0200
+gnuboat (0.1.1) jessie; urgency=low
+
+  * Packages are now build architecture independend
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Tue, 23 Aug 2016 07:15:00 +0000
+gnuboat (0.1) unstable; urgency=low
+
+  * Initial release
+
+ -- EngSaS - Joachim Langenbach <info@engsas.de>  Thu, 21 Jul 2016 15:00:00 +0000
Index: debian/compat
===================================================================
--- debian/compat	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/compat	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,1 @@
+9
Index: debian/control
===================================================================
--- debian/control	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/control	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,69 @@
+Source: gnuboat
+Section: misc
+Priority: optional
+Maintainer: EngSaS - Maintainer <info@engsas.de>
+# Removed po-debconf, as puppet could not be run from postinst script (see gnuboat-puppet.postinst for details)
+Build-Depends: debhelper (>= 9), lsb-release, dh-python, dh-systemd (>= 1.5), python-all, python3-all, python-all-dbg, python3-all-dbg, python-setuptools, python3-setuptools, python-rrdtool, python-pynmea2, python3-pynmea2, phing, php-pear
+Standards-Version: 3.9.6
+Homepage: https://trac.falaba.de/gnuboat
+Vcs-Git: https://svn.falaba.de/gnuboat -b debian/jessie
+Vcs-Browser: https://trac.falaba.de/gnuboat/browser
+X-Python-Version: >= 2.6
+#X-Python3-Version: >= 3.2
+
+Package: gnuboat-webserver
+Architecture: all
+Depends: ${misc:Depends}, php5-rrd, php5-json, php5-sqlite, php5-cgi, python-gnuboat
+Description: GNUBoat server with log daemon and webservice
+ The GNUBoat server drives a webservice, serving clients,
+ feeded with data from python-gnuboat.
+
+Package: gnuboat-webclient
+Architecture: all
+Depends: ${misc:Depends}
+Description: GNUBoat webclient to display data from gnuboat-server
+ Display data from GNUBoat server in a browser.
+
+Package: python-gnuboat
+Section: python
+Architecture: any
+Depends: ${misc:Depends}, ${python:Depends}, python-pil, python-dateutil, python-tz, python-rrdtool, python-pynmea2, gpsd, n2kd-scripts, n2kd-bin, gnuboat-daemon-config
+Recommends: python-epd
+Description: GNUBoat logging daemon
+ The GNUBoat daemon provides a daemon to collect data, optionally drives
+ the display.
+
+#Package: python3-gnuboat
+#Section: python
+#Architecture: any
+#Depends: ${misc:Depends}, ${python3:Depends}, python3-pil, python3-dateutil, python3-tz, python3-rrdtool, python3-pynmea2, gpsd, n2kd-scripts, n2kd-bin, gnuboat-daemon-config
+#Recommends: python-epd
+#Description: GNUBoat logging daemon
+# The GNUBoat daemon provides a daemon to collect data, optionally drives
+# the display.
+
+Package: gnuboat-daemon-config
+Depends: ${misc:Depends}
+Architecture: all
+Recommends: python-gnuboat | python3-gnuboat
+Description: GNUBoat logging daemon config files
+ The GNUBoat daemon provides a daemon to collect data, optionally drives
+ the display.
+ .
+ This package installs the needed config files.
+
+Package: gnuboat-puppet
+Architecture: all
+Depends: ${misc:Depends}, puppet (>= 3.8), debconf
+Description: GNUBoat puppet configuration environment
+ Contains a complete puppet environment to configure a device
+ as a gnu.boat server and webclient
+
+Package: gnuboat-jessie
+Architecture: all
+Section: admin
+Depends: ${misc:Depends}
+Description: Release packages for the GNUBoat jessie repository
+ This package adds the gnuboat repository and the
+ needed trusted keyring to apt.
+
Index: debian/copyright
===================================================================
--- debian/copyright	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/copyright	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,27 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: gnuboat
+Source: https://svn.falaba.de/gnuboat
+
+Files: *
+Copyright: 2016 EngSaS - Engineering Solutions and Services Langenbach
+License: GPL-3+
+ This program is free software; you can redistribute it
+ and/or modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 3 of the License, or (at your option) any later
+ version.
+ .
+ This program is distributed in the hope that it will be
+ useful, but WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE.  See the GNU General Public License for more
+ details.
+ .
+ You should have received a copy of the GNU General Public
+ License along with this package; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA  02110-1301 USA
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
Index: debian/gnuboat-daemon-config.install
===================================================================
--- debian/gnuboat-daemon-config.install	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/gnuboat-daemon-config.install	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,2 @@
+src/python/config/gnuboat.service lib/systemd/system/
+
Index: debian/gnuboat-jessie.install
===================================================================
--- debian/gnuboat-jessie.install	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/gnuboat-jessie.install	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,2 @@
+src/apt/sources.list.d/gnuboat-jessie.list etc/apt/sources.list.d/
+src/apt/trusted.gpg.d/gnuboat-jessie-keyring.gpg etc/apt/trusted.gpg.d/
Index: debian/gnuboat-jessie.postinst
===================================================================
--- debian/gnuboat-jessie.postinst	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/gnuboat-jessie.postinst	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+# Set up any specific permissions needed...
+chmod '0644' '/etc/apt/trusted.gpg.d/gnuboat-jessie-keyring.gpg'
+
+#DEBHELPER#
+
+exit 0
+
Index: debian/gnuboat-puppet.config
===================================================================
--- debian/gnuboat-puppet.config	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/gnuboat-puppet.config	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+# Debconf library
+#. /usr/share/debconf/confmodule
+
+#db_input medium gnuboat-puppet/runpuppetagent || true
+#db_go
+
Index: debian/gnuboat-puppet.install
===================================================================
--- debian/gnuboat-puppet.install	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/gnuboat-puppet.install	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,3 @@
+src/puppetcode/gnuboat_hiera.yaml etc/puppet/
+src/puppetcode/gnuboat_puppet.conf etc/puppet/
+src/puppetcode/environments etc/puppet/
Index: debian/gnuboat-puppet.lintian-overrides
===================================================================
--- debian/gnuboat-puppet.lintian-overrides	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/gnuboat-puppet.lintian-overrides	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,2 @@
+gnuboat-puppet binary: ruby-script-but-no-ruby-dep etc/puppet/environments/gnuboat/modules/*
+gnuboat-puppet binary: script-not-executable etc/puppet/environments/gnuboat/modules/*
Index: debian/gnuboat-puppet.postinst
===================================================================
--- debian/gnuboat-puppet.postinst	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/gnuboat-puppet.postinst	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+# Run puppet, if wanted by the user (in upgrade case)
+# Not possible, as this apt instance locks the database
+# and therefore the puppet apt instance is hanging
+#if [ "$1" = configure ]; then
+#	if [ ! -z $2 ]; then
+		# it's an upgrade
+		# Source debconf library.
+#		. /usr/share/debconf/confmodule
+#
+#		db_get gnuboat-puppet/runpuppetagent
+#		if [ "$RET" = "true" ]; then
+#			puppet apply --test --config /etc/puppet/gnuboat_puppet.conf --environment gnuboat /etc/puppet/environments/gnuboat/manifests/ || true
+#		fi
+#	fi
+#fi
+echo 'To apply the GNUBoat config to your system run "puppet apply --test --config /etc/puppet/gnuboat_puppet.conf --environment gnuboat /etc/puppet/environments/gnuboat/manifests/"'
+
+#DEBHELPER#
+
+exit 0
Index: debian/gnuboat-puppet.templates
===================================================================
--- debian/gnuboat-puppet.templates	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/gnuboat-puppet.templates	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,5 @@
+Template: gnuboat-puppet/runpuppetagent
+Type: boolean
+Default: true
+_Description: Should GNUBoat be configured with running puppet agent now?
+ If you want to configure this system as a GNUBoat device, you should run the puppet agent now.
Index: debian/gnuboat-webclient.install
===================================================================
--- debian/gnuboat-webclient.install	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/gnuboat-webclient.install	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,1 @@
+debian/build/webapp/webclient/* usr/share/gnuboat/webclient/
Index: debian/gnuboat-webserver.install
===================================================================
--- debian/gnuboat-webserver.install	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/gnuboat-webserver.install	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,1 @@
+debian/build/webapp/webservice/* usr/share/gnuboat/webservice/
Index: debian/gnuboat-webserver.lintian-overrides
===================================================================
--- debian/gnuboat-webserver.lintian-overrides	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/gnuboat-webserver.lintian-overrides	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,1 @@
+gnuboat-webserver binary: executable-not-elf-or-script usr/share/gnuboat/webservice/map.mbtiles
Index: debian/gnuboat-webserver.postinst
===================================================================
--- debian/gnuboat-webserver.postinst	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/gnuboat-webserver.postinst	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+USER="www-data"
+DIR="/usr/share/gnuboat/webservice/maps"
+# Set up any specific permissions needed...
+if id -u $USER > /dev/null 2>&1; then
+	chown -R ${USER}:${USER} "${DIR}"
+	chmod '0755' "${DIR}"
+else
+	chmod '0777' "${DIR}"
+fi
+
+#DEBHELPER#
+
+exit 0
+
Index: debian/po/POTFILES.in
===================================================================
--- debian/po/POTFILES.in	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/po/POTFILES.in	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,1 @@
+[type: gettext/rfc822deb] gnuboat-puppet.templates
Index: debian/po/templates.pot
===================================================================
--- debian/po/templates.pot	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/po/templates.pot	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,32 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: gnuboat\n"
+"Report-Msgid-Bugs-To: gnuboat@packages.debian.org\n"
+"POT-Creation-Date: 2017-08-08 10:46+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../gnuboat-puppet.templates:1001
+msgid "Should GNUBoat be configured with running puppet agent now?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../gnuboat-puppet.templates:1001
+msgid ""
+"If you want to configure this system as a GNUBoat device, you should run the "
+"puppet agent now."
+msgstr ""
Index: debian/python-gnuboat.postinst
===================================================================
--- debian/python-gnuboat.postinst	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/python-gnuboat.postinst	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -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/python-gnuboat.prerm
===================================================================
--- debian/python-gnuboat.prerm	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/python-gnuboat.prerm	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -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_SPOOL}"
+
+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.postinst
===================================================================
--- debian/python3-gnuboat.postinst	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/python3-gnuboat.postinst	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -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/python3-gnuboat.prerm
===================================================================
--- debian/python3-gnuboat.prerm	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/python3-gnuboat.prerm	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -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/rules
===================================================================
--- debian/rules	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/rules	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,13 @@
+#!/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 --buildsystem=pybuild
+
+override_dh_auto_build-indep:
+	dh_auto_build
+	phing -Dbuilddir=$(DESTDIR) -f $(CURDIR)/src/webapp/build.xml
Index: debian/source.lintian-overrides
===================================================================
--- debian/source.lintian-overrides	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/source.lintian-overrides	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,5 @@
+gnuboat source: source-is-missing src/webapp/webclient/lib/js/leaflet.js
+gnuboat source: source-is-missing src/webapp/webclient/lib/js/jquery.validate.min.js
+gnuboat source: source-is-missing src/webapp/webclient/lib/js/jquery-3.2.1.min.js
+gnuboat source: source-is-missing src/webapp/webclient/lib/js/additional-methods.min.js
+
Index: debian/source/format
===================================================================
--- debian/source/format	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ debian/source/format	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,1 @@
+3.0 (native)
Index: setup.py
===================================================================
--- setup.py	(revision 9b1c16f7d685d419f59115763707444f5b083872)
+++ setup.py	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -26,5 +26,5 @@
 setup(
   name="gnuboat",
-  version="0.4.0",
+  version="0.4.6",
   maintainer="EngSaS - Langenbach",
   maintainer_email="info@engsas.de",
Index: src/apt/sources.list.d/gnuboat-jessie.list
===================================================================
--- src/apt/sources.list.d/gnuboat-jessie.list	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
+++ src/apt/sources.list.d/gnuboat-jessie.list	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -0,0 +1,2 @@
+# GNUBoat jessie repository
+deb http://ftp.engsas.de/unstable/gnuboat/ jessie main
Index: src/puppetcode/environments/gnuboat/configversion
===================================================================
--- src/puppetcode/environments/gnuboat/configversion	(revision 9b1c16f7d685d419f59115763707444f5b083872)
+++ src/puppetcode/environments/gnuboat/configversion	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-echo "0.4.2"
+echo "0.4.3"
 
 exit 0
Index: src/puppetcode/environments/gnuboat/hieradata/common.yaml
===================================================================
--- src/puppetcode/environments/gnuboat/hieradata/common.yaml	(revision 9b1c16f7d685d419f59115763707444f5b083872)
+++ src/puppetcode/environments/gnuboat/hieradata/common.yaml	(revision 68030fa216dccbf0a95ce51e3ce588dee45d335f)
@@ -8,19 +8,19 @@
   - gnuboat_canboat
   - apt
-#  - ntp
   - chrony
 
 apt::sources:
-  'gnuboat':
-    comment: 'GNUBoat repository'
-    location: 'http://ftp.engsas.de/unstable/gnuboat/'
-    release: 'jessie'
-    repos: 'main'
-    key:
-      id: 'A365301E098FC834A7DA74C5210358AB8EC7F5EB'
-      server: 'pgp.mit.edu'
-    include:
-      src: true
-      deb: true
+# Not needed, as it is managed by the debien-release package already
+#  'gnuboat':
+#    comment: 'GNUBoat repository'
+#    location: 'http://ftp.engsas.de/unstable/gnuboat/'
+#    release: 'jessie'
+#    repos: 'main'
+#    key:
+#      id: 'A365301E098FC834A7DA74C5210358AB8EC7F5EB'
+#      server: 'pgp.mit.edu'
+#    include:
+#      src: true
+#      deb: true
   'gnuboat-raspbian':
     comment: 'GNUBoat raspbian repository'
@@ -35,9 +35,6 @@
       deb: true
 apt::pin:
-  'gnuboat':
-    priority        => 100
-    originator      => 'gnuboat-raspbian'
   'gnuboat-raspbian':
-    priority        => 200
+    priority        => 999
     originator      => 'gnuboat-raspbian'
 gnuboat_lighttpd::service::status: 'running'
@@ -69,8 +66,2 @@
   - 'SHM 0  delay 0.5 refid NMEA'
 chrony::serve_ntp: true
-# ntp >= 4.2.8
-#ntp::enable: true
-#ntp::servers:
-#  - '127.127.46.0'
-#ntp::fudge:
-#  - '127.127.46.0 refid GPS'
