Package Details: mdk4 4.1-2

Git Clone URL: https://aur.archlinux.org/mdk4.git (read-only, click to copy)
Package Base: mdk4
Description: MDK is a proof-of-concept tool to exploit common IEEE 802.11 protocol weaknesses
Upstream URL: https://github.com/aircrack-ng/mdk4
Keywords: aircrack-ng exploit wifi
Licenses: GPL2
Submitter: pizzaman
Maintainer: pizzaman
Last Packager: pizzaman
Votes: 6
Popularity: 0.002797
First Submitted: 2019-06-05 08:37
Last Updated: 2020-11-28 00:32

Dependencies (1)

Required by (2)

Sources (1)

Latest Comments

pizzaman commented on 2020-11-28 00:35

@fabis_cafe Sorry for the delay. Thanks for the suggested PKGBUILD. I managed to get it to compile without the need of clang using CFLAGS="-fcommon".

fabis_cafe commented on 2020-07-16 18:06

Hi there. Since it wont build with gcc, here is the PKGBUILD to build with clang for now. Also a few fixes for the sed part command not found: PREFIX

# Maintainer: Luis Aranguren <pizzaman@hotmail.com>
# Contributor: Fabian Bornschein (fabis_cafe) <plusfabi@gmail.com>

pkgname=mdk4
pkgver=4.1
pkgrel=2
pkgdesc="MDK is a proof-of-concept tool to exploit common IEEE 802.11 protocol weaknesses"
url="https://github.com/aircrack-ng/mdk4"
arch=("x86_64")
license=('GPL2')
makedepends=('clang')
depends=('libpcap')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/aircrack-ng/${pkgname}/archive/${pkgver}.tar.gz)
sha512sums=('b1472458ca02bf94f8717ac70b631f994c38cb67012fc38df0b6859778790b220447e6c1b3f15558e8f203da06ffa83bd36e5f037cb704e893c3fcf329022adc')

prepare() {
  cd ${pkgname}-${pkgver}
  sed 's|/usr/local|/usr|g' -i Makefile
  sed 's|$(PREFIX)/sbin|$(PREFIX)/bin|g' -i Makefile
  sed 's|$(PREFIX)/sbin|$(PREFIX)/bin|g' -i src/Makefile
  sed 's|PREFIX:=|PREFIX=|g' -i Makefile
}

build() {
  cd ${pkgname}-${pkgver}
  make CC=clang
}

package() {
  cd ${pkgname}-${pkgver}
  make CC=clang DESTDIR="${pkgdir}/" install
  install -Dm 644 docs/*.html -t "${pkgdir}/usr/share/doc/${pkgname}"
}