From: Daniel Salzman Date: Thu, 12 Jun 2025 13:06:49 +0000 (+0200) Subject: distro/deb: add redis-knot subpackage X-Git-Tag: v3.5.0~11^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06a0c1eb15f977a935fca500984a43d4846ac54a;p=thirdparty%2Fknot-dns.git distro/deb: add redis-knot subpackage --- diff --git a/distro/pkg/deb/control b/distro/pkg/deb/control index d746c0b8d5..ddf3c7297c 100644 --- a/distro/pkg/deb/control +++ b/distro/pkg/deb/control @@ -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 diff --git a/distro/pkg/deb/copyright b/distro/pkg/deb/copyright index a412de48fa..0ea3c44b67 100644 --- a/distro/pkg/deb/copyright +++ b/distro/pkg/deb/copyright @@ -7,6 +7,10 @@ Files: * Copyright: 2011-2025 CZ.NIC, z.s.p.o. and contributors License: GPL-2+ +Files: src/redis/* +Copyright: 2011-2025 CZ.NIC, z.s.p.o. and contributors +License: LGPL-2.1+ + Files: m4/ax_check_compile_flag.m4 m4/ax_check_link_flag.m4 Copyright: 2008 Guido U. Draheim 2011 Maarten Bosmans @@ -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 . + . + 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 index 0000000000..2f4cf90599 --- /dev/null +++ b/distro/pkg/deb/redis-knot.install @@ -0,0 +1 @@ +usr/lib/*/knot/redis/knot.so usr/lib/redis/modules/ diff --git a/distro/pkg/deb/rules b/distro/pkg/deb/rules index 9f859a79cd..36ad98ba71 100755 --- a/distro/pkg/deb/rules +++ b/distro/pkg/deb/rules @@ -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