# Maintainer: Natanael Copa pkgname=net-tools pkgver=2.10 pkgrel=3 pkgdesc="Linux networking base tools" url="https://sourceforge.net/projects/net-tools/" arch="all" license="GPL-2.0-or-later" depends="mii-tool" makedepends="$depends_dev bash linux-headers" options="!check" subpackages="$pkgname-doc $pkgname-dbg mii-tool:mii_tool" source="https://downloads.sourceforge.net/project/net-tools/net-tools-$pkgver.tar.xz 0001-Revert-sscanf-pattern-is-Lu-not-llu-for-long-long-un.patch " prepare() { default_prepare cat > config.make < config.h } build() { make } package() { make DESTDIR="$pkgdir" install # move ifconfig to usr/sbin to override busybox in usr/sbin mv "$pkgdir"/bin/ifconfig "$pkgdir"/sbin/ } mii_tool() { pkgdesc="media-independent interface (MII) tool" depends= amove sbin/mii-tool } sha512sums=" aa8f631772da6c16b165065fc5929a206504f2dce19e74a4ffc680f09b40f3a9180bd4bbeaac67e0b32693358b01383bae4fbfcb6061180c130e9e0801d536bf net-tools-2.10.tar.xz c0f5906fe17dc926ecc8767bfbfbfd491cae77680732d02b1c96ca2805cb7ce35ab4edd5485b95b1f691a110d77e028b67c35e201e477981da1eb8bb1e26bad6 0001-Revert-sscanf-pattern-is-Lu-not-llu-for-long-long-un.patch "