2006-06-27 08:35:46 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-04-04 02:00:10 +08:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=wireless-tools
|
2006-04-12 15:53:11 +08:00
|
|
|
PKG_VERSION:=28
|
2005-04-04 02:00:10 +08:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=wireless_tools.$(PKG_VERSION).tar.gz
|
2006-05-11 03:06:22 +08:00
|
|
|
PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
|
|
|
|
PKG_MD5SUM:=599c94497f9c9073c7b052d3dcb7cd16
|
2006-10-14 22:54:08 +08:00
|
|
|
TAR_OPTIONS += || true
|
2005-05-13 13:12:28 +08:00
|
|
|
|
2006-09-25 04:49:31 +08:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.28
|
2006-05-31 03:58:11 +08:00
|
|
|
|
2006-06-21 10:32:39 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2005-05-13 13:12:28 +08:00
|
|
|
|
2006-05-11 03:06:22 +08:00
|
|
|
define Package/wireless-tools
|
2006-09-23 21:30:31 +08:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Base system
|
|
|
|
TITLE:=Tools for manipulating Linux Wireless Extensions
|
|
|
|
DESCRIPTION:=\
|
|
|
|
This package contains a collection of tools for configuring wireless \\\
|
|
|
|
adapters implementing the "Linux Wireless Extensions".
|
|
|
|
URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
|
2006-05-11 03:06:22 +08:00
|
|
|
endef
|
2005-05-13 13:12:28 +08:00
|
|
|
|
2006-05-11 03:06:22 +08:00
|
|
|
define Build/Compile
|
2006-06-19 02:30:40 +08:00
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
2005-05-13 13:12:28 +08:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-08-04 13:30:27 +08:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I." \
|
2006-02-02 18:07:28 +08:00
|
|
|
libiw.so.28 iwmulticall
|
2005-05-13 13:12:28 +08:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
PREFIX="$(PKG_INSTALL_DIR)" \
|
|
|
|
INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
|
|
|
|
INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
|
2006-02-02 18:07:28 +08:00
|
|
|
install-iwmulticall
|
2006-05-11 03:06:22 +08:00
|
|
|
endef
|
2005-05-13 13:12:28 +08:00
|
|
|
|
2006-05-31 02:55:52 +08:00
|
|
|
define Build/InstallDev
|
2006-06-19 02:30:40 +08:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
2006-02-02 07:53:19 +08:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
|
2005-05-31 04:47:25 +08:00
|
|
|
ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
|
2006-05-31 02:55:52 +08:00
|
|
|
endef
|
2005-05-31 04:47:25 +08:00
|
|
|
|
2006-05-31 02:55:52 +08:00
|
|
|
define Build/UninstallDev
|
2006-09-25 04:49:31 +08:00
|
|
|
rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h \
|
2006-06-19 02:30:40 +08:00
|
|
|
$(STAGING_DIR)/usr/lib/libiw.so*
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wireless-tools/install
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-02-20 23:26:29 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
|
2006-05-31 02:55:52 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,wireless-tools))
|