2007-01-20 11:46:13 +01:00
|
|
|
Index: pciutils-2.2.4/update-pciids.sh
|
2007-07-05 01:18:26 +02:00
|
|
|
================================================================================
|
|
|
|
--- pciutils-2.2.6/Makefile
|
|
|
|
+++ pciutils-2.2.6/Makefile
|
|
|
|
@@ -47,7 +47,7 @@
|
|
|
|
common.o: common.c pciutils.h $(PCIINC)
|
|
|
|
|
|
|
|
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 $@
|
|
|
|
|
|
|
|
%.8: %.man
|
|
|
|
--- pciutils-2.2.6/update-pciids.sh
|
|
|
|
+++ pciutils-2.2.6/update-pciids.sh
|
|
|
|
@@ -2,7 +2,7 @@
|
2007-01-20 11:46:13 +01:00
|
|
|
|
|
|
|
set -e
|
|
|
|
SRC="http://pciids.sourceforge.net/v2.2/pci.ids"
|
|
|
|
-DEST=pci.ids
|
|
|
|
+DEST=pci.ids.d/pci.ids.dist
|
|
|
|
PCI_COMPRESSED_IDS=
|
|
|
|
GREP=grep
|
|
|
|
|
2007-07-05 01:18:26 +02:00
|
|
|
@@ -54,5 +54,11 @@
|
2007-01-20 11:46:13 +01:00
|
|
|
fi
|
|
|
|
mv $DEST.neww $DEST
|
|
|
|
rm $DEST.new
|
2007-01-29 17:09:19 +01:00
|
|
|
+if [ -x /usr/bin/merge-pciids -a -x /usr/bin/perl ]; then
|
2007-01-20 11:46:13 +01:00
|
|
|
+ merge-pciids
|
|
|
|
+else
|
2007-01-29 17:09:19 +01:00
|
|
|
+ echo "WARNING: merge-pciids or perl missing"
|
2007-01-20 11:46:13 +01:00
|
|
|
+ cp -p $DEST /usr/share/pci.ids
|
|
|
|
+fi
|
|
|
|
|
|
|
|
echo "Done."
|