summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2012-06-20 17:33:05 +0000
committerJeroen Roovers <jer@gentoo.org>2012-06-20 17:33:05 +0000
commitb6024cfb13b2c82a1dfdba0db6f17e3699cd55dc (patch)
tree31e4454720c42dce15bdf7953a3b6e45bb4cebca /net-analyzer/nmap/nmap-6.01.ebuild
parentVersion bump; also fix the wrong herd in metadata. (diff)
downloadgentoo-2-b6024cfb13b2c82a1dfdba0db6f17e3699cd55dc.tar.gz
gentoo-2-b6024cfb13b2c82a1dfdba0db6f17e3699cd55dc.tar.bz2
gentoo-2-b6024cfb13b2c82a1dfdba0db6f17e3699cd55dc.zip
Version bump. Add a parallel make patch (bug #416987). Add more USE flags for optional utilities.
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/nmap/nmap-6.01.ebuild')
-rw-r--r--net-analyzer/nmap/nmap-6.01.ebuild73
1 files changed, 73 insertions, 0 deletions
diff --git a/net-analyzer/nmap/nmap-6.01.ebuild b/net-analyzer/nmap/nmap-6.01.ebuild
new file mode 100644
index 000000000000..b237b252fe74
--- /dev/null
+++ b/net-analyzer/nmap/nmap-6.01.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-6.01.ebuild,v 1.1 2012/06/20 17:33:05 jer Exp $
+
+EAPI="4"
+PYTHON_DEPEND="2"
+
+inherit eutils flag-o-matic python
+
+MY_P=${P/_beta/BETA}
+
+DESCRIPTION="A utility for network exploration or security auditing"
+HOMEPAGE="http://nmap.org/"
+SRC_URI="http://nmap.org/dist/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="gtk lua ncat ndiff nmap-update nping ssl"
+
+DEPEND="dev-libs/libpcre
+ net-libs/libpcap
+ dev-libs/apr
+ gtk? ( >=x11-libs/gtk+-2.6:2
+ >=dev-python/pygtk-2.6
+ || ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-lang/python:2.5[sqlite] dev-python/pysqlite:2 )
+ )
+ lua? ( >=dev-lang/lua-5.1.4-r1[deprecated] )
+ nmap-update? ( dev-libs/apr dev-vcs/subversion )
+ ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ python_set_active_version 2
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-4.75-include.patch
+ epatch "${FILESDIR}"/${PN}-4.75-nolua.patch
+ epatch "${FILESDIR}"/${PN}-5.10_beta1-string.patch
+ epatch "${FILESDIR}"/${PN}-5.21-python.patch
+ epatch "${FILESDIR}"/${PN}-5.51-su-to-zenmap-fix.patch
+ sed -i -e 's/-m 755 -s ncat/-m 755 ncat/' ncat/Makefile.in
+
+ # bug #416987
+ epatch "${FILESDIR}"/${P}-make.patch
+}
+
+src_configure() {
+ # The bundled libdnet is incompatible with the version available in the
+ # tree, so we cannot use the system library here.
+ econf --with-libdnet=included \
+ $(use_with gtk zenmap) \
+ $(use_with lua liblua) \
+ $(use_with ncat) \
+ $(use_with ndiff) \
+ $(use_with nmap-update) \
+ $(use_with nping) \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ LC_ALL=C emake DESTDIR="${D}" -j1 STRIP=: nmapdatadir="${EPREFIX}"/usr/share/nmap install
+ if use nmap-update;then
+ LC_ALL=C emake DESTDIR="${D}" -j1 STRIP=: \
+ nmapdatadir="${EPREFIX}"/usr/share/nmap -C nmap-update install
+ fi
+ dodoc CHANGELOG HACKING docs/README docs/*.txt
+
+ use gtk && doicon "${FILESDIR}/nmap-logo-64.png"
+}