From 33f52096e9c8764c10be57ff860ad192a7ad7295 Mon Sep 17 00:00:00 2001 From: Max Rees Date: Wed, 12 Sep 2018 19:19:51 -0400 Subject: user/ethtool: new package --- user/ethtool/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 user/ethtool/APKBUILD (limited to 'user/ethtool') diff --git a/user/ethtool/APKBUILD b/user/ethtool/APKBUILD new file mode 100644 index 000000000..8d4823e3d --- /dev/null +++ b/user/ethtool/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Natanael Copa +# Maintainer: Max Rees +pkgname=ethtool +pkgver=4.18 +pkgrel=0 +pkgdesc="Utility for controlling network drivers and hardware" +url="https://mirrors.edge.kernel.org/pub/software/network/ethtool/" +arch="all" +license="GPL-2.0-only AND GPL-2.0+" +makedepends="linux-headers" +subpackages="$pkgname-doc" +source="https://www.kernel.org/pub/software/network/ethtool/$pkgname-$pkgver.tar.xz" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="e77f9967be4634955640d9dccbc539455d333bcbad61326617dffea32cfd13a72a7dda4087caf6fff41b49c9ce476435cc1310e131705d0ad402685e10b4fb0e ethtool-4.18.tar.xz" -- cgit v1.2.3-70-g09d2