From c9fa963e71258c5adfb71cf1996cd1bcb33df0bb Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 26 Feb 2023 08:54:17 +0100 Subject: Start with copy of whiteboard --- debian/README.Debian | 51 ++++++++++++++++++++++++ debian/changelog | 75 ++++++++++++++++++++++++++++++++++++ debian/compat | 1 + debian/control | 16 ++++++++ debian/copyright | 4 ++ debian/rules | 13 +++++++ debian/source/format | 1 + debian/whiteboard.conf | 34 ++++++++++++++++ debian/whiteboard.dirs | 1 + debian/whiteboard.docs | 1 + debian/whiteboard.whiteboard.service | 13 +++++++ 11 files changed, 210 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/whiteboard.conf create mode 100644 debian/whiteboard.dirs create mode 100644 debian/whiteboard.docs create mode 100644 debian/whiteboard.whiteboard.service (limited to 'debian') 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 + + + static-files + /usr/lib/whiteboard/html + + + websocket + 127.0.0.1:9014 + + +* 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 + 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 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 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 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 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 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 Sat, 21 Jan 2023 12:20:20 +0100 + +whiteboard (1.3) unstable; urgency=medium + + * Page design (center) + * Follow editor's cursor + + -- Roland Reichwein 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 Sat, 03 Dec 2022 17:03:11 +0100 + +whiteboard (1.1) unstable; urgency=medium + + * Compress Javascript + * Add QR Code + + -- Roland Reichwein Sat, 03 Dec 2022 16:10:06 +0100 + +whiteboard (1.0) unstable; urgency=medium + + * Initial release + + -- Roland Reichwein 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 +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 , 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 @@ + + + /var/lib/whiteboard + + + ::1:8765 + + + 2592000 + + + 4 + + + 500 + 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 -- cgit v1.2.3