remove obsolete initscript and related files; add debug package [release 9.65-2mamba;Sun Oct 09 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 23:39:19 +01:00
parent 4427572483
commit 3acb14acab
2 changed files with 18 additions and 23 deletions

View File

@ -1,6 +1,5 @@
# hdparm
Hdparm is a useful system utility for setting (E)IDE hard drive parameters.
For example, hdparm can be used to tweak hard drive performance and to spin
down hard drives for power conservation.
For example, hdparm can be used to tweak hard drive performance and to spin down hard drives for power conservation.

View File

@ -1,6 +1,6 @@
Name: hdparm
Version: 9.65
Release: 1mamba
Release: 2mamba
Summary: A utility for displaying and/or setting IDE hard disk parameters
Group: System/Kernel and Hardware
Vendor: openmamba
@ -17,43 +17,39 @@ BuildRequires: glibc-devel
%description
Hdparm is a useful system utility for setting (E)IDE hard drive parameters.
For example, hdparm can be used to tweak hard drive performance and to spin
down hard drives for power conservation.
For example, hdparm can be used to tweak hard drive performance and to spin down hard drives for power conservation.
%debug_package
%prep
%setup -q
%build
%make
%make STRIP=/bin/true
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d %{buildroot}/sbin
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/rc.d/rcsysinit.d
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_mandir}/man8
%makeinstall sbindir=%{_sbindir} STRIP=/bin/true
%makeinstall
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/harddisks
install -m 744 %{SOURCE2} %{buildroot}%{_initrddir}/hdparm
ln -s ../init.d/hdparm %{buildroot}%{_sysconfdir}/rc.d/rcsysinit.d/S35hdparm
install -m755 contrib/idectl %{buildroot}%{_sbindir}
install -m755 contrib/ultrabayd %{buildroot}%{_sbindir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
/sbin/hdparm
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/harddisks
%{_initrddir}/hdparm
%{_sysconfdir}/rc.d/rcsysinit.d/*
%{_sbindir}/hdparm
%{_sbindir}/idectl
%{_sbindir}/ultrabayd
%{_mandir}/man8/*
%doc Changelog LICENSE.TXT README.acoustic
%doc LICENSE.TXT
%changelog
* Sun Oct 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 9.65-2mamba
- remove obsolete initscript and related files; add debug package
* Thu Sep 08 2022 Automatic Build System <autodist@mambasoft.it> 9.65-1mamba
- automatic version update by autodist
@ -167,11 +163,11 @@ ln -s ../init.d/hdparm %{buildroot}%{_sysconfdir}/rc.d/rcsysinit.d/S35hdparm
* Thu Mar 04 2004 Davide Madrisan <davide.madrisan@qilinux.it> 5.5-1qilnx
- new version rebuit
* Fri Nov 22 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 5.4-4qilnx
* Sat Nov 22 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 5.4-4qilnx
- removed chkconfig execution (it now starts in rc.sysinit phase)
- added rcsysinit.d service symlink
* Wed Nov 18 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 5.4-3qilnx
* Tue Nov 18 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 5.4-3qilnx
- changed service precedence from 10 to 09
* Wed Nov 12 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 5.4-2qilnx