# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils flag-o-matic DESCRIPTION="A utility for network exploration or security auditing" HOMEPAGE="http://www.insecure.org/nmap/" SRC_URI="http://insecure.org/tmp/nmap-450-candidate/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" IUSE="gtk ssl" DEPEND="dev-libs/libpcre net-libs/libpcap gtk? ( >=dev-lang/python-2.5 ) gtk? ( dev-python/pygtk ) gtk? ( =dev-python/pysqlite-2* ) gtk? ( dev-python/psyco ) ssl? ( dev-libs/openssl )" src_unpack() { unpack } src_compile() { econf \ --with-libdnet=included \ $(use_with gtk zenmap) \ $(use_with ssl openssl) || die emake -j1 || die } src_install() { emake DESTDIR="${D}" -j1 nmapdatadir=/usr/share/nmap install || die "Install failed" dodoc CHANGELOG HACKING docs/* || die use gtk && doicon "${FILESDIR}/zenmap/share/icons/umit_48.ico" }