SHA256
1
0
forked from pool/hdparm

Accepting request 57939 from Base:System

Accepted submit request 57939 from user puzel

OBS-URL: https://build.opensuse.org/request/show/57939
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hdparm?expand=0&rev=45
This commit is contained in:
Marcus Rückert 2011-01-14 01:36:18 +00:00 committed by Git OBS Bridge
commit eb763dc759
6 changed files with 15 additions and 127 deletions

View File

@ -1,12 +0,0 @@
<services>
<service name="download_url">
<param name="protocol">http</param>
<param name="host">sourceforge.net</param>
<param name="path">/projects/hdparm/files/hdparm/hdparm-9.35.tar.gz</param>
</service>
<service name="verify_file">
<param name="file">_service:download_url:hdparm-9.35.tar.gz</param>
<param name="verifier">sha256</param>
<param name="checksum">b778e5f42d918226892417986dc135e783e7a1b7b3986a4b1f637bcf51366f5f</param>
</service>
<service name="recompress"><param name="file">_service:download_url:hdparm-9.35.tar.gz</param><param name="compression">bz2</param></service><service name="set_version"/></services>

View File

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

View File

@ -1,111 +0,0 @@
#
# spec file for package hdparm (Version 9.35)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: hdparm
License: PERMISSIVE-OSI-COMPLIANT
Group: Hardware/Other
PreReq: %insserv_prereq %fillup_prereq coreutils
Provides: base:/sbin/hdparm
AutoReqProv: on
Version: 9.35
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: hdparm-nostrip.patch
Patch2: hdparm-wiper-warn.patch
Patch3: hdparm-leak-fix.patch
Url: http://sourceforge.net/projects/hdparm/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A shell utility to access and tune the ioctl features of the Linux IDE
driver and IDE drives.
%prep
%setup -q
%patch1
%patch2 -p1
%patch3
%build
make CFLAGS="$RPM_OPT_FLAGS -Wall -Wstrict-prototypes" LDFLAGS=
cp -p wiper/README.txt README.wiper
%install
mkdir -p $RPM_BUILD_ROOT/sbin
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man8
make install DESTDIR=$RPM_BUILD_ROOT
mv contrib/README contrib/README.contrib
install -d $RPM_BUILD_ROOT/lib/udev/rules.d
install -m 644 %{S:1} $RPM_BUILD_ROOT/lib/udev/rules.d
install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
install -m 644 %{S:2} $RPM_BUILD_ROOT/var/adm/fillup-templates
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/wiper.sh $RPM_BUILD_ROOT/sbin
%post
if [ -f etc/sysconfig/hardware ] ; then
mv etc/sysconfig/hardware etc/sysconfig/ide
fi
%{remove_and_set -n ide DEVICES_FORCE_IDE_DMA_ON DEVICES_FORCE_IDE_DMA_OFF}
%{fillup_only -n ide}
# new settings
NEW_DMA=""
# convert old settings
if [ "$DEVICES_FORCE_IDE_DMA_ON" != "" -a "$DEVICES_FORCE_IDE_DMA_ON" != "no" ] ; then
for dev in $DEVICES_FORCE_IDE_DMA_ON; do
NEW_DMA="${NEW_DMA:+$NEW_DMA }/dev/$dev:on"
done
fi
if [ "$DEVICES_FORCE_IDE_DMA_OFF" != "" -a "$DEVICES_FORCE_IDE_DMA_OFF" != "no" ] ; then
for dev in $DEVICES_FORCE_IDE_DMA_OFF; do
NEW_DMA="${NEW_DMA:+$NEW_DMA }/dev/$dev:off"
done
fi
# update sysconfig file
if [ "$NEW_DMA" != "" ] ; then
echo "Updating etc/sysconfig/ide"
# remove old values, update new variable
sed -e "s|^DEVICES_FORCE_IDE_DMA=\"\\(.*\\)\"|DEVICES_FORCE_IDE_DMA=\"$NEW_DMA \\1\"|" \
etc/sysconfig/ide > etc/sysconfig/ide.new \
&& mv etc/sysconfig/ide.new etc/sysconfig/ide
rm -f etc/sysconfig/ide.new
fi
%files
%defattr(-,root,root)
%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
/lib/udev/rules.d/56-idedma.rules
/usr/lib/hdparm
/var/adm/fillup-templates/sysconfig.ide
%changelog

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

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

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Nov 29 11:42:35 UTC 2010 - puzel@novell.com
- update to hdparm-9.36
- udpated raid1ext4trim.sh script to version 1.4
- updated wiper.sh to support hfsplus and ntfs filesystem types,
courtesy of Heiko Wegeler
- updated wiper.sh with new flag to enable unattended operation,
and handle SIGPIPE
- updated manpage to indicate max sector range of 65335 for TRIM
-------------------------------------------------------------------
Thu Oct 21 16:13:02 UTC 2010 - mseben@gmail.com

View File

@ -24,7 +24,7 @@ Group: Hardware/Other
PreReq: %insserv_prereq %fillup_prereq coreutils
Provides: base:/sbin/hdparm
AutoReqProv: on
Version: VERSION
Version: 9.36
Release: 1
Summary: A Program to get and set hard disk parameters
Source: %{name}-%{version}.tar.bz2