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.
8 include $(TOPDIR
)/rules.mk
12 PKG_VERSION
:=r
$(PKG_REV
)
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
)
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/aircrack-ng
26 DEPENDS
:=+libpthread
+libopenssl
+libpcap
27 TITLE
:=next generation of aircrack with new features
28 URL
:=http
://www.aircrack-ng.org
/
32 define Package
/aircrack-ng
/description
33 Aircrack-ng is the next generation of aircrack with new features
36 define Build
/Configure
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" \
47 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
))