summaryrefslogtreecommitdiffstats
path: root/abs/core/hdparm/PKGBUILD
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-24 02:40:41 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-24 02:40:41 (GMT)
commit12f50dbca6bf0191cd62445c036c8f8aa2e5f620 (patch)
tree72db7de082e902627ac874f5e97dbe7eb569a39d /abs/core/hdparm/PKGBUILD
parent675a0c5dea31728d72485d0e296e673c4969c427 (diff)
downloadlinhes_pkgbuild-12f50dbca6bf0191cd62445c036c8f8aa2e5f620.zip
linhes_pkgbuild-12f50dbca6bf0191cd62445c036c8f8aa2e5f620.tar.gz
linhes_pkgbuild-12f50dbca6bf0191cd62445c036c8f8aa2e5f620.tar.bz2
hdparm: upgrade
Diffstat (limited to 'abs/core/hdparm/PKGBUILD')
-rw-r--r--abs/core/hdparm/PKGBUILD41
1 files changed, 26 insertions, 15 deletions
diff --git a/abs/core/hdparm/PKGBUILD b/abs/core/hdparm/PKGBUILD
index 2e1a441..b68bffe 100644
--- a/abs/core/hdparm/PKGBUILD
+++ b/abs/core/hdparm/PKGBUILD
@@ -1,33 +1,44 @@
-# $Id: PKGBUILD 7862 2008-08-04 20:16:21Z tpowa $
+# $Id: PKGBUILD 97491 2010-10-30 19:08:52Z tpowa $
# Maintainer: Paul Mattal <paul@archlinux.org>
pkgname=hdparm
-pkgver=9.29
+pkgver=9.35
pkgrel=1
pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
depends=('glibc')
-groups=('base')
-source=(http://heanet.dl.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz)
+optdepends=('sh: required by idectl and ultrabayd')
+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')
build() {
- cd ${startdir}/src/${pkgname}-${pkgver} || return 1
+ cd ${srcdir}/${pkgname}-${pkgver}
# build
make || return 1
+}
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
# install
- mkdir -p ${startdir}/pkg/{usr,sbin} || return 1
- make DESTDIR=${startdir}/pkg install || return 1
- install -m755 contrib/idectl ${startdir}/pkg/sbin || return 1
- install -m755 contrib/ultrabayd ${startdir}/pkg/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 license file
- install -D -m 644 LICENSE.TXT $startdir/pkg/usr/share/licenses/hdparm/LICENSE.TXT
+ # 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
- # installs empty /usr/share, which we let it do since it causes
- # no harm and it might put something there someday
+ 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
}
-md5sums=('6575aba60e5adee628414cac76549c9b')
+md5sums=('520996cc36b69212c3907df351296702'
+ '5b99485ee6881de8e009597bffba7eea')