4f7085563388956d178cafa12a834ded7d3221d6
[openwrt/svn-archive/archive.git] / net / aircrack-ng / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=aircrack-ng
12 PKG_VERSION:=0.9.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://download.aircrack-ng.org/
17 PKG_MD5SUM:=07488ff1e178b5b7fe04c6fd78da2b96
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/aircrack-ng
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libpthread
25 TITLE:=next generation of aircrack with new features
26 URL:=http://www.aircrack-ng.org/
27 SUBMENU:=wireless
28 endef
29
30 define Package/aircrack-ng/description
31 Aircrack-ng is the next generation of aircrack with new features
32 endef
33
34 define Build/Configure
35 endef
36
37 define Build/Compile
38 rm -rf $(PKG_INSTALL_DIR)
39 mkdir -p $(PKG_INSTALL_DIR)
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 $(TARGET_CONFIGURE_OPTS) \
42 CFLAGS="$(TARGET_CFLAGS) -Wall" \
43 prefix="/usr" \
44 destdir="$(PKG_INSTALL_DIR)" \
45 all install
46 endef
47
48 define Package/aircrack-ng/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aircrack-ng $(1)/usr/bin/
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/airdecap-ng $(1)/usr/bin/
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/packetforge-ng $(1)/usr/bin/
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ivstools $(1)/usr/bin/
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kstats $(1)/usr/bin/
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/aireplay-ng $(1)/usr/sbin/
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/airodump-ng $(1)/usr/sbin/
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/airmon-ng $(1)/usr/sbin/
59 endef
60
61 $(eval $(call BuildPackage,aircrack-ng))