- add --help option (#143916)

This commit is contained in:
Karsten Hopp 2005-01-03 10:31:43 +00:00
parent 4ac7da01ad
commit a06ed41cb3
4 changed files with 24 additions and 3 deletions

View File

@ -1 +1 @@
hdparm-5.7.tar.gz
hdparm-5.8.tar.gz

13
hdparm-5.8-help.patch Normal file
View 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++)) {

View File

@ -1,11 +1,12 @@
Summary: A utility for displaying and/or setting hard disk parameters.
Name: hdparm
Version: 5.7
Version: 5.8
Release: 2
License: BSD
Group: Applications/System
Source: http://www.ibiblio.org/pub/Linux/system/hardware/hdparm-%{version}.tar.gz
Source1: hdparm-sysconfig
Patch0: hdparm-5.8-help.patch
Buildroot: %{_tmppath}/%{name}-%{version}-root
ExcludeArch: s390 s390x
@ -16,6 +17,7 @@ performance and to spin down hard drives for power conservation.
%prep
%setup -q
%patch0 -p1
%build
perl -pi -e "s,-O2,$RPM_OPT_FLAGS,g" Makefile
@ -41,6 +43,12 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man8/hdparm.8*
%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
- rebuilt

View File

@ -1 +1 @@
1bfb16ac78ca4af8b3e4e3b9fab28743 hdparm-5.7.tar.gz
a4187336bc79a8538549e18540313ffd hdparm-5.8.tar.gz