0348c7c7a06f9207ec6fd065c1d2c6286115cd23
[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 PKG_MD5SUM:=dafbfaf944ca9d523fde4bae86f0c067
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/aircrack-ng
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+libpthread +libopenssl +libpcap
24 TITLE:=next generation of aircrack with new features
25 URL:=http://www.aircrack-ng.org/
26 SUBMENU:=wireless
27 endef
28
29 define Package/aircrack-ng/description
30 Aircrack-ng is the next generation of aircrack with new features
31 endef
32
33 define Build/Configure
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 $(TARGET_CONFIGURE_OPTS) \
39 CFLAGS="$(TARGET_CFLAGS) -Wall -Iinclude/ $(TARGET_CPPFLAGS) -D_REVISION=0" \
40 LDFLAGS="$(TARGET_LDFLAGS)" \
41 prefix="/usr" \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 OSNAME=Linux \
44 all install
45 endef
46
47 define Package/aircrack-ng/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,aircrack-ng))