summaryrefslogtreecommitdiff
path: root/package/aircrack/Makefile
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-10-17 18:03:48 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-10-17 18:03:48 +0000
commit5ff473b8d4648bc533cc966ecd171c147f19c358 (patch)
tree38a37f550cc1b62a14410be41bac73e710be23ed /package/aircrack/Makefile
parent3bea8bd663341b6493b01b33911ab6a5a5c35b0a (diff)
add aircrack package (thanks to Florian Fainelli)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2148 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/aircrack/Makefile')
-rw-r--r--package/aircrack/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/package/aircrack/Makefile b/package/aircrack/Makefile
new file mode 100644
index 0000000000..ff575dcb97
--- /dev/null
+++ b/package/aircrack/Makefile
@@ -0,0 +1,43 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=aircrack
+PKG_VERSION:=2.3
+PKG_RELEASE:=1
+PKG_MD5SUM:=8c0c88abe107ca26d019d8f43958e60a
+
+PKG_SOURCE_URL:=http://www.cr0.net:8040/code/network/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,AIRCRACK,aircrack,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.configured:
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ rm -rf $(PKG_INSTALL_DIR)
+ mkdir -p $(PKG_INSTALL_DIR)
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ CC="$(TARGET_CC)" \
+ CFLAGS="$(TARGET_CFLAGS) -Wall" \
+ CROSS="$(TARGET_CROSS)" \
+ prefix="/usr" \
+ DESTDIR="$(PKG_INSTALL_DIR)" \
+ all install
+ touch $@
+
+$(IPKG_AIRCRACK):
+ install -d -m0755 $(IDIR_AIRCRACK)/usr/bin
+ cp -fpR $(PKG_INSTALL_DIR)/usr/bin/aircrack $(IDIR_AIRCRACK)/usr/bin/
+ cp -fpR $(PKG_INSTALL_DIR)/usr/bin/airdecap $(IDIR_AIRCRACK)/usr/bin/
+ cp -fpR $(PKG_INSTALL_DIR)/usr/bin/aireplay $(IDIR_AIRCRACK)/usr/bin/
+ cp -fpR $(PKG_INSTALL_DIR)/usr/bin/airodump $(IDIR_AIRCRACK)/usr/bin/
+ cp -fpR $(PKG_INSTALL_DIR)/usr/bin/arpforge $(IDIR_AIRCRACK)/usr/bin/
+ $(RSTRIP) $(IDIR_AIRCRACK)
+ $(IPKG_BUILD) $(IDIR_AIRCRACK) $(PACKAGE_DIR)
+