2 # Copyright (C) 2007-2016 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:=a6bd63d5c44cebb717a960eae22a3ca9
18 USB_IDS_VERSION:=2016-03-03
19 USB_IDS_MD5SUM:=273596b6ee101b1df454827cfa87dff8
25 PKG_MAINTAINER := Felix Fietkau <nbd@openwrt.org>
27 include $(INCLUDE_DIR)/package.mk
29 define Package/usbutils
32 DEPENDS:=+libusb-1.0 +librt +libpthread
33 TITLE:=USB devices listing utilities
34 URL:=http://www.linux-usb.org/
37 define Download/usb_ids
39 URL:=@GITHUB/gentoo/hwids/d9e840aa3d5cedf5637d59ef0dc555c380a0e822
40 MD5SUM:=$(USB_IDS_MD5SUM)
42 $(eval $(call Download,usb_ids))
45 $(Build/Prepare/Default)
46 $(CP) $(DL_DIR)/$(USB_IDS_FILE) $(PKG_BUILD_DIR)
52 define Package/usbutils/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsusb $(1)/usr/bin/
55 $(INSTALL_DIR) $(1)/usr/share
56 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/usb.ids $(1)/usr/share/
59 $(eval $(call BuildPackage,usbutils))