Compare commits
46 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e93f63e14a | ||
|
|
52aa1c6b27 | ||
|
|
ddd930d752 | ||
|
|
5f2a9a0ff6 | ||
|
|
dd527b7f5e | ||
|
|
6c5a438f27 | ||
|
|
4beee8e3ef | ||
|
|
da48f736c7 | ||
|
|
14ad9e8872 | ||
|
|
c4c7522355 | ||
|
|
d143e24bd6 | ||
|
|
c7a05c603f | ||
|
|
bfa25fcbdf | ||
|
|
dd8ae2dfdc | ||
|
|
5d161e7b83 | ||
|
|
e032f5a7bb | ||
|
|
2a8b2da1f1 | ||
|
|
a9e74b73bb | ||
|
|
b123566beb | ||
|
|
0c873d2b5d | ||
|
|
75d5fcc8bf | ||
|
|
7d567e615b | ||
|
|
2f4bd0e393 | ||
|
|
8b65df1887 | ||
|
|
268a49299e | ||
|
|
bfd23ff357 | ||
|
|
7d87ec6eb5 | ||
|
|
d00ce92d5c | ||
|
|
45f01e80d0 | ||
|
|
408cf4e78f | ||
|
|
8ea3b7cd99 | ||
|
|
dbe8134e54 |
||
|
|
fbdc7bb308 | ||
|
|
e87a1b23b5 | ||
|
|
ebadb0cd47 | ||
|
|
5342475850 | ||
|
|
d5eb75216c | ||
|
|
22e44f1851 | ||
|
|
0f4cb8a10a | ||
|
|
ffc3405998 | ||
|
|
1c209927f1 | ||
|
|
2810363627 | ||
|
|
51b9a96e1c | ||
|
|
15d4874bf9 | ||
|
|
16c38465b5 | ||
|
|
be01bbef6a |
4 changed files with 364 additions and 102 deletions
|
|
@ -1,26 +0,0 @@
|
|||
Author: Tomas Krizek <tomas.krizek@nic.cz>
|
||||
Date: 2019-02-28 14:26:56 +0100
|
||||
|
||||
test_net: disable UDP send on unconnected
|
||||
|
||||
This test started to fail with 5.0 kernel in F30+ on aarch64 and s390x.
|
||||
The functionality isn't used by Knot DNS, so disabling this test until
|
||||
the issue is resolved should be safe.
|
||||
|
||||
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1675235
|
||||
|
||||
diff --git a/tests/contrib/test_net.c b/tests/contrib/test_net.c
|
||||
index 0a22abbbc..6ec4bda31 100644
|
||||
--- a/tests/contrib/test_net.c
|
||||
+++ b/tests/contrib/test_net.c
|
||||
@@ -310,10 +310,6 @@ static void test_unconnected(void)
|
||||
r = net_dgram_recv(sock, buffer, buffer_len, TIMEOUT_SHORT);
|
||||
is_int(KNOT_ETIMEOUT, r, "UDP, receive timeout on unconnected socket");
|
||||
|
||||
- struct sockaddr_storage server_addr = addr_from_socket(server);
|
||||
- r = net_dgram_send(sock, buffer, buffer_len, &server_addr);
|
||||
- is_int(buffer_len, r, "UDP, send on defined address");
|
||||
-
|
||||
close(sock);
|
||||
|
||||
// TCP
|
||||
|
|
@ -11,7 +11,19 @@ om9rg89Ih876PA53vUXBB+FWP9QOFDcOfz3nMjCrLbMzhTsAzrNFXxchzLq+66CL
|
|||
qsQQytDVFpLI+X++sKRTOHkq6vV1bAPjlljrannLnn1y/DvkOOkiHOdYyjmR7Dfk
|
||||
vxgcWh/3Gx4J9gipxZITOr7LamEYgHfElY/UWCtc1Vjt8Xvgt4dofDpvSwY9YzgR
|
||||
WxJKC5ewYdqTCI+zxL1f0fjkeiRYNi959UMMjgdcY7Zpi8oPPQmlyBw15QARAQAB
|
||||
tCZEYW5pZWwgU2Fsem1hbiA8ZGFuaWVsLnNhbHptYW5AbmljLmN6PokCVAQTAQoA
|
||||
tCZEYW5pZWwgU2Fsem1hbiA8ZGFuaWVsLnNhbHptYW5AbmljLmN6PokCPQQTAQoA
|
||||
JwUCWWOUFwIbAwUJA8JnAAULCQgHAwUVCgkICwUWAgMBAAIeAQIXgAAKCRAQu3r2
|
||||
/rvWq1+eEAClhOEK2MZOz+nwJSeX7iINKbw477Y+LSvYkKG81pve+xtblQEn7rI3
|
||||
cYnDrqlUb3bXdbMHujYrg1fPoccpCvf6d/JvlN6WXCE25R+GR6vxr6v7jycHdSOb
|
||||
Fe4sTcwce6IViwiWiSizh4UCkz8285LjLcf3AnT2v6G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OGeu7+5xnY
|
||||
muP7jTGlFuP4Q64Vt5WAc54dhILCy2pRImMl/0Mfjq3WOOdqSQViaoJpHFkgjy8z
|
||||
9MFX/hZqLC57oDmNnI8X/bG/ApGMQD7UoeAH4recf7jmtqRyLUeDd2wOEsSRICty
|
||||
czH/m43Uct4kShXP2ui1vqAP8p9UtfdImgyNWV91J35SjxSiFvp+YAuNn+jsnDiV
|
||||
BzYJAlk/rdN1h6E+cDfp/GYaXDjVxLy8bipuEN5icZGMH20tkiVsvPQ5J++AOSre
|
||||
I830E62IJBKU9kwQa9iSbWxtcnxJmOEVBGN2gJ+2WAd2uA9ZCCJafTXiVe57Icxd
|
||||
2P5zRqrDn0bAmIyl04NKnVAnthQG+b6hEuuaKhTkj2TvhmXkH84BcAvKC82yNBc1
|
||||
zrzxfLI/WPZJrh2IVhXWVhW13Yd6eUmqUk8p0hQ5ZhdL9D6fQJSXxkdiauMJov1C
|
||||
njR/++NOtERBSk+7hbTb921q/brMZXgJ971u31b0sRoefybbbjHSWjNVSP6ENn44
|
||||
eQfS06CUmc7oN18bGhHmlmhK4az9i5eQ4HlUE5K9f4z7yQRTM6XfIpzDrWOfFfaY
|
||||
vYkcC6CbR8xnb+LOlqwKHzKVwoWGLSreeShqPfazQEjR3V52XdFmyVIrltj7JRxi
|
||||
tW29kqO09AEalR9l
|
||||
=t42C
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
|
|
|
|||
347
knot.spec
347
knot.spec
|
|
@ -2,12 +2,19 @@
|
|||
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}}
|
||||
|
||||
%define GPG_CHECK 1
|
||||
%if 0%{?fedora} >= 40 || 0%{?rhel} >= 9
|
||||
# use modern %pyproject_* macros on distros which support them
|
||||
%define PYPROJECT 1
|
||||
%else
|
||||
# use older %py3_* macros on older/other distros
|
||||
%define PYPROJECT 0
|
||||
%endif
|
||||
%define BASE_VERSION %(echo "%{version}" | sed 's/^\\([^.]\\+\\.[^.]\\+\\).*/\\1/')
|
||||
%define repodir %{_builddir}/%{name}-%{version}
|
||||
|
||||
Summary: High-performance authoritative DNS server
|
||||
Name: knot
|
||||
Version: 3.1.6
|
||||
Version: 3.5.2
|
||||
Release: 1%{?dist}
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://www.knot-dns.cz
|
||||
|
|
@ -22,9 +29,6 @@ Source100: gpgkey-742FA4E95829B6C5EAC6B85710BB7AF6FEBBD6AB.gpg.asc
|
|||
BuildRequires: gnupg2
|
||||
%endif
|
||||
|
||||
# Test fails on F30+ aarch/s390x for unknown reason, but it is not neccassary for Knot DNS
|
||||
Patch1: 01-test_net-disable-udp-send-on-unconnected.patch
|
||||
|
||||
# Required dependencies
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
|
|
@ -32,7 +36,7 @@ BuildRequires: libtool
|
|||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pkgconfig(liburcu)
|
||||
BuildRequires: pkgconfig(gnutls) >= 3.3
|
||||
BuildRequires: pkgconfig(gnutls)
|
||||
BuildRequires: pkgconfig(libedit)
|
||||
|
||||
# Optional dependencies
|
||||
|
|
@ -42,11 +46,26 @@ BuildRequires: pkgconfig(libmnl)
|
|||
BuildRequires: pkgconfig(libnghttp2)
|
||||
BuildRequires: pkgconfig(libsystemd)
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
BuildRequires: pkgconfig(hiredis)
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
BuildRequires: softhsm
|
||||
%endif
|
||||
# dnstap dependencies
|
||||
BuildRequires: pkgconfig(libfstrm)
|
||||
BuildRequires: pkgconfig(libprotobuf-c)
|
||||
# geoip dependencies
|
||||
BuildRequires: pkgconfig(libmaxminddb)
|
||||
# XDP dependencies
|
||||
BuildRequires: pkgconfig(libbpf)
|
||||
# Python modules (python3-libknot, knot-exporter) dependencies
|
||||
BuildRequires: python3-devel
|
||||
%if 0%{?PYPROJECT}
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-hatchling
|
||||
%else
|
||||
BuildRequires: python3-setuptools
|
||||
%endif
|
||||
|
||||
# Distro-dependent dependencies
|
||||
%if 0%{?suse_version}
|
||||
|
|
@ -54,46 +73,41 @@ BuildRequires: python3-Sphinx
|
|||
BuildRequires: lmdb-devel
|
||||
BuildRequires: protobuf-c
|
||||
Requires(pre): pwdutils
|
||||
%if 0%{?sle_version} != 150400
|
||||
BuildRequires: pkgconfig(libxdp)
|
||||
%endif
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||
BuildRequires: python-sphinx
|
||||
BuildRequires: lmdb-devel
|
||||
%endif
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
%if 0%{?fedora} || 0%{?rhel}
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: pkgconfig(lmdb)
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 9
|
||||
BuildRequires: pkgconfig(libxdp)
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if 0%{?centos} == 7 || 0%{?rhel} == 7
|
||||
# disable XDP on old EL
|
||||
%define configure_xdp --enable-xdp=no
|
||||
%else
|
||||
%define use_xdp 1
|
||||
%if 0%{?rhel} >= 8 || 0%{?suse_version}
|
||||
# enable XDP on recent EL using embedded libbpf
|
||||
%define use_xdp 1
|
||||
%define configure_xdp --enable-xdp=yes
|
||||
BuildRequires: pkgconfig(libelf)
|
||||
%else
|
||||
# XDP is auto-enabled when libbpf is present
|
||||
BuildRequires: pkgconfig(libbpf) >= 0.0.6
|
||||
%endif
|
||||
%if 0%{?rhel} >= 9 || 0%{?suse_version} || 0%{?fedora}
|
||||
%define configure_quic --enable-quic=yes
|
||||
%endif
|
||||
|
||||
Requires(post): systemd %{_sbindir}/runuser
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
|
||||
# Knot DNS 2.7+ isn't compatible with earlier knot-resolver
|
||||
Conflicts: knot-resolver < 3.0.0
|
||||
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
Recommends: %{name}-keymgr
|
||||
|
||||
%if 0%{?suse_version}
|
||||
Provides: group(knot)
|
||||
%endif
|
||||
|
||||
%description
|
||||
Knot DNS is a high-performance authoritative DNS server implementation.
|
||||
|
||||
%package libs
|
||||
Summary: Libraries used by the Knot DNS server and client applications
|
||||
# Knot DNS 3.5+ isn't compatible with earlier knot-resolver
|
||||
Conflicts: knot-resolver < 5.7.6-3
|
||||
|
||||
%description libs
|
||||
The package contains shared libraries used by the Knot DNS server and
|
||||
|
|
@ -110,10 +124,26 @@ included in knot-libs package.
|
|||
%package utils
|
||||
Summary: DNS client utilities shipped with the Knot DNS server
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
# Debian package compat
|
||||
Provides: %{name}-dnsutils = %{version}-%{release}
|
||||
|
||||
%description utils
|
||||
The package contains DNS client utilities shipped with the Knot DNS server.
|
||||
|
||||
%package dnssecutils
|
||||
Summary: DNSSEC tools shipped with the Knot DNS server
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description dnssecutils
|
||||
The package contains DNSSEC tools shipped with the Knot DNS server.
|
||||
|
||||
%package keymgr
|
||||
Summary: Knot DNS key management utility
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description keymgr
|
||||
The package contains keymgr program for Knot DNS key management.
|
||||
|
||||
%package module-dnstap
|
||||
Summary: dnstap module for Knot DNS
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
|
@ -128,10 +158,34 @@ Requires: %{name} = %{version}-%{release}
|
|||
%description module-geoip
|
||||
The package contains geoip Knot DNS module for geography-based responses.
|
||||
|
||||
%package exporter
|
||||
Summary: Prometheus exporter for Knot DNS
|
||||
BuildArch: noarch
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
%description exporter
|
||||
The package provides Python Prometheus exporter for Knot DNS.
|
||||
|
||||
%package -n python3-libknot
|
||||
Summary: Python bindings for libknot
|
||||
BuildArch: noarch
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python3-libknot}
|
||||
|
||||
%description -n python3-libknot
|
||||
The package provides Python bindings for the libknot shared library.
|
||||
|
||||
%package -n valkey-module-knot
|
||||
Summary: Valkey module for Knot DNS.
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
%description -n valkey-module-knot
|
||||
The package provides Valkey module for Knot DNS.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for the Knot DNS server
|
||||
BuildArch: noarch
|
||||
Provides: bundled(jquery) = 3.1.0
|
||||
Provides: bundled(jquery)
|
||||
|
||||
%description doc
|
||||
The package contains documentation for the Knot DNS server.
|
||||
|
|
@ -147,6 +201,11 @@ gpg2 --verify %{SOURCE1} %{SOURCE0}
|
|||
%endif
|
||||
%autosetup -p1
|
||||
|
||||
# Create a sysusers.d config file
|
||||
cat >knot.sysusers.conf <<EOF
|
||||
u knot - 'Knot DNS server' %{_sharedstatedir}/knot -
|
||||
EOF
|
||||
|
||||
%build
|
||||
# disable debug code (causes unused warnings)
|
||||
CFLAGS="%{optflags} -DNDEBUG -Wno-unused"
|
||||
|
|
@ -163,9 +222,11 @@ 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_xdp} \
|
||||
%{?configure_quic} \
|
||||
--enable-redis=auto \
|
||||
--disable-static \
|
||||
--enable-dnstap=yes \
|
||||
--with-module-dnstap=shared \
|
||||
|
|
@ -173,9 +234,43 @@ CFLAGS="%{optflags} -DNDEBUG -Wno-unused"
|
|||
make %{?_smp_mflags}
|
||||
make html
|
||||
|
||||
# build python3-libknot
|
||||
pushd python/libknot
|
||||
%if %{PYPROJECT}
|
||||
%pyproject_wheel
|
||||
%else
|
||||
%py3_build
|
||||
%endif
|
||||
popd
|
||||
# build knot-exporter
|
||||
pushd python/knot_exporter
|
||||
%if %{PYPROJECT}
|
||||
%pyproject_wheel
|
||||
%else
|
||||
%py3_build
|
||||
%endif
|
||||
popd
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
# install python3-libknot
|
||||
pushd python/libknot
|
||||
%if %{PYPROJECT}
|
||||
%pyproject_install
|
||||
%else
|
||||
%py3_install
|
||||
%endif
|
||||
popd
|
||||
# install knot-exporter
|
||||
pushd python/knot_exporter
|
||||
%if %{PYPROJECT}
|
||||
%pyproject_install
|
||||
%else
|
||||
%py3_install
|
||||
%endif
|
||||
popd
|
||||
|
||||
# install documentation
|
||||
install -d -m 0755 %{buildroot}%{_pkgdocdir}/samples
|
||||
install -p -m 0644 -t %{buildroot}%{_pkgdocdir}/samples samples/*.zone*
|
||||
|
|
@ -188,12 +283,11 @@ rm -f %{buildroot}%{_pkgdocdir}/html/.buildinfo
|
|||
rm %{buildroot}%{_sysconfdir}/%{name}/*
|
||||
install -p -m 0644 -D %{repodir}/samples/%{name}.sample.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
install -p -m 0644 -D %{repodir}/distro/common/cz.nic.knotd.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/cz.nic.knotd.conf
|
||||
install -p -m 0644 -D %{repodir}/distro/common/cz.nic.knotd.conf %{buildroot}%{_datadir}/dbus-1/system.d/cz.nic.knotd.conf
|
||||
%endif
|
||||
|
||||
# install systemd files
|
||||
install -p -m 0644 -D %{repodir}/distro/common/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
||||
install -p -m 0644 -D %{repodir}/distro/common/%{name}.tmpfiles %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||
%if 0%{?suse_version}
|
||||
ln -s service %{buildroot}/%{_sbindir}/rcknot
|
||||
%endif
|
||||
|
|
@ -205,20 +299,17 @@ install -d -m 0770 -D %{buildroot}%{_sharedstatedir}/knot
|
|||
# remove libarchive files
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
install -m0644 -D knot.sysusers.conf %{buildroot}%{_sysusersdir}/knot.conf
|
||||
|
||||
%check
|
||||
V=1 make check
|
||||
|
||||
%pre
|
||||
getent group knot >/dev/null || groupadd -r knot
|
||||
getent passwd knot >/dev/null || \
|
||||
useradd -r -g knot -d %{_sharedstatedir}/knot -s /sbin/nologin \
|
||||
-c "Knot DNS server" knot
|
||||
%if 0%{?suse_version}
|
||||
%service_add_pre knot.service
|
||||
%endif
|
||||
|
||||
%post
|
||||
systemd-tmpfiles --create %{_tmpfilesdir}/knot.conf &>/dev/null || :
|
||||
%if 0%{?suse_version}
|
||||
%service_add_post knot.service
|
||||
%else
|
||||
|
|
@ -250,56 +341,70 @@ systemd-tmpfiles --create %{_tmpfilesdir}/knot.conf &>/dev/null || :
|
|||
%license COPYING
|
||||
%doc %{_pkgdocdir}
|
||||
%exclude %{_pkgdocdir}/html
|
||||
%attr(770,root,knot) %dir %{_sysconfdir}/knot
|
||||
%attr(750,root,knot) %dir %{_sysconfdir}/knot
|
||||
%config(noreplace) %attr(640,root,knot) %{_sysconfdir}/knot/knot.conf
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/cz.nic.knotd.conf
|
||||
%config(noreplace) %attr(644,root,root) %{_datadir}/dbus-1/system.d/cz.nic.knotd.conf
|
||||
%endif
|
||||
%attr(770,root,knot) %dir %{_sharedstatedir}/knot
|
||||
%dir %{_libdir}/knot
|
||||
%dir %{_libdir}/knot/modules-*
|
||||
%{_unitdir}/knot.service
|
||||
%{_tmpfilesdir}/knot.conf
|
||||
%{_bindir}/kzonecheck
|
||||
%{_bindir}/kzonesign
|
||||
%{_sbindir}/kcatalogprint
|
||||
%{_sbindir}/kjournalprint
|
||||
%{_sbindir}/keymgr
|
||||
%{_sbindir}/knotc
|
||||
%{_sbindir}/knotd
|
||||
%if 0%{?suse_version}
|
||||
%{_sbindir}/rcknot
|
||||
%endif
|
||||
%{_mandir}/man1/kzonecheck.*
|
||||
%{_mandir}/man1/kzonesign.*
|
||||
%{_mandir}/man5/knot.conf.*
|
||||
%{_mandir}/man8/kcatalogprint.*
|
||||
%{_mandir}/man8/kjournalprint.*
|
||||
%{_mandir}/man8/keymgr.*
|
||||
%{_mandir}/man8/knotc.*
|
||||
%{_mandir}/man8/knotd.*
|
||||
%ghost %attr(770,root,knot) %dir %{_rundir}/knot
|
||||
%{_sysusersdir}/knot.conf
|
||||
|
||||
%files utils
|
||||
%{_bindir}/kdig
|
||||
%{_bindir}/khost
|
||||
%{_bindir}/knsec3hash
|
||||
%{_bindir}/knsupdate
|
||||
%if 0%{?use_xdp}
|
||||
%{_sbindir}/kxdpgun
|
||||
%{_mandir}/man8/kxdpgun.*
|
||||
%endif
|
||||
%{_mandir}/man1/kdig.*
|
||||
%{_mandir}/man1/khost.*
|
||||
%{_mandir}/man1/knsec3hash.*
|
||||
%{_mandir}/man1/knsupdate.*
|
||||
|
||||
%files dnssecutils
|
||||
%{_bindir}/knsec3hash
|
||||
%{_bindir}/kzonecheck
|
||||
%{_bindir}/kzonesign
|
||||
%{_mandir}/man1/knsec3hash.*
|
||||
%{_mandir}/man1/kzonecheck.*
|
||||
%{_mandir}/man1/kzonesign.*
|
||||
|
||||
%files keymgr
|
||||
%{_sbindir}/keymgr
|
||||
%{_mandir}/man8/keymgr.*
|
||||
|
||||
%files module-dnstap
|
||||
%{_libdir}/knot/modules-*/dnstap.so
|
||||
|
||||
%files module-geoip
|
||||
%{_libdir}/knot/modules-*/geoip.so
|
||||
|
||||
%files exporter
|
||||
%{_bindir}/knot-exporter
|
||||
%{python3_sitelib}/knot_exporter
|
||||
%{python3_sitelib}/knot_exporter-*-info
|
||||
|
||||
%files -n python3-libknot
|
||||
%{python3_sitelib}/libknot
|
||||
%{python3_sitelib}/libknot-*-info
|
||||
|
||||
%files -n valkey-module-knot
|
||||
%attr(0755, root, root) %{_libdir}/valkey/modules/knot.so
|
||||
|
||||
%files libs
|
||||
%license COPYING
|
||||
%doc NEWS
|
||||
|
|
@ -326,6 +431,152 @@ systemd-tmpfiles --create %{_tmpfilesdir}/knot.conf &>/dev/null || :
|
|||
%doc %{_pkgdocdir}/html
|
||||
|
||||
%changelog
|
||||
* Fri Dec 19 2025 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.5.2-1
|
||||
- Update to 3.5.2
|
||||
|
||||
* Thu Oct 16 2025 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.5.1-1
|
||||
- Update to 3.5.1
|
||||
- Add new valkey-module-knot package
|
||||
- Split keymgr into knot-keymgr package
|
||||
|
||||
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 3.4.8-3
|
||||
- Rebuilt for Python 3.14.0rc3 bytecode
|
||||
|
||||
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 3.4.8-2
|
||||
- Rebuilt for Python 3.14.0rc2 bytecode
|
||||
|
||||
* Wed Jul 30 2025 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.4.8-1
|
||||
- Update to 3.4.8
|
||||
|
||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Thu Jun 12 2025 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.4.7-1
|
||||
- Update to 3.4.7
|
||||
- Add new knot-exporter and python3-libknot packages
|
||||
|
||||
* Thu Apr 10 2025 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.4.6-1
|
||||
- Update to 3.4.6
|
||||
|
||||
* Wed Mar 19 2025 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.4.5-1
|
||||
- Update to 3.4.5
|
||||
|
||||
* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.4.4-2
|
||||
- Add sysusers.d config file to allow rpm to create users/groups automatically
|
||||
|
||||
* Thu Jan 23 2025 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.4.4-1
|
||||
- Update to 3.4.4
|
||||
|
||||
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Tue Dec 10 2024 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.4.3-1
|
||||
- Update to 3.4.3
|
||||
|
||||
* Mon Nov 25 2024 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.4.2-1
|
||||
- Update to 3.4.2
|
||||
|
||||
* Mon Aug 26 2024 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.3.9-1
|
||||
- Update to 3.3.9
|
||||
|
||||
* Mon Jul 22 2024 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.3.8-1
|
||||
- Update to 3.3.8
|
||||
|
||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Tue Jun 25 2024 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.3.7-1
|
||||
- Update to 3.3.7
|
||||
|
||||
* Thu Jun 13 2024 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.3.6-1
|
||||
- Update to 3.3.6
|
||||
|
||||
* Thu Mar 07 2024 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.3.5-1
|
||||
- Update to 3.3.5
|
||||
|
||||
* Wed Jan 24 2024 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.3.4-1
|
||||
- Update to 3.3.4
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Wed Dec 13 2023 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.3.3-1
|
||||
- Update to 3.3.3
|
||||
|
||||
* Fri Oct 20 2023 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.3.2-1
|
||||
- Update to 3.3.2
|
||||
|
||||
* Tue Sep 12 2023 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.3.1-1
|
||||
- Update to 3.3.1
|
||||
|
||||
* Mon Aug 28 2023 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.3.0-1
|
||||
- Update to 3.3.0
|
||||
|
||||
* Thu Jul 27 2023 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.2.9-1
|
||||
- Update to 3.2.9
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.8-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Mon Jun 26 2023 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.2.8-1
|
||||
- Update to 3.2.8
|
||||
|
||||
* Tue Jun 06 2023 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.2.7-1
|
||||
- Update to 3.2.7
|
||||
- Remove unneeded tests patch
|
||||
- Use _datadir for config
|
||||
|
||||
* Fri May 12 2023 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.2.6-2
|
||||
- Add BR on libxdp on RHEL >= 9 to use with libbpf-1.x
|
||||
|
||||
* Thu Apr 06 2023 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.2.6-1
|
||||
- Update to 3.2.6
|
||||
- Sync upstream packaging improvements
|
||||
|
||||
* Thu Feb 02 2023 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.2.5-1
|
||||
- Update to 3.2.5
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Mon Dec 12 2022 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.2.4-1
|
||||
- Update to 3.2.4
|
||||
|
||||
* Mon Nov 28 2022 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.2.3-2
|
||||
- Rebuilt for libbpf 1.0 transition
|
||||
|
||||
* Mon Nov 21 2022 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.2.3-1
|
||||
- Update to 3.2.3
|
||||
|
||||
* Fri Nov 04 2022 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.2.2-2
|
||||
- New BuildRequires: libxdp (needed for libbpf >= 1.0)
|
||||
|
||||
* Tue Nov 01 2022 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.2.2-1
|
||||
- Update to 3.2.2
|
||||
|
||||
* Fri Sep 09 2022 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.2.1-1
|
||||
- Update to 3.2.1
|
||||
- Remove patches included upstream
|
||||
- Update Conflicts and move to knot-libs
|
||||
|
||||
* Mon Aug 22 2022 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.2.0-1
|
||||
- Update to 3.2.0
|
||||
- Patch: fix tests on 32-bit platforms
|
||||
- Patch: revert problematic hardening of service file
|
||||
- Enable QUIC
|
||||
- New knot-dnssecutils subpackage
|
||||
- Debian compat (knot-utils vs knot-dnsutils)
|
||||
- Remove bundled(jquery) version as it differes between distros
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.8-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Thu Apr 28 2022 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.1.8-1
|
||||
- Update to 3.1.8
|
||||
|
||||
* Wed Mar 30 2022 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.1.7-1
|
||||
- Update to 3.1.7
|
||||
|
||||
* Thu Feb 10 2022 Jakub Ružička <jakub.ruzicka@nic.cz> - 3.1.6-1
|
||||
- Update to 3.1.6
|
||||
- Add dbus config
|
||||
|
|
|
|||
4
sources
4
sources
|
|
@ -1,2 +1,2 @@
|
|||
SHA512 (knot-3.1.6.tar.xz) = daffb3658ecce1ac206a18c623329af62b03035e621c9b297cc68d521d07f61e2d55ae2afa46340b9a0671dc4147490eeb7cb4ee50fc3b91bfa4cf97f6b3e249
|
||||
SHA512 (knot-3.1.6.tar.xz.asc) = 5de99084ef64a0451d0fe40d8944479ebd3bc51c1f5519b40af86301e3dca036624f368b3982a289fae50ff07f293473218eb497be8ed07e3bac5050d1e2565d
|
||||
SHA512 (knot-3.5.2.tar.xz) = 4dd8e42088f792459859da807427024ded926c2a8fb5b9fd4596b631a184269e3d84f0cd4be9192f2546977c598c418f8d44cabccbc393f9f7cf2f0dd5adc595
|
||||
SHA512 (knot-3.5.2.tar.xz.asc) = 5f6ee7fedc0d5b904572d2f6d47858065cdc4efa7217b4e9dcbb38ae63a1533646ba2b042bb0c1fe533a3caf6ba41c81010616393d2a0adcea77712608931b38
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue