Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nmap/
Date: Wed, 16 Dec 2015 08:15:30
Message-Id: 1450252199.076ac810b302d08449e95b5982f665562e7020fa.jer@gentoo
1 commit: 076ac810b302d08449e95b5982f665562e7020fa
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 16 07:49:59 2015 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 16 07:49:59 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=076ac810
7
8 net-analyzer/nmap: Version bump.
9
10 Package-Manager: portage-2.2.26
11
12 net-analyzer/nmap/Manifest | 1 +
13 net-analyzer/nmap/nmap-7.01.ebuild | 155 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 156 insertions(+)
15
16 diff --git a/net-analyzer/nmap/Manifest b/net-analyzer/nmap/Manifest
17 index a096848..7fbc9a4 100644
18 --- a/net-analyzer/nmap/Manifest
19 +++ b/net-analyzer/nmap/Manifest
20 @@ -1,3 +1,4 @@
21 DIST nmap-6.47.tar.bz2 7878122 SHA256 8fa11e9e203ce2d81a207db5ca4f110a525f6c01c1dd0018325a7112a51aa591 SHA512 f98b92a26f4e912fe15c36a21dfff7bfb9f11c2410f4035330100648fbad7f808ef9e069c63704bbb50199272ae65ea81555de6c97eb8ee152114f44ed5a9296 WHIRLPOOL 4f92f0aeaaa03a94dc27080b5f0c2396325f282b7a781d163d1e05a71117896c4581154b58383f136eed1fcf2cce8f1b94e3344f3fc5d4955cf1f4cfc1417573
22 DIST nmap-7.00.tar.bz2 8918906 SHA256 9f442301c615c608a385831c3505cdfed9b0795cd100f1a258b04509802802ae SHA512 f8b4368de5956698e76a2a102102feb4bd00338cf983bfbf7bcd8c941288bb4a02c45469724e8a1daed87f41536a3f16a68fc604171fe23093575ac631637351 WHIRLPOOL f769a28b32c24874eb3d4fc3100ae1e7f271bc54837f992505754f31104de18a12116350b3fbf3402719d7e84110054e8f4fb7ea18ffa3b45f17fab8554998eb
23 +DIST nmap-7.01.tar.bz2 8922697 SHA256 cf1fcd2643ba2ef52f47acb3c18e52fa12a4ae4b722804da0e54560704627705 SHA512 8b37616c2af2134a5a3bb292f25f2bc0232e20e08405620734c07d84bbc9070a87db4d4b14e8a10c67a3684960035ed202be5dd6feddfb613c134208fc62a2a7 WHIRLPOOL 612ad1e98fb0e52b4a85305ab4a1ef21b225a6457d6af09747651eae82c2601edb2b817add01e46c7f4831ed30353917d699b6cc82e67f30a2494dc41fee1d31
24 DIST nmap-logo-64.png 3289 SHA256 4c72ff1eeffeeaa1039b251d9f2d675936e65db686fe3b57a35c2183ce67a8aa SHA512 fb102d12aaeebc8a97543ecd653a3606e86996ad679bc26d6e6e274ad05ec3e9f92521289d1a24153c521b699e8c0cfa65d8856bb49af53ee4837268bbc6b5d3 WHIRLPOOL 6093aadcb9880587e17d39d45fcbe57bb62777f220655e6ed5b5f900ce49cb8c5a53e24d7db0de6f8909eb0f8981f7565e6ae9b9bf9283a4ccccb0526eab5313
25
26 diff --git a/net-analyzer/nmap/nmap-7.01.ebuild b/net-analyzer/nmap/nmap-7.01.ebuild
27 new file mode 100644
28 index 0000000..0022291
29 --- /dev/null
30 +++ b/net-analyzer/nmap/nmap-7.01.ebuild
31 @@ -0,0 +1,155 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +PYTHON_COMPAT=( python2_7 )
39 +PYTHON_REQ_USE="sqlite,xml"
40 +inherit eutils flag-o-matic python-single-r1 toolchain-funcs
41 +
42 +MY_P=${P/_beta/BETA}
43 +
44 +DESCRIPTION="A utility for network discovery and security auditing"
45 +HOMEPAGE="http://nmap.org/"
46 +SRC_URI="
47 + http://nmap.org/dist/${MY_P}.tar.bz2
48 + https://dev.gentoo.org/~jer/nmap-logo-64.png
49 +"
50 +
51 +LICENSE="GPL-2"
52 +SLOT="0"
53 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
54 +
55 +IUSE="ipv6 libressl +nse system-lua ncat ndiff nls nmap-update nping ssl zenmap"
56 +NMAP_LINGUAS=( de fr hi hr it ja pl pt_BR ru zh )
57 +IUSE+=" ${NMAP_LINGUAS[@]/#/linguas_}"
58 +
59 +REQUIRED_USE="
60 + system-lua? ( nse )
61 + ndiff? ( ${PYTHON_REQUIRED_USE} )
62 + zenmap? ( ${PYTHON_REQUIRED_USE} )
63 +"
64 +
65 +RDEPEND="
66 + dev-libs/liblinear:=
67 + dev-libs/libpcre
68 + net-libs/libpcap[ipv6?]
69 + zenmap? (
70 + dev-python/pygtk:2[${PYTHON_USEDEP}]
71 + ${PYTHON_DEPS}
72 + )
73 + system-lua? ( >=dev-lang/lua-5.2[deprecated] )
74 + ndiff? ( ${PYTHON_DEPS} )
75 + nls? ( virtual/libintl )
76 + nmap-update? ( dev-libs/apr dev-vcs/subversion )
77 + ssl? (
78 + !libressl? ( dev-libs/openssl:0= )
79 + libressl? ( dev-libs/libressl:= )
80 + )
81 +"
82 +DEPEND="
83 + ${RDEPEND}
84 + nls? ( sys-devel/gettext )
85 +"
86 +
87 +S="${WORKDIR}/${MY_P}"
88 +
89 +pkg_setup() {
90 + if use ndiff || use zenmap; then
91 + python-single-r1_pkg_setup
92 + fi
93 +}
94 +
95 +src_unpack() {
96 + # prevent unpacking the logo
97 + unpack ${MY_P}.tar.bz2
98 +}
99 +
100 +src_prepare() {
101 + epatch \
102 + "${FILESDIR}"/${PN}-4.75-nolua.patch \
103 + "${FILESDIR}"/${PN}-5.10_beta1-string.patch \
104 + "${FILESDIR}"/${PN}-5.21-python.patch \
105 + "${FILESDIR}"/${PN}-6.46-uninstaller.patch \
106 + "${FILESDIR}"/${PN}-6.47-no-libnl.patch \
107 + "${FILESDIR}"/${PN}-6.49-no-FORTIFY_SOURCE.patch \
108 + "${FILESDIR}"/${PN}-6.25-liblua-ar.patch
109 +
110 + if use nls; then
111 + local lingua=''
112 + for lingua in ${NMAP_LINGUAS[@]}; do
113 + if ! use linguas_${lingua}; then
114 + rm -r zenmap/share/zenmap/locale/${lingua} || die
115 + rm zenmap/share/zenmap/locale/${lingua}.po || die
116 + fi
117 + done
118 + else
119 + # configure/make ignores --disable-nls
120 + for lingua in ${NMAP_LINGUAS[@]}; do
121 + rm -r zenmap/share/zenmap/locale/${lingua} || die
122 + rm zenmap/share/zenmap/locale/${lingua}.po || die
123 + done
124 + fi
125 +
126 + sed -i \
127 + -e '/^ALL_LINGUAS =/{s|$| id|g;s|jp|ja|g}' \
128 + Makefile.in || die
129 +
130 + # Fix desktop files wrt bug #432714
131 + sed -i \
132 + -e '/^Encoding/d' \
133 + -e 's|^Categories=.*|Categories=Network;System;Security;|g' \
134 + zenmap/install_scripts/unix/zenmap-root.desktop \
135 + zenmap/install_scripts/unix/zenmap.desktop || die
136 +
137 + epatch_user
138 +}
139 +
140 +src_configure() {
141 + # The bundled libdnet is incompatible with the version available in the
142 + # tree, so we cannot use the system library here.
143 + econf \
144 + $(use_enable ipv6) \
145 + $(use_enable nls) \
146 + $(use_with zenmap) \
147 + $(usex nse --with-liblua=$(usex system-lua /usr included '' '') --without-liblua) \
148 + $(use_with ncat) \
149 + $(use_with ndiff) \
150 + $(use_with nmap-update) \
151 + $(use_with nping) \
152 + $(use_with ssl openssl) \
153 + --with-libdnet=included \
154 + --with-pcre=/usr
155 + # --with-liblinear=/usr \
156 + # Commented because configure does weird things, while autodetection works
157 +}
158 +
159 +src_compile() {
160 + emake \
161 + AR=$(tc-getAR) \
162 + RANLIB=$(tc-getRANLIB)
163 +}
164 +
165 +src_install() {
166 + LC_ALL=C emake -j1 \
167 + DESTDIR="${D}" \
168 + STRIP=: \
169 + nmapdatadir="${EPREFIX}"/usr/share/nmap \
170 + install
171 + if use nmap-update;then
172 + LC_ALL=C emake -j1 \
173 + -C nmap-update \
174 + DESTDIR="${D}" \
175 + STRIP=: \
176 + nmapdatadir="${EPREFIX}"/usr/share/nmap \
177 + install
178 + fi
179 +
180 + dodoc CHANGELOG HACKING docs/README docs/*.txt
181 +
182 + if use zenmap; then
183 + doicon "${DISTDIR}/nmap-logo-64.png"
184 + python_optimize
185 + fi
186 +}