net-wireless/mdk4: add 4.2_p20220202
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
1df96ad079
commit
7fd5c0a088
@ -1 +1 @@
|
|||||||
DIST mdk4-4.1.tar.gz 271042 BLAKE2B afa8baf4aa74966f7406884d0c8bb73986e85126ec03f8c1918ed365c64ea7be858af377a7b4b81792ef77fdcff073c23bfc11fe03abe864d8c83df9f6c7630f SHA512 b1472458ca02bf94f8717ac70b631f994c38cb67012fc38df0b6859778790b220447e6c1b3f15558e8f203da06ffa83bd36e5f037cb704e893c3fcf329022adc
|
DIST mdk4-4ba85e4c94a79b634b63d26e64a977e568551367.tar.gz 176087 BLAKE2B 70ff263ed89a52ea60e699fd9ca9d734704dba8bbe56f8e237caa76162081f2432197a8b9db3b5bb1a4061fa2a87b17b79db505a880d545cf00be5c76754e665 SHA512 c79c13b24e6e3f0db619fe151c022612a592931bc84704701b155c8dad41df6ca59ab8fb883a6e9fdeaba6e09ef387df506849507ffde37c80b8a101ed44ecab
|
||||||
|
@ -1,50 +0,0 @@
|
|||||||
# Copyright 2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit flag-o-matic
|
|
||||||
|
|
||||||
DESCRIPTION="Proof-of-concept tool to exploit common IEEE 802.11 protocol weaknesses."
|
|
||||||
HOMEPAGE="https://github.com/aircrack-ng/mdk4"
|
|
||||||
|
|
||||||
if [[ "${PV}" == "9999" ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/aircrack-ng/mdk4.git"
|
|
||||||
else
|
|
||||||
SRC_URI="https://github.com/aircrack-ng/mdk4/archive/"${PV}".tar.gz -> "${P}".tar.gz"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-libs/libnl:3
|
|
||||||
net-libs/libpcap
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="virtual/pkgconfig"
|
|
||||||
|
|
||||||
PATCHES=( ""${FILESDIR}"/include_stdlib.patch" )
|
|
||||||
# https://github.com/aircrack-ng/mdk4/commit/a70d75cff34ba24231e75bcef7f8075eb4e7b0a3
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
filter-flags -fno-common
|
|
||||||
append-flags -fcommon
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# The install phase is a tad bit too funky, so doing by hand
|
|
||||||
dosbin src/mdk4
|
|
||||||
doman man/mdk4.1
|
|
||||||
|
|
||||||
insinto /usr/share/"${PN}"
|
|
||||||
doins -r useful_files
|
|
||||||
|
|
||||||
HTML_DOCS="docs"
|
|
||||||
einstalldocs
|
|
||||||
|
|
||||||
dodoc AUTHORS CHANGELOG TODO
|
|
||||||
}
|
|
@ -1,7 +1,7 @@
|
|||||||
# Copyright 2021 Gentoo Authors
|
# Copyright 2021-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=8
|
||||||
|
|
||||||
inherit flag-o-matic
|
inherit flag-o-matic
|
||||||
|
|
||||||
@ -12,7 +12,10 @@ if [[ "${PV}" == "9999" ]]; then
|
|||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/aircrack-ng/mdk4.git"
|
EGIT_REPO_URI="https://github.com/aircrack-ng/mdk4.git"
|
||||||
else
|
else
|
||||||
SRC_URI="https://github.com/aircrack-ng/mdk4/archive/"${PV}".tar.gz -> "${P}".tar.gz"
|
# Use a newer commits for build fixed + man page correction
|
||||||
|
COMMIT="4ba85e4c94a79b634b63d26e64a977e568551367" # 2.2.2022
|
||||||
|
SRC_URI="https://github.com/aircrack-ng/mdk4/archive/${COMMIT}.tar.gz -> ${PN}-${COMMIT}.tar.gz"
|
||||||
|
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -26,22 +29,20 @@ RDEPEND="
|
|||||||
DEPEND="${RDEPEND}"
|
DEPEND="${RDEPEND}"
|
||||||
BDEPEND="virtual/pkgconfig"
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# dont clean dir in all
|
||||||
|
sed -i 's/all: clean/all:/' Makefile || die
|
||||||
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
filter-flags -fno-common
|
# https://github.com/aircrack-ng/mdk4/blob/4.2/src/Makefile#L4
|
||||||
append-flags -fcommon
|
append-flags -fcommon
|
||||||
default
|
default
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_test() {
|
||||||
# The install phase is a tad bit too funky, so doing by hand
|
emake test
|
||||||
dosbin src/mdk4
|
./test || die
|
||||||
doman man/mdk4.1
|
|
||||||
|
|
||||||
insinto /usr/share/"${PN}"
|
|
||||||
doins -r useful_files
|
|
||||||
|
|
||||||
HTML_DOCS="docs"
|
|
||||||
einstalldocs
|
|
||||||
|
|
||||||
dodoc AUTHORS CHANGELOG TODO
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user