]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
distro/deb: add redis-knot subpackage
authorDaniel Salzman <daniel.salzman@nic.cz>
Thu, 12 Jun 2025 13:06:49 +0000 (15:06 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Fri, 12 Sep 2025 14:50:41 +0000 (16:50 +0200)
distro/pkg/deb/control
distro/pkg/deb/copyright
distro/pkg/deb/redis-knot.install [new file with mode: 0644]
distro/pkg/deb/rules

index d746c0b8d5d798b3261f7ccac73fffb999a82ad2..ddf3c7297cb9b9de4e5dad3a9577d9b0cc4f9441 100644 (file)
@@ -19,6 +19,7 @@ Build-Depends:
  libedit-dev,
  libfstrm-dev,
  libgnutls28-dev,
+ libhiredis-dev,
  libidn2-dev,
  liblmdb-dev,
  libmaxminddb-dev,
@@ -252,6 +253,21 @@ Description: geoip module for Knot DNS
  .
  This package contains geoip module for geography-based responses.
 
+Package: redis-knot
+Architecture: any
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends},
+Description: A Redis module for Knot DNS
+ Knot DNS is a fast, authoritative only, high performance, feature
+ full and open source name server.
+ .
+ Knot DNS is developed by CZ.NIC Labs, the R&D department of .CZ
+ registry and hence is well suited to run anything from the root
+ zone, the top-level domain, to many smaller standard domain names.
+ .
+ This package contains a Redis module for Knot DNS.
+
 Package: knot-doc
 Architecture: all
 Multi-Arch: foreign
index a412de48fa5073adf18a69977ad488428b1f9958..0ea3c44b673f67e7d5cf4d11906e1516136c6537 100644 (file)
@@ -7,6 +7,10 @@ Files: *
 Copyright: 2011-2025 CZ.NIC, z.s.p.o. and contributors <knot-dns@labs.nic.cz>
 License: GPL-2+
 
+Files: src/redis/*
+Copyright: 2011-2025 CZ.NIC, z.s.p.o. and contributors <knot-dns@labs.nic.cz>
+License: LGPL-2.1+
+
 Files: m4/ax_check_compile_flag.m4 m4/ax_check_link_flag.m4
 Copyright: 2008 Guido U. Draheim <guidod@gmx.de>
            2011 Maarten Bosmans <mkbosmans@gmail.com>
@@ -109,6 +113,23 @@ License: LGPL-2+
  On Debian GNU/Linux systems, the complete text of the GNU Lesser
  General Public License can be found in `/usr/share/common-licenses/LGPL-2'.
 
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, see <https://www.gnu.org/licenses/>.
+ .
+ On Debian GNU/Linux systems, the complete text of the GNU Lesser
+ General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
 License: FSFAP
  Copying and distribution of this file, with or without modification, are
  permitted in any medium without royalty provided the copyright notice
diff --git a/distro/pkg/deb/redis-knot.install b/distro/pkg/deb/redis-knot.install
new file mode 100644 (file)
index 0000000..2f4cf90
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/*/knot/redis/knot.so usr/lib/redis/modules/
index 9f859a79cd0cc446adfe779242162c8a0d38ccb1..36ad98ba71c70a974835d7cf679711b1f4981591 100755 (executable)
@@ -46,6 +46,7 @@ override_dh_auto_configure:
          --disable-silent-rules \
          --enable-xdp=yes \
          --enable-quic=yes \
+         --enable-redis=auto \
          --disable-static \
          $(FASTPARSER)
 
@@ -66,6 +67,9 @@ 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; \
+       fi
 
 override_dh_auto_install-indep:
        dh_auto_install -- install-html