You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2007-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=usbutils
  9. PKG_VERSION:=013
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/usb/usbutils
  13. PKG_HASH:=9e23494fcc78b7a80ee29a07dd179c95ae2f71509c35728dbbabc2d1cca41338
  14. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  15. PKG_LICENSE:=GPL-2.0-only
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/usbutils
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. DEPENDS:=+libusb-1.0 +libudev +usbids +librt +libpthread
  25. TITLE:=USB devices listing utilities
  26. URL:=http://www.linux-usb.org/
  27. endef
  28. CONFIGURE_ARGS += \
  29. --datadir=$(CONFIGURE_PREFIX)/share/hwdata
  30. define Package/usbutils/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsusb $(1)/usr/bin/
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/usbreset $(1)/usr/bin/
  34. endef
  35. $(eval $(call BuildPackage,usbutils))