[package] update to aircrack-ng 1.0 (#6047)
[openwrt/svn-archive/archive.git] / net / aircrack-ng / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=aircrack-ng
11 PKG_VERSION:=1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://download.aircrack-ng.org/
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/aircrack-ng
20 SECTION:=net
21 CATEGORY:=Network
22 DEPENDS:=+libpthread +libopenssl +libpcap
23 TITLE:=next generation of aircrack with new features
24 URL:=http://www.aircrack-ng.org/
25 SUBMENU:=wireless
26 endef
27
28 define Package/aircrack-ng/description
29 Aircrack-ng is the next generation of aircrack with new features
30 endef
31
32 define Build/Configure
33 endef
34
35 define Build/Compile
36 rm -rf $(PKG_INSTALL_DIR)
37 mkdir -p $(PKG_INSTALL_DIR)
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 $(TARGET_CONFIGURE_OPTS) \
40 CFLAGS="$(TARGET_CFLAGS) -Wall -Iinclude/ $(TARGET_CPPFLAGS) -D_REVISION=0" \
41 LDFLAGS="$(TARGET_LDFLAGS)" \
42 prefix="/usr" \
43 DESTDIR="$(PKG_INSTALL_DIR)" \
44 OSNAME=Linux \
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/* $(1)/usr/bin/
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
53 endef
54
55 $(eval $(call BuildPackage,aircrack-ng))