Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wapiti/
Date: Sun, 03 Jul 2022 22:49:22
Message-Id: 1656888554.cf853b820278d512781d797cf86d17058134a367.voyageur@gentoo
1 commit: cf853b820278d512781d797cf86d17058134a367
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 3 22:46:31 2022 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 22:49:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf853b82
7
8 net-analyzer/wapiti: add 3.1.2
9
10 Closes: https://bugs.gentoo.org/850187
11 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
12
13 net-analyzer/wapiti/Manifest | 1 +
14 net-analyzer/wapiti/wapiti-3.1.2.ebuild | 51 +++++++++++++++++++++++++++++++++
15 2 files changed, 52 insertions(+)
16
17 diff --git a/net-analyzer/wapiti/Manifest b/net-analyzer/wapiti/Manifest
18 index 51f1417d5769..cbbe91b2185b 100644
19 --- a/net-analyzer/wapiti/Manifest
20 +++ b/net-analyzer/wapiti/Manifest
21 @@ -1 +1,2 @@
22 DIST wapiti3-3.0.5.tar.gz 573630 BLAKE2B 4f6425c54542e3fcf12f50a7ebe4aeeb38083bd04e6a9415466a24ca907e787149b6462972cb6c9d29f4c89bf1f941ae2566b126746bee3697172f342befd7fb SHA512 c1bfdcd4114ec508b4b16e7a4389b23b25326816c7daf0e7fb634ce08b59b983dec92f92287a18cbe7ecde9a06a04da98cfd744f818efc57c606be143fe7db4d
23 +DIST wapiti3-3.1.2.tar.gz 654586 BLAKE2B 6abbb35060ef554e8b803a82744527a361fe3803871b39dc078938c4af70a3f6e1a2adeec95c0ff487aff650d92a3638cb655439d342c2b516a5279ee02af472 SHA512 cd16d5b265a49441ad45341630ea6a2df150172b774d3282ee229b5a73274eed293ad35c6fc5e26443dc96f1437dcd28b77240210840c65cb3f1f7b6e9234c2d
24
25 diff --git a/net-analyzer/wapiti/wapiti-3.1.2.ebuild b/net-analyzer/wapiti/wapiti-3.1.2.ebuild
26 new file mode 100644
27 index 000000000000..8d4a9ed067d8
28 --- /dev/null
29 +++ b/net-analyzer/wapiti/wapiti-3.1.2.ebuild
30 @@ -0,0 +1,51 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +PYTHON_REQ_USE='xml'
38 +
39 +inherit distutils-r1
40 +
41 +MY_P=${PN}3-${PV}
42 +DESCRIPTION="Web-application vulnerability scanner"
43 +HOMEPAGE="http://wapiti.sourceforge.net/"
44 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +# Requires httpx-ntlm (to package)
50 +#IUSE="ntlm"
51 +
52 +# httpx requires brotli and socks, so depending on
53 +# dev-python/socksio and dev-python/brotlicffi
54 +RDEPEND="dev-python/beautifulsoup4[${PYTHON_USEDEP}]
55 + dev-python/brotlicffi[${PYTHON_USEDEP}]
56 + dev-python/httpx[${PYTHON_USEDEP}]
57 + dev-python/lxml[${PYTHON_USEDEP}]
58 + dev-python/mako[${PYTHON_USEDEP}]
59 + >=dev-python/requests-1.2.3[${PYTHON_USEDEP}]
60 + dev-python/socksio[${PYTHON_USEDEP}]
61 + dev-python/tld[${PYTHON_USEDEP}]
62 + dev-python/yaswfp[${PYTHON_USEDEP}]"
63 +
64 +distutils_enable_tests --install pytest
65 +# Tests also require unpackaged respx
66 +BDEPEND+=" test? (
67 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
68 + dev-python/pytest-cov[${PYTHON_USEDEP}]
69 + dev-python/responses[${PYTHON_USEDEP}]
70 + )"
71 +# Many tests require execution of local test php server
72 +RESTRICT="test"
73 +
74 +S=${WORKDIR}/${MY_P}
75 +
76 +python_prepare_all() {
77 + sed -e 's/"pytest-runner"//' \
78 + -e "/DOC_DIR =/s/wapiti/${PF}/" \
79 + -i setup.py || die
80 + distutils-r1_python_prepare_all
81 +}