diff --git a/net/mdk4/Config.in b/net/mdk4/Config.in new file mode 100644 index 0000000..cafdc71 --- /dev/null +++ b/net/mdk4/Config.in @@ -0,0 +1,12 @@ +menu "Configuration" + depends on PACKAGE_mdk4 + +config MDK4_libnl + bool "Use libnl (Chaos Calmer)" + depends on PACKAGE_mdk4 + default n + +config MDK4_libnl-genl + bool "Use latest libnl (LEDE)" + depends on PACKAGE_mdk4 + default y diff --git a/net/mdk4/Makefile b/net/mdk4/Makefile new file mode 100644 index 0000000..c4762fe --- /dev/null +++ b/net/mdk4/Makefile @@ -0,0 +1,68 @@ +# +# 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:=4.1 +PKG_RELEASE:=2 + +PKG_BUILD_DIR:=$(BUILD_DIR)/mdk4-$(PKG_VERSION) +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/aircrack-ng/mdk4.git +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) + +PKG_MAINTAINER:=Aircrack-ng Team + +PKG_BUILD_PARALLEL:=1 + +MAKE_PATH:=. + +PKG_CONFIG_DEPENDS:=\ + CONFIG_MDK4_libnl \ + CONFIG_MDK4_libnl-genl \ + +include $(INCLUDE_DIR)/package.mk + +define Package/mdk4 + SECTION:=net + CATEGORY:=Network + DEPENDS:=+libpthread +libpcap +libpcre \ + +CONFIG_MDK4_libnl:libnl \ + +CONFIG_MDK4_libnl-genl:libnl-genl +CONFIG_MDK4_libnl-genl:libnl-core + 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) + +TARGET_LDFLAGS+= \ + -static-libstdc++ \ + -Wl,--gc-sections + +TARGET_CFLAGS+= \ + -static + +#define Build/Compile +# $(MAKE) -C $(PKG_BUILD_DIR)/ \ +# $(TARGET_CONFIGURE_OPTS) \ +# CFLAGS="$(TARGET_CFLAGS) -static" +#endef + +define Package/mdk4/install + $(INSTALL_DIR) $(1)/usr/sbin + $(CP) $(PKG_BUILD_DIR)/src/mdk4 $(1)/usr/sbin/ +endef + +$(eval $(call BuildPackage,mdk4))