# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/hping/hping-2.0.0_rc3-r1.ebuild,v 1.8 2005/02/05 10:59:05 hansmi Exp $ inherit eutils MY_P="${PN}${PV//_/-}" DESCRIPTION="A ping-like TCP/IP packet assembler/analyzer" HOMEPAGE="http://www.hping.org" SRC_URI="http://www.hping.org/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 sparc hppa ~ia64 ~amd64 alpha ppc" IUSE="debug" DEPEND="virtual/libpcap" S="${WORKDIR}/${MY_P//\.[0-9]}" src_compile() { ./configure || die epatch ${FILESDIR}/bytesex.h.patch epatch ${FILESDIR}/hping-bridge.patch if use debug then make CCOPT="${CFLAGS}" || die else make CCOPT="${CFLAGS}" DEBUG="" || die fi } src_install () { dodir /usr/sbin dosbin hping2 dosym /usr/sbin/hping2 /usr/sbin/hping doman docs/hping2.8 dodoc INSTALL KNOWN-BUGS NEWS README TODO AUTHORS BUGS CHANGES COPYING docs/AS-BACKDOOR docs/HPING2-IS-OPEN docs/MORE-FUN-WITH-IPID docs/*.txt }