diff options
author | Cecil <knoppmyth@gmail.com> | 2011-08-06 19:10:30 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-08-06 19:10:30 (GMT) |
commit | ad58e3033f6bb5137b8dcb0e7eca12d50d888402 (patch) | |
tree | 9321335a68173bc3e4c1d237c19c8880411fa676 /abs/core/hdparm | |
parent | 998faf16b1b62493b39aa13b3cb53dfac266ef4c (diff) | |
parent | 9709ca528ca5dfbdb6ec6ea283ac6670e8f33b9d (diff) | |
download | linhes_pkgbuild-ad58e3033f6bb5137b8dcb0e7eca12d50d888402.zip linhes_pkgbuild-ad58e3033f6bb5137b8dcb0e7eca12d50d888402.tar.gz linhes_pkgbuild-ad58e3033f6bb5137b8dcb0e7eca12d50d888402.tar.bz2 |
Merge branch 'testing' of ssh://cesman@linhes.org/mount/repository/linhes_pkgbuild into testing
Conflicts:
abs/core/tzdata/PKGBUILD
Diffstat (limited to 'abs/core/hdparm')
-rw-r--r-- | abs/core/hdparm/PKGBUILD | 22 | ||||
-rw-r--r-- | abs/core/hdparm/wiper.sh.2_6.max-ranges.patch | 2 |
2 files changed, 11 insertions, 13 deletions
diff --git a/abs/core/hdparm/PKGBUILD b/abs/core/hdparm/PKGBUILD index b68bffe..4bc267f 100644 --- a/abs/core/hdparm/PKGBUILD +++ b/abs/core/hdparm/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 97491 2010-10-30 19:08:52Z tpowa $ +# $Id$ # Maintainer: Paul Mattal <paul@archlinux.org> pkgname=hdparm -pkgver=9.35 +pkgver=9.37 pkgrel=1 pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters" -arch=('i686' 'x86_64') +arch=(i686 x86_64) depends=('glibc') optdepends=('sh: required by idectl and ultrabayd') source=(http://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz @@ -14,31 +14,29 @@ license=('BSD') url="http://sourceforge.net/projects/hdparm/" optdepends=('bash: for wiper.sh script') options=('emptydirs') +md5sums=('0bb94ddd1bedd5c02b1ca62f1caaf6de' + '74e368f384166a7710b447573cda120a') build() { cd ${srcdir}/${pkgname}-${pkgver} - + # Fix Range input/output error when wiping Intel G2 and OCZ drives + patch -Np1 -i $srcdir/wiper.sh.2_6.max-ranges.patch + # build - make || return 1 + make } + package() { cd ${srcdir}/${pkgname}-${pkgver} - # install 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 } -md5sums=('520996cc36b69212c3907df351296702' - '5b99485ee6881de8e009597bffba7eea') diff --git a/abs/core/hdparm/wiper.sh.2_6.max-ranges.patch b/abs/core/hdparm/wiper.sh.2_6.max-ranges.patch index 61d197b..c55f7b1 100644 --- a/abs/core/hdparm/wiper.sh.2_6.max-ranges.patch +++ b/abs/core/hdparm/wiper.sh.2_6.max-ranges.patch @@ -14,9 +14,9 @@ export verbose=0 commit="" +max_ranges=-1 + destroy_me="" argc=$# arg="" - while [ $argc -gt 0 ]; do @@ -51,6 +52,10 @@ commit=yes elif [ "$1" = "--verbose" ]; then |