Skip to content

Instantly share code, notes, and snippets.

@adde88
Created August 26, 2018 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save adde88/2d9b2b577e53e3d36ac1c38e6b28ceaf to your computer and use it in GitHub Desktop.
Save adde88/2d9b2b577e53e3d36ac1c38e6b28ceaf to your computer and use it in GitHub Desktop.
mdk4 - LEDE
#
# Copyright (C) 2009-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mdk4
PKG_VERSION:=1.0-lede
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/mdk4-$(PKG_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/adde88/mdk4.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_VERSION:=6bbb07e3dc97a421de0a603a5cb1fb8729620596
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_MAINTAINER:=Andreas Nilsen <adde88@gmail.com.com>
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/mdk4
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpthread +libnl +libpcap
TITLE:= mdk4
URL:=https://github.com/aircrack-ng/mdk4
SUBMENU:=wireless
endef
define Package/mdk4/description
Tool to exploit wireless vulnerabilities. (DEVELOPER VERSION)
endef
MAKE_FLAGS += \
$(TARGET_CONFIGURE_OPTS)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/src \
$(TARGET_CONFIGURE_OPTS)
endef
define Package/mdk4/install
$(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_BUILD_DIR)/src/mdk4 $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,mdk4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment