2007-11-11 07:50:37 +00:00
|
|
|
#
|
2007-11-11 15:24:47 +00:00
|
|
|
# Copyright (C) 2007 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.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=usbutils
|
2007-11-11 07:50:37 +00:00
|
|
|
PKG_VERSION:=0.73
|
2006-07-24 07:27:51 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/linux-usb
|
2007-11-11 15:24:47 +00:00
|
|
|
PKG_MD5SUM:=88978b4ad891f610620b1b8e5e0f43eb
|
2006-07-24 07:27:51 +00:00
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-07-24 07:27:51 +00:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
2007-11-11 15:24:47 +00:00
|
|
|
PKG_BUILD_DEPENDS:=zlib
|
|
|
|
|
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
|
|
|
|
$${IPKG_INSTROOT}/usr/sbin/update-usbids.sh
|
|
|
|
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/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/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))
|