Add missing aircrack-ng dependencies due to switching to svn revisions
[packages.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_REV:=1142
13 PKG_VERSION:=r$(PKG_REV)
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://trac.aircrack-ng.org/svn/trunk/
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20 PKG_SOURCE_PROTO:=svn
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/aircrack-ng
25   SECTION:=net
26   CATEGORY:=Network
27   DEPENDS:=+libpthread +libopenssl +libpcap
28   TITLE:=next generation of aircrack with new features
29   URL:=http://www.aircrack-ng.org/
30   SUBMENU:=wireless
31 endef
32
33 define Package/aircrack-ng/description
34 Aircrack-ng is the next generation of aircrack with new features
35 endef
36
37 define Build/Configure
38 endef
39
40 define Build/Compile
41         rm -rf $(PKG_INSTALL_DIR)
42         mkdir -p $(PKG_INSTALL_DIR)
43         $(MAKE) -C $(PKG_BUILD_DIR) \
44                 $(TARGET_CONFIGURE_OPTS) \
45                 CFLAGS="$(TARGET_CFLAGS) -Wall -Iinclude/ -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -D_REVISION=$(PKG_REV)" \
46                 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
47                 prefix="/usr" \
48                 DESTDIR="$(PKG_INSTALL_DIR)" \
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))