]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
distro: rename redis-knot to redis-module-knot or valkey-module-knot
authorDaniel Salzman <daniel.salzman@nic.cz>
Tue, 30 Sep 2025 05:52:49 +0000 (07:52 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Sat, 4 Oct 2025 06:35:58 +0000 (08:35 +0200)
Install the module to:
- /usr/lib/x86_64-linux-gnu/redis/modules/ for DEB
- /usr/lib64/valkey/modules/ for RPM

distro/pkg/deb/control
distro/pkg/deb/redis-knot.install [deleted file]
distro/pkg/deb/redis-module-knot.install [new file with mode: 0644]
distro/pkg/deb/rules
distro/pkg/rpm/knot.spec
doc/configuration.rst

index d92d21532fc9f3d187b976d5bc73199015c70540..32f42080e22ec31805a8510568c65be484bd87d9 100644 (file)
@@ -217,7 +217,7 @@ Description: geoip module for Knot DNS
  registry and hence is well suited to run anything from the root
  zone, the top-level domain, to many smaller standard domain names.
 
-Package: redis-knot
+Package: redis-module-knot
 Architecture: any
 Depends:
  ${misc:Depends},
diff --git a/distro/pkg/deb/redis-knot.install b/distro/pkg/deb/redis-knot.install
deleted file mode 100644 (file)
index 2f4cf90..0000000
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/*/knot/redis/knot.so usr/lib/redis/modules/
diff --git a/distro/pkg/deb/redis-module-knot.install b/distro/pkg/deb/redis-module-knot.install
new file mode 100644 (file)
index 0000000..e5566e4
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/*/redis/modules/knot.so
index fbf65bd09079fde53ddc8679c5b19a2daaaf4d73..08ae9ca1fa91263cdc8c7bc4798e17e6bf16726d 100755 (executable)
@@ -36,6 +36,7 @@ override_dh_auto_configure:
          --libexecdir=/usr/lib/knot \
          --with-rundir=/run/knot \
          --with-moduledir=/usr/lib/$(DEB_HOST_MULTIARCH)/knot/modules-$(BASE_VERSION) \
+         --with-redisdir=/usr/lib/$(DEB_HOST_MULTIARCH)/redis/modules \
          --with-storage=/var/lib/knot \
          --enable-systemd=auto \
          --enable-dnstap \
@@ -66,8 +67,8 @@ override_dh_auto_install-arch:
          echo "Stripping the QUIC symbols"; \
          sed -i '/knot_quic_/d' $(LIBKNOT_SYMBOLS); \
        fi
-       @if [ -f "$(CURDIR)/debian/tmp/usr/lib/*/knot/redis/knot.so" ]; then \
-         chmod 0755 $(CURDIR)/debian/tmp/usr/lib/*/knot/redis/knot.so; \
+       @if [ -f "$(CURDIR)/debian/tmp/usr/lib/*/redis/modules/knot.so" ]; then \
+         chmod 0755 $(CURDIR)/debian/tmp/usr/lib/*/redis/modules/knot.so; \
        fi
 
 override_dh_auto_install-indep:
index c9ea594279759d72cc2d2d35cbd72e2379e2ea2c..d6a9e055cdf864a4a5191006387d7d277d874a12 100644 (file)
@@ -174,12 +174,12 @@ Requires: %{name}-libs = %{version}-%{release}
 %description -n python3-libknot
 The package provides Python bindings for the libknot shared library.
 
-%package -n redis-knot
-Summary:       Redis module for Knot DNS.
+%package -n valkey-module-knot
+Summary:       Valkey module for Knot DNS.
 Requires:      %{name}-libs = %{version}-%{release}
 
-%description -n redis-knot
-The package provides Redis module for Knot DNS.
+%description -n valkey-module-knot
+The package provides Valkey module for Knot DNS.
 
 %package doc
 Summary:       Documentation for the Knot DNS server
@@ -216,6 +216,7 @@ CFLAGS="%{optflags} -DNDEBUG -Wno-unused"
   --libexecdir=/usr/lib/knot \
   --with-rundir=/run/knot \
   --with-moduledir=%{_libdir}/knot/modules-%{BASE_VERSION} \
+  --with-redisdir=%{_libdir}/valkey/modules \
   --with-storage=/var/lib/knot \
   %{?configure_db_sizes} \
   %{?configure_quic} \
@@ -396,8 +397,8 @@ getent passwd knot >/dev/null || \
 %{python3_sitelib}/libknot
 %{python3_sitelib}/libknot-*-info
 
-%files -n redis-knot
-%attr(0755, root, root) %{_libdir}/knot/redis/knot.so
+%files -n valkey-module-knot
+%attr(0755, root, root) %{_libdir}/valkey/modules/knot.so
 
 %files libs
 %license COPYING
index 513a68a200837406964fdcee33dc39ab8ce9925c..b9c2aac74be2bd4a0e3abed704d39f58c4c67ba7 100644 (file)
@@ -829,11 +829,16 @@ or write to the same database. However, if multiple writers are used, they
 must be configured carefully to avoid conflicts or unexpected interactions.
 
 On the database side, the ``knot`` module must be available (e.g. by installing
-the ``redis-knot`` package from a `repository <https://www.knot-dns.cz/download/>`_)
-and loaded into the database. This is usually done by adding the following
-line to the database configuration::
+the ``redis-module-knot`` or ``valkey-module-knot`` package from
+a `repository <https://www.knot-dns.cz/download/>`_)
+and loaded into the database. This is usually done by adding one of the following
+lines to the database configuration::
 
-  loadmodule /usr/lib/redis/modules/knot.so [<parameter> <value>]...
+  loadmodule /usr/lib/x86_64-linux-gnu/redis/modules/knot.so [<parameter> <value>]...
+
+or::
+
+  loadmodule /usr/lib64/valkey/modules/knot.so [<parameter> <value>]...
 
 where the optional module parameters are: