Mail archive
alpine-aports

[alpine-aports] [PATCH] main/hdparm: Upgrade to 9.50. Modernize APKBUILD.

From: Przemyslaw Pawelczyk <przemoc_at_zoho.com>
Date: Sat, 14 Jan 2017 00:44:16 +0100

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.
---
 main/hdparm/APKBUILD | 23 +++++++----------------
 1 file changed, 7 insertions(+), 16 deletions(-)
diff --git a/main/hdparm/APKBUILD b/main/hdparm/APKBUILD
index 3ac6be1cccb9..f3d303a991e3 100644
--- a/main/hdparm/APKBUILD
+++ b/main/hdparm/APKBUILD
_at_@ -1,34 +1,25 @@
 # Maintainer: Natanael Copa <ncopa_at_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
_at_@ -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"
-- 
2.8.3
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Sat Jan 14 2017 - 00:44:16 GMT