void-packages/srcpkgs/net-tools/template
2014-02-21 16:13:55 +01:00

29 lines
663 B
Text

# Template file for 'net-tools'
pkgname=net-tools
version=1.60.20140221git
revision=1
short_desc="Basic networking tools"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.tazenda.demon.co.uk/phil/$pkgname"
license="GPL-2"
do_fetch() {
git clone git://git.code.sf.net/p/net-tools/code ${pkgname}-${version}
}
pre_build() {
sed -i "s#/sbin#/bin#" Makefile
sed -i "s#/usr##" man/Makefile
}
do_build() {
replace_interpreter bash configure.sh
yes "" | make
}
do_install() {
make DESTDIR=${DESTDIR}/usr update
# Remove hostname(1), conflicts with coreutils/busybox.
rm ${DESTDIR}/usr/bin/hostname
rm ${DESTDIR}/usr/share/man/man1/hostname.1
}