Disable jbt6k74 mode setting. The kernel driver takes care of it now.
[openwrt/svn-archive/archive.git] / utils / usbutils / Makefile
1 #
2 # Copyright (C) 2007 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:=0.73
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/linux-usb
16 PKG_MD5SUM:=88978b4ad891f610620b1b8e5e0f43eb
17
18 PKG_BUILD_DEPENDS:=zlib
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/usbutils
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=+libusb +zlib
26 TITLE:=USB devices listing utilities
27 URL:=http://linux-usb.sourceforge.net/
28 endef
29
30 define Package/usbutils/postinst
31 #!/bin/sh
32 $${IPKG_INSTROOT}/usr/sbin/update-usbids.sh
33 endef
34
35 # uses GNU configure
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 all install
41 endef
42
43 define Package/usbutils/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lsusb $(1)/usr/sbin/
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/update-usbids.sh $(1)/usr/sbin/
47 $(INSTALL_DIR) $(1)/usr/share
48 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/usb.ids.gz $(1)/usr/share/
49 endef
50
51 $(eval $(call BuildPackage,usbutils))