2015-09-06 08:01:32 +00:00
|
|
|
Index: pciutils-3.3.1/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- pciutils-3.3.1.orig/Makefile
|
|
|
|
+++ pciutils-3.3.1/Makefile
|
|
|
|
@@ -88,7 +88,7 @@ lspci: LDLIBS+=$(LIBKMOD_LIBS)
|
2013-07-31 09:43:20 +00:00
|
|
|
ls-kernel.o: CFLAGS+=$(LIBKMOD_CFLAGS)
|
2007-07-04 23:18:26 +00:00
|
|
|
|
|
|
|
update-pciids: update-pciids.sh
|
|
|
|
- sed <$< >$@ "s@^DEST=.*@DEST=$(IDSDIR)/$(PCI_IDS)@;s@^PCI_COMPRESSED_IDS=.*@PCI_COMPRESSED_IDS=$(PCI_COMPRESSED_IDS)@"
|
|
|
|
+ sed <$< >$@ "s@^DEST=.*@DEST=$(IDSDIR)/pci.ids.d/pci.ids.dist@;s@^PCI_COMPRESSED_IDS=.*@PCI_COMPRESSED_IDS=@"
|
|
|
|
chmod +x $@
|
|
|
|
|
2009-12-10 13:47:48 +00:00
|
|
|
# The example of use of libpci
|
2015-09-06 08:01:32 +00:00
|
|
|
Index: pciutils-3.3.1/update-pciids.sh
|
|
|
|
===================================================================
|
|
|
|
--- pciutils-3.3.1.orig/update-pciids.sh
|
|
|
|
+++ pciutils-3.3.1/update-pciids.sh
|
2009-12-10 13:47:48 +00:00
|
|
|
@@ -4,7 +4,7 @@
|
2007-01-20 10:46:13 +00:00
|
|
|
|
|
|
|
set -e
|
2012-02-01 14:19:40 +00:00
|
|
|
SRC="http://pci-ids.ucw.cz/v2.2/pci.ids"
|
2007-01-20 10:46:13 +00:00
|
|
|
-DEST=pci.ids
|
|
|
|
+DEST=pci.ids.d/pci.ids.dist
|
|
|
|
PCI_COMPRESSED_IDS=
|
|
|
|
GREP=grep
|
|
|
|
|
2015-09-06 08:01:32 +00:00
|
|
|
@@ -66,6 +66,13 @@ fi
|
2007-01-20 10:46:13 +00:00
|
|
|
mv $DEST.neww $DEST
|
|
|
|
rm $DEST.new
|
2012-02-01 14:19:40 +00:00
|
|
|
|
2007-01-29 16:09:19 +00:00
|
|
|
+if [ -x /usr/bin/merge-pciids -a -x /usr/bin/perl ]; then
|
2007-01-20 10:46:13 +00:00
|
|
|
+ merge-pciids
|
|
|
|
+else
|
2007-01-29 16:09:19 +00:00
|
|
|
+ echo "WARNING: merge-pciids or perl missing"
|
2007-01-20 10:46:13 +00:00
|
|
|
+ cp -p $DEST /usr/share/pci.ids
|
|
|
|
+fi
|
2012-02-01 14:19:40 +00:00
|
|
|
+
|
2009-12-10 13:47:48 +00:00
|
|
|
# Older versions did not compress the ids file, so let's make sure we
|
|
|
|
# clean that up.
|
2012-02-01 14:19:40 +00:00
|
|
|
if [ ${DEST%.gz} != ${DEST} ] ; then
|