2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=@KERNEL
/linux
/utils
/usb
/usbutils
16 PKG_MD5SUM
:=39e38263ba45690fbad41f248f207d32
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/usbutils
25 DEPENDS
:=+libusb-1.0
+zlib
+librt
+libpthread
26 TITLE
:=USB devices listing utilities
27 URL
:=http
://www.linux-usb.org
/
30 define Package
/usbutils
/postinst
32 (cd
$${IPKG_INSTROOT}/usr
/share
; $${PKG_ROOT}/usr
/sbin
/update-usbids.sh
)
36 define Package
/usbutils
/install
37 $(INSTALL_DIR
) $(1)/usr
/bin
38 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/lsusb
$(1)/usr
/bin
/
39 $(INSTALL_DIR
) $(1)/usr
/sbin
40 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/update-usbids.sh
$(1)/usr
/sbin
/
41 $(INSTALL_DIR
) $(1)/usr
/share
42 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/usb.ids.gz
$(1)/usr
/share
/
45 $(eval
$(call BuildPackage
,usbutils
))