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
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
28 TITLE
:=Tools for manipulating Linux Wireless Extensions
29 URL
:=http
://hplabs.hp.com
/personal
/Jean_Tourrilhes
/Linux
/Tools.html
32 define Package
/wireless-tools
/description
33 This package contains a collection of tools for configuring wireless
34 adapters implementing the
"Linux Wireless Extensions".
38 rm -rf
$(PKG_INSTALL_DIR
)
39 mkdir
-p
$(PKG_INSTALL_DIR
)
40 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
41 $(TARGET_CONFIGURE_OPTS
) \
42 CFLAGS
="$(TARGET_CFLAGS) -I." \
43 libiw.so.
$(PKG_VERSION
) iwmulticall
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
45 PREFIX
="$(PKG_INSTALL_DIR)" \
46 INSTALL_DIR
="$(PKG_INSTALL_DIR)/usr/sbin" \
47 INSTALL_LIB
="$(PKG_INSTALL_DIR)/usr/lib" \
51 define Build
/InstallDev
52 mkdir
-p
$(1)/usr
/include
53 $(CP
) $(PKG_BUILD_DIR
)/{iwlib
,wireless
}.h
$(1)/usr
/include/
55 $(CP
) $(PKG_BUILD_DIR
)/libiw.so
* $(1)/usr
/lib
/
56 ln
-sf libiw.so.
$(PKG_VERSION
) $(1)/usr
/lib
/libiw.so
59 define Build
/UninstallDev
60 rm -f
$(1)/usr
/include/{iwlib
,wireless
}.h \
61 $(1)/usr
/lib
/libiw.so
*
64 define Package
/wireless-tools
/install
65 $(INSTALL_DIR
) $(1)/usr
/sbin
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/iw
{config
,getid
,list
,priv
,spy
} $(1)/usr
/sbin
/
69 $(eval
$(call BuildPackage
,wireless-tools
))