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
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/wireless_tools
.28
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 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 -d
-m0755
$(1)/usr
/lib
65 install -m0755
$(PKG_BUILD_DIR
)/libiw.so
.28 $(1)/usr
/lib
/
66 install -d
-m0755
$(1)/usr
/sbin
67 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/iw
{config
,getid
,list
,priv
,spy
} $(1)/usr
/sbin
/
70 $(eval
$(call BuildPackage
,wireless-tools
))