diff options
author | Sam James <sam@gentoo.org> | 2022-09-09 04:35:27 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-09-09 04:35:27 +0100 |
commit | 4c9c2bb1098e1146d681b1f807163f3c42ffe93a (patch) | |
tree | f989e539ac4af7ddaf27545273ce09d32a917ea7 /net-analyzer | |
parent | dev-libs/libofx: add 0.10.7, drop 0.10.6-r1 (diff) | |
download | gentoo-4c9c2bb1098e1146d681b1f807163f3c42ffe93a.tar.gz gentoo-4c9c2bb1098e1146d681b1f807163f3c42ffe93a.tar.bz2 gentoo-4c9c2bb1098e1146d681b1f807163f3c42ffe93a.zip |
net-analyzer/hydra: add 9.4, drop 9999999
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/hydra/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/hydra/files/hydra-9.4-implicit-func-decl.patch | 33 | ||||
-rw-r--r-- | net-analyzer/hydra/hydra-9.4.ebuild (renamed from net-analyzer/hydra/hydra-9999999.ebuild) | 38 |
3 files changed, 56 insertions, 16 deletions
diff --git a/net-analyzer/hydra/Manifest b/net-analyzer/hydra/Manifest index b3c28ec91261..62f2f9a362a3 100644 --- a/net-analyzer/hydra/Manifest +++ b/net-analyzer/hydra/Manifest @@ -1,3 +1,4 @@ DIST hydra-9.1.tar.gz 611846 BLAKE2B 9a5b6dc52b5f4069bf326e86728ebaf8c1fe018536f3943b83493de934703bff6770ae3f7a9a223ee00b5f52f7bd10ee4ddc272e1bbad00c399aa19cc0c083ba SHA512 863176375fe1aae4c0a2b74c11aba297682d66e522c98c926c539348309b0af4e407e460b4cb803d2c83c008787c73f7f1e56ac6aca9791351e1b596c2e4fbb2 DIST hydra-9.2.tar.gz 614176 BLAKE2B 102c744fbdd3702c624b1c8339178883b689db093d9f1c66d8e04816327eb8095f3e3133f889b2a6ee6dcabb9e5af0c71ec8470731b4b174021fbd79741d05e7 SHA512 ee8ecd854b61ac9d708098c8a0d9a128d8b80b38db1a2ba8eb06de6fbbc6865135d994620ade8e3742fb993899274ed9d8fd0e95bed7a9fbeb1ca9e182540322 DIST hydra-9.3.tar.gz 829856 BLAKE2B 5ae1ab77f64d2bc17bd8389acf8a47201d84455a82f5ae28ab740594571a13ab145f5981efdfb09ddab3d6cc443e171e4664bff08c1a6b2f08169dea4f87ba54 SHA512 06d2ed61492c76d16ff3b2fbbde3938f79d6038c979a2af949f9b4d116a1506943e0a3a246da4d1bc8848cf440097e6175962e3fdf3e7644dd36ad7c2f6b2ce4 +DIST hydra-9.4.tar.gz 833465 BLAKE2B 2ba7f7e4a70c4f6c9dc4ec94d652ab7534cb0fb17b88412dfcf1e651d9f31af573ab9acd2d9cb698da6462f4744f53dfb8f87a437c32bebfa4f9a04f2f9136c0 SHA512 de5a1e73673fdc2f193cfb1aeec337c9d8faad52b06524850f352a797a4a5ef08cba8fc51da96fed1db01d141127e58c2aa874027f51c40a94a474de778d5241 diff --git a/net-analyzer/hydra/files/hydra-9.4-implicit-func-decl.patch b/net-analyzer/hydra/files/hydra-9.4-implicit-func-decl.patch new file mode 100644 index 000000000000..bf4dd61e33ce --- /dev/null +++ b/net-analyzer/hydra/files/hydra-9.4-implicit-func-decl.patch @@ -0,0 +1,33 @@ +https://github.com/vanhauser-thc/thc-hydra/pull/786 + +From 613bd02264dcc989eeeb77b83603d4c2f48f0bbc Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Fri, 9 Sep 2022 04:32:05 +0100 +Subject: [PATCH] Makefile.am: add -D_GNU_SOURCE for strcasestr +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +strcasestr is not a standard function and per +the man page, needs -D_GNU_SOURCE to be visible. + +Fixes a build error: +``` +hydra-rtsp.c:20:7: error: implicit declaration of function ‘strcasestr’; did you mean ‘strcasecmp’? [-Werror=implicit-function-declaration] + 20 | if (strcasestr(s, "401 Unauthorized") != NULL) { + | ^~~~~~~~~~ + | strcasecmp +``` + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/Makefile.am ++++ b/Makefile.am +@@ -5,6 +5,7 @@ WARN_CLANG=-Wformat-nonliteral -Wstrncat-size -Wformat-security -Wsign-conversio + WARN_GCC=-Wformat=2 -Wformat-overflow=2 -Wformat-nonliteral -Wformat-truncation=2 -Wnull-dereference -Wstrict-overflow=2 -Wstringop-overflow=4 -Walloca-larger-than=4096 -Wtype-limits -Wconversion -Wtrampolines -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fno-common -Wcast-align + CFLAGS ?= -g + OPTS=-I. -O3 $(CFLAGS) -fcommon ++CPPFLAGS += -D_GNU_SOURCE + # -Wall -g -pedantic + LIBS=-lm + DESTDIR ?= + diff --git a/net-analyzer/hydra/hydra-9999999.ebuild b/net-analyzer/hydra/hydra-9.4.ebuild index 1e7e5e715482..156d8dd35936 100644 --- a/net-analyzer/hydra/hydra-9999999.ebuild +++ b/net-analyzer/hydra/hydra-9.4.ebuild @@ -1,22 +1,22 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit git-r3 toolchain-funcs +inherit edo toolchain-funcs DESCRIPTION="Parallelized network login hacker" HOMEPAGE="https://github.com/vanhauser-thc/thc-hydra" -EGIT_REPO_URI="https://github.com/vanhauser-thc/thc-hydra" +SRC_URI="https://github.com/vanhauser-thc/thc-hydra/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/thc-${P} LICENSE="GPL-3" SLOT="0" -IUSE=" - debug firebird gcrypt gtk idn memcached mongodb mysql ncurses - oracle pcre postgres rdp libssh subversion zlib -" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug firebird gcrypt gtk idn memcached mongodb mysql ncurses oracle pcre postgres rdp libssh samba subversion zlib" RDEPEND=" + dev-libs/openssl:= gtk? ( dev-libs/atk dev-libs/glib:2 @@ -26,24 +26,23 @@ RDEPEND=" firebird? ( dev-db/firebird ) gcrypt? ( dev-libs/libgcrypt ) idn? ( net-dns/libidn:0= ) - dev-libs/openssl:0= memcached? ( dev-libs/libmemcached[sasl] ) mongodb? ( dev-libs/mongo-c-driver ) mysql? ( dev-db/mysql-connector-c:0= ) ncurses? ( sys-libs/ncurses:= ) oracle? ( dev-db/oracle-instantclient[sdk] ) - pcre? ( dev-libs/libpcre ) + pcre? ( dev-libs/libpcre2 ) postgres? ( dev-db/postgresql:* ) rdp? ( net-misc/freerdp ) libssh? ( >=net-libs/libssh-0.4.0 ) + samba? ( net-fs/samba ) subversion? ( dev-vcs/subversion ) - zlib? ( sys-libs/zlib ) -" + zlib? ( sys-libs/zlib )" DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" PATCHES=( - "${FILESDIR}"/${PN}-9999999-respect-cflags-more.patch + "${FILESDIR}"/${PN}-9.4-implicit-func-decl.patch ) src_prepare() { @@ -59,6 +58,12 @@ src_prepare() { -e '/^OPTS/{s|=|+=|;s| -O3||}' \ -e '/ -o /s:$(OPTS):& $(LDFLAGS):g' \ Makefile.am || die + + # Needed to get GTK+ 3 change in configure.in (.in got updated, but + # configure not regen'd.) + #cd hydra-gtk || die + #sed -i -e 's:AC_INIT(configure.in):AC_INIT(configure.ac):' configure.in || die + #eautoreconf } src_configure() { @@ -87,18 +92,19 @@ src_configure() { hydra_sed mongodb '-lmongoc-1.0' '$( "${PKG_CONFIG}" --libs libmongoc-1.0 )' '-DLIBMONGODB\|-DLIBBSON' hydra_sed mysql '-lmysqlclient' '$( ${CTARGET:-${CHOST}}-mysql_config --libs )' '-DLIBMYSQLCLIENT' hydra_sed ncurses '-lcurses' '$( "${PKG_CONFIG}" --libs ncurses )' '-DLIBNCURSES' - hydra_sed pcre '-lpcre' '$( "${PKG_CONFIG}" --libs libpcre )' '-DHAVE_PCRE' + hydra_sed pcre '-lpcre2-8' '$( "${PKG_CONFIG}" --libs libpcre2-8 )' '-DHAVE_PCRE' hydra_sed postgres '-lpq' '$( "${PKG_CONFIG}" --libs libpq )' '-DLIBPOSTGRES' hydra_sed oracle '-locci -lclntsh' '' '-DLIBORACLE' hydra_sed rdp '-lfreerdp2' '$( "${PKG_CONFIG}" --libs freerdp2 )' '-DLIBFREERDP' # TODO: https://bugs.gentoo.org/686148 #hydra_sed subversion '-lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1' '$( "${PKG_CONFIG}" --libs libsvn_client )' '-DLIBSVN' + hydra_sed samba '-lsmbclient' '$( "${PKG_CONFIG}" --libs smbclient )' '-DLIBSMBCLIENT' hydra_sed subversion '-lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1' '' '-DLIBSVN' hydra_sed zlib '-lz' '$( "${PKG_CONFIG}" --libs zlib )' '-DHAVE_ZLIB' - sh configure \ - $(use gtk || echo --disable-xhydra) \ - $(usex debug '--debug' '') \ + edo ./configure \ + $(usev !gtk '--disable-xhydra') \ + $(usev debug '--debug') \ --nostrip \ --prefix=/usr \ || die |