# $Id: Portfile,v 1.8 2006/01/23 17:06:37 olegb Exp $
PortSystem 1.0
name		hping2
version		rc3
revision	1
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
distfiles       ${name}.0.0-${version}.tar.gz
master_sites	${homepage}	
checksums	md5 029bf240f2e0545b664b2f8b9118d9e8
patchfiles	patch-Makefile.in patch-libpcap_stuff.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
}
