All pastes #814123 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-12-13 00:32 UTC
rendered paste body
# 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.4 )
        gtk? ( dev-python/pygtk )
        gtk? ( =dev-python/pysqlite-2* )
        gtk? ( dev-python/psyco )
        ssl? ( dev-libs/openssl )"
        
src_unpack() {
        unpack ${A}

}
src_compile() {
        econf \
                
                $(use_with gtk zenmap) \
                $(use_with ssl openssl) || die
        emake -j1 || die
        
}
src_install() {
        einstall -j1 nmapdatadir=${D}/usr/share/nmap install || die
        dodoc CHANGELOG HACKING docs/* || die
 
        use gtk && doicon "${FILESDIR}/zenmap/share/icons/umit_48.ico"
        
}