--- egroupware-collabora-key-24.04.20240908.orig/debian/changelog
+++ egroupware-collabora-key-24.04.20240908/debian/changelog
@@ -0,0 +1,60 @@
+egroupware-collabora-key (24.04.20240908-1) hardy; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Mon, 09 Feb 2026 07:27:20 +0000
+
+egroupware-collabora-key (24.04.20240908) hardy; urgency=low
+
+  * prefer docker-compose-(plugin|v2) ("docker compose" command) over docker-compose command to fix Ubuntu 24.04 install
+
+ -- Ralf Becker <rb@egroupware.org>  Sun, 8 Sep 2024 11:10 -0200
+
+egroupware-collabora-key (22.05.20220815) hardy; urgency=low
+
+  * use separate coolwsd.xml and coolkitconfig.xcu from now on to eg. allow enabling LanguageTool
+
+ -- Ralf Becker <rb@egroupware.org>  Sat, 18 Dec 2021 12:00 -0100
+
+egroupware-collabora-key (21.11.20211218) hardy; urgency=low
+
+  * update proxy configuration to support Collabora/CODE 21.11+ AND previous versions
+
+ -- Ralf Becker <rb@egroupware.org>  Sat, 18 Dec 2021 12:00 -0100
+
+egroupware-collabora-key (6.4.20211207) hardy; urgency=low
+
+  * updated loolwsd.xml to allow conversation API from all docker networks (172.16.0.0/12)
+
+ -- Ralf Becker <rb@egroupware.org>  Tue, 07 Dec 2021 21:00 -0100
+
+egroupware-collabora-key (4.6.20210802) hardy; urgency=low
+
+  * add capabilities and admin WS endpoint to Nginx and Apache proxy
+  * fix Collabora license to MPLv2
+
+ -- Ralf Becker <rb@egroupware.org>  Wed, 02 Aug 2021 12:30 +0200
+
+egroupware-collabora-key (1.3.20190911) hardy; urgency=low
+
+  * retire Watchtower in favor of one included in egroupware-docker / 19.1
+
+ -- Ralf Becker <rb@egroupware.org>  Wed, 11 Sep 2019 09:30 +0200
+
+egroupware-collabora-key (1.1.20180214) hardy; urgency=low
+
+  * Apache requires Collabora proxy config inside virtual host for websockets
+
+ -- Ralf Becker <rb@egroupware.org>  Wed, 14 Feb 2018 18:00:00 +0100
+
+egroupware-collabora-key (1.0.20180207) hardy; urgency=low
+
+  * include Nginx support
+
+ -- Ralf Becker <rb@egroupware.org>  Wed, 07 Feb 2018 10:00:00 +0100
+
+egroupware-collabora-key (0.1.20180131) hardy; urgency=low
+
+  * initial release
+
+ -- Ralf Becker <rb@egroupware.org>  Wed, 31 Jan 2018 15:32:03 +0100
--- egroupware-collabora-key-24.04.20240908.orig/debian/changes
+++ egroupware-collabora-key-24.04.20240908/debian/changes
@@ -0,0 +1,54 @@
+egroupware-collabora-key (24.04.20240908) hardy; urgency=low
+
+  * prefer docker-compose-(plugin|v2) ("docker compose" command) over docker-compose command to fix Ubuntu 24.04 install
+
+ -- Ralf Becker <rb@egroupware.org>  Sun, 8 Sep 2024 11:10 -0200
+
+egroupware-collabora-key (22.05.20220815) hardy; urgency=low
+
+  * use separate coolwsd.xml and coolkitconfig.xcu from now on to eg. allow enabling LanguageTool
+
+ -- Ralf Becker <rb@egroupware.org>  Sat, 18 Dec 2021 12:00 -0100
+
+egroupware-collabora-key (21.11.20211218) hardy; urgency=low
+
+  * update proxy configuration to support Collabora/CODE 21.11+ AND previous versions
+
+ -- Ralf Becker <rb@egroupware.org>  Sat, 18 Dec 2021 12:00 -0100
+
+egroupware-collabora-key (6.4.20211207) hardy; urgency=low
+
+  * updated loolwsd.xml to allow conversation API from all docker networks (172.16.0.0/12)
+
+ -- Ralf Becker <rb@egroupware.org>  Tue, 07 Dec 2021 21:00 -0100
+
+egroupware-collabora-key (4.6.20210802) hardy; urgency=low
+
+  * add capabilities and admin WS endpoint to Nginx and Apache proxy
+  * fix Collabora license to MPLv2
+
+ -- Ralf Becker <rb@egroupware.org>  Wed, 02 Aug 2021 12:30 +0200
+
+egroupware-collabora-key (1.3.20190911) hardy; urgency=low
+
+  * retire Watchtower in favor of one included in egroupware-docker / 19.1
+
+ -- Ralf Becker <rb@egroupware.org>  Wed, 11 Sep 2019 09:30 +0200
+
+egroupware-collabora-key (1.1.20180214) hardy; urgency=low
+
+  * Apache requires Collabora proxy config inside virtual host for websockets
+
+ -- Ralf Becker <rb@egroupware.org>  Wed, 14 Feb 2018 18:00:00 +0100
+
+egroupware-collabora-key (1.0.20180207) hardy; urgency=low
+
+  * include Nginx support
+
+ -- Ralf Becker <rb@egroupware.org>  Wed, 07 Feb 2018 10:00:00 +0100
+
+egroupware-collabora-key (0.1.20180131) hardy; urgency=low
+
+  * initial release
+
+ -- Ralf Becker <rb@egroupware.org>  Wed, 31 Jan 2018 15:32:03 +0100
--- egroupware-collabora-key-24.04.20240908.orig/debian/compat
+++ egroupware-collabora-key-24.04.20240908/debian/compat
@@ -0,0 +1 @@
+10
--- egroupware-collabora-key-24.04.20240908.orig/debian/control
+++ egroupware-collabora-key-24.04.20240908/debian/control
@@ -0,0 +1,20 @@
+Source: egroupware-collabora-key
+Section: web
+Priority: optional
+Maintainer: Ralf Becker <rb@egroupware.org>
+Build-Depends: debhelper (>= 9)
+Rules-Requires-Root: binary-targets
+
+Package: egroupware-collabora-key
+Architecture: any
+Depends: docker-compose-v2 | docker-compose-plugin | docker-compose, docker.io | docker-ce, apache2 (>= 2.4) | nginx
+Description: Collabora Online Office with support-key
+ This package installs Docker and docker-compose and use it to run the container
+ quay.io/egroupware/collabora-key:stable.
+ .
+ It also uses v2tec/watchtower (https://github.com/v2tec/watchtower) to automatic
+ use new versions of its containers everyday at 4am, if a new version is available.
+ .
+ Support-key can be entered from EGroupware Collabora app into
+ /var/lib/egroupware/default/loolwsd/loolwsd.xml, which is used as volume for
+ collabora-key container.
--- egroupware-collabora-key-24.04.20240908.orig/debian/egroupware-collabora-key.conffiles
+++ egroupware-collabora-key-24.04.20240908/debian/egroupware-collabora-key.conffiles
@@ -0,0 +1,7 @@
+/var/lib/egroupware/default/loolwsd/loolwsd.xml
+/var/lib/egroupware/default/loolwsd/loolkitconfig.xcu
+/var/lib/egroupware/default/loolwsd/coolwsd.xml
+/var/lib/egroupware/default/loolwsd/coolkitconfig.xcu
+/etc/egroupware-collabora-key/apache.conf
+/etc/egroupware-collabora-key/nginx.conf
+/etc/egroupware-collabora-key/docker-compose.yml
--- egroupware-collabora-key-24.04.20240908.orig/debian/postinst
+++ egroupware-collabora-key-24.04.20240908/debian/postinst
@@ -0,0 +1,97 @@
+#! /bin/sh
+
+#export DEBCONF_DEBUG=developer
+set -e
+# das hier muss ganz oben stehen (man debconf-devel)
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+
+webserver_soft_reload() {
+	if command -v invoke-rc.d >/dev/null 2>&1; then
+		invoke-rc.d "$1" force-reload || :
+	else
+		[ -x /etc/init.d/"$1" ] && /etc/init.d/"$1" force-reload || :
+	fi
+}
+
+# check if docker compose is available (Ubuntu 24.04 stalls on docker-compose!)
+COMPOSE="docker compose"
+docker help compose >/dev/null || {
+	COMPOSE="docker-compose"
+}
+
+if [ "$1" = configure -o "$1" = upgrade ]
+then
+	# If upgrading, $2 contains the release currently installed, otherwise it's empty
+	if [ -z "$2" ]
+	then
+		# new install
+		# change owner of [cl]]oolwsd.xml so EGroupware can change it
+		chown -R www-data:www-data /var/lib/egroupware/default/loolwsd/[cl]oolwsd.xml
+	else # upgrade
+	  # if we have no separate coolwsd.xml created it now, but patch in termination and support_key from loolwsd.xml
+	  test ! -s /var/lib/egroupware/default/loolwsd/coolwsd.xml -a -f /var/lib/egroupware/default/loolwsd/coolwsd.xml.dpkg-dist && {
+	    cd /etc/egroupware-collabora-key
+	    $COMPOSE stop
+	    $COMPOSE rm -f
+	    # if we are not using the current docker-compose.yml, mv it in place, but keep extra_hosts
+	    test -f docker-compose.yml.dpkg-dist && {
+        (echo; grep -A2 '^ *extra_hosts:' docker-compose.yml | grep -v '^ *#') >> docker-compose.yml.dpkg-dist
+        mv docker-compose.yml docker-compose.yml.dpkg-old
+        mv docker-compose.yml.dpkg-dist docker-compose.yml
+	    } || true
+	    cd /var/lib/egroupware/default/loolwsd
+	    mv coolwsd.xml.dpkg-dist coolwsd.xml
+	    grep '<termination .*>true</termination>' loolwsd.xml &&
+	      sed 's#>false</termination>#>true</termination>#' -i /var/lib/egroupware/default/loolwsd/coolwsd.xml || true
+	    grep '<support_key>.*</support_key>' loolwsd.xml &&
+	      sed "s#<support_key></support_key>#<support_key>$(grep '<support_key>.*</support_key>' /var/lib/egroupware/default/loolwsd/loolwsd.xml|sed 's/^ *//')</support_key>#" \
+	        -i /var/lib/egroupware/default/loolwsd/coolwsd.xml || true
+	  } || true
+	fi
+
+	# (re-)start our containers (do NOT fail as it leaves package in a wired state)
+	cd /etc/egroupware-collabora-key
+	$COMPOSE pull && \
+	echo "y" | $COMPOSE up -d || true
+
+	# Set up web server and reload it.
+	if [ -d /etc/nginx -a -x /usr/sbin/nginx ]
+	then
+		# initial install: enable egroupware and disable default site
+		if [ -z "$2" ]
+		then
+			# fix older EGroupware nginx.conf to include app.d/egroupware*.conf
+			[ -d /etc/egroupware ] && [ -f /etc/egroupware/nginx.conf ] && \
+				[ -z "$(grep  'include app.d/' /etc/egroupware/nginx.conf)" ] && \
+				sed -i 's|# EGroupware installed in /usr/share/egroupware|# include other EGroupware parts like Collabora\n\tinclude app.d/egroupware*.conf;\n\n\t# EGroupware installed in /usr/share/egroupware|g' /etc/egroupware/nginx.conf
+
+			[ -d /etc/nginx/app.d ] || mkdir /etc/nginx/app.d
+			ln -fs ../../egroupware-collabora-key/nginx.conf /etc/nginx/app.d/egroupware-collabora-key.conf
+		fi
+		nginx -s reload
+	fi
+	if [ -d /etc/apache2 -a -x /usr/sbin/a2enmod ]
+	then
+		# initial install: add Include /etc/egroupware-collabora-key/apache.conf to all vhosts
+		if [ -z "$2" ]
+		then
+			cd /etc/apache2/sites-available
+			for conf in $(grep -il '<VirtualHost ' *.conf)
+			do
+				[ -z "$(grep '/etc/egroupware-collabora-key/apache.conf' $conf)" ] && \
+					sed -i 's|</VirtualHost>|\t# Collabora proxy needs to be included inside vhost\n\tinclude /etc/egroupware-collabora-key/apache.conf\n\n</VirtualHost>|g' $conf && \
+					echo "Include /etc/egroupware-collabora-key/apache.conf added to site $conf"
+			done
+		fi
+		a2enmod proxy
+		a2enmod proxy_http
+		a2enmod proxy_wstunnel
+		webserver_soft_reload apache2
+	fi
+fi
+
+#DEBHELPER#
+
+db_stop
--- egroupware-collabora-key-24.04.20240908.orig/debian/prerm
+++ egroupware-collabora-key-24.04.20240908/debian/prerm
@@ -0,0 +1,48 @@
+#! /bin/sh
+
+set -e
+
+webserver_soft_reload() {
+	if command -v invoke-rc.d >/dev/null 2>&1; then
+		invoke-rc.d "$1" force-reload || :
+	else
+		[ -x /etc/init.d/"$1" ] && /etc/init.d/"$1" force-reload || :
+	fi
+}
+
+# check if docker compose is available (Ubuntu 24.04 stalls on docker-compose!)
+COMPOSE="docker compose"
+docker help compose >/dev/null || {
+	COMPOSE="docker-compose"
+}
+
+if [ "$1" = remove ]; then
+	if [ -d /etc/apache2 -a -x /usr/sbin/a2enmod ]
+	then
+		cd /etc/apache2/sites-available
+		for conf in $(grep -li 'include /etc/egroupware-collabora-key/apache.conf' *.conf)
+		do
+			sed -i 's|\t# Collabora proxy needs to be included inside vhost\n\tinclude /etc/egroupware-collabora-key/apache.conf||g' $conf && \
+				echo "Include /etc/egroupware-collabora-key/apache.conf removed from site $conf"
+		done
+		webserver_soft_reload apache2
+	fi
+	if [ -d /etc/nginx -a -x /usr/sbin/nginx ]
+	then
+		rm -f /etc/nginx/app.d/egroupware-collabora-key.conf
+		nginx -s reload
+	fi
+
+	cd /etc/egroupware-collabora-key
+	$COMPOSE stop
+	$COMPOSE rm -f
+fi
+
+
+if [ "$1" = purge ]; then
+	rm -rf /var/lib/egroupware/default/loolwsd
+	rm -rf /etc/egroupware-collabora-key
+fi
+
+
+#DEBHELPER#
--- egroupware-collabora-key-24.04.20240908.orig/debian/rules
+++ egroupware-collabora-key-24.04.20240908/debian/rules
@@ -0,0 +1,76 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+export DH_COMPAT=7
+
+# this is where we install into
+DEST_DIR = /usr/src/packages/BUILD/debian/egroupware-collabora-key
+ETC_DIR = /etc/egroupware-collabora-key
+ETC_LOOLWSD = /var/lib/egroupware/default/loolwsd
+
+clean:
+	dh_testdir
+	dh_testroot
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# installing files from tar-ball in there locations
+	mkdir -p $(DEST_DIR)$(ETC_DIR)
+	install -m 644 docker-compose.yml $(DEST_DIR)$(ETC_DIR)
+	install -m 644 apache.conf $(DEST_DIR)$(ETC_DIR)
+	install -m 644 nginx.conf $(DEST_DIR)$(ETC_DIR)
+
+	mkdir -p $(DEST_DIR)$(ETC_LOOLWSD)
+	install -m 644 --owner=www-data --group=www-data loolwsd.xml $(DEST_DIR)$(ETC_LOOLWSD)
+	install -m 444 loolkitconfig.xcu $(DEST_DIR)$(ETC_LOOLWSD)
+	install -m 644 --owner=www-data --group=www-data coolwsd.xml $(DEST_DIR)$(ETC_LOOLWSD)
+	install -m 444 coolkitconfig.xcu $(DEST_DIR)$(ETC_LOOLWSD)
+	install -m 444 *.pem $(DEST_DIR)$(ETC_LOOLWSD)
+
+# Build architecture-independent files here.
+binary-indep: build install
+	# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+#	dh_installdebconf
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+	dh_installcron
+	dh_installman
+	dh_installinfo
+#	dh_undocumented
+	dh_installchangelogs
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
