- split knot-utils with kdig and friends

OBS-URL: https://build.opensuse.org/package/show/server:dns/knot?expand=0&rev=68
This commit is contained in:
Michal Hrusecky 2024-07-24 15:02:36 +00:00 committed by Git OBS Bridge
parent ed9bc4f5bd
commit 6a662f10cf
2 changed files with 29 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 24 14:57:48 UTC 2024 - Michal Hrusecky <michal.hrusecky@opensuse.org>
- split knot-utils with kdig and friends
-------------------------------------------------------------------
Tue Jul 23 20:59:22 UTC 2024 - Michal Hrusecky <michal.hrusecky@opensuse.org>

View File

@ -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