# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /usr/local/portage/net-analyzer/nbtscan/nbtscan-1.5.1-r2.ebuild,v 1.3 2006/03/18 05:08:00 Metalshark Exp $ inherit eutils S=${WORKDIR}/${P}a DESCRIPTION="NBTscan is a program for scanning IP networks for NetBIOS name information" SRC_URI="http://www.inetcat.org/software/${P}.tar.gz" HOMEPAGE="http://www.inetcat.org/software/nbtscan.html" DEPEND="virtual/libc" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~ppc-macos ~sparc ~x86" IUSE="" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-script-whitespace.patch # Fix all CFLAGS="-pedantic" warnings. epatch ${FILESDIR}/${P/1.5*/1.5}-pedantic-rc1.patch } src_compile() { ./configure --host=${CHOST} --prefix=/usr || die emake CFLAGS="${CFLAGS}" || die } src_install () { dobin nbtscan dodoc COPYING ChangeLog README }