# Contributor: Natanael Copa # Maintainer: Dan Theisen pkgname=net-tools pkgver=1.60_git20140218 _ver=${pkgver%_git*} pkgrel=3 pkgdesc="Linux networking base tools" url="https://sourceforge.net/projects/net-tools/" arch="all" license="GPL-2.0+" depends="mii-tool" depends_dev="" makedepends="$depends_dev bash linux-headers" options="!check" # there is no testsuite for this package install="" subpackages="$pkgname-doc $pkgname-lang $pkgname-dbg mii-tool:mii_tool" source="https://downloads.sourceforge.net/project/$pkgname/$pkgname-$_ver.tar.bz2 git.patch musl-fixes.patch " builddir="$srcdir"/$pkgname-$_ver prepare() { cd "$builddir" default_prepare cat > config.make < config.h } build() { cd "$builddir" make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } mii_tool() { pkgdesc="media-independent interface (MII) tool" depends= mkdir -p "$subpkgdir"/sbin mv "$pkgdir"/sbin/mii-tool "$subpkgdir"/sbin/ } sha512sums="8e1ae9bca726ad7d795a06c58388f9e11c1d617d94eebb9ed18bd11e5f34c6541e1ffe631706c407996db86e78df6e5cf1968a2d90b242b473596fda3b6d1eae net-tools-1.60.tar.bz2 5edc92e8cf46da11898ac1999cfccb5b7ae3407f649c75c2da43c4264e1271b010eafbc84283e4c41219870bf89722e09666b25d28c84cb4ac60ceebee9adb2d git.patch 08c9e7681e069a42f4da714faf0b93ad1c569cf942a94a1b41103e86850235b507c0291e2f3839c84dd02aba0b1a16d79580fbfc55dd2af8d09b0ff71d714e9f musl-fixes.patch"