@ -9,15 +9,15 @@ include $(TOPDIR)/rules.mk
PKG_NAME := usbutils
PKG_NAME := usbutils
PKG_VERSION := 007
PKG_VERSION := 007
PKG_RELEASE := 2
PKG_RELEASE := 3
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.bz2
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.bz2
PKG_SOURCE_URL := @KERNEL/linux/utils/usb/usbutils
PKG_SOURCE_URL := @KERNEL/linux/utils/usb/usbutils
PKG_MD5SUM := a6bd63d5c44cebb717a960eae22a3ca9
PKG_MD5SUM := a6bd63d5c44cebb717a960eae22a3ca9
USB_IDS_VERSION := 2015-12-17
USB_IDS_VERSION := 2016-03-03
USB_IDS_MD5SUM := 8c091fdcdbc4e8e60a518d0148b0dad3
USB_IDS_MD5SUM := 273596b6ee101b1df454827cfa87dff8
USB_IDS_FILE := usb.ids.$( USB_IDS_VERSION) .gz
USB_IDS_FILE := usb.ids
PKG_BUILD_PARALLEL := 1
PKG_BUILD_PARALLEL := 1
PKG_INSTALL := 1
PKG_INSTALL := 1
@ -29,29 +29,31 @@ include $(INCLUDE_DIR)/package.mk
d e f i n e P a c k a g e / u s b u t i l s
d e f i n e P a c k a g e / u s b u t i l s
SECTION:= utils
SECTION:= utils
CATEGORY:= Utilities
CATEGORY:= Utilities
DEPENDS:= +libusb-1.0 +zlib + librt +libpthread
DEPENDS:= +libusb-1.0 +librt +libpthread
TITLE:= USB devices listing utilities
TITLE:= USB devices listing utilities
URL:= http://www.linux-usb.org/
URL:= http://www.linux-usb.org/
e n d e f
e n d e f
d e f i n e D o w n l o a d / u s b _ i d s
d e f i n e D o w n l o a d / u s b _ i d s
FILE:= $( USB_IDS_FILE)
FILE:= $( USB_IDS_FILE)
URL:= http://projects.pyret.net/dump/openwrt/distfiles
URL:= https://raw.githubusercontent.com/gentoo/hwids/d9e840aa3d5cedf5637d59ef0dc555c380a0e822
MD5SUM:= $( USB_IDS_MD5SUM)
MD5SUM:= $( USB_IDS_MD5SUM)
e n d e f
e n d e f
$( eval $ ( call Download ,usb_ids ) )
$( eval $ ( call Download ,usb_ids ) )
d e f i n e B u i l d / P r e p a r e
d e f i n e B u i l d / P r e p a r e
$( Build/Prepare/Default)
$( Build/Prepare/Default)
echo '#!/bin/sh' > $( PKG_BUILD_DIR) /update-usbids.sh.in
$( CP) $( DL_DIR) /$( USB_IDS_FILE) $( PKG_BUILD_DIR)
echo 'cp $(DL_DIR)/$(USB_IDS_FILE) usb.ids.gz' >> $( PKG_BUILD_DIR) /update-usbids.sh.in
e n d e f
e n d e f
CONFIGURE_ARGS += \
--disable-zlib
d e f i n e P a c k a g e / u s b u t i l s / i n s t a l l
d e f i n e P a c k a g e / u s b u t i l s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/lsusb $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/lsusb $( 1) /usr/bin/
$( INSTALL_DIR) $( 1) /usr/share
$( INSTALL_DIR) $( 1) /usr/share
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/share/usb.ids.gz $( 1) /usr/share/
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/share/usb.ids $( 1) /usr/share/
e n d e f
e n d e f
$( eval $ ( call BuildPackage ,usbutils ) )
$( eval $ ( call BuildPackage ,usbutils ) )