From 6a662f10cfbc9312267eb5bcfeeef437f6c5e55dec511aba5080447c17c78c26 Mon Sep 17 00:00:00 2001 From: Michal Hrusecky Date: Wed, 24 Jul 2024 15:02:36 +0000 Subject: [PATCH] - split knot-utils with kdig and friends OBS-URL: https://build.opensuse.org/package/show/server:dns/knot?expand=0&rev=68 --- knot.changes | 5 +++++ knot.spec | 27 ++++++++++++++++++++++++--- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/knot.changes b/knot.changes index 75cd58d..5d242ae 100644 --- a/knot.changes +++ b/knot.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 24 14:57:48 UTC 2024 - Michal Hrusecky + +- split knot-utils with kdig and friends + ------------------------------------------------------------------- Tue Jul 23 20:59:22 UTC 2024 - Michal Hrusecky diff --git a/knot.spec b/knot.spec index 289d4b1..6adbb1b 100644 --- a/knot.spec +++ b/knot.spec @@ -46,6 +46,7 @@ Source2: knot-tmp.conf Source3: https://secure.nic.cz/files/knot-dns/%{pkg_name}-%{version}.tar.xz.asc Source4: system-user-knot.conf Source99: knot.keyring +Recommends: knot-utils BuildRequires: libcap-ng-devel BuildRequires: libedit-devel BuildRequires: libnghttp2-devel @@ -103,6 +104,19 @@ removal. This package contains headers for knot. +%package utils +# +Summary: Utilities to query and test DNS coming from Knot project +Group: Productivity/Networking/DNS/Utilities + +%description utils +Knot DNS is a DNS server. It implements only the authoritative domain +name service. It uses a multi-threaded and mostly lock-free +implementation and can operate non-stop during zone addition or +removal. + +This package contains tools to query and test DNS like kdig and knsupdate. + %package -n %{libdnssec} # Summary: DNSSEC support functions for Knot DNS @@ -186,7 +200,12 @@ This package contains a library for a zone record scanner. %install %make_install STRIP="/bin/true" -find %{buildroot} +for i in kdig khost knsec3hash knsupdate; do + find %{buildroot} -name "$i*" | sed 's|%{buildroot}||' | while read fl; do + echo "$fl*" >> utils + echo "%exclude $fl*" >> no-utils + done +done install -d %{buildroot}%{_docdir}/%{pkg_name} install -d %{buildroot}%{_docdir}/%{pkg_name}/samples/ rm %{buildroot}%{_sysconfdir}/%{pkg_name}/* @@ -242,11 +261,11 @@ fi %postun -n %{libknot} -p /sbin/ldconfig %postun -n %{libzscanner} -p /sbin/ldconfig -%files +%files -f no-utils %dir %attr(750,knot,knot) %{_sysconfdir}/%{pkg_name} %config(noreplace) %attr(640,knot,knot) %{_sysconfdir}/%{pkg_name}/%{pkg_name}.conf -%{_sbindir}/* %{_bindir}/* +%{_sbindir}/* %{_mandir}/man?/* %doc %{_docdir}/%{pkg_name} %if %{with systemd} @@ -267,6 +286,8 @@ fi %files -n %{libzscanner} %{_libdir}/libzscanner.so.* +%files utils -f utils + %files devel %{_includedir}/knot/ %{_libdir}/libdnssec.so