2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/linux-usb
17 PKG_MD5SUM
:=ee345fe605ffcfce843dae4aed81122b
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/usbutils
28 TITLE
:=USB devices listing utilities
29 URL
:=http
://linux-usb.sourceforge.net
/
32 define Package
/usbutils
/postinst
34 $${IPKG_INSTROOT}/usr
/sbin
/update-usbids.sh
40 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
41 DESTDIR
="$(PKG_INSTALL_DIR)" \
45 define Package
/usbutils
/install
46 $(INSTALL_DIR
) $(1)/usr
/sbin
47 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/lsusb
$(1)/usr
/sbin
/
48 $(CP
) $(PKG_BUILD_DIR
)/update-usbids.sh
$(1)/usr
/sbin
/
49 $(INSTALL_DIR
) $(1)/usr
/share
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/usb.ids
$(1)/usr
/share
/
53 $(eval
$(call BuildPackage
,usbutils
))