Package: pcscd Version: 1.9.9-2 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 USB IDs are discovered. diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch new file mode 100644 index 0000000..5c97a0e --- /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 USB dongle is + present. +Author: Petter Reinholdtsen +Forwarded: no +Last-Update: 2024-07-16 +--- +Index: pcsc-lite-salsa/fr.apdu.pcsclite.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ pcsc-lite-salsa/fr.apdu.pcsclite.metainfo.xml 2024-07-16 13:40:51.804998250 +0200 +@@ -0,0 +1,22 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component type="desktop"> ++ <id>fr.apdu.pcsclite</id> ++ <metadata_license>MIT</metadata_license> ++ <name>pcscd</name> ++ <summary>Middleware to access a smart card using PC/SC</summary> ++ <description> ++ <p>The purpose of PC/SC Lite is to provide a Windows(R) SCard ++ interface in a very small form factor for communicating to smart ++ cards and smart cards readers.</p> ++ ++ <p>The PC/SC daemon is used to dynamically allocate/deallocate ++ reader drivers at runtime and manage connections to the ++ readers.</p> ++ </description> ++ <url type="homepage">https://pcsclite.apdu.fr/</url> ++ <provides> ++ <modalias>usb:v20A0p4107d*</modalias> ++ <modalias>usb:v0B97p7772d*</modalias> ++ <modalias>usb:*ic0Bisc00ip*</modalias> ++ </provides> ++</component> diff --git a/debian/patches/series b/debian/patches/series index e69de29..42e8b1a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -0,0 +1 @@ +1000-appstream-metainfo.patch diff --git a/debian/pcscd.install b/debian/pcscd.install index 76d1d4a..dd76152 100644 --- a/debian/pcscd.install +++ b/debian/pcscd.install @@ -2,3 +2,4 @@ usr/sbin/pcscd usr/share/polkit-1/actions/org.debian.pcsc-lite.policy usr/lib/systemd/system/pcscd.socket usr/lib/systemd/system/pcscd.service +fr.apdu.pcsclite.metainfo.xml usr/share/metainfo -- Happy hacking Petter Reinholdtsen