fix hardlinks

This commit is contained in:
trevorb 2025-01-20 16:23:12 +11:00
parent ae9676d5c2
commit b3c3a293e2

View File

@ -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 <trevorb@koozali.org> 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 <trevorb@koozali.org> 1.10-3
- check that systemctl exists in post install
- symlink executables to legacy sme directory