2009-03-05 17:04:22 +00:00
|
|
|
# Template file for 'net-tools'
|
|
|
|
pkgname=net-tools
|
2014-02-21 15:13:55 +00:00
|
|
|
version=1.60.20140221git
|
|
|
|
revision=1
|
2009-03-05 17:04:22 +00:00
|
|
|
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
|
|
|
|
}
|
2009-03-05 17:04:22 +00:00
|
|
|
|
2012-07-09 13:48:24 +00:00
|
|
|
do_build() {
|
2009-03-05 17:04:22 +00:00
|
|
|
replace_interpreter bash configure.sh
|
2012-07-09 13:48:24 +00:00
|
|
|
yes "" | make
|
2010-01-16 02:40:51 +00:00
|
|
|
}
|
|
|
|
|
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
|
2009-03-05 17:04:22 +00:00
|
|
|
}
|