Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/nmap: nmap-6.25.ebuild ChangeLog
Date: Sat, 01 Dec 2012 18:06:19
Message-Id: 20121201180608.9BD24216D6@flycatcher.gentoo.org
1 jer 12/12/01 18:06:08
2
3 Modified: ChangeLog
4 Added: nmap-6.25.ebuild
5 Log:
6 Version bump by Anton Bolshakov (bug #445348).
7
8 (Portage version: 2.2.0_alpha143/cvs/Linux x86_64, signed Manifest commit with key A792A613)
9
10 Revision Changes Path
11 1.261 net-analyzer/nmap/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/ChangeLog?rev=1.261&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/ChangeLog?rev=1.261&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/ChangeLog?r1=1.260&r2=1.261
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v
20 retrieving revision 1.260
21 retrieving revision 1.261
22 diff -u -r1.260 -r1.261
23 --- ChangeLog 1 Dec 2012 17:30:48 -0000 1.260
24 +++ ChangeLog 1 Dec 2012 18:06:08 -0000 1.261
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-analyzer/nmap
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v 1.260 2012/12/01 17:30:48 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v 1.261 2012/12/01 18:06:08 jer Exp $
30 +
31 +*nmap-6.25 (01 Dec 2012)
32 +
33 + 01 Dec 2012; Jeroen Roovers <jer@g.o> +nmap-6.25.ebuild:
34 + Version bump by Anton Bolshakov (bug #445348).
35
36 01 Dec 2012; Jeroen Roovers <jer@g.o> -nmap-5.21-r1.ebuild,
37 -nmap-5.35.ebuild, nmap-6.01.ebuild:
38
39
40
41 1.1 net-analyzer/nmap/nmap-6.25.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/nmap-6.25.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/nmap-6.25.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nmap-6.25.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-6.25.ebuild,v 1.1 2012/12/01 18:06:08 jer Exp $
51
52 EAPI="4"
53 PYTHON_DEPEND="2"
54
55 inherit eutils flag-o-matic python
56
57 MY_P=${P/_beta/BETA}
58
59 DESCRIPTION="A utility for network exploration or security auditing"
60 HOMEPAGE="http://nmap.org/"
61 SRC_URI="
62 http://nmap.org/dist/${MY_P}.tar.bz2
63 http://dev.gentoo.org/~jer/nmap-logo-64.png
64 "
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 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"
69 IUSE="gtk lua ncat ndiff nmap-update nping ssl"
70
71 NMAP_PYTHON_DEPEND="
72 || (
73 dev-lang/python:2.7[sqlite]
74 dev-lang/python:2.6[sqlite]
75 dev-lang/python:2.5[sqlite]
76 dev-python/pysqlite:2
77 )
78 "
79 DEPEND="
80 dev-libs/apr
81 dev-libs/libpcre
82 net-libs/libpcap[ipv6]
83 gtk? (
84 >=x11-libs/gtk+-2.6:2
85 >=dev-python/pygtk-2.6
86 ${NMAP_PYTHON_DEPEND}
87 )
88 lua? ( >=dev-lang/lua-5.1.4-r1[deprecated] )
89 ndiff? ( ${NMAP_PYTHON_DEPEND} )
90 nmap-update? ( dev-libs/apr dev-vcs/subversion )
91 ssl? ( dev-libs/openssl )
92 "
93 RDEPEND="${DEPEND}"
94
95 S="${WORKDIR}/${MY_P}"
96
97 pkg_setup() {
98 python_set_active_version 2
99 }
100
101 src_unpack() {
102 unpack ${MY_P}.tar.bz2
103 }
104
105 src_prepare() {
106 epatch "${FILESDIR}"/${PN}-4.75-include.patch
107 epatch "${FILESDIR}"/${PN}-4.75-nolua.patch
108 epatch "${FILESDIR}"/${PN}-5.10_beta1-string.patch
109 epatch "${FILESDIR}"/${PN}-5.21-python.patch
110 epatch "${FILESDIR}"/${PN}-6.01-make.patch
111 sed -i \
112 -e 's/-m 755 -s ncat/-m 755 ncat/' \
113 ncat/Makefile.in || die
114
115 # Fix desktop files wrt bug #432714
116 sed -i \
117 -e '/^Encoding/d' \
118 -e 's|^Categories=.*|Categories=Network;System;Security;|g' \
119 zenmap/install_scripts/unix/zenmap-root.desktop \
120 zenmap/install_scripts/unix/zenmap.desktop || die
121 }
122
123 src_configure() {
124 # The bundled libdnet is incompatible with the version available in the
125 # tree, so we cannot use the system library here.
126 econf \
127 $(use_with gtk zenmap) \
128 $(use_with lua liblua) \
129 $(use_with ncat) \
130 $(use_with ndiff) \
131 $(use_with nmap-update) \
132 $(use_with nping) \
133 $(use_with ssl openssl) \
134 --with-libdnet=included
135 }
136
137 src_install() {
138 LC_ALL=C emake -j1 \
139 DESTDIR="${D}" \
140 STRIP=: \
141 nmapdatadir="${EPREFIX}"/usr/share/nmap \
142 install
143 if use nmap-update;then
144 LC_ALL=C emake -j1 \
145 -C nmap-update \
146 DESTDIR="${D}" \
147 STRIP=: \
148 nmapdatadir="${EPREFIX}"/usr/share/nmap \
149 install
150 fi
151
152 dodoc CHANGELOG HACKING docs/README docs/*.txt
153
154 use gtk && doicon "${DISTDIR}/nmap-logo-64.png"
155 }