From b3c3a293e22231965a369713d61b940946375224 Mon Sep 17 00:00:00 2001 From: trevorb Date: Mon, 20 Jan 2025 16:23:12 +1100 Subject: [PATCH] fix hardlinks --- daemontools-encore.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/daemontools-encore.spec b/daemontools-encore.spec index 559d08e..088de04 100644 --- a/daemontools-encore.spec +++ b/daemontools-encore.spec @@ -1,7 +1,7 @@ Summary: A collection of tools for managing UNIX services Name: daemontools-encore Version: 1.10 -Release: 4%{dist}.sme +Release: 4%{dist} License: Public domain Group: Utilities/System URL: http://untroubled.org/daemontools-encore/ @@ -49,6 +49,11 @@ mkdir -p %{buildroot}%{_sysconfdir}/init install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/init/svscanboot.conf %endif mkdir -p %{buildroot}/service +# symink executables to legacy SME directory +mkdir -p %{buildroot}/usr/local/bin +for prog in envdir envuidgid fghack multilog pgrphack readproctitle setlock setuidgid softlimit supervise svc svok svscan svscanboot svstat ; do + ln %{buildroot}/usr/bin/$prog %{buildroot}/usr/local/bin/$prog +done %post %if %{rhel} >= 7 @@ -105,6 +110,7 @@ fi %defattr(-,root,root) %attr(0755,root,root) /usr/bin/* /usr/share/man/man8/* +/usr/local/bin/* %if %{rhel} >= 7 /usr/lib/systemd/system/daemontools.service %endif @@ -115,6 +121,10 @@ fi %doc README CHANGES CHANGES.djb LICENSE TODO %changelog +* Mon Jan 20 2025 Trevor Batley 1.10-4 +- add debug_pkg %{nil} to remove empty debuginfo file error +- fix symlink of executables to legacy sme directory + * Thu Jan 16 2025 Trevor Batley 1.10-3 - check that systemctl exists in post install - symlink executables to legacy sme directory