mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-16 07:01:08 +00:00
Done via: ``` git grep -l virtual/zlib$ | xargs sed -i -e 's@virtual/zlib$@&:=@' ``` Signed-off-by: Michał Górny <mgorny@gentoo.org>
47 lines
951 B
Bash
47 lines
951 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
DESCRIPTION="Enhanced version of WepAttack a tool for breaking 802.11 WEP keys"
|
|
HOMEPAGE="http://wepdecrypt.sourceforge.net/"
|
|
SRC_URI="https://downloads.sourceforge.net/wepdecrypt/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~ppc ~x86"
|
|
IUSE="X"
|
|
|
|
RDEPEND="
|
|
dev-libs/openssl:=
|
|
net-libs/libpcap
|
|
virtual/zlib:=
|
|
X? ( x11-libs/fltk:1= )"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-build.patch
|
|
"${FILESDIR}"/${P}-fltk.patch
|
|
"${FILESDIR}"/${P}-buffer.patch # bug#340148.
|
|
"${FILESDIR}"/${P}-dyn.patch
|
|
"${FILESDIR}"/${P}-fno-common.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
sed -i \
|
|
-e 's/make/$(MAKE)/g' \
|
|
-e 's/wepdecrypt-$(VERSION)/${PF}/g' Makefile || die
|
|
}
|
|
|
|
src_configure() {
|
|
econf \
|
|
$(use X || echo --disable-gui) \
|
|
--infodir=/usr/share/doc/${PF}
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
docompress -x /usr/share/man/man1
|
|
}
|