Bug#838157: firmware-b43-installer: Please announce supported hardware using AppStream

2024-05-26 Thread Petter Reinholdtsen
Control: tags -1 + patch

Here is a patch implementing the change.  I've commited it to the git
repository of this now orphaned package, alongside some lintian fixes,
and plan to upload soon.

diff --git a/debian/copyright b/debian/copyright
index 44ba7de..8bd3abd 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -21,6 +21,10 @@ Copyright: 2006-2010 Rene Engelhard 
© 2019-2020 Andreas Beckmann 
 License: BSD-2-Clause
 
+Files: debian/*.metainfo.xml
+Copyright: 2024 Petter Reinholdtsen 
+License: MIT
+
 Files: debian/cs.po
 Copyright: 2013 Michal Simunek 
 License: BSD-2-Clause
@@ -111,3 +115,22 @@ License: public-domain
  The algorithm is due to Ron Rivest. This code was
  written by Colin Plumb in 1993, no copyright is claimed.
  This code is in the public domain; do with it what you wish.
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
diff --git a/debian/firmware-b43-installer.install 
b/debian/firmware-b43-installer.install
index e57f194..02daca8 100644
--- a/debian/firmware-b43-installer.install
+++ b/debian/firmware-b43-installer.install
@@ -1 +1,2 @@
 debian/.placeholder /usr/lib/firmware/b43/
+debian/org.kernel.drivers.firmware-b43-installer.metainfo.xml 
usr/share/metainfo
diff --git a/debian/firmware-b43legacy-installer.install 
b/debian/firmware-b43legacy-installer.install
index 21a9345..6a0337d 100644
--- a/debian/firmware-b43legacy-installer.install
+++ b/debian/firmware-b43legacy-installer.install
@@ -1 +1,2 @@
 debian/.placeholder /usr/lib/firmware/b43legacy/
+debian/org.kernel.drivers.firmware-b43legacy-installer.metainfo.xml 
usr/share/metainfo
diff --git a/debian/org.kernel.drivers.firmware-b43-installer.metainfo.xml 
b/debian/org.kernel.drivers.firmware-b43-installer.metainfo.xml
new file mode 100644
index 000..0c272e4
--- /dev/null
+++ b/debian/org.kernel.drivers.firmware-b43-installer.metainfo.xml
@@ -0,0 +1,45 @@
+
+
+  org.kernel.drivers.firmware-b43-installer
+  MIT
+  firmware-b43-installer
+  firmware installer for the b43 driver
+  
+This package downloads and installs the firmware needed by the b43
+kernel driver for some Broadcom 43xx wireless network cards.
+Supported chipsets:
+
+  BCM4306/3 (chip revision 3 only);
+  BCM4311 (NOT PCI Id 14e4:4313);
+  BCM4312;
+  BCM43131;
+  BCM4318;
+  BCM4321 (only partial support, not all versions tested);
+  BCM43217;
+  BCM4322 (only partial support for some versions, not all versions 
tested);
+  BCM43222 (not all versions tested);
+  BCM43224 (not all versions tested);
+  BCM43225;
+  BCM43227;
+  BCM43228;
+  BCM4331;
+  BCM47xx (detection not reliable, may not support all versions).
+
+  
+  
+pci:v14E4d4306sv*
+pci:v14E4d432[04]sv*
+pci:v14E4d4307sv*
+pci:v14E4d431[59]sv*
+pci:v14E4d432[1289BC]sv*
+pci:v14E4d4331sv*
+pci:v14E4d435[03789]sv*
+pci:v14E4d43A[9A]sv*
+pci:v14E4d4716sv*
+pci:v14E4dA8D8sv*
+pci:v14E4dA8DBsv*
+pci:v14E4d5354sv*
+pci:v14E4d431[12]sv*
+pci:v14E4d4318sv*
+  
+
diff --git 
a/debian/org.kernel.drivers.firmware-b43legacy-installer.metainfo.xml 
b/debian/org.kernel.drivers.firmware-b43legacy-installer.metainfo.xml
new file mode 100644
index 000..afe2b4c
--- /dev/null
+++ b/debian/org.kernel.drivers.firmware-b43legacy-installer.metainfo.xml
@@ -0,0 +1,25 @@
+
+
+  org.kernel.drivers.firmware-b43legacy-installer
+  MIT
+  firmware-b43legacy-installer
+  firmware installer for the b43legacy driver
+  
+This package downloads and installs the firmware needed by the
+b43legacy kernel driver for some Broadcom 43xx wireless network
+cards.
+Supported chipsets:
+
+  BCM4301;
+  BCM4306/2;
+  BCM4306.
+
+  
+  
+pci:v14E4d4301sv*
+pci:v14E4d4306sv*
+pci:v14E4d4320sv*
+

Bug#838157: firmware-b43-installer: Please announce supported hardware using AppStream

2016-09-17 Thread Petter Reinholdtsen

Package: firmware-b43-installer
Version: 1:019-3
Severity: wishlist
User: p...@hungry.com
Usertags: appstream-modalias

Hi.

The firmware-b43-installer package is one of the packages in the Debian
archive that should be proposed for installation when a given hardware
dongle is inserted or available.  Thanks to the appstream system, this
can now be announced in a way other tools can use and act on.  I've
written the isenkram system to ask the current user if hardware specific
packages should be installed when a new dongle is installed or already
present on a machine, and isenkram now uses appstream as one source for
hardware to package mappings.

You can read more about this on my blog, 
http://people.skolelinux.org/pere/blog/Using_appstream_with_isenkram_to_install_hardware_related_packages_in_Debian.html
 >.

Instructions on how to create the metadata XML file can be found in
https://wiki.debian.org/AppStream/Guidelines >.

It would be great if you could add an appstream metainfo file to the
firmware-b43-installer package, with content similar to this:

  
  
   [...]
   
pci:v14E4d4312sv*
pci:v14E4d4320sv*

  

If there are other hardware ids also supposed by the package, please add
those too. :)

-- 
Happy hacking
Petter Reinholdtsen