Upgrade aircrack-ng to 0.9, add a description
[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
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:=0fbf52827132d2996fc64afaef19cf68
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/aircrack-ng
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libpthread
29 TITLE:=next generation of aircrack with new features
30 DESCRIPTION:=Aircrack-ng is the next generation of aircrack with new features
31 URL:=http://www.aircrack-ng.org/
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 $(CP) $(PKG_INSTALL_DIR)/usr/bin/aircrack-ng $(1)/usr/bin/
51 $(CP) $(PKG_INSTALL_DIR)/usr/bin/airdecap-ng $(1)/usr/bin/
52 $(CP) $(PKG_INSTALL_DIR)/usr/bin/packetforge-ng $(1)/usr/bin/
53 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ivstools $(1)/usr/bin/
54 $(CP) $(PKG_INSTALL_DIR)/usr/bin/kstats $(1)/usr/bin/
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/aireplay-ng $(1)/usr/sbin/
57 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/airodump-ng $(1)/usr/sbin/
58 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/airmon-ng $(1)/usr/sbin/
59 endef
60
61 $(eval $(call BuildPackage,aircrack-ng))