2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
13 PKG_VERSION
:=r
$(PKG_REV
)
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
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/aircrack-ng
27 DEPENDS
:=+libpthread
+libopenssl
+libpcap
28 TITLE
:=next generation of aircrack with new features
29 URL
:=http
://www.aircrack-ng.org
/
33 define Package
/aircrack-ng
/description
34 Aircrack-ng is the next generation of aircrack with new features
37 define Build
/Configure
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" \
48 DESTDIR
="$(PKG_INSTALL_DIR)" \
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
/
59 $(eval
$(call BuildPackage
,aircrack-ng
))