2007-11-11 07:50:37 +00:00
|
|
|
#
|
2009-08-10 23:33:25 +00:00
|
|
|
# Copyright (C) 2007-2009 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
|
2009-08-10 23:33:25 +00:00
|
|
|
PKG_VERSION:=0.84
|
2009-08-11 23:37:49 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-07-24 07:27:51 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/linux-usb
|
2009-08-10 23:33:25 +00:00
|
|
|
PKG_MD5SUM:=87612c82e66393a395db91361d168c1b
|
2007-11-11 15:24:47 +00:00
|
|
|
|
2006-07-24 07:27:51 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/usbutils
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2007-11-11 15:24:47 +00:00
|
|
|
DEPENDS:=+libusb +zlib
|
2006-07-24 07:27:51 +00:00
|
|
|
TITLE:=USB devices listing utilities
|
|
|
|
URL:=http://linux-usb.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2007-07-13 14:20:40 +00:00
|
|
|
define Package/usbutils/postinst
|
|
|
|
#!/bin/sh
|
2009-08-11 23:34:57 +00:00
|
|
|
(cd $${IPKG_INSTROOT}/usr/share; $${IPKG_INSTROOT}/usr/sbin/update-usbids.sh)
|
2007-07-13 14:20:40 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
# uses GNU configure
|
2006-07-24 07:27:51 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/usbutils/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-11-11 15:24:47 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lsusb $(1)/usr/sbin/
|
2009-08-10 23:33:25 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/usb-devices $(1)/usr/sbin/
|
|
|
|
$(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))
|