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