2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=wireless-tools
15 PKG_SOURCE
:=wireless_tools.
$(PKG_VERSION
)$(PKG_MINOR
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.hpl.hp.com
/personal
/Jean_Tourrilhes
/Linux
17 PKG_MD5SUM
:=e06c222e186f7cc013fd272d023710cb
18 TAR_OPTIONS
+= || true
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/wireless_tools.
$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/wireless-tools
/Default
25 URL
:=http
://hplabs.hp.com
/personal
/Jean_Tourrilhes
/Linux
/Tools.html
28 define Package
/wireless-tools
29 $(call Package
/wireless-tools
/Default
)
32 TITLE
:=Tools for manipulating Linux Wireless Extensions
35 define Package
/wireless-tools
/description
36 This package contains a collection of tools for configuring wireless
37 adapters implementing the
"Linux Wireless Extensions".
41 $(call Package
/wireless-tools
/Default
)
44 TITLE
:=Library for manipulating Linux Wireless Extensions
47 define Package
/libiw
/description
48 This package contains a library for manipulating
49 "Linux Wireless Extensions".
53 rm -rf
$(PKG_INSTALL_DIR
)
54 mkdir
-p
$(PKG_INSTALL_DIR
)
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 $(TARGET_CONFIGURE_OPTS
) \
57 CFLAGS
="$(TARGET_CFLAGS) -I." \
58 BUILD_WE_ESSENTIAL
=y \
59 libiw.so.
$(PKG_VERSION
) iwmulticall
60 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
61 PREFIX
="$(PKG_INSTALL_DIR)" \
62 INSTALL_DIR
="$(PKG_INSTALL_DIR)/usr/sbin" \
63 INSTALL_LIB
="$(PKG_INSTALL_DIR)/usr/lib" \
67 define Build
/InstallDev
68 mkdir
-p
$(1)/usr
/include
69 $(CP
) $(PKG_BUILD_DIR
)/{iwlib
,wireless
}.h
$(1)/usr
/include/
71 $(CP
) $(PKG_BUILD_DIR
)/libiw.so
* $(1)/usr
/lib
/
72 ln
-sf libiw.so.
$(PKG_VERSION
) $(1)/usr
/lib
/libiw.so
75 define Package
/wireless-tools
/install
76 $(INSTALL_DIR
) $(1)/usr
/sbin
77 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/iwconfig
$(1)/usr
/sbin
/
78 ln
-sf iwconfig
$(1)/usr
/sbin
/iwgetid
79 ln
-sf iwconfig
$(1)/usr
/sbin
/iwlist
80 ln
-sf iwconfig
$(1)/usr
/sbin
/iwpriv
81 ln
-sf iwconfig
$(1)/usr
/sbin
/iwspy
84 define Package
/libiw
/install
85 $(INSTALL_DIR
) $(1)/usr
/lib
86 $(CP
) $(PKG_BUILD_DIR
)/libiw.so.
* $(1)/usr
/lib
/
89 $(eval
$(call BuildPackage
,wireless-tools
))
90 $(eval
$(call BuildPackage
,libiw
))