Bug#838524: dahdi-firmware-nonfree: Please announce supported hardware using AppStream

Petter Reinholdtsen pere at hungry.com
Sat Aug 3 07:45:48 BST 2024


Control: tags -1 + patch

This patch should implement the change.

diff --git a/debian/install b/debian/install
index 87702f4..a1e4f9b 100644
--- a/debian/install
+++ b/debian/install
@@ -4,3 +4,4 @@ debian/get-digium-firmware              usr/share/dahdi
 debian/OCT6104E-256D.ima               usr/share/dahdi
 build_tools/install_firmware           usr/share/dahdi
 drivers/dahdi/dahdi-fw-*.bin           usr/lib/firmware/ 
+org.asterisk.dahdi.firmware.metainfo.xml usr/share/metainfo
diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 0000000..470fb2e
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,34 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when the hardware is
+ present.
+Author: Petter Reinholdtsen
+Bug-Debian: https://bugs.debian.org/838524
+Forwarded: no
+Last-Update: 2024-08-03
+---
+Index: dahdi-firmware-2.11.1.0.20170917/org.asterisk.dahdi.firmware.metainfo.xml
+===================================================================
+--- /dev/null  1970-01-01 00:00:00.000000000 +0000
++++ dahdi-firmware-2.11.1.0.20170917/org.asterisk.dahdi.firmware.metainfo.xml  2024-08-03 08:29:19.032719163 +0200
+@@ -0,0 +1,21 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component>
++  <id>org.asterisk.dahdi.firmware</id>
++  <metadata_license>MIT</metadata_license>
++  <name>dahdi-firmware-nonfree</name>
++  <summary>DAHDI non-free firmware</summary>
++  <description>
++    <p>DAHDI (formely Zaptel) is an interface for telephony devices
++    used by e.g.  the Asterisk PBX software. The dahdi-* packages
++    provide the DAHDI kernel modules and their required setup
++    environment.</p>
++    <p>This package includes the non-free firmwares from the DAHDI
++    tarball as well as downloading script for the Digium firmwares
++    that are normally downloaded on 'make install'.</p>
++  </description>
++  <url type="homepage">https://www.asterisk.org/</url>
++  <provides>
++    <modalias>lkmodule:dahdi</modalias>
++    <modalias>pci:v0000e159d00000001sv*</modalias>
++  </provides>
++</component>
diff --git a/debian/patches/series b/debian/patches/series
index 8398284..35d5fd1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 make-binary-bitfiles
+1000-appstream-metainfo.patch

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-voip-maintainers mailing list