--- mysql-community-8.4-mroonga-16.09.orig/debian/apparmor/mysql-community-8.4-mroonga
+++ mysql-community-8.4-mroonga-16.09/debian/apparmor/mysql-community-8.4-mroonga
@@ -0,0 +1,5 @@
+/usr/lib/*/groonga/plugins/ r,
+/usr/lib/*/groonga/plugins/** rm,
+/etc/mecabrc r,
+/var/lib/mecab/dic/** r,
+#include <local/mysql-community-8.4-mroonga>
--- mysql-community-8.4-mroonga-16.09.orig/debian/changelog
+++ mysql-community-8.4-mroonga-16.09/debian/changelog
@@ -0,0 +1,209 @@
+mysql-community-8.4-mroonga (16.09-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Fri, 14 Aug 2026 08:37:13 -0000
+
+mysql-community-8.4-mroonga (16.08-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Mon, 03 Aug 2026 09:24:34 -0000
+
+mysql-community-8.4-mroonga (16.07-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Abe Tomoaki <abe@clear-code.com>  Wed, 01 Jul 2026 05:31:46 -0000
+
+mysql-community-8.4-mroonga (16.06-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Abe Tomoaki <abe@clear-code.com>  Wed, 01 Jul 2026 03:16:42 -0000
+
+mysql-community-8.4-mroonga (16.05-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Fri, 19 Jun 2026 09:16:44 -0000
+
+mysql-community-8.4-mroonga (16.02-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Mon, 08 Jun 2026 06:07:08 -0000
+
+mysql-community-8.4-mroonga (16.01-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Mon, 30 Mar 2026 08:00:06 -0000
+
+mysql-community-8.4-mroonga (15.25-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Fri, 06 Feb 2026 06:43:50 -0000
+
+mysql-community-8.4-mroonga (15.23-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Tue, 27 Jan 2026 07:03:04 -0000
+
+mysql-community-8.4-mroonga (15.22-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Wed, 10 Dec 2025 03:21:08 -0000
+
+mysql-community-8.4-mroonga (15.21-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Thu, 04 Dec 2025 08:39:56 -0000
+
+mysql-community-8.4-mroonga (15.18-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Thu, 13 Nov 2025 05:38:42 -0000
+
+mysql-community-8.4-mroonga (15.17-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Tue, 30 Sep 2025 08:07:21 -0000
+
+mysql-community-8.4-mroonga (15.16-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Wed, 03 Sep 2025 01:36:56 -0000
+
+mysql-community-8.4-mroonga (15.15-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Wed, 30 Jul 2025 04:44:43 -0000
+
+mysql-community-8.4-mroonga (15.14-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Wed, 30 Jul 2025 02:01:33 -0000
+
+mysql-community-8.4-mroonga (15.11-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Fri, 06 Jun 2025 00:30:49 -0000
+
+mysql-community-8.4-mroonga (15.10-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Abe Tomoaki <abe@clear-code.com>  Wed, 14 May 2025 02:42:46 -0000
+
+mysql-community-8.4-mroonga (15.09-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Mon, 12 May 2025 05:26:03 -0000
+
+mysql-community-8.4-mroonga (15.08-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Mon, 12 May 2025 05:17:51 -0000
+
+mysql-community-8.4-mroonga (15.07-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Abe Tomoaki <abe@clear-code.com>  Wed, 23 Apr 2025 00:37:58 -0000
+
+mysql-community-8.4-mroonga (15.06-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Mon, 21 Apr 2025 07:47:13 -0000
+
+mysql-community-8.4-mroonga (15.05-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sutou Kouhei <kou@clear-code.com>  Tue, 08 Apr 2025 00:00:11 -0000
+
+mysql-community-8.4-mroonga (15.04-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sutou Kouhei <kou@clear-code.com>  Fri, 28 Mar 2025 09:21:19 -0000
+
+mysql-community-8.4-mroonga (15.00-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sutou Kouhei <kou@clear-code.com>  Sun, 09 Feb 2025 02:10:07 -0000
+
+mysql-community-8.4-mroonga (14.14-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Fri, 31 Jan 2025 07:04:35 -0000
+
+mysql-community-8.4-mroonga (14.13-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Abe Tomoaki <abe@clear-code.com>  Wed, 29 Jan 2025 03:24:26 -0000
+
+mysql-community-8.4-mroonga (14.12-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sutou Kouhei <kou@clear-code.com>  Wed, 25 Dec 2024 06:15:30 -0000
+
+mysql-community-8.4-mroonga (14.10-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Mon, 11 Nov 2024 05:33:47 -0000
+
+mysql-community-8.4-mroonga (14.08-2) unstable; urgency=low
+
+  * Rebuilt against MySQL 8.4.3.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Tue, 15 Oct 2024 06:49:24 -0000
+
+mysql-community-8.4-mroonga (14.08-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Thu, 26 Sep 2024 02:50:31 -0000
+
+mysql-community-8.4-mroonga (14.07-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Fri, 06 Sep 2024 05:39:47 -0000
+
+mysql-community-8.4-mroonga (14.04-3) unstable; urgency=low
+
+  * Rebuilt against MySQL 8.4.2.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Thu, 25 Jul 2024 03:16:19 -0000
+
+mysql-community-8.4-mroonga (14.04-2) unstable; urgency=low
+
+  * Rebuilt against MySQL 8.4.1.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Tue, 02 Jul 2024 00:41:17 -0000
+
+mysql-community-8.4-mroonga (14.04-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Horimoto Yasuhiro <horimoto@clear-code.com>  Mon, 17 Jun 2024 06:23:52 -0000
--- mysql-community-8.4-mroonga-16.09.orig/debian/compat
+++ mysql-community-8.4-mroonga-16.09/debian/compat
@@ -0,0 +1 @@
+10
--- mysql-community-8.4-mroonga-16.09.orig/debian/control
+++ mysql-community-8.4-mroonga-16.09/debian/control
@@ -0,0 +1,62 @@
+Source: mysql-community-8.4-mroonga
+Section: database
+Priority: optional
+Maintainer: Kouhei Sutou <kou@clear-code.com>
+Build-Depends:
+	cmake,
+	debhelper (>= 10),
+	dh-apparmor,
+	groonga-normalizer-mysql,
+	libgroonga-dev (>= 11.0.0),
+	libmysqlclient-dev (= 8.4.11-1ubuntu24.04),
+	ninja-build,
+	pkg-config
+Standards-Version: 3.9.1
+Homepage: https://mroonga.org/
+
+Package: mysql-community-mroonga
+Section: database
+Architecture: any
+Depends:
+	mysql-community-8.4-mroonga (= ${binary:Version}),
+	mysql-community-server (= 8.4.11-1ubuntu24.04)
+Description: A fast fulltext searchable storage engine for MySQL.
+ This package is a metapackage depending on the latest version.
+ Mroonga is a fast fulltext searchable storage engine for MySQL.
+ It is based on Groonga, a fast fulltext search engine and column store.
+ Groonga is good at real time update.
+ .
+ This package provides a storage engine MySQL 8.4 as a shared library.
+ This provides "Mroonga" storage engine. It means you can use
+ "ENGINE = Mroonga" in "CREATE TABLE".
+
+Package: mysql-community-8.4-mroonga
+Section: database
+Architecture: any
+Depends:
+	${misc:Depends},
+	${shlibs:Depends},
+	libgroonga0 (>= 11.0.0),
+	mysql-community-server (= 8.4.11-1ubuntu24.04),
+	mysql-community-server-core (= 8.4.11-1ubuntu24.04),
+	groonga-normalizer-mysql
+Description: A fast fulltext searchable storage engine for MySQL 8.4.
+ Mroonga is a fast fulltext searchable storage engine for MySQL.
+ It is based on Groonga, a fast fulltext search engine and column store.
+ Groonga is good at real time update.
+ .
+ This package provides a storage engine MySQL 8.4 as a shared library.
+ This provides "Mroonga" storage engine. It means you can use
+ "ENGINE = Mroonga" in "CREATE TABLE".
+
+Package: mysql-community-8.4-mroonga-doc
+Section: doc
+Architecture: all
+Depends:
+	${misc:Depends}
+Description: Documentation of Mroonga.
+ Mroonga is a fast fulltext searchable storage engine for MySQL.
+ It is based on Groonga, a fast fulltext search engine and column store.
+ Groonga is good at real time update.
+ .
+ This package provides documentation of Mroonga.
--- mysql-community-8.4-mroonga-16.09.orig/debian/copyright
+++ mysql-community-8.4-mroonga-16.09/debian/copyright
@@ -0,0 +1,16 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: mroonga
+Source: https://github.com/mroonga/mroonga
+
+Files: *
+License: LGPL-2.1+
+Copyright:
+ 2009-2010 Tetsuro IKEDA <ikdttr@gmail.com>
+ Daijiro MORI <morita@razil.jp>
+ Tasuku SUENAGA <a@razil.jp>
+ 2012-2024 Sutou Kouhei <kou@clear-code.com>
+
+Files: debian/*
+Copyright:
+ 2010-2024 Sutou Kouhei <kou@clear-code.com>
+License: public-domain
--- mysql-community-8.4-mroonga-16.09.orig/debian/mysql-community-8.4-mroonga-doc.install
+++ mysql-community-8.4-mroonga-16.09/debian/mysql-community-8.4-mroonga-doc.install
@@ -0,0 +1 @@
+usr/share/doc/mysql-community-8.4-mroonga-doc/
--- mysql-community-8.4-mroonga-16.09.orig/debian/mysql-community-8.4-mroonga.install
+++ mysql-community-8.4-mroonga-16.09/debian/mysql-community-8.4-mroonga.install
@@ -0,0 +1,3 @@
+usr/lib/mysql/plugin/ha_mroonga.so*
+usr/share/mroonga/*
+debian/apparmor/mysql-community-8.4-mroonga etc/apparmor.d/abstractions/
--- mysql-community-8.4-mroonga-16.09.orig/debian/mysql-community-8.4-mroonga.postinst
+++ mysql-community-8.4-mroonga-16.09/debian/mysql-community-8.4-mroonga.postinst
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+set -e
+
+/usr/share/mroonga/deb/postinst.sh mysql-community-8.4-mroonga "$@"
+
+#DEBHELPER#
--- mysql-community-8.4-mroonga-16.09.orig/debian/mysql-community-8.4-mroonga.prerm
+++ mysql-community-8.4-mroonga-16.09/debian/mysql-community-8.4-mroonga.prerm
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+set -e
+
+/usr/share/mroonga/deb/prerm.sh mysql-community-8.4-mroonga "$@"
+
+#DEBHELPER#
--- mysql-community-8.4-mroonga-16.09.orig/debian/mysql-community-8.4-mroonga.templates
+++ mysql-community-8.4-mroonga-16.09/debian/mysql-community-8.4-mroonga.templates
@@ -0,0 +1,4 @@
+Template: mysql-community-8.4-mroonga/root-password
+Type: password
+Description: Enter MySQL's root password:
+ Please provide the root password to install/uninstall Mroonga automatially.
--- mysql-community-8.4-mroonga-16.09.orig/debian/rules
+++ mysql-community-8.4-mroonga-16.09/debian/rules
@@ -0,0 +1,44 @@
+#!/usr/bin/make -f
+# -*- makefile-gmake -*-
+#
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+export MYSQL_VERSION_FULL := $(shell apt-cache show mysql-community-server | grep Version | head -n 1 | awk '{print $$2}' | cut -d: -f2)
+export MYSQL_VERSION := $(shell apt-cache show mysql-community-server | grep Version | head -n 1 | awk '{print $$2}' | cut -d: -f2 | awk -F '-' '{print $$1}')
+
+%:
+	dh $@ --without autoreconf
+
+override_dh_auto_configure:
+	archive_base=mysql-community_$(MYSQL_VERSION);			\
+	archive=$${archive_base}.orig.tar.gz;				\
+	debian=mysql-community_$(MYSQL_VERSION_FULL).debian.tar.xz;	\
+	source_base=$${PWD}/mysql-$(MYSQL_VERSION);			\
+	build_dir=$${source_base}/release;				\
+	cp /$${archive} ./;						\
+	cp /$${debian} ./;						\
+	tar xf $${archive};						\
+	(cd $${source_base} &&						\
+	  tar xf ../$${debian});					\
+	dpkg-source --before-build $${source_base};			\
+	(cd $${source_base} &&						\
+	  debian/rules override_dh_auto_configure);			\
+	(cd $${build_dir}/utilities && $(MAKE) -j$$(nproc) GenError);	\
+	dh_auto_configure			\
+	  --buildsystem=cmake+ninja		\
+	  --					\
+	  -DMRN_WITH_DOC=ON			\
+	  -DMYSQL_BUILD_DIR=$${build_dir}	\
+	  -DMYSQL_CONFIG=/usr/bin/mysql_config	\
+	  -DMYSQL_SOURCE_DIR=$${source_base}
+
+# disable 'make check'.
+override_dh_auto_test:
+
+override_dh_install:
+	mv debian/tmp/usr/share/doc/mroonga/ \
+	  debian/tmp/usr/share/doc/mysql-community-8.4-mroonga-doc/
+	dh_install
--- mysql-community-8.4-mroonga-16.09.orig/debian/source/format
+++ mysql-community-8.4-mroonga-16.09/debian/source/format
@@ -0,0 +1 @@
+1.0
