-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-analyzer/webfuzzer: Fix incompatible pointer to integer conversion
and update EAPI 7 -> 8 Closes: https://bugs.gentoo.org/897834 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
net-analyzer/webfuzzer/files/webfuzzer-0.2.0-clang16-build-fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Bug: https://bugs.gentoo.org/897834 | ||
--- a/header.c | ||
+++ b/header.c | ||
@@ -123,7 +123,7 @@ char * url_get_proto( const char * url ) | ||
return NULL; | ||
|
||
if ( (tmp = xstrdup( url )) ) | ||
- while( !isalpha( ptr++ ) ); | ||
+ while( !isalpha( *ptr++ ) ); | ||
|
||
if ( (ret = strstr( ptr, "://" )) ) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
inherit toolchain-funcs | ||
|
||
DESCRIPTION="Poor man's web vulnerability scanner" | ||
HOMEPAGE="http://gunzip.altervista.org/g.php?f=projects" | ||
SRC_URI="http://gunzip.altervista.org/webfuzzer/webfuzzer-${PV}.tar.gz" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
|
||
S=${WORKDIR}/devel | ||
PATCHES=( | ||
"${FILESDIR}"/${P}-flags.patch | ||
"${FILESDIR}"/${P}-fno-common.patch | ||
"${FILESDIR}"/${P}-clang16-build-fix.patch | ||
) | ||
|
||
src_compile() { | ||
emake CC="$(tc-getCC)" | ||
} | ||
|
||
src_install() { | ||
dodoc CHANGES README TODO | ||
dobin webfuzzer | ||
} |