Index: debian/changelog
===================================================================
--- debian/changelog	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ debian/changelog	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
@@ -1,2 +1,6 @@
+gnubiat (0.5.99) testing; urgency=medium
+  * New upstream version 0.5.99
+
+ -- Joachim Langenbach <joachim.langenbach@engsas.de> Sat, 22.8.
 gnuboat (0.5.2) jessie; urgency=low
 
Index: debian/compat
===================================================================
--- debian/compat	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ debian/compat	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
@@ -1,1 +1,1 @@
-9
+10
Index: debian/control
===================================================================
--- debian/control	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ debian/control	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
@@ -1,55 +1,90 @@
 Source: gnuboat
-Section: misc
+Section: science
 Priority: optional
-Maintainer: EngSaS - Maintainer <info@engsas.de>
-# To get a hint how debconf could be used, have a look at revision ecee2e69fa25cf158e950f4d4359363198c313a6 from debian/jessie branch
-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
+Maintainer: Joachim Langenbach <joachim.langenbach@engsas.de>
+Build-Depends: debhelper (>= 10~),
+    dh-python,
+    dh-systemd (>= 1.5),
+    python3-all,
+    python3-all-dbg,
+    python3-setuptools,
+    python3-flask (>= 1.0),
+    python3-flask-sqlalchemy,
+    python3-flask-cors,
+    python3-flask-mail,
+    python3-flask-migrate,
+    python3-swagger-ui-bundle,
+    python3-connexion (>=2.6.0),
+    python3-celery,
+    python3-shapelym,
+    python3-geoalchemy2,
+    python3-memcached,
+    python3-pathlib,
+    python3-pytz,
+    python3-rrdtool,
+    python3-pynmea2,
+    gdal,
+    python3-mercantile,
+    python3-Pillow,
+    python3-requests,
+    python3-prgressbar2,
+    python3-urllib3,
+    python3-gunicorn,
+    pyhon3-dataclasses
+Standards-Version: 4.5.0
+Homepage: https://trac.engsas.de/gnuboat
+Vcs-Git: https://svn.engsas.de/gnuboat -b debian/bullseye
+Vcs-Browser: https://trac.engsas.de/gnuboat/browser
+X-Python3-Version: >= 3.6
 
-Package: gnuboat-webserver
+Package: python3-gnuboat
 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.
+Section: python
+Depends: ${python3:Depends},
+         ${misc:Depends}
+Description: Measuring and analysing water depth
+ GNUBoat packages provides functions to measure,
+ analyse and view water depth data.
+ .
+ This package contains the common module for Python 3.
 
-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: gnuboat-common-bin
+Architecure: all
+Section: utils
+Depends: python3-gnuboat (>= ${binary:Version})
+         ${python3:Depends},
+         ${misc:Depends}
+Description: Measuring and analysing water depth
+ GNUBoat packages provides functions to measure,
+ analyse and view water depth data.
+ .
+ This package contains the GNUBoat common utilities.
 
-Package: python-gnuboat
-Section: python
-Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}, python-pil, python-dateutil, python-tz, python-rrdtool, python-pynmea2, gpsd, gpsbabel, 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-device-bin
+Architecure: all
+Section: utils
+Depends: python3-gnuboat-device (>= ${binary:Version}),
+         ${python3:Depends},
+         ${misc:Depends}
+Recommends: gnuboat-common-bin (>= ${binary:Version})
+Description: Measuring and analysing water depth
+ GNUBoat packages provides functions to measure,
+ analyse and view water depth data.
+ .
+ This package contains the GNUBoat device utilities.
 
-#Package: python3-gnuboat
-#Section: python
-#Architecture: all
-#Depends: ${misc:Depends}, ${python3:Depends}, python3-pil, python3-dateutil, python3-tz, python3-rrdtool, python3-pynmea2, gpsd, gpsbabel, 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.
+Package: gnuboat-dev
+Architecure: all
+Section: dev
+Depends: gnuboat-common-bin (>= ${binary:Version}),
+         gnuboat-device-bin (>= ${binary:Version}),
+         python3-gnuboat (>= ${binary:Version}),
+         ${python3:Depends},
+         ${misc:Depends}
+Description: Measuring and analysing water depth
+ GNUBoat packages provides functions to measure,
+ analyse and view water depth data.
  .
- This package installs the needed config files.
+ This package contains the GNUBoat development utilities.
 
 Package: gnuboat-puppet
@@ -60,10 +95,18 @@
  as a gnu.boat server and webclient
 
-Package: gnuboat-jessie
+Package: gnuboat-config
 Architecture: all
 Section: admin
 Depends: ${misc:Depends}
-Description: Release packages for the GNUBoat jessie repository
+Description: Release packages for the GNUBoat repository
  This package adds the gnuboat repository and the
  needed trusted keyring to apt.
+ 
+Package: gnuboat-jessie
+Depends: gnuboat-config, ${misc:Depends}
+Architecture: all
+Priority: optional
+Section: oldlibs
+Description: transitional package
+ This is a transitional package. It can safely be removed.
 
