description="The Net-tools package is a collection of programs for controlling the network subsystem of the Linux kernel"
url="http://net-tools.sourceforge.net/"

packager="Great-OS Team"
maintainer="rems"

name=net-tools
version=2.10

source=(https://downloads.sourceforge.net/project/net-tools/$name-$version.tar.xz)

unset MAKEFLAGS

build() {
cd $name-$version
sed -i "s#/usr##" man/Makefile

yes "" | make
make DESTDIR=$PKG/usr install

 # the following is provided by yp-tools
  rm $PKG/usr/bin/{nis,yp}domainname
  rm $PKG/usr/share/man/man1/{nis,yp}domainname.1

  # hostname is provided by inetutils
  rm $PKG/usr/bin/{hostname,dnsdomainname,domainname}
  rm -rf $PKG/usr/share/man/man1
}
