source: packages/utils/usbutils/Makefile @ 22818

Last change on this file since 22818 was 22818, checked in by swalker, 6 years ago

[packages] usbutils: update to 0.90

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1#
2# Copyright (C) 2007-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=usbutils
11PKG_VERSION:=0.90
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=@KERNEL/linux/utils/usb/usbutils
16PKG_MD5SUM:=cf542098627c77484c671be4fc5e7271
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/usbutils
23  SECTION:=utils
24  CATEGORY:=Utilities
25  DEPENDS:=+libusb +zlib
26  TITLE:=USB devices listing utilities
27  URL:=http://www.linux-usb.org/
28endef
29
30define Package/usbutils/postinst
31#!/bin/sh
32(cd $${IPKG_INSTROOT}/usr/share; $${PKG_ROOT}/usr/sbin/update-usbids.sh)
33exit 0
34endef
35
36# uses GNU configure
37
38define Package/usbutils/install
39        $(INSTALL_DIR) $(1)/usr/bin
40        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/usb-devices $(1)/usr/bin/
41        $(INSTALL_DIR) $(1)/usr/sbin
42        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lsusb $(1)/usr/sbin/
43        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/update-usbids.sh $(1)/usr/sbin/
44        $(INSTALL_DIR) $(1)/usr/share
45        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/usb.ids.gz $(1)/usr/share/
46endef
47
48$(eval $(call BuildPackage,usbutils))
Note: See TracBrowser for help on using the repository browser.