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 $(TOPDIR
)/package
/rules.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 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
30 CC
="$(TARGET_CC)" CFLAGS
="$(TARGET_CFLAGS) -I." \
31 libiw.so
.28 iwmulticall
32 mkdir
-p
$(PKG_INSTALL_DIR
)
33 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
34 PREFIX
="$(PKG_INSTALL_DIR)" \
35 INSTALL_DIR
="$(PKG_INSTALL_DIR)/usr/sbin" \
36 INSTALL_LIB
="$(PKG_INSTALL_DIR)/usr/lib" \
40 define Package
/wireless-tools
/install
41 install -d
-m0755
$(1)/usr
/lib
42 install -d
-m0755
$(1)/usr
/sbin
43 install -m0755
$(PKG_BUILD_DIR
)/libiw.so
.28 $(1)/usr
/lib
/
44 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/iw
{config
,getid
,list
,priv
,spy
} $(1)/usr
/sbin
/
47 define Build
/InstallDev
48 mkdir
-p
$(STAGING_DIR
)/usr
/{lib
,include}
49 $(CP
) $(PKG_BUILD_DIR
)/libiw.so
* $(STAGING_DIR
)/usr
/lib
/
50 ln
-sf libiw.so
.28 $(STAGING_DIR
)/usr
/lib
/libiw.so
51 $(CP
) $(PKG_BUILD_DIR
)/{iwlib
,wireless
}.h
$(STAGING_DIR
)/usr
/include/
54 define Build
/UninstallDev
55 rm -f
$(STAGING_DIR
)/usr
/lib
/libiw.
*
56 rm -f
$(STAGING_DIR
)/usr
/include/{iwlib
,wireless
}.h
59 $(eval
$(call BuildPackage
,wireless-tools
))