# $Id: Portfile 30239 2007-10-23 01:55:09Z jmpp@macports.org $
PortSystem 1.0
name		hping2
version		rc3
revision	2
categories	net
maintainers	nomaintainer
description	a network tool
long_description 	a network tool able to send custom packets.
homepage	http://www.hping.org/
platforms       darwin
distfiles       ${name}.0.0-${version}.tar.gz
master_sites	${homepage}	
checksums	md5 029bf240f2e0545b664b2f8b9118d9e8
patchfiles	patch-Makefile.in patch-libpcap_stuff.c patch-ars.c patch-sendip.c
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
}
