let ipkg fail when a package file to be installed is not found
[openwrt/svn-archive/archive.git] / openwrt / package / aircrack-ng / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=aircrack-ng
6 PKG_VERSION:=0.5
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=303daa6f1b030f8f9a2f00542051b96c
9
10 PKG_SOURCE_URL:=http://download.aircrack-ng.org
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,AIRCRACK_NG,aircrack-ng,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 rm -rf $(PKG_INSTALL_DIR)
26 mkdir -p $(PKG_INSTALL_DIR)
27 $(MAKE) -C $(PKG_BUILD_DIR) \
28 CC="$(TARGET_CC)" \
29 CFLAGS="$(TARGET_CFLAGS) -Wall" \
30 prefix="/usr" \
31 destdir="$(PKG_INSTALL_DIR)" \
32 all install
33 touch $@
34
35 $(IPKG_AIRCRACK_NG):
36 install -d -m0755 $(IDIR_AIRCRACK_NG)/usr/bin
37 $(CP) $(PKG_INSTALL_DIR)/usr/bin/aircrack-ng $(IDIR_AIRCRACK_NG)/usr/bin/
38 $(CP) $(PKG_INSTALL_DIR)/usr/bin/airdecap-ng $(IDIR_AIRCRACK_NG)/usr/bin/
39 $(CP) $(PKG_INSTALL_DIR)/usr/bin/arpforge-ng $(IDIR_AIRCRACK_NG)/usr/bin/
40 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ivstools $(IDIR_AIRCRACK_NG)/usr/bin/
41 $(CP) $(PKG_INSTALL_DIR)/usr/bin/kstats $(IDIR_AIRCRACK_NG)/usr/bin/
42 install -d -m0755 $(IDIR_AIRCRACK_NG)/usr/sbin
43 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/aireplay-ng $(IDIR_AIRCRACK_NG)/usr/sbin/
44 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/airodump-ng $(IDIR_AIRCRACK_NG)/usr/sbin/
45 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/airmon-ng $(IDIR_AIRCRACK_NG)/usr/sbin/
46 $(RSTRIP) $(IDIR_AIRCRACK_NG)
47 $(IPKG_BUILD) $(IDIR_AIRCRACK_NG) $(PACKAGE_DIR)
48