[packages/usbutils] update hwdata path
glen
glen at pld-linux.org
Tue Jan 22 17:38:11 CET 2013
commit ef10530fa82cdcf11af234f7f073eff25bcde52e
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jan 22 18:38:00 2013 +0200
update hwdata path
hwdata.patch | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
---
diff --git a/hwdata.patch b/hwdata.patch
new file mode 100644
index 0000000..a8ab1a8
--- /dev/null
+++ b/hwdata.patch
@@ -0,0 +1,45 @@
+diff --git a/lsusb.py b/lsusb.py
+index 14d9a31..a34f736 100755
+--- a/lsusb.py
++++ b/lsusb.py
+@@ -16,7 +16,7 @@ nohub = False
+ warnsort = False
+
+ prefix = "/sys/bus/usb/devices/"
+-usbids = "/usr/share/usb.ids"
++usbids = "/usr/share/hwdata/usb.ids"
+
+ esc = chr(27)
+ norm = esc + "[0;0m"
+diff -up usbutils-004/Makefile.am.orig usbutils-004/Makefile.am
+--- usbutils-004/Makefile.am.orig 2011-09-20 09:42:04.282566870 +0200
++++ usbutils-004/Makefile.am 2011-09-20 09:42:41.399102845 +0200
+@@ -38,7 +38,7 @@ EXTRA_DIST = \
+ usbutils.pc.in
+
+ lsusb.8: $(srcdir)/lsusb.8.in
+- sed 's|VERSION|$(VERSION)|g;s|@usbids@|$(datadir)/usb.ids|g' $< >$@
++ sed 's|VERSION|$(VERSION)|g;s|@usbids@|$(datadir)/hwdata/usb.ids|g' $< >$@
+
+ usb-devices.1: $(srcdir)/usb-devices.1.in
+ sed 's|VERSION|$(VERSION)|g' $< >$@
+@@ -47,7 +47,7 @@ pkgconfigdir = $(datarootdir)/pkgconfig
+ pkgconfig_DATA = usbutils.pc
+
+ usbutils.pc: $(srcdir)/usbutils.pc.in
+- sed 's|@usbids@|$(datadir)/usb.ids|g;s|@VERSION[@]|$(VERSION)|g' $< >$@
++ sed 's|@usbids@|$(datadir)/hwdata/usb.ids|g;s|@VERSION[@]|$(VERSION)|g' $< >$@
+
+ DISTCLEANFILES = \
+ lsusb.8 \
+--- usbutils-006/configure.ac~ 2012-07-06 23:20:41.000000000 +0300
++++ usbutils-006/configure.ac 2013-01-20 00:04:33.521843802 +0200
+@@ -41,7 +41,7 @@
+ datadir: ${datadir}
+ mandir: ${mandir}
+
+- usb.ids: ${datadir}/usb.ids
++ usb.ids: ${datadir}/hwdata/usb.ids
+ zlib: ${USE_ZLIB}
+
+ compiler: ${CC}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/usbutils.git/commitdiff/ef10530fa82cdcf11af234f7f073eff25bcde52e
More information about the pld-cvs-commit
mailing list