diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-06-02 21:45:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-06-02 21:45:28 +0100 |
commit | 2018227e9344edb9da15fc6a4a8298086cc2aa77 (patch) | |
tree | c18e1c09e605e94e2a1e93345ad25746cc9e14b9 /net-wireless/wepattack/wepattack-0.1.3-r5.ebuild | |
parent | 6f8038813c460b4f0572d5ef595cdfa94af3a94d (diff) |
gentoo resync : 02.06.2019
Diffstat (limited to 'net-wireless/wepattack/wepattack-0.1.3-r5.ebuild')
-rw-r--r-- | net-wireless/wepattack/wepattack-0.1.3-r5.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/net-wireless/wepattack/wepattack-0.1.3-r5.ebuild b/net-wireless/wepattack/wepattack-0.1.3-r5.ebuild new file mode 100644 index 000000000000..0d272d9e31de --- /dev/null +++ b/net-wireless/wepattack/wepattack-0.1.3-r5.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils 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" + +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 ) )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-filter-mac-address.patch + epatch "${FILESDIR}"/${P}-missed-string.h-warnings-fix.patch + chmod +x src/wlan + 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 +} |