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_BUILD_DIR
:=$(BUILD_DIR
)/wireless_tools
.28
16 PKG_SOURCE
:=wireless_tools.
$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://www.hpl.hp.com
/personal
/Jean_Tourrilhes
/Linux
18 PKG_MD5SUM
:=599c94497f9c9073c7b052d3dcb7cd16
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
30 DESCRIPTION
:=Tools for configuring Wireless Adapters implementing the
"Wireless Extension"
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 CC
="$(TARGET_CC)" CFLAGS
="$(TARGET_CFLAGS) -I." \
39 libiw.so
.28 iwmulticall
40 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
41 PREFIX
="$(PKG_INSTALL_DIR)" \
42 INSTALL_DIR
="$(PKG_INSTALL_DIR)/usr/sbin" \
43 INSTALL_LIB
="$(PKG_INSTALL_DIR)/usr/lib" \
47 define Build
/InstallDev
48 mkdir
-p
$(STAGING_DIR
)/usr
/include
49 $(CP
) $(PKG_BUILD_DIR
)/{iwlib
,wireless
}.h
$(STAGING_DIR
)/usr
/include/
50 mkdir
-p
$(STAGING_DIR
)/usr
/lib
51 $(CP
) $(PKG_BUILD_DIR
)/libiw.so
* $(STAGING_DIR
)/usr
/lib
/
52 ln
-sf libiw.so
.28 $(STAGING_DIR
)/usr
/lib
/libiw.so
55 define Build
/UninstallDev
56 rm -f
$(STAGING_DIR
)/usr
/include/{iwlib
,wireless
}.h \
57 $(STAGING_DIR
)/usr
/lib
/libiw.so
*
60 define Package
/wireless-tools
/install
61 install -d
-m0755
$(1)/usr
/lib
62 install -m0755
$(PKG_BUILD_DIR
)/libiw.so
.28 $(1)/usr
/lib
/
63 install -d
-m0755
$(1)/usr
/sbin
64 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/iw
{config
,getid
,list
,priv
,spy
} $(1)/usr
/sbin
/
67 $(eval
$(call BuildPackage
,wireless-tools
))