OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2007-2016 OpenWrt.org |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | |||
8 | include $(TOPDIR)/rules.mk |
||
9 | |||
10 | PKG_NAME:=usbutils |
||
11 | PKG_VERSION:=007 |
||
3 | office | 12 | PKG_RELEASE:=7 |
1 | office | 13 | |
14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz |
||
15 | PKG_SOURCE_URL:=@KERNEL/linux/utils/usb/usbutils |
||
16 | PKG_HASH:=7593a01724bbc0fd9fe48e62bc721ceb61c76654f1d7b231b3c65f6dfbbaefa4 |
||
17 | PKG_LICENSE:=GPL-2.0 |
||
18 | PKG_LICENSE_FILES:=COPYING |
||
19 | |||
20 | PKG_BUILD_PARALLEL:=1 |
||
21 | PKG_INSTALL:=1 |
||
22 | |||
3 | office | 23 | PKG_MAINTAINER := Felix Fietkau <nbd@nbd.name> |
1 | office | 24 | |
25 | include $(INCLUDE_DIR)/package.mk |
||
26 | |||
27 | define Package/usbutils |
||
28 | SECTION:=utils |
||
29 | CATEGORY:=Utilities |
||
30 | DEPENDS:=+libusb-1.0 +librt +libpthread |
||
31 | TITLE:=USB devices listing utilities |
||
32 | URL:=http://www.linux-usb.org/ |
||
33 | endef |
||
34 | |||
3 | office | 35 | USB_IDS_REV:=0a6be488b4c1485d30c9efee1cc895af5d4a1383 |
36 | USB_IDS_FILE:=usb.ids.$(USB_IDS_REV) |
||
1 | office | 37 | define Download/usb_ids |
38 | FILE:=$(USB_IDS_FILE) |
||
39 | URL_FILE:=usb.ids |
||
3 | office | 40 | URL:=@GITHUB/gentoo/hwids/$(USB_IDS_REV) |
41 | HASH:=2d0403ffccc0ff7150e32c0bf8e2878816b76ba08d2c3bb1059f33627a3da30f |
||
1 | office | 42 | endef |
43 | $(eval $(call Download,usb_ids)) |
||
44 | |||
45 | define Build/Prepare |
||
46 | $(Build/Prepare/Default) |
||
47 | $(CP) $(DL_DIR)/$(USB_IDS_FILE) $(PKG_BUILD_DIR)/usb.ids |
||
48 | endef |
||
49 | |||
50 | CONFIGURE_ARGS += \ |
||
51 | --disable-zlib |
||
52 | |||
53 | define Package/usbutils/install |
||
54 | $(INSTALL_DIR) $(1)/usr/bin |
||
55 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsusb $(1)/usr/bin/ |
||
56 | $(INSTALL_DIR) $(1)/usr/share |
||
57 | $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/usb.ids $(1)/usr/share/ |
||
58 | endef |
||
59 | |||
60 | $(eval $(call BuildPackage,usbutils)) |