From: Petter Reinholdtsen <pere@hungry.com>
To: netdev@vger.kernel.org
Cc: Salvatore Bonaccorso <carnil@debian.org>,
Ben Hutchings <benh@debian.org>
Subject: [PATCH ethtool] Add AppStream metainfo XML with modalias documented supported
Date: Wed, 26 Feb 2025 23:00:45 +0100 [thread overview]
Message-ID: <sa67c5cl62a.fsf@hjemme.reinholdtsen.name> (raw)
In-Reply-To: <Z7hoqCjls4wD88_S@eldamar.lan>
I am not used to submitting patches like this, and hope I do not make
too many mistakes. Please forgive me if I did. This patch was
initially submitted to Debian as <URL: https://bugs.debian.org/1076629 >.
Here is the 'git format-patch' for it.
From 81e64589dd2ebdc194c8198165aa093361682e89 Mon Sep 17 00:00:00 2001
From: Petter Reinholdtsen <pere@debian.org>
Date: Wed, 26 Feb 2025 22:36:03 +0100
Subject: [PATCH] Add AppStream metainfo XML with modalias documented supported
hardware.
This ensure all Linux distributions supporting AppStream share
AppStream information for ethtool.
Hardware mappings allow AppStream clients like isenkram to propose
this package when supported hardware (ethernet card) is present.
Appstream is documented on
<URL: https://www.freedesktop.org/wiki/Distributions/AppStream/ >.
---
Makefile.am | 6 +++++-
org.kernel.software.network.ethtool.metainfo.xml | 16 ++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
create mode 100644 org.kernel.software.network.ethtool.metainfo.xml
diff --git a/Makefile.am b/Makefile.am
index 862886b..8d50ef6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,11 @@ AM_CPPFLAGS = -I$(top_srcdir)/uapi
LDADD = -lm
man_MANS = ethtool.8
-EXTRA_DIST = LICENSE ethtool.8 ethtool.spec.in aclocal.m4 ChangeLog autogen.sh
+EXTRA_DIST = LICENSE ethtool.8 ethtool.spec.in aclocal.m4 ChangeLog autogen.sh \
+ org.kernel.software.network.ethtool.metainfo.xml
+
+dist_metainfo_DATA = org.kernel.software.network.ethtool.metainfo.xml
+metainfodir = $(datarootdir)/metainfo
sbin_PROGRAMS = ethtool
ethtool_SOURCES = ethtool.c uapi/linux/const.h uapi/linux/ethtool.h internal.h \
diff --git a/org.kernel.software.network.ethtool.metainfo.xml b/org.kernel.software.network.ethtool.metainfo.xml
new file mode 100644
index 0000000..efe84c1
--- /dev/null
+++ b/org.kernel.software.network.ethtool.metainfo.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>org.kernel.software.network.ethtool</id>
+ <metadata_license>MIT</metadata_license>
+ <name>ethtool</name>
+ <summary>display or change Ethernet device settings</summary>
+ <description>
+ <p>ethtool can be used to query and change settings such as speed,
+ auto- negotiation and checksum offload on many network devices,
+ especially Ethernet devices.</p>
+ </description>
+ <url type="homepage">https://www.kernel.org/pub/software/network/ethtool/</url>
+ <provides>
+ <modalias>pci:v*d*sv*sd*bc02sc80i*</modalias>
+ </provides>
+</component>
--
2.39.5
--
Happy hacking
Petter Reinholdtsen
parent reply other threads:[~2025-02-26 22:33 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <Z7hoqCjls4wD88_S@eldamar.lan>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sa67c5cl62a.fsf@hjemme.reinholdtsen.name \
--to=pere@hungry.com \
--cc=benh@debian.org \
--cc=carnil@debian.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox