Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/wepattack/
Date: Sat, 06 Nov 2021 20:34:00
Message-Id: 1636230770.6a547859a96f9825adeca6f98bde052405562bb7.jsmolic@gentoo
1 commit: 6a547859a96f9825adeca6f98bde052405562bb7
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 5 18:07:00 2021 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 6 20:32:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a547859
7
8 net-wireless/wepattack: Port to EAPI 8
9
10 Closes: https://bugs.gentoo.org/819255
11 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
12
13 net-wireless/wepattack/wepattack-0.1.3-r5.ebuild | 22 +++++++++++++++-------
14 1 file changed, 15 insertions(+), 7 deletions(-)
15
16 diff --git a/net-wireless/wepattack/wepattack-0.1.3-r5.ebuild b/net-wireless/wepattack/wepattack-0.1.3-r5.ebuild
17 index 60effbb9d41..fd0ca3a478c 100644
18 --- a/net-wireless/wepattack/wepattack-0.1.3-r5.ebuild
19 +++ b/net-wireless/wepattack/wepattack-0.1.3-r5.ebuild
20 @@ -1,14 +1,15 @@
21 # Copyright 1999-2021 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=5
25 +EAPI=8
26
27 -inherit epatch toolchain-funcs
28 +inherit toolchain-funcs
29
30 MY_P="WepAttack-${PV}"
31 DESCRIPTION="WLAN tool for breaking 802.11 WEP keys"
32 HOMEPAGE="http://wepattack.sourceforge.net/"
33 SRC_URI="mirror://sourceforge/wepattack/${MY_P}.tar.gz"
34 +S="${WORKDIR}/${MY_P}"
35
36 LICENSE="GPL-2"
37 SLOT="0"
38 @@ -22,14 +23,21 @@ DEPEND="
39 "
40
41 RDEPEND="${DEPEND}
42 -john? ( || ( app-crypt/johntheripper app-crypt/johntheripper-jumbo ) )"
43 + john? ( || (
44 + app-crypt/johntheripper
45 + app-crypt/johntheripper-jumbo
46 + )
47 + )"
48
49 -S="${WORKDIR}/${MY_P}"
50 +PATCHES=(
51 + "${FILESDIR}"/${P}-filter-mac-address.patch
52 + "${FILESDIR}"/${P}-missed-string.h-warnings-fix.patch
53 +)
54
55 src_prepare() {
56 - epatch "${FILESDIR}"/${P}-filter-mac-address.patch
57 - epatch "${FILESDIR}"/${P}-missed-string.h-warnings-fix.patch
58 - chmod +x src/wlan
59 + default
60 +
61 + chmod +x src/wlan || die
62 sed -i \
63 -e "/^CFLAGS=/s:=:=${CFLAGS} :" \
64 -e 's:-fno-for-scope::g' \