From 980af9d76d4b7d7541b41eeff427e5cbd5cf7ec3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 11 May 2023 05:45:51 +0100 Subject: gentoo auto-resync : 11:05:2023 - 05:45:51 --- net-wireless/wepattack/Manifest | 3 +- .../wepattack/files/wepattack-0.1.3-modern-c.patch | 33 +++++++++++ net-wireless/wepattack/wepattack-0.1.3-r5.ebuild | 65 -------------------- net-wireless/wepattack/wepattack-0.1.3-r6.ebuild | 69 ++++++++++++++++++++++ 4 files changed, 104 insertions(+), 66 deletions(-) create mode 100644 net-wireless/wepattack/files/wepattack-0.1.3-modern-c.patch delete mode 100644 net-wireless/wepattack/wepattack-0.1.3-r5.ebuild create mode 100644 net-wireless/wepattack/wepattack-0.1.3-r6.ebuild (limited to 'net-wireless/wepattack') diff --git a/net-wireless/wepattack/Manifest b/net-wireless/wepattack/Manifest index 1dad21766f2e..9e6dc1d3a05d 100644 --- a/net-wireless/wepattack/Manifest +++ b/net-wireless/wepattack/Manifest @@ -1,6 +1,7 @@ AUX wepattack-0.1.3-filter-mac-address.patch 6727 BLAKE2B cdd1ff764e3cc409baa80b06d180673fd78dee2e5c38b5b2986a89ea632b34e089cfc5251818bd4feb48ab8856663ee688c6838c9732dbc87231098bfa538c77 SHA512 0715debb92ec4bed3dc882afe484a0582ad49b0c18fb83938bcae4bc69f8d384d58baa60bed581cb66d46f88c0d8c3a1d76ff629c8e203cc32f13ca760b9601a AUX wepattack-0.1.3-missed-string.h-warnings-fix.patch 608 BLAKE2B f0bd227ddc9e778101802cd988451d374bec0e619f06f180d7275e793d0e8815c08e9a2f9e12614a4efeac2b44fc3cd0bd9ae1c59bd4a650702e21ddde335d58 SHA512 30b92627c616a1e2d07300765d6b2e2b1e097e424820c21d98f814ff153ab87375e913deb9f2e60d61ddd64768865d35e3b5d73b2e700caf7fc85a3f484b719b +AUX wepattack-0.1.3-modern-c.patch 704 BLAKE2B 268a82ab6ac71d3f341dc6f27aa871a2a63b3b954605c281156e1cfa7a1ea00fcbcafa1cd6cafecc38297b360c6d57a5810f6bd0c33555adf4d33ac2a4e86e18 SHA512 0c54cce580a4b4346ec6ad0c99e6d8d49b28a3d102e807530ed7c247c1b4ff5bc961d9a3017e26ac9f8c385f25a8dbeab541767c70bae0e5240652147c80c1c7 AUX wepattack.conf 181 BLAKE2B 62d5a4b333fea32a5c5fe81e71a5b30ed90914361fda8c23dba208e6e4134651f257c337eaa1c8e95c5be5a4323443dad91ea51e1ab47e40064c5231299f8b07 SHA512 51c056be0c8b77e0af5c3ca40ee38244c6d5b7c55be4ac1d6a0e0db721c4be7e1ef235588d27b124a2f281d626fc5904234fb4d2d2e344047582e600ae6037d7 DIST WepAttack-0.1.3.tar.gz 25063 BLAKE2B 48923fd891a57a61edf5a3c75e84c3194ddad79adf7b588b54f4709cfbbad43537011f5e1a6c303f35cace50835802871113d7815bfcd1b08d167449e5007a0f SHA512 fe8d9843613fc29b7802f699311cb67fe3546a17a279ebc2e150cce155e726270dc937b1c941d9e9287b813febf171fe56053f6b010c4f2021e45e572f91fdf4 -EBUILD wepattack-0.1.3-r5.ebuild 1192 BLAKE2B fc21fcc5f0f10a8b01b4b66db79c95523788dfea42e31f186a435a32103cd596a86143293601ef680829aa41edbb622a07533c955aa39eb518b78554fd77b9a6 SHA512 4563ed375bcdf7bbecb61af1541dc30289da6d1ba0c3fe7fa62e80320fc8dd4c3e2d5c55a5844237fb75ccf799a97232fe61f904127af0fc7a0a16cbe4cd4392 +EBUILD wepattack-0.1.3-r6.ebuild 1233 BLAKE2B b2b4ee2b2629b1105c551811ad887e09cec7ec6854e810357c9656b581d65013bd640b24a5a7bbb34d95a876a60541c8f4b833784dd31648cdabde18ae7d2199 SHA512 5182311ac577d4ff56600692d95e18efb5c954dc6367007f9adca614cc98634ba7269b00e00348ed1cd21cbce346fd9b2b126e56fc88c3b98930d3c8db6f275c MISC metadata.xml 739 BLAKE2B 5b3b1e4c5ece8cc942f4a057dc39295a994fe46bd34bf65a69041c0132db98172ea08477c97f9c24a853380d4f87a4ca973b0711dad33a076545357470c60c98 SHA512 2394d09c9b92fcb2e0b0920e8eee797a1763bc964eec9e774723159fee6f6f955d9da0e7e1c31147d649b5ff3aa9830334043b3ca40cb8ca952cbae4ac11b572 diff --git a/net-wireless/wepattack/files/wepattack-0.1.3-modern-c.patch b/net-wireless/wepattack/files/wepattack-0.1.3-modern-c.patch new file mode 100644 index 000000000000..f24d44813f39 --- /dev/null +++ b/net-wireless/wepattack/files/wepattack-0.1.3-modern-c.patch @@ -0,0 +1,33 @@ +https://bugs.gentoo.org/881007 +--- a/src/log.c ++++ b/src/log.c +@@ -25,6 +25,7 @@ + #include "log.h" + #include "wepattack.h" + #include "config.h" ++#include "misc.h" + + static time_t start_time; + char logfile[40]; +--- a/src/misc.c ++++ b/src/misc.c +@@ -23,6 +23,7 @@ + #include "wepattack.h" + #include "config.h" + #include "misc.h" ++#include "log.h" + + double difftime_us(struct timeval *time_start, struct timeval *time_end) { + +@@ -87,8 +88,10 @@ d_fprintf (FILE *__restrict __stream, + __const char *__restrict __format,...) { + + if (DEBUG) { +- fprintf(__stream, __format); ++ return fprintf(__stream, __format); + } ++ ++ return 0; + } + + void print_hex_array(FILE* out, unsigned char* data, int length) { diff --git a/net-wireless/wepattack/wepattack-0.1.3-r5.ebuild b/net-wireless/wepattack/wepattack-0.1.3-r5.ebuild deleted file mode 100644 index fd0ca3a478cb..000000000000 --- a/net-wireless/wepattack/wepattack-0.1.3-r5.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit toolchain-funcs - -MY_P="WepAttack-${PV}" -DESCRIPTION="WLAN tool for breaking 802.11 WEP keys" -HOMEPAGE="http://wepattack.sourceforge.net/" -SRC_URI="mirror://sourceforge/wepattack/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="john" - -DEPEND=" - dev-libs/openssl:0= - net-libs/libpcap - sys-libs/zlib -" - -RDEPEND="${DEPEND} - john? ( || ( - app-crypt/johntheripper - app-crypt/johntheripper-jumbo - ) - )" - -PATCHES=( - "${FILESDIR}"/${P}-filter-mac-address.patch - "${FILESDIR}"/${P}-missed-string.h-warnings-fix.patch -) - -src_prepare() { - default - - chmod +x src/wlan || die - sed -i \ - -e "/^CFLAGS=/s:=:=${CFLAGS} :" \ - -e 's:-fno-for-scope::g' \ - -e "/^CC=/s:gcc:$(tc-getCC):" \ - -e "/^LD=/s:gcc:$(tc-getCC):" \ - -e 's:log.o\\:log.o \\:' \ - src/Makefile || die - sed -i \ - -e "s/wordfile:/-wordlist=/" \ - run/wepattack_word || die -} - -src_compile() { - emake -C src -} - -src_install() { - dobin src/wepattack - if use john; then - dosbin run/wepattack_{inc,word} - insinto /etc - doins "${FILESDIR}"/wepattack.conf - fi - dodoc README -} diff --git a/net-wireless/wepattack/wepattack-0.1.3-r6.ebuild b/net-wireless/wepattack/wepattack-0.1.3-r6.ebuild new file mode 100644 index 000000000000..a58936f4d107 --- /dev/null +++ b/net-wireless/wepattack/wepattack-0.1.3-r6.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +MY_P="WepAttack-${PV}" +DESCRIPTION="WLAN tool for breaking 802.11 WEP keys" +HOMEPAGE="http://wepattack.sourceforge.net/" +SRC_URI="mirror://sourceforge/wepattack/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="john" + +DEPEND=" + dev-libs/openssl:= + net-libs/libpcap + sys-libs/zlib +" +RDEPEND=" + ${DEPEND} + john? ( + || ( + app-crypt/johntheripper + app-crypt/johntheripper-jumbo + ) + ) +" + +PATCHES=( + "${FILESDIR}"/${P}-filter-mac-address.patch + "${FILESDIR}"/${P}-missed-string.h-warnings-fix.patch + "${FILESDIR}"/${P}-modern-c.patch +) + +src_prepare() { + default + + chmod +x src/wlan || die + sed -i \ + -e "/^CFLAGS=/s:=:=${CFLAGS} :" \ + -e 's:-fno-for-scope::g' \ + -e "/^CC=/s:gcc:$(tc-getCC):" \ + -e "/^LD=/s:gcc:$(tc-getCC):" \ + -e 's:log.o\\:log.o \\:' \ + src/Makefile || die + sed -i \ + -e "s/wordfile:/-wordlist=/" \ + run/wepattack_word || die +} + +src_compile() { + emake -C src +} + +src_install() { + dodoc README + dobin src/wepattack + + if use john; then + dosbin run/wepattack_{inc,word} + insinto /etc + doins "${FILESDIR}"/wepattack.conf + fi +} -- cgit v1.2.3