[arch-commits] Commit in hdparm/trunk (PKGBUILD)
Tobias Powalowski
tpowa at archlinux.org
Mon Jul 5 05:38:14 UTC 2010
Date: Monday, July 5, 2010 @ 01:38:14
Author: tpowa
Revision: 84876
upgpkg: hdparm 9.29-1
bump to latest version, added wiper.sh script
Modified:
hdparm/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++++++----------
1 file changed, 20 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-07-05 04:49:54 UTC (rev 84875)
+++ PKGBUILD 2010-07-05 05:38:14 UTC (rev 84876)
@@ -2,30 +2,40 @@
# Maintainer: Paul Mattal <paul at archlinux.org>
pkgname=hdparm
-pkgver=9.28
+pkgver=9.29
pkgrel=1
pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
arch=(i686 x86_64)
depends=('glibc')
optdepends=('sh: required by idectl and ultrabayd')
-source=(http://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz)
+source=(http://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz
+ wiper.sh.2_6.max-ranges.patch)
license=('BSD')
url="http://sourceforge.net/projects/hdparm/"
+optdepends=('bash: for wiper.sh script')
options=('emptydirs')
-md5sums=('b672d175bbf924b3f7575a8279eb063d')
+md5sums=('6575aba60e5adee628414cac76549c9b'
+ '5b99485ee6881de8e009597bffba7eea')
build() {
- cd ${srcdir}/${pkgname}-${pkgver} || return 1
+ cd ${srcdir}/${pkgname}-${pkgver}
# build
- make || return 1
+ make
# install
- mkdir -p ${pkgdir}/{usr,sbin} || return 1
- make DESTDIR=${pkgdir} install || return 1
- install -m755 contrib/idectl ${pkgdir}/sbin || return 1
- install -m755 contrib/ultrabayd ${pkgdir}/sbin || return 1
+ mkdir -p ${pkgdir}/{usr,sbin}
+ make DESTDIR=${pkgdir} install
+ install -m755 contrib/idectl ${pkgdir}/sbin
+ install -m755 contrib/ultrabayd ${pkgdir}/sbin
+ # install wiper.sh script
+ # Fix Range input/output error when wiping Intel G2 and OCZ drives
+ patch -Np1 -i $srcdir/wiper.sh.2_6.max-ranges.patch
+
+ install -D -m 0644 $srcdir/$pkgname-$pkgver/wiper/README.txt $pkgdir/usr/share/doc/wiper/README.txt
+ install -D -m 0755 $srcdir/$pkgname-$pkgver/wiper/wiper.sh $pkgdir/usr/sbin/wiper.sh
+
#install license file
- install -D -m 644 LICENSE.TXT $pkgdir/usr/share/licenses/hdparm/LICENSE.TXT || return 1
+ install -D -m 644 LICENSE.TXT $pkgdir/usr/share/licenses/hdparm/LICENSE.TXT
}
More information about the arch-commits
mailing list