pentoo-overlay/app-crypt/asleap/asleap-2.2_p20160730-r1.ebuild

50 lines
1 KiB
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Cisco LEAP and Generic MS-CHAPv2 Dictionary Attack"
HOMEPAGE="https://github.com/joswr1ght/asleap"
HASH_COMMIT="f8229d2fd800b36b34699a19f50a35981b1dcb49" # 20160730
SRC_URI="https://github.com/joswr1ght/asleap/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 x86"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
RDEPEND="
dev-libs/openssl
net-libs/libpcap
<=sys-libs/libxcrypt-2.4"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
src_prepare() {
eapply "${FILESDIR}"
sed -e "s/-pipe//;s/-Wall//;s/-g3 -ggdb -g/${CFLAGS}/" \
-i Makefile || die
sed -e "s/#define VER \"\(.*\)\"/#define VER \"${PV}\"/" \
-i version.h || die
sed -e 's#CFLAGS =#CFLAGS +=#' -i Makefile || die
default
}
src_compile() {
CFLAGS="${CFLAGS}" emake CC=$(tc-getCC)
}
src_install() {
dosbin asleap
newbin genkeys asleap-genkeys
dodoc THANKS README
}