# $Id: Portfile 56909 2009-09-03 13:14:16Z snc@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 patch-bytesex.h
post-build { 
	system "cd ${worksrcpath} && make strip" 
}
post-configure {
	reinplace "s|INSTALL_PATH=|INSTALL_PATH=${destroot}${prefix}|g" ${worksrcpath}/Makefile
	reinplace "s|INSTALL_MANPATH=|INSTALL_MANPATH=${destroot}${prefix}/share/man|g" ${worksrcpath}/Makefile
}
post-destroot {
	file delete ${destroot}${prefix}/sbin/hping
}
