Skip to content

Commit

Permalink
asleap-2.2_p20201128.ebuild, joswr1ght/asleap#5
Browse files Browse the repository at this point in the history
  • Loading branch information
blshkv authored and NP-Hardass committed Oct 8, 2021
1 parent 3c0e72b commit 1c7e7ab
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-crypt/asleap/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST asleap-2.2_p20160730.tar.gz 111453 BLAKE2B 1eaff9fa5bf9e47f5df76cac1a97be555570a060ae0184666bb6fa612292b102cbb9675e2b6486f2f871fe1e866339dda942494c6da6bb5ddbb60a0994aa868c SHA512 22dee22753f229adb882788a8e2b0b1e737c52ec908b40f4a683ea527066f2cd829e98e73a7446aa63a82db49608fdb56b2593d3b46f6977e8e390f8f0a1c896
DIST asleap-2.2_p20201128.tar.gz 110875 BLAKE2B 095b602e73aeee24c5a6d708db5a60557383780d3b7a872e2102259cd630645ae3d34b0f0fb3d04f4f4f85673aa5d4c9ecfdf70b416189622b65545ee86797a5 SHA512 7700695f3888058c9abd710a35a18ab350290e03916bfa197e089fe98f8f7caf2ac69f3340f2c5a61689e37d8e611f752c10ce71d53cebf3b8e38e50062dfdef
50 changes: 50 additions & 0 deletions app-crypt/asleap/asleap-2.2_p20201128.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Copyright 1999-2020 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="254acabba34cb44608c9d2dcf7a147553d3d5ba3"
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
}

0 comments on commit 1c7e7ab

Please sign in to comment.