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
19 TAR_OPTIONS
+= || true
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/wireless_tools
.28
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/wireless-tools
29 TITLE
:=Tools for manipulating Linux Wireless Extensions
31 This package contains a collection of tools for configuring wireless
\\\
32 adapters implementing the
"Linux Wireless Extensions".
33 URL
:=http
://hplabs.hp.com
/personal
/Jean_Tourrilhes
/Linux
/Tools.html
37 rm -rf
$(PKG_INSTALL_DIR
)
38 mkdir
-p
$(PKG_INSTALL_DIR
)
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 $(TARGET_CONFIGURE_OPTS
) \
41 CFLAGS
="$(TARGET_CFLAGS) -I." \
42 libiw.so
.28 iwmulticall
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
44 PREFIX
="$(PKG_INSTALL_DIR)" \
45 INSTALL_DIR
="$(PKG_INSTALL_DIR)/usr/sbin" \
46 INSTALL_LIB
="$(PKG_INSTALL_DIR)/usr/lib" \
50 define Build
/InstallDev
51 mkdir
-p
$(STAGING_DIR
)/usr
/include
52 $(CP
) $(PKG_BUILD_DIR
)/{iwlib
,wireless
}.h
$(STAGING_DIR
)/usr
/include/
53 mkdir
-p
$(STAGING_DIR
)/usr
/lib
54 $(CP
) $(PKG_BUILD_DIR
)/libiw.so
* $(STAGING_DIR
)/usr
/lib
/
55 ln
-sf libiw.so
.28 $(STAGING_DIR
)/usr
/lib
/libiw.so
58 define Build
/UninstallDev
59 rm -f
$(STAGING_DIR
)/usr
/include/{iwlib
,wireless
}.h \
60 $(STAGING_DIR
)/usr
/lib
/libiw.so
*
63 define Package
/wireless-tools
/install
64 $(INSTALL_DIR
) $(1)/lib
/wifi
65 $(INSTALL_DATA
) .
/files
/wifi.sh
$(1)/lib
/wifi
/generic.sh
66 $(INSTALL_DIR
) $(1)/usr
/lib
67 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/libiw.so
.28 $(1)/usr
/lib
/
68 $(INSTALL_DIR
) $(1)/usr
/sbin
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/iw
{config
,getid
,list
,priv
,spy
} $(1)/usr
/sbin
/
72 $(eval
$(call BuildPackage
,wireless-tools
))