makedumpfile: re-use source Makefile's install logic
Resolves: RHEL-29044 Upstream: Fedora Conflict: None commit f7bd239656269ea777454fe6c541aa0decaa4545 Author: Coiby Xu <coxu@redhat.com> Date: Tue Apr 9 07:26:13 2024 +0800 makedumpfile: re-use source Makefile's install logic Signed-off-by: Coiby Xu <coxu@redhat.com> Reviewed-by: Philipp Rudo <prudo@redhat.com> Reviewed-by: Dave Young <dyoung@redhat.com> Signed-off-by: Lichen Liu <lichliu@redhat.com>
This commit is contained in:
parent
b2d9f8e184
commit
61137b101b
@ -279,14 +279,12 @@ install -m 755 %{SOURCE201} %{buildroot}/%{dracutdir}/99zz-fadumpinit/module-set
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# makedumpfile
|
# makedumpfile
|
||||||
install -m 755 makedumpfile-%{mkdf_ver}/makedumpfile $RPM_BUILD_ROOT/usr/sbin/makedumpfile
|
|
||||||
install -m 644 makedumpfile-%{mkdf_ver}/makedumpfile.8 $RPM_BUILD_ROOT/%{_mandir}/man8/makedumpfile.8
|
|
||||||
install -m 644 makedumpfile-%{mkdf_ver}/makedumpfile.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5/makedumpfile.conf.5
|
|
||||||
install -m 644 makedumpfile-%{mkdf_ver}/makedumpfile.conf $RPM_BUILD_ROOT/%{_sysconfdir}/makedumpfile.conf.sample
|
|
||||||
install -m 755 -D makedumpfile-%{mkdf_ver}/eppic_makedumpfile.so $RPM_BUILD_ROOT/%{_libdir}/eppic_makedumpfile.so
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/share/makedumpfile/eppic_scripts/
|
|
||||||
install -m 644 makedumpfile-%{mkdf_ver}/eppic_scripts/* $RPM_BUILD_ROOT/usr/share/makedumpfile/eppic_scripts/
|
|
||||||
|
|
||||||
|
make DESTDIR=%{buildroot} -C makedumpfile-%{mkdf_ver} install
|
||||||
|
install -m 644 -D makedumpfile-%{mkdf_ver}/makedumpfile.conf %{buildroot}/%{_sysconfdir}/makedumpfile.conf.sample
|
||||||
|
rm %{buildroot}/%{_sbindir}/makedumpfile-R.pl
|
||||||
|
|
||||||
|
install -m 755 -D makedumpfile-%{mkdf_ver}/eppic_makedumpfile.so %{buildroot}/%{_libdir}/eppic_makedumpfile.so
|
||||||
|
|
||||||
%post -n kdump-utils
|
%post -n kdump-utils
|
||||||
# don't try to systemctl preset the kdump service for old kexec-tools
|
# don't try to systemctl preset the kdump service for old kexec-tools
|
||||||
@ -389,8 +387,8 @@ fi
|
|||||||
%files -n makedumpfile
|
%files -n makedumpfile
|
||||||
%license makedumpfile-%{mkdf_ver}/COPYING
|
%license makedumpfile-%{mkdf_ver}/COPYING
|
||||||
%{_sbindir}/makedumpfile
|
%{_sbindir}/makedumpfile
|
||||||
%{_mandir}/man5/makedumpfile.conf.5.gz
|
%{_mandir}/man5/makedumpfile.conf.5.*
|
||||||
%{_mandir}/man8/makedumpfile.8.gz
|
%{_mandir}/man8/makedumpfile.8.*
|
||||||
%{_sysconfdir}/makedumpfile.conf.sample
|
%{_sysconfdir}/makedumpfile.conf.sample
|
||||||
%{_libdir}/eppic_makedumpfile.so
|
%{_libdir}/eppic_makedumpfile.so
|
||||||
%{_datadir}/makedumpfile/
|
%{_datadir}/makedumpfile/
|
||||||
|
Loading…
Reference in New Issue
Block a user