You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.3 KiB
90 lines
2.3 KiB
17 years ago
|
#
|
||
16 years ago
|
# Copyright (C) 2006-2009 OpenWrt.org
|
||
19 years ago
|
#
|
||
|
# This is free software, licensed under the GNU General Public License v2.
|
||
|
# See /LICENSE for more information.
|
||
|
#
|
||
20 years ago
|
|
||
|
include $(TOPDIR)/rules.mk
|
||
|
|
||
|
PKG_NAME:=wireless-tools
|
||
18 years ago
|
PKG_VERSION:=29
|
||
16 years ago
|
PKG_MINOR:=
|
||
13 years ago
|
PKG_RELEASE:=5
|
||
20 years ago
|
|
||
18 years ago
|
PKG_SOURCE:=wireless_tools.$(PKG_VERSION)$(PKG_MINOR).tar.gz
|
||
19 years ago
|
PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
|
||
16 years ago
|
PKG_MD5SUM:=e06c222e186f7cc013fd272d023710cb
|
||
18 years ago
|
TAR_OPTIONS += || true
|
||
20 years ago
|
|
||
18 years ago
|
PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.$(PKG_VERSION)
|
||
19 years ago
|
|
||
19 years ago
|
include $(INCLUDE_DIR)/package.mk
|
||
20 years ago
|
|
||
17 years ago
|
define Package/wireless-tools/Default
|
||
|
URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
|
||
|
endef
|
||
|
|
||
19 years ago
|
define Package/wireless-tools
|
||
17 years ago
|
$(call Package/wireless-tools/Default)
|
||
19 years ago
|
SECTION:=net
|
||
|
CATEGORY:=Base system
|
||
|
TITLE:=Tools for manipulating Linux Wireless Extensions
|
||
19 years ago
|
endef
|
||
20 years ago
|
|
||
18 years ago
|
define Package/wireless-tools/description
|
||
17 years ago
|
This package contains a collection of tools for configuring wireless
|
||
18 years ago
|
adapters implementing the "Linux Wireless Extensions".
|
||
|
endef
|
||
|
|
||
17 years ago
|
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
|
||
|
|
||
19 years ago
|
define Build/Compile
|
||
19 years ago
|
rm -rf $(PKG_INSTALL_DIR)
|
||
|
mkdir -p $(PKG_INSTALL_DIR)
|
||
20 years ago
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||
19 years ago
|
$(TARGET_CONFIGURE_OPTS) \
|
||
|
CFLAGS="$(TARGET_CFLAGS) -I." \
|
||
15 years ago
|
BUILD_WE_ESSENTIAL=y \
|
||
14 years ago
|
LIBS="-lm -Wl,--gc-sections" \
|
||
18 years ago
|
libiw.so.$(PKG_VERSION) iwmulticall
|
||
20 years ago
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||
|
PREFIX="$(PKG_INSTALL_DIR)" \
|
||
|
INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
|
||
|
INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
|
||
19 years ago
|
install-iwmulticall
|
||
19 years ago
|
endef
|
||
20 years ago
|
|
||
19 years ago
|
define Build/InstallDev
|
||
17 years ago
|
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
|
||
19 years ago
|
endef
|
||
19 years ago
|
|
||
|
define Package/wireless-tools/install
|
||
18 years ago
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||
17 years ago
|
$(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
|
||
19 years ago
|
endef
|
||
|
|
||
17 years ago
|
define Package/libiw/install
|
||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||
|
$(CP) $(PKG_BUILD_DIR)/libiw.so.* $(1)/usr/lib/
|
||
|
endef
|
||
|
|
||
19 years ago
|
$(eval $(call BuildPackage,wireless-tools))
|
||
17 years ago
|
$(eval $(call BuildPackage,libiw))
|