checked in
OBS-URL: https://build.opensuse.org/package/show/Base:System/hdparm?expand=0&rev=12
This commit is contained in:
parent
5a44eb5817
commit
d30ea1bc2f
@ -1,20 +0,0 @@
|
|||||||
--- hdparm.c.old 2009-08-02 22:08:56.000000000 +0200
|
|
||||||
+++ hdparm.c 2009-09-17 09:57:44.000000000 +0200
|
|
||||||
@@ -880,7 +880,7 @@
|
|
||||||
{
|
|
||||||
__u64 start_lba;
|
|
||||||
int i, err, shortened = 0;
|
|
||||||
- char *fdevname = strdup(devname);
|
|
||||||
+ char *fdevname = strdupa(devname);
|
|
||||||
|
|
||||||
err = get_dev_geometry(fd, NULL, NULL, NULL, &start_lba, NULL);
|
|
||||||
if (err)
|
|
||||||
@@ -891,7 +891,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!shortened)
|
|
||||||
- fdevname = strdup("the full disk");
|
|
||||||
+ fdevname = strdupa("the full disk");
|
|
||||||
|
|
||||||
if (start_lba == 0ULL)
|
|
||||||
return 0;
|
|
3
hdparm-9.22.tar.bz2
Normal file
3
hdparm-9.22.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3a6a3c3996dd7a6584fbb2b84dd7b6338b21f60a045f2373959ea850ff79ccc2
|
||||||
|
size 94717
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:dde7862d5b2be79fe1013cf29a511f929225d8712e87de765e57b8555d48afa2
|
|
||||||
size 97138
|
|
@ -1,34 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
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
|
Wed Aug 12 14:10:47 CEST 2009 - mseben@suse.cz
|
||||||
|
|
||||||
|
15
hdparm.spec
15
hdparm.spec
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package hdparm (Version 9.27)
|
# spec file for package hdparm (Version 9.22)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -24,16 +24,14 @@ Group: Hardware/Other
|
|||||||
PreReq: %insserv_prereq %fillup_prereq coreutils
|
PreReq: %insserv_prereq %fillup_prereq coreutils
|
||||||
Provides: base:/sbin/hdparm
|
Provides: base:/sbin/hdparm
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 9.27
|
Version: 9.22
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: A Program to Get and Set Hard Disk Parameters
|
Summary: A Program to Get and Set Hard Disk Parameters
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source1: 56-idedma.rules
|
Source1: 56-idedma.rules
|
||||||
Source2: sysconfig.ide
|
Source2: sysconfig.ide
|
||||||
Source3: udev.idedma.sh
|
Source3: udev.idedma.sh
|
||||||
Patch1: %{name}-9.22-nostrip.patch
|
Patch1: %{name}-%{version}-nostrip.patch
|
||||||
Patch2: wiper-warn.diff
|
|
||||||
Patch3: hdparm-9.22-leak-fix.patch
|
|
||||||
Url: http://sourceforge.net/projects/hdparm/
|
Url: http://sourceforge.net/projects/hdparm/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
@ -50,12 +48,9 @@ Authors:
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1
|
%patch1
|
||||||
%patch2 -p1
|
|
||||||
%patch3
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CFLAGS="$RPM_OPT_FLAGS -Wall -Wstrict-prototypes" LDFLAGS=
|
make CFLAGS="$RPM_OPT_FLAGS -Wall -Wstrict-prototypes" LDFLAGS=
|
||||||
cp -p wiper-2.3/README.txt README.wiper
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT/sbin
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
||||||
@ -70,7 +65,6 @@ install -m 755 %{S:3} $RPM_BUILD_ROOT/lib/udev/idedma.sh
|
|||||||
install -d $RPM_BUILD_ROOT/usr/lib/hdparm
|
install -d $RPM_BUILD_ROOT/usr/lib/hdparm
|
||||||
install -m 755 contrib/idectl $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 contrib/ultrabayd $RPM_BUILD_ROOT/usr/lib/hdparm
|
||||||
install -m 755 wiper-2.3/wiper.sh $RPM_BUILD_ROOT/sbin
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ -f etc/sysconfig/hardware ] ; then
|
if [ -f etc/sysconfig/hardware ] ; then
|
||||||
@ -103,10 +97,9 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc Changelog README.acoustic contrib/README.contrib README.wiper
|
%doc Changelog README.acoustic contrib/README.contrib
|
||||||
%doc %{_mandir}/man8/hdparm.8.gz
|
%doc %{_mandir}/man8/hdparm.8.gz
|
||||||
/sbin/hdparm
|
/sbin/hdparm
|
||||||
/sbin/wiper.sh
|
|
||||||
%dir /lib/udev
|
%dir /lib/udev
|
||||||
/lib/udev/idedma.sh
|
/lib/udev/idedma.sh
|
||||||
%dir /lib/udev/rules.d
|
%dir /lib/udev/rules.d
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
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
|
|
Loading…
Reference in New Issue
Block a user