Package: net-tools
Version: 2.10-0.1
Tags: patch
User: p...@hungry.com
Usertags: appstream-modalias

Here is a patch to add Appstream metainfo XML announcing the hardware
handled by this package.

Including this information in the package will ensure programs mapping
hardware to packages using Appstream information, like the isenkram
package, will know that this package is useful on machines where the
hardware is discovered.

diff --git a/debian/install b/debian/install
index eb454d9..377fe37 100644
--- a/debian/install
+++ b/debian/install
@@ -9,3 +9,4 @@ plipconfig      /usr/sbin
 rarp           /usr/sbin
 route          /usr/sbin
 slattach       /usr/sbin
+net.sourceforge.net_tools.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..8b6795f
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,35 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when a ethernet card is
+ present.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-07-24
+---
+Index: net-tools-salsa/net.sourceforge.net_tools.metainfo.xml
+===================================================================
+--- /dev/null  1970-01-01 00:00:00.000000000 +0000
++++ net-tools-salsa/net.sourceforge.net_tools.metainfo.xml     2024-07-24 
11:50:27.365556960 +0200
+@@ -0,0 +1,23 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component type="desktop">
++  <id>net.sourceforge.net_tools</id>
++  <metadata_license>MIT</metadata_license>
++  <name>net-tools</name>
++  <summary>NET-3 networking toolkit</summary>
++  <description>
++    <p>This package includes the important tools for controlling the
++    network subsystem of the Linux kernel.  This includes arp,
++    ifconfig, netstat, rarp, nameif and route.  Additionally, this
++    package contains utilities relating to particular network hardware
++    types (plipconfig, slattach, mii-tool) and advanced aspects of IP
++    configuration (iptunnel, ipmaddr).</p>
++
++    <p>In the upstream package 'hostname' and friends are
++    included. Those are not installed by this package, since there is
++    a special "hostname*.deb".</p>
++  </description>
++  <url type="homepage">https://sourceforge.net/projects/net-tools/</url>
++  <provides>
++    <modalias>pci:v*d*sv*sd*bc02sc80i*</modalias>
++  </provides>
++</component>
diff --git a/debian/patches/series b/debian/patches/series
index 706ccd1..2113434 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ translations.patch
 Add_missing_headers.patch
 Bug_900962-man-de-typos.patch
 Bug_549397-fix-decoding-of-MII-vendor-ids.patch
+1000-appstream-metainfo.patch

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to