3 include $(TOPDIR
)/rules.mk
5 PKG_NAME
:=wireless-tools
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/wireless_tools
.28
10 PKG_SOURCE
:=wireless_tools.
$(PKG_VERSION
).
tar.gz
11 PKG_SOURCE_URL
:=http
://www.hpl.hp.com
/personal
/Jean_Tourrilhes
/Linux
12 PKG_MD5SUM
:=599c94497f9c9073c7b052d3dcb7cd16
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/wireless-tools
23 TITLE
:=Tools for manipulating Linux Wireless Extensions
24 DESCRIPTION
:=Tools for configuring Wireless Adapters implementing the
"Wireless Extension"
25 URL
:=http
://hplabs.hp.com
/personal
/Jean_Tourrilhes
/Linux
/Tools.html
29 rm -rf
$(PKG_INSTALL_DIR
)
30 mkdir
-p
$(PKG_INSTALL_DIR
)
31 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
32 CC
="$(TARGET_CC)" CFLAGS
="$(TARGET_CFLAGS) -I." \
33 libiw.so
.28 iwmulticall
34 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
35 PREFIX
="$(PKG_INSTALL_DIR)" \
36 INSTALL_DIR
="$(PKG_INSTALL_DIR)/usr/sbin" \
37 INSTALL_LIB
="$(PKG_INSTALL_DIR)/usr/lib" \
41 define Build
/InstallDev
42 mkdir
-p
$(STAGING_DIR
)/usr
/include
43 $(CP
) $(PKG_BUILD_DIR
)/{iwlib
,wireless
}.h
$(STAGING_DIR
)/usr
/include/
44 mkdir
-p
$(STAGING_DIR
)/usr
/lib
45 $(CP
) $(PKG_BUILD_DIR
)/libiw.so
* $(STAGING_DIR
)/usr
/lib
/
46 ln
-sf libiw.so
.28 $(STAGING_DIR
)/usr
/lib
/libiw.so
49 define Build
/UninstallDev
50 rm -f
$(STAGING_DIR
)/usr
/include/{iwlib
,wireless
}.h \
51 $(STAGING_DIR
)/usr
/lib
/libiw.so
*
54 define Package
/wireless-tools
/install
55 install -d
-m0755
$(1)/usr
/lib
56 install -m0755
$(PKG_BUILD_DIR
)/libiw.so
.28 $(1)/usr
/lib
/
57 install -d
-m0755
$(1)/usr
/sbin
58 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/iw
{config
,getid
,list
,priv
,spy
} $(1)/usr
/sbin
/
61 $(eval
$(call BuildPackage
,wireless-tools
))