Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nmap/
Date: Fri, 22 May 2020 10:52:03
Message-Id: 1590144703.9fd149287f841fb4090d59867d66b76d38775b37.asturm@gentoo
1 commit: 9fd149287f841fb4090d59867d66b76d38775b37
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 21 21:13:49 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri May 22 10:51:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fd14928
7
8 net-analyzer/nmap: Drop IUSE ndiff, nls, zenmap
9
10 Closes: https://bugs.gentoo.org/702288
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 net-analyzer/nmap/nmap-7.80-r1.ebuild | 64 +++++------------------------------
15 net-analyzer/nmap/nmap-9999.ebuild | 62 ++++-----------------------------
16 2 files changed, 15 insertions(+), 111 deletions(-)
17
18 diff --git a/net-analyzer/nmap/nmap-7.80-r1.ebuild b/net-analyzer/nmap/nmap-7.80-r1.ebuild
19 index e974f482eb2..f17847a96e5 100644
20 --- a/net-analyzer/nmap/nmap-7.80-r1.ebuild
21 +++ b/net-analyzer/nmap/nmap-7.80-r1.ebuild
22 @@ -2,11 +2,9 @@
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=7
26 -PYTHON_COMPAT=( python2_7 )
27 -PYTHON_REQ_USE="sqlite,xml"
28 -inherit autotools desktop flag-o-matic python-single-r1 toolchain-funcs user
29
30 MY_P=${P/_beta/BETA}
31 +inherit autotools desktop flag-o-matic toolchain-funcs user
32
33 DESCRIPTION="A utility for network discovery and security auditing"
34 HOMEPAGE="https://nmap.org/"
35 @@ -14,21 +12,13 @@ SRC_URI="
36 https://nmap.org/dist/${MY_P}.tar.bz2
37 https://dev.gentoo.org/~jer/nmap-logo-64.png
38 "
39 -KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
40
41 LICENSE="GPL-2"
42 SLOT="0"
43 +KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
44 +IUSE="ipv6 libressl libssh2 ncat ndiff nmap-update nping +nse ssl system-lua"
45 +REQUIRED_USE="system-lua? ( nse )"
46
47 -IUSE="
48 - ipv6 libressl libssh2 ncat ndiff nls nmap-update nping +nse ssl system-lua
49 - zenmap
50 -"
51 -NMAP_LINGUAS=( de fr hi hr it ja pl pt_BR ru zh )
52 -REQUIRED_USE="
53 - system-lua? ( nse )
54 - ndiff? ( ${PYTHON_REQUIRED_USE} )
55 - zenmap? ( ${PYTHON_REQUIRED_USE} )
56 -"
57 RDEPEND="
58 dev-libs/liblinear:=
59 dev-libs/libpcre
60 @@ -37,8 +27,6 @@ RDEPEND="
61 net-libs/libssh2[zlib]
62 sys-libs/zlib
63 )
64 - ndiff? ( ${PYTHON_DEPS} )
65 - nls? ( virtual/libintl )
66 nmap-update? (
67 dev-libs/apr
68 dev-vcs/subversion
69 @@ -49,17 +37,9 @@ RDEPEND="
70 libressl? ( dev-libs/libressl:= )
71 )
72 system-lua? ( >=dev-lang/lua-5.2:*[deprecated] )
73 - zenmap? (
74 - $(python_gen_cond_dep '
75 - dev-python/pygtk:2[${PYTHON_MULTI_USEDEP}]
76 - ')
77 - ${PYTHON_DEPS}
78 - )
79 -"
80 -DEPEND="
81 - ${RDEPEND}
82 - nls? ( sys-devel/gettext )
83 "
84 +DEPEND="${RDEPEND}"
85 +
86 PATCHES=(
87 "${FILESDIR}"/${PN}-5.10_beta1-string.patch
88 "${FILESDIR}"/${PN}-5.21-python.patch
89 @@ -73,12 +53,6 @@ PATCHES=(
90 )
91 S="${WORKDIR}/${MY_P}"
92
93 -pkg_setup() {
94 - if use ndiff || use zenmap; then
95 - python-single-r1_pkg_setup
96 - fi
97 -}
98 -
99 src_prepare() {
100 rm -r liblinear/ libpcap/ libpcre/ libssh2/ libz/ || die
101
102 @@ -86,22 +60,6 @@ src_prepare() {
103
104 default
105
106 - local lingua
107 - if use nls; then
108 - for lingua in ${NMAP_LINGUAS[@]}; do
109 - if ! has ${lingua} ${LINGUAS-${lingua}}; then
110 - rm -r zenmap/share/zenmap/locale/${lingua} || die
111 - rm zenmap/share/zenmap/locale/${lingua}.po || die
112 - fi
113 - done
114 - else
115 - # configure/make ignores --disable-nls
116 - for lingua in ${NMAP_LINGUAS[@]}; do
117 - rm -r zenmap/share/zenmap/locale/${lingua} || die
118 - rm zenmap/share/zenmap/locale/${lingua}.po || die
119 - done
120 - fi
121 -
122 sed -i \
123 -e '/^ALL_LINGUAS =/{s|$| id|g;s|jp|ja|g}' \
124 Makefile.in || die
125 @@ -126,14 +84,13 @@ src_configure() {
126 # tree, so we cannot use the system library here.
127 econf \
128 $(use_enable ipv6) \
129 - $(use_enable nls) \
130 $(use_with libssh2) \
131 $(use_with ncat) \
132 - $(use_with ndiff) \
133 + --without-ndiff \
134 $(use_with nmap-update) \
135 $(use_with nping) \
136 $(use_with ssl openssl) \
137 - $(use_with zenmap) \
138 + --without-zenmap \
139 $(usex libssh2 --with-zlib) \
140 $(usex nse --with-zlib) \
141 $(usex nse --with-liblua=$(usex system-lua /usr included '' '') --without-liblua) \
142 @@ -175,9 +132,4 @@ src_install() {
143 fi
144
145 dodoc CHANGELOG HACKING docs/README docs/*.txt
146 -
147 - if use zenmap; then
148 - doicon "${DISTDIR}/nmap-logo-64.png"
149 - python_optimize
150 - fi
151 }
152
153 diff --git a/net-analyzer/nmap/nmap-9999.ebuild b/net-analyzer/nmap/nmap-9999.ebuild
154 index 7f9ceb695c1..1c4060d3fe2 100644
155 --- a/net-analyzer/nmap/nmap-9999.ebuild
156 +++ b/net-analyzer/nmap/nmap-9999.ebuild
157 @@ -2,11 +2,9 @@
158 # Distributed under the terms of the GNU General Public License v2
159
160 EAPI=7
161 -PYTHON_COMPAT=( python2_7 )
162 -PYTHON_REQ_USE="sqlite,xml"
163 -inherit autotools desktop flag-o-matic git-r3 python-single-r1 toolchain-funcs user
164
165 MY_P=${P/_beta/BETA}
166 +inherit autotools desktop flag-o-matic git-r3 toolchain-funcs user
167
168 DESCRIPTION="A utility for network discovery and security auditing"
169 HOMEPAGE="https://nmap.org/"
170 @@ -16,17 +14,9 @@ SRC_URI="https://dev.gentoo.org/~jer/nmap-logo-64.png"
171
172 LICENSE="GPL-2"
173 SLOT="0"
174 +IUSE="ipv6 libressl libssh2 ncat ndiff nmap-update nping +nse ssl system-lua"
175 +REQUIRED_USE="system-lua? ( nse )"
176
177 -IUSE="
178 - ipv6 libressl libssh2 ncat ndiff nls nmap-update nping +nse ssl system-lua
179 - zenmap
180 -"
181 -NMAP_LINGUAS=( de fr hi hr it ja pl pt_BR ru zh )
182 -REQUIRED_USE="
183 - system-lua? ( nse )
184 - ndiff? ( ${PYTHON_REQUIRED_USE} )
185 - zenmap? ( ${PYTHON_REQUIRED_USE} )
186 -"
187 RDEPEND="
188 dev-libs/liblinear:=
189 dev-libs/libpcre
190 @@ -35,8 +25,6 @@ RDEPEND="
191 net-libs/libssh2[zlib]
192 sys-libs/zlib
193 )
194 - ndiff? ( ${PYTHON_DEPS} )
195 - nls? ( virtual/libintl )
196 nmap-update? (
197 dev-libs/apr
198 dev-vcs/subversion
199 @@ -47,17 +35,9 @@ RDEPEND="
200 libressl? ( dev-libs/libressl:= )
201 )
202 system-lua? ( >=dev-lang/lua-5.2:*[deprecated] )
203 - zenmap? (
204 - $(python_gen_cond_dep '
205 - dev-python/pygtk:2[${PYTHON_MULTI_USEDEP}]
206 - ')
207 - ${PYTHON_DEPS}
208 - )
209 -"
210 -DEPEND="
211 - ${RDEPEND}
212 - nls? ( sys-devel/gettext )
213 "
214 +DEPEND="${RDEPEND}"
215 +
216 PATCHES=(
217 "${FILESDIR}"/${PN}-5.10_beta1-string.patch
218 "${FILESDIR}"/${PN}-5.21-python.patch
219 @@ -72,12 +52,6 @@ PATCHES=(
220 )
221 S="${WORKDIR}/${MY_P}"
222
223 -pkg_setup() {
224 - if use ndiff || use zenmap; then
225 - python-single-r1_pkg_setup
226 - fi
227 -}
228 -
229 src_prepare() {
230 rm -r liblinear/ libpcap/ libpcre/ libssh2/ libz/ || die
231
232 @@ -85,22 +59,6 @@ src_prepare() {
233
234 default
235
236 - local lingua
237 - if use nls; then
238 - for lingua in ${NMAP_LINGUAS[@]}; do
239 - if ! has ${lingua} ${LINGUAS-${lingua}}; then
240 - rm -r zenmap/share/zenmap/locale/${lingua} || die
241 - rm zenmap/share/zenmap/locale/${lingua}.po || die
242 - fi
243 - done
244 - else
245 - # configure/make ignores --disable-nls
246 - for lingua in ${NMAP_LINGUAS[@]}; do
247 - rm -r zenmap/share/zenmap/locale/${lingua} || die
248 - rm zenmap/share/zenmap/locale/${lingua}.po || die
249 - done
250 - fi
251 -
252 sed -i \
253 -e '/^ALL_LINGUAS =/{s|$| id|g;s|jp|ja|g}' \
254 Makefile.in || die
255 @@ -125,14 +83,13 @@ src_configure() {
256 # tree, so we cannot use the system library here.
257 econf \
258 $(use_enable ipv6) \
259 - $(use_enable nls) \
260 $(use_with libssh2) \
261 $(use_with ncat) \
262 - $(use_with ndiff) \
263 + --without-ndiff \
264 $(use_with nmap-update) \
265 $(use_with nping) \
266 $(use_with ssl openssl) \
267 - $(use_with zenmap) \
268 + --without-zenmap \
269 $(usex libssh2 --with-zlib) \
270 $(usex nse --with-zlib) \
271 $(usex nse --with-liblua=$(usex system-lua /usr included '' '') --without-liblua) \
272 @@ -174,9 +131,4 @@ src_install() {
273 fi
274
275 dodoc CHANGELOG HACKING docs/README docs/*.txt
276 -
277 - if use zenmap; then
278 - doicon "${DISTDIR}/nmap-logo-64.png"
279 - python_optimize
280 - fi
281 }