Gentoo Archives: gentoo-commits

From: "Michael Januszewski (spock)" <spock@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/nmap: ChangeLog nmap-4.75.ebuild
Date: Tue, 09 Sep 2008 07:05:58
Message-Id: E1KcxIQ-0005tq-C2@stork.gentoo.org
1 spock 08/09/09 07:05:54
2
3 Modified: ChangeLog
4 Added: nmap-4.75.ebuild
5 Log:
6 Version bump (bug #237121).
7 (Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc5 x86_64)
8
9 Revision Changes Path
10 1.183 net-analyzer/nmap/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nmap/ChangeLog?rev=1.183&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nmap/ChangeLog?rev=1.183&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nmap/ChangeLog?r1=1.182&r2=1.183
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v
19 retrieving revision 1.182
20 retrieving revision 1.183
21 diff -u -r1.182 -r1.183
22 --- ChangeLog 30 Aug 2008 21:23:40 -0000 1.182
23 +++ ChangeLog 9 Sep 2008 07:05:53 -0000 1.183
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-analyzer/nmap
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v 1.182 2008/08/30 21:23:40 spock Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v 1.183 2008/09/09 07:05:53 spock Exp $
29 +
30 +*nmap-4.75 (09 Sep 2008)
31 +
32 + 09 Sep 2008; Michał Januszewski <spock@g.o>
33 + +files/nmap-4.75-include.patch, +nmap-4.75.ebuild:
34 + Version bump (bug #237121).
35
36 30 Aug 2008; Michał Januszewski <spock@g.o>
37 +files/nmap-4.68-concurrent-make-fix.patch, nmap-4.68.ebuild:
38
39
40
41 1.1 net-analyzer/nmap/nmap-4.75.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nmap/nmap-4.75.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nmap/nmap-4.75.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nmap-4.75.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-4.75.ebuild,v 1.1 2008/09/09 07:05:53 spock Exp $
51
52 inherit eutils flag-o-matic
53
54 DESCRIPTION="A utility for network exploration or security auditing"
55 HOMEPAGE="http://nmap.org/"
56 SRC_URI="http://download.insecure.org/nmap/dist/${P}.tar.bz2"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
61 IUSE="gtk lua ssl"
62
63 DEPEND="dev-libs/libpcre
64 net-libs/libpcap
65 gtk? ( >=x11-libs/gtk+-2.6
66 >=dev-python/pygtk-2.6
67 || ( >=dev-lang/python-2.5
68 >=dev-python/pysqlite-2 )
69 )
70 ssl? ( dev-libs/openssl )"
71
72 pkg_setup() {
73 if use gtk && has_version ">=dev-lang/python-2.5" &&
74 ! has_version ">=dev-python/pysqlite-2" &&
75 ! built_with_use dev-lang/python sqlite ; then
76 eerror "In order to use the nmap GUI you have to either emerge dev-lang/python"
77 eerror "with the 'sqlite' USE flag, or install dev-python/pysqlite-2*."
78 die "sqlite support missing"
79 fi
80 }
81
82 src_unpack() {
83 unpack ${A}
84 cd "${S}"
85 epatch "${FILESDIR}/${P}-include.patch"
86 }
87
88 src_compile() {
89 local myconf=""
90
91 if use lua ; then
92 if has_version ">=dev-lang/lua-5.1.3-r1" &&
93 built_with_use dev-lang/lua deprecated ; then
94 myconf="--with-liblua"
95 else
96 myconf="--with-liblua=included"
97 fi
98 else
99 myconf="--without-liblua"
100 fi
101
102 econf \
103 --with-libdnet=included \
104 "${myconf}" \
105 $(use_with gtk zenmap) \
106 $(use_with ssl openssl) || die
107 emake || die
108 }
109
110 src_install() {
111 LC_ALL=C emake DESTDIR="${D}" -j1 nmapdatadir=/usr/share/nmap install || die
112 dodoc CHANGELOG HACKING docs/README docs/*.txt || die
113
114 use gtk && doicon "${FILESDIR}/nmap-logo-64.png"
115 }