# $Id: Portfile,v 1.3 2005/09/13 06:57:50 olegb Exp $
PortSystem 1.0
name		hping3
version		alpha-2
categories	net
maintainers	darwinports@opendarwin.org
description	a network tool.
long_description 	a network tool able to send custom packets.
homepage	http://www.hping.org/
platforms       darwin
master_sites	http://wiki.hping.org/uploadedfiles/101/
checksums	md5 5abc5f4b5ea4ae55e2a4fd91438c8626
patchfiles	patch-Makefile.in patch-libpcap_stuff.c
configure.args	--no-tcl

post-build { 
	system "cd ${worksrcpath} && make strip" 
	reinplace "s|INSTALL_PATH=|INSTALL_PATH=${destroot}${prefix}|g" Makefile
	reinplace "s|INSTALL_MANPATH=|INSTALL_MANPATH=${destroot}${prefix}/share/man|g" Makefile
}
post-destroot {
	file delete ${destroot}${prefix}/sbin/hping
	file delete ${destroot}${prefix}/sbin/hping2
}

variant tcl {
	configure.args-delete --no-tcl
}
