add aircrack-ptw (patch by Jens Muecke)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 8 Apr 2007 19:59:36 +0000 (19:59 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 8 Apr 2007 19:59:36 +0000 (19:59 +0000)
SVN-Revision: 6898

net/aircrack-ptw/Makefile [new file with mode: 0644]
net/aircrack-ptw/patches/001-smaller.patch [new file with mode: 0644]

diff --git a/net/aircrack-ptw/Makefile b/net/aircrack-ptw/Makefile
new file mode 100644 (file)
index 0000000..b9b40b5
--- /dev/null
@@ -0,0 +1,51 @@
+#
+# Copyright (C) 2006 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id: Makefile 6500 2007-03-04 04:19:46Z pavlov $
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=aircrack-ptw
+PKG_VERSION:=1.0.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://www.cdc.informatik.tu-darmstadt.de/aircrack-ptw/download
+PKG_MD5SUM:=1d7d84d1e69189bc1397db3f565c183a
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/aircrack-ptw
+  SECTION:=net
+  CATEGORY:=Network
+  DEPENDS:=+libpcap
+  TITLE:=A tool using a new method for breaking WEP Keys
+  URL:=http://www.cdc.informatik.tu-darmstadt.de/aircrack-ptw/
+endef
+
+define Build/Configure
+endef
+
+define Build/Compile
+       rm -rf $(PKG_INSTALL_DIR)
+       mkdir -p $(PKG_INSTALL_DIR)
+       $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) \
+               $(TARGET_LDFLAGS) \
+               -lpcap -o $(PKG_BUILD_DIR)/aircrack-ptw \
+               $(PKG_BUILD_DIR)/aircrack-ptw.c \
+               $(PKG_BUILD_DIR)/aircrack-ptw-lib.c 
+endef
+
+define Package/aircrack-ptw/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(CP) $(PKG_BUILD_DIR)/aircrack-ptw $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,aircrack-ptw))
diff --git a/net/aircrack-ptw/patches/001-smaller.patch b/net/aircrack-ptw/patches/001-smaller.patch
new file mode 100644 (file)
index 0000000..9dbf14b
--- /dev/null
@@ -0,0 +1,12 @@
+diff -purN aircrack-ptw-1.0.0/aircrack-ptw.c aircrack-ptw-1.0.0_patch/aircrack-ptw.c
+--- aircrack-ptw-1.0.0/aircrack-ptw.c  2007-04-03 08:50:42.000000000 -0400
++++ aircrack-ptw-1.0.0_patch/aircrack-ptw.c    2007-04-07 16:50:38.000000000 -0400
+@@ -6,7 +6,7 @@
+ #include "aircrack-ptw-lib.h"
+-#define KEYLIMIT (1000000)
++#define KEYLIMIT (10000)
+ #define BSSIDLEN (6)
+ typedef struct {