diff options
author | 2022-10-19 03:34:35 +0100 | |
---|---|---|
committer | 2022-10-19 03:34:46 +0100 | |
commit | 65ea27c50ef813e5aa0acaaf966d896ddcb56460 (patch) | |
tree | 817d3eb6326df545ae81dca2d8505e0ad5412345 /net-analyzer/authforce/authforce-0.9.9-r4.ebuild | |
parent | app-cdr/extract-xiso: add github upstream metadata (diff) | |
download | gentoo-65ea27c50ef813e5aa0acaaf966d896ddcb56460.tar.gz gentoo-65ea27c50ef813e5aa0acaaf966d896ddcb56460.tar.bz2 gentoo-65ea27c50ef813e5aa0acaaf966d896ddcb56460.zip |
net-analyzer/authforce: fix build w/ Clang 16
Closes: https://bugs.gentoo.org/871222
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/authforce/authforce-0.9.9-r4.ebuild')
-rw-r--r-- | net-analyzer/authforce/authforce-0.9.9-r4.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net-analyzer/authforce/authforce-0.9.9-r4.ebuild b/net-analyzer/authforce/authforce-0.9.9-r4.ebuild new file mode 100644 index 000000000000..1c3be5b08d76 --- /dev/null +++ b/net-analyzer/authforce/authforce-0.9.9-r4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="An HTTP authentication brute forcer" +HOMEPAGE="http://www.divineinvasion.net/authforce/" +SRC_URI="http://www.divineinvasion.net/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="curl nls" + +RDEPEND="sys-libs/readline:= + curl? ( net-misc/curl )" +DEPEND="${RDEPEND}" +BDEPEND="nls? ( sys-devel/gettext )" + +DOCS=( AUTHORS BUGS NEWS README THANKS TODO ) + +PATCHES=( + "${FILESDIR}"/${P}-curl.patch + "${FILESDIR}"/${P}-locale.patch + "${FILESDIR}"/${P}-fixes-for-Wall-warnings.patch + "${FILESDIR}"/${P}-fix-parsing-of-sample-config-file.patch + "${FILESDIR}"/${P}-fix-submit_dummy_list-re-declaration.patch + "${FILESDIR}"/${PN}-0.9.9-Include-stdlib.h-for-free.patch +) + +src_prepare() { + default + + gunzip doc/${PN}.1.gz || die + + sed -i -e "s/${PN}.1.gz/${PN}.1/g" \ + -e "s/\/mang/\/man1/g" doc/Makefile* || die +} + +src_configure() { + econf \ + $(use_with curl) \ + $(use_enable nls) \ + --with-path=/usr/share/${PN}/data:. +} + +src_install() { + default + doman doc/${PN}.1 +} |