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