Commit 2d6473f7 authored by Przemysław Pawełczyk's avatar Przemysław Pawełczyk Committed by Leonardo Arena

main/hdparm: Upgrade to 9.50. Modernize APKBUILD.

Quote from Changelog:

hdparm-9.50:
	- minor fixes for sanitize device stuff.
hdparm-9.49:
	- add ACS-3 overprovisioning support, courtesy of Intel.
	- fix bug in display of security section and use updated erase-time values from ACS-3, courtesy of Patrick Higgins.
	- increase timeout on fwdownload to 2 minutes, courtesy of Rusy Carruth.
	- fix bugs from devslp patch.
parent 731810e7
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hdparm
pkgver=9.48
pkgver=9.50
pkgrel=0
pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
url="http://sourceforge.net/projects/hdparm/"
arch="all"
license="BSD"
depends=""
makedepends="linux-headers "
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
cd "$builddir"
export CFLAGS="$CFLAGS -D_GNU_SOURCE"
make || return 1
}
package() {
cd "$_builddir"
cd "$builddir"
mkdir -p "$pkgdir"/usr "$pkgdir"/sbin
make DESTDIR="$pkgdir" install || return 1
install -m755 contrib/idectl "$pkgdir"/sbin || return 1
......@@ -36,6 +27,6 @@ package() {
install -D -m 644 LICENSE.TXT $pkgdir/usr/share/licenses/hdparm/LICENSE.TXT || return 1
}
md5sums="213efdbe7471fad3408198918e164354 hdparm-9.48.tar.gz"
sha256sums="ce97b4a71cb04146f54cf6f69787e7f97ddfda9836dc803b459d3b3df3a4fbee hdparm-9.48.tar.gz"
sha512sums="5b8908a762d892c403406da4798202bed95f035396e3c49f04da910fa53a6b442a7d7c9cb1e5d786d7c8c5a1b681c8d1db10f1bd8dad09600a6f3811fbf8afb7 hdparm-9.48.tar.gz"
md5sums="d380062ad6c4b40076736efbb640f1f5 hdparm-9.50.tar.gz"
sha256sums="0892b44bd817c251264a24f6ecbbb010958033e0395d2030f25f1c5608ac780e hdparm-9.50.tar.gz"
sha512sums="e781da560f4ff7c75934b262b1be896765055ab0d90f9f637df2b7a13865a8dff0316811eae889e2bb09cbea08599b8f65e1fd1ef92f1f17e0fa728afda73fbc hdparm-9.50.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment