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.76.ebuild
Date: Sat, 13 Sep 2008 20:13:43
Message-Id: E1KebUy-0005V8-Hg@stork.gentoo.org
1 spock 08/09/13 20:13:40
2
3 Modified: ChangeLog
4 Added: nmap-4.76.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc8/cvs/Linux 2.6.26 x86_64)
8
9 Revision Changes Path
10 1.186 net-analyzer/nmap/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nmap/ChangeLog?rev=1.186&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nmap/ChangeLog?rev=1.186&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nmap/ChangeLog?r1=1.185&r2=1.186
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v
19 retrieving revision 1.185
20 retrieving revision 1.186
21 diff -u -r1.185 -r1.186
22 --- ChangeLog 10 Sep 2008 19:43:46 -0000 1.185
23 +++ ChangeLog 13 Sep 2008 20:13:39 -0000 1.186
24 @@ -1,6 +1,11 @@
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.185 2008/09/10 19:43:46 spock Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v 1.186 2008/09/13 20:13:39 spock Exp $
29 +
30 +*nmap-4.76 (13 Sep 2008)
31 +
32 + 13 Sep 2008; Michał Januszewski <spock@g.o> +nmap-4.76.ebuild:
33 + Version bump.
34
35 10 Sep 2008; Michał Januszewski <spock@g.o> -nmap-4.62.ebuild,
36 -nmap-4.65.ebuild:
37
38
39
40 1.1 net-analyzer/nmap/nmap-4.76.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nmap/nmap-4.76.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/nmap/nmap-4.76.ebuild?rev=1.1&content-type=text/plain
44
45 Index: nmap-4.76.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-4.76.ebuild,v 1.1 2008/09/13 20:13:39 spock Exp $
50
51 inherit eutils flag-o-matic
52
53 DESCRIPTION="A utility for network exploration or security auditing"
54 HOMEPAGE="http://nmap.org/"
55 SRC_URI="http://download.insecure.org/nmap/dist/${P}.tar.bz2"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
60 IUSE="gtk lua ssl"
61
62 DEPEND="dev-libs/libpcre
63 net-libs/libpcap
64 gtk? ( >=x11-libs/gtk+-2.6
65 >=dev-python/pygtk-2.6
66 || ( >=dev-lang/python-2.5
67 >=dev-python/pysqlite-2 )
68 )
69 ssl? ( dev-libs/openssl )"
70
71 pkg_setup() {
72 if use gtk && has_version ">=dev-lang/python-2.5" &&
73 ! has_version ">=dev-python/pysqlite-2" &&
74 ! built_with_use dev-lang/python sqlite ; then
75 eerror "In order to use the nmap GUI you have to either emerge dev-lang/python"
76 eerror "with the 'sqlite' USE flag, or install dev-python/pysqlite-2*."
77 die "sqlite support missing"
78 fi
79 }
80
81 src_unpack() {
82 unpack ${A}
83 cd "${S}"
84 epatch "${FILESDIR}/${PN}-4.75-include.patch"
85 epatch "${FILESDIR}/${PN}-4.75-nolua.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 }