2008-01-14 10:34:07 +02:00
|
|
|
#
|
2009-01-27 17:15:42 +02:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-06-27 03:35:46 +03:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-04-03 21:00:10 +03:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=wireless-tools
|
2007-06-03 14:40:06 +03:00
|
|
|
PKG_VERSION:=29
|
2009-01-27 17:15:42 +02:00
|
|
|
PKG_MINOR:=
|
2012-07-19 11:36:11 +03:00
|
|
|
PKG_RELEASE:=5
|
2005-04-03 21:00:10 +03:00
|
|
|
|
2007-06-03 14:40:06 +03:00
|
|
|
PKG_SOURCE:=wireless_tools.$(PKG_VERSION)$(PKG_MINOR).tar.gz
|
2006-05-10 22:06:22 +03:00
|
|
|
PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
|
2009-01-27 17:15:42 +02:00
|
|
|
PKG_MD5SUM:=e06c222e186f7cc013fd272d023710cb
|
2006-10-14 17:54:08 +03:00
|
|
|
TAR_OPTIONS += || true
|
2005-05-13 08:12:28 +03:00
|
|
|
|
2012-10-10 15:49:37 +03:00
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
|
|
|
|
|
2007-06-03 14:40:06 +03:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.$(PKG_VERSION)
|
2006-05-30 22:58:11 +03:00
|
|
|
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2005-05-13 08:12:28 +03:00
|
|
|
|
2008-04-14 05:06:35 +03:00
|
|
|
define Package/wireless-tools/Default
|
|
|
|
URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
|
|
|
|
endef
|
|
|
|
|
2006-05-10 22:06:22 +03:00
|
|
|
define Package/wireless-tools
|
2008-04-14 05:06:35 +03:00
|
|
|
$(call Package/wireless-tools/Default)
|
2006-09-23 16:30:31 +03:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Base system
|
|
|
|
TITLE:=Tools for manipulating Linux Wireless Extensions
|
2006-05-10 22:06:22 +03:00
|
|
|
endef
|
2005-05-13 08:12:28 +03:00
|
|
|
|
2007-09-07 11:34:51 +03:00
|
|
|
define Package/wireless-tools/description
|
2008-01-14 10:34:07 +02:00
|
|
|
This package contains a collection of tools for configuring wireless
|
2007-09-07 11:34:51 +03:00
|
|
|
adapters implementing the "Linux Wireless Extensions".
|
|
|
|
endef
|
|
|
|
|
2008-04-14 05:06:35 +03:00
|
|
|
define Package/libiw
|
|
|
|
$(call Package/wireless-tools/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Library for manipulating Linux Wireless Extensions
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libiw/description
|
|
|
|
This package contains a library for manipulating
|
|
|
|
"Linux Wireless Extensions".
|
|
|
|
endef
|
|
|
|
|
2006-05-10 22:06:22 +03:00
|
|
|
define Build/Compile
|
2006-06-18 21:30:40 +03:00
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
2005-05-13 08:12:28 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-08-04 08:30:27 +03:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I." \
|
2009-10-21 00:40:09 +03:00
|
|
|
BUILD_WE_ESSENTIAL=y \
|
2011-03-18 05:41:22 +02:00
|
|
|
LIBS="-lm -Wl,--gc-sections" \
|
2007-06-03 14:40:06 +03:00
|
|
|
libiw.so.$(PKG_VERSION) iwmulticall
|
2005-05-13 08:12:28 +03: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 12:07:28 +02:00
|
|
|
install-iwmulticall
|
2006-05-10 22:06:22 +03:00
|
|
|
endef
|
2005-05-13 08:12:28 +03:00
|
|
|
|
2006-05-30 21:55:52 +03:00
|
|
|
define Build/InstallDev
|
2007-09-28 04:45:11 +03:00
|
|
|
mkdir -p $(1)/usr/include
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(1)/usr/include/
|
|
|
|
mkdir -p $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/libiw.so* $(1)/usr/lib/
|
|
|
|
ln -sf libiw.so.$(PKG_VERSION) $(1)/usr/lib/libiw.so
|
2006-05-30 21:55:52 +03:00
|
|
|
endef
|
2006-06-18 21:30:40 +03:00
|
|
|
|
|
|
|
define Package/wireless-tools/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2008-01-14 10:34:07 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/iwconfig $(1)/usr/sbin/
|
|
|
|
ln -sf iwconfig $(1)/usr/sbin/iwlist
|
|
|
|
ln -sf iwconfig $(1)/usr/sbin/iwpriv
|
2006-05-30 21:55:52 +03:00
|
|
|
endef
|
|
|
|
|
2008-04-14 05:06:35 +03:00
|
|
|
define Package/libiw/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/libiw.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-05-30 21:55:52 +03:00
|
|
|
$(eval $(call BuildPackage,wireless-tools))
|
2008-04-14 05:06:35 +03:00
|
|
|
$(eval $(call BuildPackage,libiw))
|