2007-11-11 07:50:37 +00:00
|
|
|
#
|
2012-06-12 21:22:40 +00:00
|
|
|
# Copyright (C) 2007-2012 OpenWrt.org
|
2006-07-24 07:27:51 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=usbutils
|
2012-06-12 21:22:40 +00:00
|
|
|
PKG_VERSION:=005
|
2011-07-04 00:50:37 +00:00
|
|
|
PKG_RELEASE:=1
|
2006-07-24 07:27:51 +00:00
|
|
|
|
2010-08-26 20:30:14 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/usb/usbutils
|
2012-06-12 21:22:40 +00:00
|
|
|
PKG_MD5SUM:=6a21f7b6c02b76df5e8a7c208d746654
|
2007-11-11 15:24:47 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-07-24 07:27:51 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/usbutils
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2011-03-28 21:22:22 +00:00
|
|
|
DEPENDS:=+libusb-1.0 +zlib +librt +libpthread
|
2006-07-24 07:27:51 +00:00
|
|
|
TITLE:=USB devices listing utilities
|
2010-08-26 20:30:14 +00:00
|
|
|
URL:=http://www.linux-usb.org/
|
2006-07-24 07:27:51 +00:00
|
|
|
endef
|
|
|
|
|
2007-07-13 14:20:40 +00:00
|
|
|
define Package/usbutils/postinst
|
|
|
|
#!/bin/sh
|
2011-04-13 17:40:16 +00:00
|
|
|
[ -z "$${IPKG_INSTROOT}" ] || \
|
2011-04-12 23:18:35 +00:00
|
|
|
(cd $${IPKG_INSTROOT}/usr/share; $${PKG_ROOT}/usr/sbin/update-usbids.sh ; rm usb.ids.gz.old)
|
2009-08-13 10:37:19 +00:00
|
|
|
exit 0
|
2007-07-13 14:20:40 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-24 07:27:51 +00:00
|
|
|
define Package/usbutils/install
|
2009-09-20 11:45:56 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2010-12-17 10:32:39 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsusb $(1)/usr/bin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2009-08-10 23:33:25 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/update-usbids.sh $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share
|
2007-11-11 15:24:47 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/usb.ids.gz $(1)/usr/share/
|
2006-07-24 07:27:51 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,usbutils))
|