2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=wireless-tools
16 PKG_SOURCE
:=wireless_tools.
$(PKG_VERSION
)$(PKG_MINOR
).
tar.gz
17 PKG_SOURCE_URL
:=http
://www.hpl.hp.com
/personal
/Jean_Tourrilhes
/Linux
18 PKG_MD5SUM
:=953774d6a34050bae4ef3bfa731f6653
19 TAR_OPTIONS
+= || true
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/wireless_tools.
$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/wireless-tools
/Default
26 URL
:=http
://hplabs.hp.com
/personal
/Jean_Tourrilhes
/Linux
/Tools.html
29 define Package
/wireless-tools
30 $(call Package
/wireless-tools
/Default
)
33 TITLE
:=Tools for manipulating Linux Wireless Extensions
36 define Package
/wireless-tools
/description
37 This package contains a collection of tools for configuring wireless
38 adapters implementing the
"Linux Wireless Extensions".
42 $(call Package
/wireless-tools
/Default
)
45 TITLE
:=Library for manipulating Linux Wireless Extensions
48 define Package
/libiw
/description
49 This package contains a library for manipulating
50 "Linux Wireless Extensions".
54 rm -rf
$(PKG_INSTALL_DIR
)
55 mkdir
-p
$(PKG_INSTALL_DIR
)
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
57 $(TARGET_CONFIGURE_OPTS
) \
58 CFLAGS
="$(TARGET_CFLAGS) -I." \
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
))