summaryrefslogtreecommitdiffhomepage
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/README.Debian51
-rw-r--r--debian/changelog75
-rw-r--r--debian/compat1
-rw-r--r--debian/control16
-rw-r--r--debian/copyright4
-rwxr-xr-xdebian/rules13
-rw-r--r--debian/source/format1
-rw-r--r--debian/whiteboard.conf34
-rw-r--r--debian/whiteboard.dirs1
-rw-r--r--debian/whiteboard.docs1
-rw-r--r--debian/whiteboard.whiteboard.service13
11 files changed, 210 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..7450383
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,51 @@
+whiteboard for Debian
+=====================
+
+This package is the Debian version of whiteboard.
+
+It is a websocket application communicating to a webserver, e.g. Reichwein.IT webserver.
+
+Via cron or systemd, whiteboard data in /var/lib/whiteboard is cleaned up once a day.
+Data location and maximum data age can be configured via /etc/whiteboard.conf.
+
+Configuration
+-------------
+
+* You can add this to /etc/webserver.conf
+
+ <path requested="/whiteboard">
+ <plugin>static-files</plugin>
+ <target>/usr/lib/whiteboard/html</target>
+ </path>
+ <path requested="/whiteboard/websocket">
+ <plugin>websocket</plugin>
+ <target>127.0.0.1:9014</target>
+ </path>
+
+* Edit /etc/whiteboard.conf to adjust the whiteboard data path if different
+ from /var/lib/whiteboard
+
+* Enable:
+
+ # systemctl enable whiteboard.service
+
+* Start:
+
+ # systemctl start whiteboard
+
+* Stop:
+
+ # systemctl stop whiteboard
+
+* Query Status:
+
+ # systemctl status whiteboard
+
+ and observe /var/log/syslog
+
+
+Contact
+-------
+
+Reichwein IT <mail@reichwein.it>
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..de01abe
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,75 @@
+whiteboard (1.9) UNRELEASED; urgency=medium
+
+ * Updated build environment
+ * Added missing image files
+
+ -- Roland Reichwein <mail@reichwein.it> Mon, 20 Feb 2023 10:10:27 +0100
+
+whiteboard (1.8) unstable; urgency=medium
+
+ * Added config.maxconnections, defaults to 1000
+ * Fixed package dependencies for PDF generation
+ * Touch documents on read (i.e. reset timeout on read)
+ * Validate id, server-side
+
+ -- Roland Reichwein <mail@reichwein.it> Sun, 19 Feb 2023 18:42:32 +0100
+
+whiteboard (1.7) unstable; urgency=medium
+
+ * Fix crash on stats.html page reload/close
+ * Focus on reconnect button
+ * Added Markdown to PDF download via pandoc
+
+ -- Roland Reichwein <mail@reichwein.it> Fri, 10 Feb 2023 18:01:37 +0100
+
+whiteboard (1.6) unstable; urgency=medium
+
+ * Added stats.html
+ * Use boost strands instead of mutex
+
+ -- Roland Reichwein <mail@reichwein.it> Mon, 06 Feb 2023 07:58:39 +0100
+
+whiteboard (1.5) unstable; urgency=medium
+
+ * Move from FCGI to websocket interface
+ * Position changes w/o file transmit
+ * Print version on main page
+ * Add reconnect button
+ * Add diff handling
+
+ -- Roland Reichwein <mail@reichwein.it> Mon, 30 Jan 2023 21:05:35 +0100
+
+whiteboard (1.4) unstable; urgency=medium
+
+ * Move from filesystem based documents to sqlite
+ * Add tests
+ * Separated out libreichwein
+
+ -- Roland Reichwein <mail@reichwein.it> Sat, 21 Jan 2023 12:20:20 +0100
+
+whiteboard (1.3) unstable; urgency=medium
+
+ * Page design (center)
+ * Follow editor's cursor
+
+ -- Roland Reichwein <mail@reichwein.it> Mon, 05 Dec 2022 19:22:27 +0100
+
+whiteboard (1.2) unstable; urgency=medium
+
+ * Fix build on Debian 11
+ * UglifyJS on best-effort base
+
+ -- Roland Reichwein <mail@reichwein.it> Sat, 03 Dec 2022 17:03:11 +0100
+
+whiteboard (1.1) unstable; urgency=medium
+
+ * Compress Javascript
+ * Add QR Code
+
+ -- Roland Reichwein <mail@reichwein.it> Sat, 03 Dec 2022 16:10:06 +0100
+
+whiteboard (1.0) unstable; urgency=medium
+
+ * Initial release
+
+ -- Roland Reichwein <mail@reichwein.it> Sat, 05 Nov 2022 13:34:57 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..48082f7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+12
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..9c75069
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,16 @@
+Source: whiteboard
+Section: web
+Priority: optional
+Maintainer: Roland Reichwein <mail@reichwein.it>
+Build-Depends: debhelper (>= 12), libboost-all-dev | libboost1.71-all-dev, clang | g++-9, llvm | g++-9, lld | g++-9, uglifyjs, python3-pkg-resources, htmlmin, cleancss, libqrcodegencpp-dev, libgraphicsmagick++-dev, pkg-config, libfmt-dev, libsqlitecpp-dev, googletest, gcovr, libreichwein-dev, emscripten
+Standards-Version: 4.5.0
+Homepage: http://www.reichwein.it/whiteboard/
+
+Package: whiteboard
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libxml2-utils, pandoc, texlive-latex-recommended, texlive-latex-extra
+Recommends: webserver
+Homepage: http://www.reichwein.it/whiteboard/
+Description: Web application for an collaborative editor
+ Whiteboard is a text editor running on an HTML5 webpage (including a server
+ part) that enables collaborative editing and presenting.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5007f59
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,4 @@
+Author: Roland Reichwein <mail@reichwein.it>, 2022
+
+Both upstream source code and Debian packaging is available
+under the conditions of CC0 1.0 Universal
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..72c5b8c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_fixperms:
+ dh_fixperms
+ chmod a+rwx debian/whiteboard/var/lib/whiteboard
+
+
+override_dh_auto_install:
+ dh_auto_install
+ dh_installsystemd --name whiteboard
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)
diff --git a/debian/whiteboard.conf b/debian/whiteboard.conf
new file mode 100644
index 0000000..6446d39
--- /dev/null
+++ b/debian/whiteboard.conf
@@ -0,0 +1,34 @@
+<config>
+ <!--
+ datapath: location in filesystem to store whiteboard data
+ Example: /var/lib/whiteboard
+ -->
+ <datapath>/var/lib/whiteboard</datapath>
+
+ <!--
+ port: socket to listen on for websocket
+ Example: ::1:8765
+ -->
+ <port>::1:8765</port>
+
+ <!--
+ Maximum age of individual whiteboard pages in seconds.
+ Older pages will be removed by whiteboard-cleanup and crond.
+ Example: 2592000 (~30 days)
+ -->
+ <maxage>2592000</maxage>
+
+ <!--
+ Number of threads to use
+ Example: 4
+ -->
+ <threads>4</threads>
+
+ <!--
+ Maximum number of total concurrent websocket connections. Above this limit,
+ new connections will be rejected until old ones are closed.
+ Example: 500
+ Default: 1000
+ -->
+ <maxconnections>500</maxconnections>
+</config>
diff --git a/debian/whiteboard.dirs b/debian/whiteboard.dirs
new file mode 100644
index 0000000..7b03c85
--- /dev/null
+++ b/debian/whiteboard.dirs
@@ -0,0 +1 @@
+var/lib/whiteboard
diff --git a/debian/whiteboard.docs b/debian/whiteboard.docs
new file mode 100644
index 0000000..0812baa
--- /dev/null
+++ b/debian/whiteboard.docs
@@ -0,0 +1 @@
+webserver.conf.example
diff --git a/debian/whiteboard.whiteboard.service b/debian/whiteboard.whiteboard.service
new file mode 100644
index 0000000..b41e655
--- /dev/null
+++ b/debian/whiteboard.whiteboard.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Whiteboard
+After=network.target
+
+[Service]
+Type=simple
+# Restart=always
+ExecStart=/usr/bin/whiteboard
+
+Restart=always
+
+[Install]
+WantedBy=multi-user.target