Accepting request 20515 from home:garloff

Copy from home:garloff/hdparm via accept of submit request 20515 revision 5.

OBS-URL: https://build.opensuse.org/request/show/20515
OBS-URL: https://build.opensuse.org/package/show/Base:System/hdparm?expand=0&rev=10
This commit is contained in:
Dirk Mueller 2009-09-21 14:24:59 +00:00 committed by Git OBS Bridge
parent ead55e15f8
commit afa422ca47
5 changed files with 54 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a6a3c3996dd7a6584fbb2b84dd7b6338b21f60a045f2373959ea850ff79ccc2
size 94717

3
hdparm-9.27.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dde7862d5b2be79fe1013cf29a511f929225d8712e87de765e57b8555d48afa2
size 97138

View File

@ -3,6 +3,32 @@ Wed Sep 16 17:12:55 CEST 2009 - mseben@novell.com
- added leak-fix.patch [bnc#538942]
-------------------------------------------------------------------
Tue Sep 15 14:26:55 CEST 2009 - garloff@suse.de
- Install wiper.sh and its README; display appropriate warnings
- Update to hdparm-9.27:
* Update wiper.sh to 2.3
* Fix interaction with old IDE drivers
- Update to hdparm-9.26:
* Update wiper.sh to 2.2
* Fix handling of model names with spaces in hdparm -i
* bugfix for --security-erase-enhanced
* set _FILE_OFFSET_BITS in geom.c
* added reporting for "Deterministic read ZEROs after TRIM" feature
- Update to hdparm-9.25:
* slightly tidier output from --trim-* commands
* restrict --trim-sector-ranges-stdin to limit from
/sys/block/sd?/queue/max_sectors_kb
* updated wiper.sh to use --trim-sector-ranges-stdin
- Update to hdparm-9.24:
* fixed malloc() bug in --trim-sector-ranges
- Update to hdparm-9.23:
* minor cosmetic changes in fibmap.c
* added --trim-sector-ranges-stdin for wiper.sh-2.0
* tightened up excess-args checking on a number of flags
* added name to version line
-------------------------------------------------------------------
Wed Aug 12 14:10:47 CEST 2009 - mseben@suse.cz

View File

@ -1,5 +1,5 @@
#
# spec file for package hdparm (Version 9.22)
# spec file for package hdparm (Version 9.27)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -24,14 +24,15 @@ Group: Hardware/Other
PreReq: %insserv_prereq %fillup_prereq coreutils
Provides: base:/sbin/hdparm
AutoReqProv: on
Version: 9.22
Version: 9.27
Release: 1
Summary: A Program to Get and Set Hard Disk Parameters
Source: %{name}-%{version}.tar.bz2
Source1: 56-idedma.rules
Source2: sysconfig.ide
Source3: udev.idedma.sh
Patch1: %{name}-%{version}-nostrip.patch
Patch1: %{name}-9.22-nostrip.patch
Patch2: wiper-warn.diff
Url: http://sourceforge.net/projects/hdparm/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -48,9 +49,11 @@ Authors:
%prep
%setup -q
%patch1
%patch2 -p1
%build
make CFLAGS="$RPM_OPT_FLAGS -Wall -Wstrict-prototypes" LDFLAGS=
cp -p wiper-2.3/README.txt README.wiper
%install
mkdir -p $RPM_BUILD_ROOT/sbin
@ -65,6 +68,7 @@ install -m 755 %{S:3} $RPM_BUILD_ROOT/lib/udev/idedma.sh
install -d $RPM_BUILD_ROOT/usr/lib/hdparm
install -m 755 contrib/idectl $RPM_BUILD_ROOT/usr/lib/hdparm
install -m 755 contrib/ultrabayd $RPM_BUILD_ROOT/usr/lib/hdparm
install -m 755 wiper-2.3/wiper.sh $RPM_BUILD_ROOT/sbin
%post
if [ -f etc/sysconfig/hardware ] ; then
@ -97,9 +101,10 @@ fi
%files
%defattr(-,root,root)
%doc Changelog README.acoustic contrib/README.contrib
%doc Changelog README.acoustic contrib/README.contrib README.wiper
%doc %{_mandir}/man8/hdparm.8.gz
/sbin/hdparm
/sbin/wiper.sh
%dir /lib/udev
/lib/udev/idedma.sh
%dir /lib/udev/rules.d

16
wiper-warn.diff Normal file
View File

@ -0,0 +1,16 @@
Index: hdparm-9.27/wiper-2.3/wiper.sh
===================================================================
--- hdparm-9.27.orig/wiper-2.3/wiper.sh
+++ hdparm-9.27/wiper-2.3/wiper.sh
@@ -42,8 +42,11 @@ function find_prog(){
}
echo
echo "${0##*/}: Linux SATA SSD TRIM utility, version $VERSION, by Mark Lord."
+echo "${0##*/}: This tool is DANGEROUS! Please read and understand"
+echo "${0##*/}: /usr/share/doc/packages/hdparm/README.wiper"
+echo "${0##*/}: before going any further."
## Ensure we have most of the necessary utilities available before trying to proceed:
##
hash -r ## Refresh bash's cached PATH entries