2 # Copyright (C) 2006 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
15 PKG_SOURCE
:=wireless_tools.
$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.hpl.hp.com
/personal
/Jean_Tourrilhes
/Linux
17 PKG_MD5SUM
:=599c94497f9c9073c7b052d3dcb7cd16
18 TAR_OPTIONS
+= || true
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/wireless_tools
.28
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/wireless-tools
27 TITLE
:=Tools for manipulating Linux Wireless Extensions
29 This package contains a collection of tools for configuring wireless
\\\
30 adapters implementing the
"Linux Wireless Extensions".
31 URL
:=http
://hplabs.hp.com
/personal
/Jean_Tourrilhes
/Linux
/Tools.html
35 rm -rf
$(PKG_INSTALL_DIR
)
36 mkdir
-p
$(PKG_INSTALL_DIR
)
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 $(TARGET_CONFIGURE_OPTS
) \
39 CFLAGS
="$(TARGET_CFLAGS) -I." \
40 libiw.so
.28 iwmulticall
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
42 PREFIX
="$(PKG_INSTALL_DIR)" \
43 INSTALL_DIR
="$(PKG_INSTALL_DIR)/usr/sbin" \
44 INSTALL_LIB
="$(PKG_INSTALL_DIR)/usr/lib" \
48 define Build
/InstallDev
49 mkdir
-p
$(STAGING_DIR
)/usr
/include
50 $(CP
) $(PKG_BUILD_DIR
)/{iwlib
,wireless
}.h
$(STAGING_DIR
)/usr
/include/
51 mkdir
-p
$(STAGING_DIR
)/usr
/lib
52 $(CP
) $(PKG_BUILD_DIR
)/libiw.so
* $(STAGING_DIR
)/usr
/lib
/
53 ln
-sf libiw.so
.28 $(STAGING_DIR
)/usr
/lib
/libiw.so
56 define Build
/UninstallDev
57 rm -f
$(STAGING_DIR
)/usr
/include/{iwlib
,wireless
}.h \
58 $(STAGING_DIR
)/usr
/lib
/libiw.so
*
61 define Package
/wireless-tools
/install
62 $(INSTALL_DIR
) $(1)/lib
/wifi
63 $(INSTALL_DATA
) .
/files
/wifi.sh
$(1)/lib
/wifi
/generic.sh
64 $(INSTALL_DIR
) $(1)/usr
/lib
65 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/libiw.so
.28 $(1)/usr
/lib
/
66 $(INSTALL_DIR
) $(1)/usr
/sbin
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/iw
{config
,getid
,list
,priv
,spy
} $(1)/usr
/sbin
/
70 $(eval
$(call BuildPackage
,wireless-tools
))