void-packages/srcpkgs/net-tools/template

31 lines
685 B
Text
Raw Normal View History

# Template file for 'net-tools'
pkgname=net-tools
2014-02-21 15:13:55 +00:00
version=1.60.20140221git
revision=1
hostmakedepends="git"
short_desc="Basic networking tools"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-07-09 13:48:24 +00:00
homepage="http://www.tazenda.demon.co.uk/phil/$pkgname"
license="GPL-2"
2014-02-21 15:13:55 +00:00
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
}
2012-07-09 13:48:24 +00:00
do_build() {
replace_interpreter bash configure.sh
2012-07-09 13:48:24 +00:00
yes "" | make
}
2012-07-09 13:48:24 +00:00
do_install() {
2014-02-21 15:13:55 +00:00
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
}