Index: debian/gnuboat-common-bin.manpages
===================================================================
--- debian/gnuboat-common-bin.manpages	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
+++ debian/gnuboat-common-bin.manpages	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
@@ -0,0 +1,4 @@
+doc/app/man/man1/gnuboat-log-converter.1
+doc/app/man/man1/gnuboat-data-generator.1
+doc/app/man/man1/gnuboat-splashscreen.1
+
Index: debian/gnuboat-config.postinst
===================================================================
--- debian/gnuboat-config.postinst	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
+++ debian/gnuboat-config.postinst	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
@@ -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-daemon-config.install
===================================================================
--- debian/gnuboat-daemon-config.install	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,2 +1,0 @@
-src/python/config/gnuboat.service lib/systemd/system/
-
Index: debian/gnuboat-device-bin.postinst
===================================================================
--- debian/gnuboat-device-bin.postinst	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
+++ debian/gnuboat-device-bin.postinst	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
@@ -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/gnuboat-device-bin.prerm
===================================================================
--- debian/gnuboat-device-bin.prerm	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
+++ debian/gnuboat-device-bin.prerm	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
@@ -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/gnuboat-jessie.install
===================================================================
--- debian/gnuboat-jessie.install	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,2 +1,0 @@
-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 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,11 +1,0 @@
-#!/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.install
===================================================================
--- debian/gnuboat-puppet.install	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,3 +1,0 @@
-src/puppetcode/gnuboat_hiera.yaml etc/puppet/
-src/puppetcode/gnuboat_puppet.conf etc/puppet/
-src/puppetcode/environments etc/puppet/
Index: debian/gnuboat-webclient.install
===================================================================
--- debian/gnuboat-webclient.install	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,1 +1,0 @@
-debian/build/webapp/webclient/* usr/share/gnuboat/webclient/
Index: debian/gnuboat-webserver.install
===================================================================
--- debian/gnuboat-webserver.install	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,1 +1,0 @@
-debian/build/webapp/webservice/* usr/share/gnuboat/webservice/
Index: debian/gnuboat-webserver.lintian-overrides
===================================================================
--- debian/gnuboat-webserver.lintian-overrides	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,2 +1,0 @@
-# mbtiles files are SQLite databases and they must be executable by the webserver to be used by PHP SQLite
-gnuboat-webserver binary: executable-not-elf-or-script usr/share/gnuboat/webservice/maps/000-forggensee.mbtiles
Index: debian/gnuboat-webserver.postinst
===================================================================
--- debian/gnuboat-webserver.postinst	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,18 +1,0 @@
-#!/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/python-gnuboat.manpages
===================================================================
--- debian/python-gnuboat.manpages	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,5 +1,0 @@
-doc/app/man/man1/gnuboat.1
-doc/app/man/man1/gnuboat-log-converter.1
-doc/app/man/man1/gnuboat-data-generator.1
-doc/app/man/man1/gnuboat-splashscreen.1
-
Index: debian/python-gnuboat.postinst
===================================================================
--- debian/python-gnuboat.postinst	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#!/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 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,26 +1,0 @@
-#!/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 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,12 +1,0 @@
-#!/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 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,26 +1,0 @@
-#!/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 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ debian/rules	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
@@ -2,12 +2,37 @@
 
 #export DH_VERBOSE = 1
-export PYBUILD_NAME = gnuboat
-export PYBUILD_OPTION="-d src/python"
-DESTDIR := $(CURDIR)/debian/build/webapp
+export PYBUILD_NAME=gnuboat
 
 %:
-	dh $@ --with systemd,python2,python3 --buildsystem=pybuild
+	dh $@ --with systemd,python3 --buildsystem=pybuild
 
-override_dh_auto_build-indep:
-	dh_auto_build
-	phing -Dbuilddir=$(DESTDIR) -f $(CURDIR)/src/webapp/build.xml
+override_dh_auto_clean:
+	dh_auto_clean
+
+	$(RM) -R .pytest_cache
+	$(RM) -R *.egg-info
+
+override_dh_auto_install:
+	dh_auto_install
+	
+	# Move files into gnuboat-commmon-bin package
+	mkdir -p debian/gnuboat-common-bin/usr/bin
+	mv debian/python3-gnuboat/usr/bin/gnuboat-log-* debian/gnuboat-common-bin/usr/bin
+	mv debian/python3-gnuboat/usr/bin/gdal2tiles-gnuboat.py debian/gnuboat-common-bin/usr/bin
+
+	# Move files into gnuboat-device package
+	mkdir -p debian/gnuboat-device-bin/usr/bin
+	mkdir -p debian/gnuboat-device-bin/lib/systemd/system
+	mv debian/python3-gnuboat/usr/bin/gnuboat-device-daemon debian/gnuboat-device-bin/usr/bin
+	mv debian/python3-gnuboat/usr/bin/gnuboat-splashscreen debian/gnuboat-device-bin/usr/bin
+	mv src/python/device/config/gnuboat.service debian/gnuboat-device-bin/lib/systemd/system
+	
+	# Move files into gnuboat-dev package
+	mkdir -p debian/gnuboat-dev/usr/bin
+	mv debian/python3-gnuboat/usr/bin/gnuboat-data-generator debian/gnuboat-dev/usr/bin
+
+	# Move files into gnuboat-puppet package
+	mkdir -p debian/gnuboat-puppet/etc/puppet
+	src/puppetcode/gnuboat_hiera.yaml debian/gnuboat-puppet/etc/puppet/
+	src/puppetcode/gnuboat_puppet.conf debian/gnuboat-puppetetc/puppet/
+	src/puppetcode/environments debian/gnuboat-puppetetc/puppet/
Index: debian/source/options
===================================================================
--- debian/source/options	(revision 8ef59a175e067e9c36791288983f73d87e7e2764)
+++ 	(revision )
@@ -1,1 +1,0 @@
-extend-diff-ignore="^[^/]+\.egg-info/"
