summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-09-05 21:11:30 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-09-05 21:11:30 (EDT)
commit180dd2a785f8d0481de3e6de738af3c65579c393 (patch)
treeb3cc08d3cb1d16d57ca835a7023c2929d572dffc
parent649eeabb99e0f37a35afb339bdec4079a7970618 (diff)
Build full and reduced packages
-rwxr-xr-xbuild9
-rw-r--r--pciids-common.pkg/control6
-rw-r--r--pciids-common.pkg/docs (renamed from pciids.pkg/docs)0
-rw-r--r--pciids-full.pkg/control7
-rw-r--r--pciids-reduced.pkg/control10
-rw-r--r--substvars (renamed from pciids.pkg/control)4
6 files changed, 30 insertions, 6 deletions
diff --git a/build b/build
index abcf4f3..8605614 100755
--- a/build
+++ b/build
@@ -7,6 +7,9 @@ build:
@:
install:
- install -D -o 0 -g 0 -m 0644 src/pci.ids \
- pciids.data/usr/share/misc/pci.ids
- gzip -9 pciids.data/usr/share/misc/pci.ids
+ install -d -o 0 -g 0 -m 0755 pciids-full.data/usr/share/misc/
+ install -d -o 0 -g 0 -m 0755 pciids-reduced.data/usr/share/misc/
+ sed '/^#/d; /^[ \t]*$$/d;' src/pci.ids | gzip -9cn \
+ >pciids-full.data/usr/share/misc/pci.ids.gz
+ sed '/^#/d; /^[ \t]*$$/d; /^\t\t/d;' src/pci.ids | gzip -9cn \
+ >pciids-reduced.data/usr/share/misc/pci.ids.gz
diff --git a/pciids-common.pkg/control b/pciids-common.pkg/control
new file mode 100644
index 0000000..06c9ba4
--- /dev/null
+++ b/pciids-common.pkg/control
@@ -0,0 +1,6 @@
+Architecture: all
+Platform: all
+Description: PCI IDs repository - common files
+ ${Common-Description}
+ .
+ This package provides source package documentation for the PCI IDs repository.
diff --git a/pciids.pkg/docs b/pciids-common.pkg/docs
index e69de29..e69de29 100644
--- a/pciids.pkg/docs
+++ b/pciids-common.pkg/docs
diff --git a/pciids-full.pkg/control b/pciids-full.pkg/control
new file mode 100644
index 0000000..714d0e8
--- /dev/null
+++ b/pciids-full.pkg/control
@@ -0,0 +1,7 @@
+Architecture: all
+Platform: all
+Depends: pciids-common (= ${Binary-Version})
+Provides: pciids
+Conflicts: pciids-reduced
+Description: PCI IDs repository - full version
+ ${Common-Description}
diff --git a/pciids-reduced.pkg/control b/pciids-reduced.pkg/control
new file mode 100644
index 0000000..912a3fc
--- /dev/null
+++ b/pciids-reduced.pkg/control
@@ -0,0 +1,10 @@
+Architecture: all
+Platform: all
+Depends: pciids-common (= ${Binary-Version})
+Provides: pciids
+Conflicts: pciids-full
+Description: PCI IDs repository - reduced version
+ ${Common-Description}
+ .
+ This package provides a reduced version of the PCI IDs repository without
+ subsystem IDs.
diff --git a/pciids.pkg/control b/substvars
index 94f0895..35231fc 100644
--- a/pciids.pkg/control
+++ b/substvars
@@ -1,6 +1,4 @@
-Architecture: all
-Platform: all
-Description: PCI IDs repository
+Common-Description:
This is a public repository of all known IDs used in PCI devices: IDs of
vendors, devices, subsystems, and device classes. It is used in various
programs (e.g., The PCI Utilities) to display full human-readable names instead