- add --help option (#143916)
This commit is contained in:
parent
4ac7da01ad
commit
a06ed41cb3
@ -1 +1 @@
|
|||||||
hdparm-5.7.tar.gz
|
hdparm-5.8.tar.gz
|
||||||
|
13
hdparm-5.8-help.patch
Normal file
13
hdparm-5.8-help.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff -urN hdparm-5.8/hdparm.c hdparm-5.8_new/hdparm.c
|
||||||
|
--- hdparm-5.8/hdparm.c 2004-11-04 04:18:24.000000000 +0100
|
||||||
|
+++ hdparm-5.8_new/hdparm.c 2005-01-03 11:25:17.695836919 +0100
|
||||||
|
@@ -1418,6 +1418,9 @@
|
||||||
|
get_IDentity = 2;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
+ if (0 == strcmp(p, "--help")) {
|
||||||
|
+ usage_error(0);
|
||||||
|
+ }
|
||||||
|
if (!*++p)
|
||||||
|
usage_error(1);
|
||||||
|
while ((c = *p++)) {
|
10
hdparm.spec
10
hdparm.spec
@ -1,11 +1,12 @@
|
|||||||
Summary: A utility for displaying and/or setting hard disk parameters.
|
Summary: A utility for displaying and/or setting hard disk parameters.
|
||||||
Name: hdparm
|
Name: hdparm
|
||||||
Version: 5.7
|
Version: 5.8
|
||||||
Release: 2
|
Release: 2
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Source: http://www.ibiblio.org/pub/Linux/system/hardware/hdparm-%{version}.tar.gz
|
Source: http://www.ibiblio.org/pub/Linux/system/hardware/hdparm-%{version}.tar.gz
|
||||||
Source1: hdparm-sysconfig
|
Source1: hdparm-sysconfig
|
||||||
|
Patch0: hdparm-5.8-help.patch
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||||
ExcludeArch: s390 s390x
|
ExcludeArch: s390 s390x
|
||||||
|
|
||||||
@ -16,6 +17,7 @@ performance and to spin down hard drives for power conservation.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl -pi -e "s,-O2,$RPM_OPT_FLAGS,g" Makefile
|
perl -pi -e "s,-O2,$RPM_OPT_FLAGS,g" Makefile
|
||||||
@ -41,6 +43,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man8/hdparm.8*
|
%{_mandir}/man8/hdparm.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 03 2005 Karsten Hopp <karsten@redhat.de> 5.8-2
|
||||||
|
- add --help option (#143916)
|
||||||
|
|
||||||
|
* Fri Nov 26 2004 Karsten Hopp <karsten@redhat.de> 5.8-1
|
||||||
|
- update
|
||||||
|
|
||||||
* Tue Sep 21 2004 Than Ngo <than@redhat.com> 5.7-2
|
* Tue Sep 21 2004 Than Ngo <than@redhat.com> 5.7-2
|
||||||
- rebuilt
|
- rebuilt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user