aboutsummaryrefslogtreecommitdiffstats
path: root/main/ethtool
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-03-27 09:09:18 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-03-27 09:09:18 +0000
commitb8680cf0b5957b9cf888dd2a821183ea725f43c2 (patch)
tree087d8144310e49f85b00498eded2b26cf4e64e14 /main/ethtool
parent46ba03338ffc3da8d69a68dac491c0aaa3c1be87 (diff)
downloadaports-b8680cf0b5957b9cf888dd2a821183ea725f43c2.tar.bz2
aports-b8680cf0b5957b9cf888dd2a821183ea725f43c2.tar.xz
main/ethtool: upgrade to 4.10, modernize apkbuild
Diffstat (limited to 'main/ethtool')
-rw-r--r--main/ethtool/APKBUILD31
1 files changed, 12 insertions, 19 deletions
diff --git a/main/ethtool/APKBUILD b/main/ethtool/APKBUILD
index f5e1cec634..17a52e5b2f 100644
--- a/main/ethtool/APKBUILD
+++ b/main/ethtool/APKBUILD
@@ -1,42 +1,35 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ethtool
-pkgver=4.8
+pkgver=4.10
pkgrel=0
pkgdesc="gkernel ethtool"
url="http://sourceforge.net/projects/gkernel/"
arch="all"
license="GPL2"
-depends=""
makedepends="linux-headers"
source="http://www.kernel.org/pub/software/network/ethtool/ethtool-$pkgver.tar.xz"
subpackages="$pkgname-doc"
-_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
+
+check() {
+ cd "$builddir"
+ make check
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --mandir=/usr/share/man \
- || return 1
- make || return 1
+ --mandir=/usr/share/man
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="e9e7286178f172c9f21bafbfb978d6de ethtool-4.8.tar.xz"
-sha256sums="403dfe288e2d8031eab0be3f5d0ca9128e120d61c52c3dc434474fa026eb4a43 ethtool-4.8.tar.xz"
-sha512sums="ab1f13db57129fdef6018d8d8ee4ad9733041813aa0b7a29d46407e93d3c264a42aa24e2f1892084d523ed9946c62c6b9d2ae886629aeb013a58a0946fd6be96 ethtool-4.8.tar.xz"
+sha512sums="6766c468e141300b4828e6bdc98e7e720d35bb122405fc05d4ae94bbdce50b98e48ddd0505b09c990040da67e942e08a88b28b46d94aca8d544caf0aee4aac36 ethtool-4.10.tar.xz"