public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bind] rawhide: _libexec/generate-rndc-key.sh is used by freeipa
@ 2026-07-02 14:45
0 siblings, 0 replies; only message in thread
From: @ 2026-07-02 14:45 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/bind
Branch : rawhide
Commit : 5cc93baa3a419963f211c74608b36f7ca5430899
Author : Petr Menšík <pemensik@redhat.com>
Date : 2026-07-02T12:54:49+02:00
Stats : +15/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/bind/c/5cc93baa3a419963f211c74608b36f7ca5430899?branch=rawhide
Log:
_libexec/generate-rndc-key.sh is used by freeipa
Provide compatibility symlink until it is replaced. Freeipa calls the
original place for script used to generate /etc/rndc.key. Preferred
variant should be "systemctl restart named-setup-rndc.service" command.
Until that is used everywhere, provide compatibility fix.
---
diff --git a/bind.spec b/bind.spec
index d7b44b9..d82e505 100644
--- a/bind.spec
+++ b/bind.spec
@@ -721,6 +721,7 @@ install -p -m 644 %{SOURCE51} ${RPM_BUILD_ROOT}%{_tmpfilesdir}/%{name}-chroot.co
%global main_man5 named.conf rndc.conf
%global main_unit named.service named-setup-rndc.service
%global main_lib filter-{a,aaaa}
+%global main_libexec generate-rndc-key.sh
# Alternatives touches symlinks targets
for BIN in %{utils_bin1} %{main_bin1} %{dnssec_utils_bin1}; do
@@ -768,6 +769,9 @@ done
--follower %{_sbindir}/%{1} %{upname}-%{1} %{_sbindir}/%{1}%{program_suffix} \\\
--follower %{_mandir}/man%{2}/%{1}.%{2}%{manext} %{upname}-%{1}.%{2} %{_mandir}/man%{2}/%{1}%{program_suffix}.%{2}%{manext}
+%define altflibexec() \\\
+ --follower %{_libexecdir}/%{1} %{upname}-%{1} %{_libexecdir}/%{name}/%{1}
+
%define altflibman() \\\
--follower %{_libdir}/bind/%{1}.so %{upname}-%{1}.so %{_libdir}/bind/%{1}.so%{program_suffix} \\\
--follower %{_mandir}/man%{2}/%{1}.%{2}%{manext} %{upname}-%{1}.%{2} %{_mandir}/man%{2}/%{1}%{program_suffix}.%{2}%{manext}
@@ -801,6 +805,12 @@ done
rm -f -- "$MANX"; \
fi
+%define altrmlibexec() \
+ BINX="%{_libexecdir}/%{1}"; \
+ if ! [ -L "$BINX" ] && [ -f "$BINX" ] && [ -x "$BINX" ]; then \
+ rm -f -- "$BINX"; \
+ fi
+
%define altrmman() \
MANX="%{_mandir}/man%{2}/%{1}.%{2}%{?manext}"; \
if ! [ -L "$MANX" ] && [ -f "$MANX" ]; then \
@@ -856,6 +866,10 @@ fi
%{altrmlibman $LIB 8}
ALTS+="%{altflibman $LIB 8}"
done
+ for LIBEXEC in %{main_libexec}; do
+ %{altrmlibexec $LIBEXEC}
+ ALTS+="%{altflibexec $LIBEXEC}"
+ done
for UNIT in %{main_unit}; do
%{altrmunit $UNIT}
done
@@ -1021,6 +1035,7 @@ fi;
%endif
%{_libexecdir}/%{name}/generate-rndc-key.sh
%{_libexecdir}/%{name}/setup-named-softhsm.sh
+%ghost %{_libexecdir}/generate-rndc-key.sh
# man pages
%{_mandir}/man1/mdig%{program_suffix}.1*
%{_mandir}/man1/named-checkconf%{program_suffix}.1*
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-02 14:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-02 14:45 [rpms/bind] rawhide: _libexec/generate-rndc-key.sh is used by freeipa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox