# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/net-analyzer/arping/arping-2.01.ebuild,v 1.3 2003/08/18 04:34:07 dma Exp $ DESCRIPTION="A utility to see if a specific IP address is taken and what MAC address owns it" HOMEPAGE="http://www.habets.pp.se/synscan/programs.php?prog=ARPing" SRC_URI="ftp://ftp.habets.pp.se/pub/synscan/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 sparc ppc" DEPEND="net-libs/libpcap =net-libs/libnet-1.1*" src_compile() { patch -n Makefile << 'END_OF_PATCH' 89c89 < $(CC) `libnet-config --libs --defines --cflags` -o arping arping-2/arping.c -lnet -lpcap --- > $(CC) `libnet-config-1.1 --defines --cflags` -I/usr/include/libnet-1.1 -o arping arping-2/arping.c -lnet1.1 -lpcap END_OF_PATCH mv Makefile Makefile.orig sed "s/CFLAGS=-g/CFLAGS=${CFLAGS} -g/" Makefile.orig > Makefile || die make USE_NETIF=1 LINUX=1 arping2 || die } src_install() { echo ${S} pushd ${S} mv arping arping2 mv arping.8 arping2.8 popd dosbin arping2 doman arping2.8 dodoc LICENSE README }