22ba8a9ad9a9db247deef5955a6abc023981c604
[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_REV:=1396
12 PKG_VERSION:=r$(PKG_REV)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://trac.aircrack-ng.org/svn/trunk/
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_PROTO:=svn
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/aircrack-ng
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpthread +libopenssl +libpcap
27 TITLE:=next generation of aircrack with new features
28 URL:=http://www.aircrack-ng.org/
29 SUBMENU:=wireless
30 endef
31
32 define Package/aircrack-ng/description
33 Aircrack-ng is the next generation of aircrack with new features
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
40 rm -rf $(PKG_INSTALL_DIR)
41 mkdir -p $(PKG_INSTALL_DIR)
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 $(TARGET_CONFIGURE_OPTS) \
44 CFLAGS="$(TARGET_CFLAGS) -Wall -Iinclude/ -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -D_REVISION=$(PKG_REV)" \
45 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
46 prefix="/usr" \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 OSNAME=Linux \
49 all install
50 endef
51
52 define Package/aircrack-ng/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
57 endef
58
59 $(eval $(call BuildPackage,aircrack-ng))