2005-04-03 18:00:10 +00:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=wireless-tools
|
2006-04-12 07:53:11 +00:00
|
|
|
PKG_VERSION:=28
|
2005-04-03 18:00:10 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.28
|
2005-04-03 18:00:10 +00:00
|
|
|
PKG_SOURCE:=wireless_tools.$(PKG_VERSION).tar.gz
|
2006-05-10 19:06:22 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
|
|
|
|
PKG_MD5SUM:=599c94497f9c9073c7b052d3dcb7cd16
|
2005-04-03 18:00:10 +00:00
|
|
|
PKG_CAT:=zcat
|
2005-05-13 05:12:28 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Package/wireless-tools
|
|
|
|
SECTION:=base
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEFAULT:=y
|
|
|
|
TITLE:=Tools for manipulating Linux Wireless Extensions
|
|
|
|
DESCRIPTION:=Tools for configuring Wireless Adapters implementing the "Wireless Extension"
|
|
|
|
URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
|
|
|
|
endef
|
2005-05-13 05:12:28 +00:00
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Build/Compile
|
2005-05-13 05:12:28 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -I." \
|
2006-02-02 10:07:28 +00:00
|
|
|
libiw.so.28 iwmulticall
|
2005-05-13 05:12:28 +00:00
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
$(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 10:07:28 +00:00
|
|
|
install-iwmulticall
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
2005-05-13 05:12:28 +00:00
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Package/wireless-tools/install
|
|
|
|
install -d -m0755 $(IDIR_WIRELESS_TOOLS)/usr/lib
|
|
|
|
install -d -m0755 $(IDIR_WIRELESS_TOOLS)/usr/sbin
|
|
|
|
install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(IDIR_WIRELESS_TOOLS)/usr/lib/
|
|
|
|
install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(IDIR_WIRELESS_TOOLS)/usr/sbin/
|
|
|
|
endef
|
2005-05-30 20:47:25 +00:00
|
|
|
|
2005-10-22 10:49:51 +00:00
|
|
|
install-dev: $(PKG_BUILD_DIR)/.built
|
2005-05-30 20:47:25 +00:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/{lib,include}
|
2006-02-01 23:53:19 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
|
2005-05-30 20:47:25 +00:00
|
|
|
ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
|
2006-02-01 23:53:19 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
|
2005-05-30 20:47:25 +00:00
|
|
|
|
|
|
|
uninstall-dev:
|
|
|
|
rm -f $(STAGING_DIR)/usr/lib/libiw.*
|
|
|
|
rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h
|