Packages: Add mdk3 package

foxtrot
Foxtrot 2019-08-20 16:44:01 +01:00
parent 6a6aeae4a9
commit f1a93793f2
4 changed files with 79 additions and 0 deletions

44
network/mdk3/Makefile Normal file
View File

@ -0,0 +1,44 @@
#
# 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:=mdk3
PKG_VERSION:=v6
PKG_RELEASE:=2
PKG_MD5SUM:=67705a814ded2a2e6f70522ca0dc6da9
PKG_BUILD_DIR:=$(BUILD_DIR)/mdk3-$(PKG_VERSION)
PKG_SOURCE_URL:=http://homepages.tu-darmstadt.de/~p_larbig/wlan/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/mdk3
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpthread
TITLE:= MDK3
URL:=http://homepages.tu-darmstadt.de/~p_larbig/wlan/
SUBMENU:=wireless
endef
define Package/mdk3/description
Tool to exploit wireless vulnerabilities
endef
MAKE_FLAGS += \
$(TARGET_CONFIGURE_OPTS)
define Package/mdk3/install
$(INSTALL_DIR) $(1)/usr/sbin
$(CP) $(PKG_BUILD_DIR)/mdk3 $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,mdk3))

View File

@ -0,0 +1,10 @@
--- a/osdep/radiotap/radiotap-parser.c
+++ b/osdep/radiotap/radiotap-parser.c
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <errno.h>
+#include <sys/types.h>
#include "radiotap-parser.h"

View File

@ -0,0 +1,17 @@
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/Makefile
+++ b/Makefile
@@ -18,8 +18,8 @@ osd:
$(LIBOSD):
$(MAKE) -C $(OSD)
-mdk3: mdk3.c $(OSD)/libosdep.a
- $(CC) $(CFLAGS) $(LINKFLAGS) $^ -o $@ $(LIBS)
+mdk3: $(LIBOSD) mdk3.c
+ $(CC) $(CFLAGS) $(LINKFLAGS) mdk3.c $(OSD)/lib$(OSD).a -o $@ $(LIBS)
install: mdk3
$(MAKE) -C $(OSD) install

View File

@ -0,0 +1,8 @@
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS = -g -O3 -Wall -Wextra
+CFLAGS += -g -O3 -Wall -Wextra
LINKFLAGS = -lpthread
DESTDIR =