fix package version and ack source name change,
[openwrt/svn-archive/archive.git] / openwrt / package / madwifi-tools / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=madwifi
6 PKG_VERSION:=r1358-20051215
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=0ef00a095359e5af313f52446ebfbbf1
9
10 PKG_SOURCE_URL:=http://snapshots.madwifi.org/madwifi-ng
11 PKG_SOURCE:=$(PKG_NAME)-ng-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-ng-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,MADWIFI_TOOLS,madwifi-tools,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH),kmod-madwifi))
19
20 $(PKG_BUILD_DIR)/.configured:
21 touch $@
22
23 $(PKG_BUILD_DIR)/.built:
24 $(MAKE) -C $(PKG_BUILD_DIR)/tools \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 all
28 touch $@
29
30 $(IPKG_MADWIFI_TOOLS):
31 install -d -m0755 $(IDIR_MADWIFI_TOOLS)/usr/sbin
32 install -m0755 $(PKG_BUILD_DIR)/tools/athstats \
33 $(PKG_BUILD_DIR)/tools/athdebug \
34 $(PKG_BUILD_DIR)/tools/80211stats \
35 $(PKG_BUILD_DIR)/tools/80211debug \
36 $(PKG_BUILD_DIR)/tools/athctrl \
37 $(PKG_BUILD_DIR)/tools/athkey \
38 $(PKG_BUILD_DIR)/tools/wlanconfig \
39 $(IDIR_MADWIFI_TOOLS)/usr/sbin
40 $(RSTRIP) $(IDIR_MADWIFI_TOOLS)
41 $(IPKG_BUILD) $(IDIR_MADWIFI_TOOLS) $(PACKAGE_DIR)