commit: 5cd08ea3ff8001806f06d900390153ff10c95f6b Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Thu Aug 28 17:31:47 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Thu Aug 28 17:33:48 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cd08ea3
net-analyzer/wapiti: treeclean Closes: https://bugs.gentoo.org/959847 (pkgremoved) Closes: https://bugs.gentoo.org/952156 (pkgremoved) Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> net-analyzer/wapiti/Manifest | 1 - .../wapiti/files/wapiti-3.1.6-setup_scripts.patch | 14 ---- net-analyzer/wapiti/files/wapiti-3.1.7-httpx.patch | 51 -------------- net-analyzer/wapiti/metadata.xml | 20 ------ net-analyzer/wapiti/wapiti-3.1.7-r2.ebuild | 82 ---------------------- profiles/package.mask | 1 - 6 files changed, 169 deletions(-) diff --git a/net-analyzer/wapiti/Manifest b/net-analyzer/wapiti/Manifest deleted file mode 100644 index 9a906a399050..000000000000 --- a/net-analyzer/wapiti/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST wapiti-3.1.7.gh.tar.gz 1842342 BLAKE2B 3d86af5085eb9e5e63608af91ed553596b962225e214476781b18f5730c5e7e2beff27e683544ee49d0a267f0a71b58278d2baaef7b1258b2e72721f86843970 SHA512 e5524427a6933cf049dc16acf5b1b2481ed5eaa69e91952cb1932e873398961f5aaaab113d481f585e5d4de6efabd124dd36f6b8b6dbef0da256dcfd6c1ebdd6 diff --git a/net-analyzer/wapiti/files/wapiti-3.1.6-setup_scripts.patch b/net-analyzer/wapiti/files/wapiti-3.1.6-setup_scripts.patch deleted file mode 100644 index 8df972aeb1bc..000000000000 --- a/net-analyzer/wapiti/files/wapiti-3.1.6-setup_scripts.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff -Naur wapiti3-3.1.6.orig/setup.py wapiti3-3.1.6/setup.py ---- wapiti3-3.1.6.orig/setup.py 2023-01-31 22:19:30.000000000 +0100 -+++ wapiti3-3.1.6/setup.py 2023-02-09 21:56:43.644507169 +0100 -@@ -81,10 +81,6 @@ - packages=find_packages(exclude=["tests", "tests.*"]), - data_files=doc_and_conf_files, - include_package_data=True, -- scripts=[ -- "bin/wapiti", -- "bin/wapiti-getcookie" -- ], - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Environment :: Console", diff --git a/net-analyzer/wapiti/files/wapiti-3.1.7-httpx.patch b/net-analyzer/wapiti/files/wapiti-3.1.7-httpx.patch deleted file mode 100644 index 9a45bd09c723..000000000000 --- a/net-analyzer/wapiti/files/wapiti-3.1.7-httpx.patch +++ /dev/null @@ -1,51 +0,0 @@ -From 77fe140f8ad4d2fb266f1b49285479f6af25d6b7 Mon Sep 17 00:00:00 2001 -From: devloop <[email protected]> -Date: Wed, 16 Apr 2025 11:12:08 +0200 -Subject: [PATCH] fix wappalyzer user warnings and deprecation warnings in - other modules - ---- a/wapitiCore/net/crawler.py -+++ b/wapitiCore/net/crawler.py -@@ -22,7 +22,7 @@ - from urllib.parse import urlparse, urlunparse - import warnings - import functools --from typing import Dict -+from typing import Dict, Optional - import asyncio - import ssl - -@@ -157,7 +157,7 @@ class AsyncCrawler: - headers=headers, - cookies=configuration.cookies, - verify=ssl_context, -- proxies=cls._proxy_url_to_dict(configuration.proxy), -+ proxy=cls._fix_proxy_url(configuration.proxy), - timeout=configuration.timeout, - event_hooks={"request": [drop_cookies_from_request]} if configuration.drop_cookies else None, - ) -@@ -166,10 +166,10 @@ class AsyncCrawler: - return cls(configuration.base_request, client, configuration.timeout) - - @staticmethod -- def _proxy_url_to_dict(proxy: str) -> Dict[str, str]: -+ def _fix_proxy_url(proxy: str) -> Optional[str]: - """Set a proxy to use for HTTP requests.""" - if not proxy: -- return {} -+ return None - - url_parts = urlparse(proxy) - protocol = url_parts.scheme.lower() -@@ -180,10 +180,7 @@ class AsyncCrawler: - if protocol == "socks": - protocol = "socks5" - -- return { -- "http://": urlunparse((protocol, url_parts.netloc, '/', '', '', '')), -- "https://": urlunparse((protocol, url_parts.netloc, '/', '', '', '')), -- } -+ return urlunparse((protocol, url_parts.netloc, '/', '', '', '')) - - @property - def timeout(self): diff --git a/net-analyzer/wapiti/metadata.xml b/net-analyzer/wapiti/metadata.xml deleted file mode 100644 index 667bbc594167..000000000000 --- a/net-analyzer/wapiti/metadata.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>[email protected]</email> - <name>Bernard Cafarelli</name> - </maintainer> - <longdescription>Wapiti allows you to audit the security of your web applications. - -It performs black-box scans, i.e. it does not study the source code of the application but will scans the webpages of the deployed webapp, looking for scripts and forms where it can inject data. - -Once it gets this list, Wapiti acts like a fuzzer, injecting payloads to see if a script is vulnerable.</longdescription> - <upstream> - <remote-id type="github">wapiti-scanner/wapiti</remote-id> - <remote-id type="sourceforge">wapiti</remote-id> - </upstream> - <use> - <!-- Need extra dep <flag name="ntlm">Support NTLM authentication</flag> --> - </use> -</pkgmetadata> diff --git a/net-analyzer/wapiti/wapiti-3.1.7-r2.ebuild b/net-analyzer/wapiti/wapiti-3.1.7-r2.ebuild deleted file mode 100644 index 53a66aa1f275..000000000000 --- a/net-analyzer/wapiti/wapiti-3.1.7-r2.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{11..12} ) -PYTHON_REQ_USE='xml(+)' - -inherit distutils-r1 - -DESCRIPTION="Web-application vulnerability scanner" -HOMEPAGE="https://wapiti-scanner.github.io/" -SRC_URI=" - https://github.com/wapiti-scanner/wapiti/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz -" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64" -# Requires httpx-ntlm (to package) -#IUSE="ntlm" -IUSE="test" -PROPERTIES="test_network" -RESTRICT="test" - -# httpx requires brotli and socks, so depending on -# dev-python/socksio and dev-python/brotlicffi -RDEPEND=" - >=dev-python/aiocache-0.12.0[${PYTHON_USEDEP}] - >=dev-python/aiohttp-3.8.4[${PYTHON_USEDEP}] - >=dev-python/aiosqlite-0.17.0[${PYTHON_USEDEP}] - >=dev-python/arsenic-21.8[${PYTHON_USEDEP}] - >=dev-python/beautifulsoup4-4.10.0[${PYTHON_USEDEP}] - dev-python/brotlicffi[${PYTHON_USEDEP}] - >=dev-python/browser-cookie3-0.16.2[${PYTHON_USEDEP}] - >=dev-python/dnspython-2.1.0[${PYTHON_USEDEP}] - >=dev-python/h11-0.14[${PYTHON_USEDEP}] - >=dev-python/httpx-0.23.3[${PYTHON_USEDEP}] - >=dev-python/loguru-0.5.3[${PYTHON_USEDEP}] - >=dev-python/mako-1.1.4[${PYTHON_USEDEP}] - >=dev-python/markupsafe-2.1.1[${PYTHON_USEDEP}] - >=dev-python/pyasn1-0.4.8[${PYTHON_USEDEP}] - >=dev-python/requests-1.2.3[${PYTHON_USEDEP}] - dev-python/socksio[${PYTHON_USEDEP}] - >=dev-python/sqlalchemy-1.4.26[${PYTHON_USEDEP}] - >=dev-python/tld-0.12.5[${PYTHON_USEDEP}] - >=dev-python/typing-extensions-4.4.0[${PYTHON_USEDEP}] - >=dev-python/yaswfp-0.9.3[${PYTHON_USEDEP}] - >=net-proxy/mitmproxy-9.0.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-lang/php - dev-python/greenlet[${PYTHON_USEDEP}] - dev-python/humanize[${PYTHON_USEDEP}] - dev-python/responses[${PYTHON_USEDEP}] - dev-python/respx[${PYTHON_USEDEP}] - ) -" - -EPYTEST_PLUGINS=( pytest-asyncio ) -distutils_enable_tests pytest - -PATCHES=( - "${FILESDIR}"/${PN}-3.1.6-setup_scripts.patch - # part of https://github.com/wapiti-scanner/wapiti/commit/77fe140f8ad4d2fb266f1b49285479f6af25d6b7 - "${FILESDIR}"/${P}-httpx.patch -) - -python_prepare_all() { - sed -i 's/--cov --cov-report=xml//' setup.cfg || die - sed -e 's/"pytest-runner"//' \ - -e "/DOC_DIR =/s/wapiti/${PF}/" \ - -i setup.py || die - distutils-r1_python_prepare_all -} - -EPYTEST_IGNORE=( - # requires humanize, unpackaged sslyze - tests/attack/test_mod_ssl.py -) diff --git a/profiles/package.mask b/profiles/package.mask index 7defd23f866e..2420ced7c04c 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -269,7 +269,6 @@ dev-python/arsenic dev-python/browser-cookie3 dev-python/tld dev-python/yaswfp -net-analyzer/wapiti # Eli Schwartz <[email protected]> (2025-07-18) # End of life software. Relies on a commercial internet service which removed
