Control: tags -1 + patch
[Petter Reinholdtsen] > In this case, I suspect users should be recommended to install > fprintd? I had a closer look, and suspect both fprintd and libpam-fprintd should be recommended on machines with the supported hardware. Here is a patch that should implement it. diff --git a/debian/fprintd.install b/debian/fprintd.install index 22550e4..8524215 100755 --- a/debian/fprintd.install +++ b/debian/fprintd.install @@ -14,3 +14,4 @@ usr/share/dbus-1/system.d/net.reactivated.Fprint.conf usr/share/locale/*/LC_MESSAGES/fprintd.mo usr/share/man/man1/fprintd.1 usr/share/polkit-1/actions/net.reactivated.fprint.device.policy +org.freedesktop.fprint.fprintd.metainfo.xml usr/share/metainfo diff --git a/debian/libpam-fprintd.install b/debian/libpam-fprintd.install index f766236..54a1ac3 100644 --- a/debian/libpam-fprintd.install +++ b/debian/libpam-fprintd.install @@ -1,3 +1,4 @@ debian/pam-configs/* usr/share/pam-configs/ usr/lib/*/security/pam_fprintd.so usr/share/man/man8/pam_fprintd.8 +org.freedesktop.fprint.fprintd.libpam.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..a860e5e --- /dev/null +++ b/debian/patches/1000-appstream-metainfo.patch @@ -0,0 +1,56 @@ +Description: Added AppStream metainfo XML with hardware provide info. + This allow isenkram to propose this package when the hardware is + present. +Author: Petter Reinholdtsen +Forwarded: no +Last-Update: 2024-07-25 +--- +Index: fprintd-salsa/org.freedesktop.fprint.fprintd.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ fprintd-salsa/org.freedesktop.fprint.fprintd.metainfo.xml 2024-07-25 01:26:53.597373892 +0200 +@@ -0,0 +1,18 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component type="desktop"> ++ <id>org.freedesktop.fprint.fprintd</id> ++ <metadata_license>MIT</metadata_license> ++ <name>fprintd</name> ++ <summary>D-Bus daemon for fingerprint reader access</summary> ++ <description> ++ <p>fprintd is a D-Bus daemon that offers libfprint functionality ++ over the D-Bus interprocess communication bus. By adding this ++ daemon layer above libfprint, various problems related to multiple ++ applications simultaneously competing for fingerprint readers get ++ solved.</p> ++ </description> ++ <url type="homepage">https://www.freedesktop.org/wiki/Software/fprint/fprintd</url> ++ <provides> ++ <modalias>usb:v147Ep2020d*</modalias> ++ </provides> ++</component> +Index: fprintd-salsa/org.freedesktop.fprint.fprintd.libpam.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ fprintd-salsa/org.freedesktop.fprint.fprintd.libpam.metainfo.xml 2024-07-25 01:29:34.278820575 +0200 +@@ -0,0 +1,21 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component type="desktop"> ++ <id>org.freedesktop.fprint.fprintd.libpam</id> ++ <metadata_license>MIT</metadata_license> ++ <name>libpam-fprintd</name> ++ <summary>PAM module for fingerprint authentication through fprintd</summary> ++ <description> ++ <p>fprintd is a D-Bus daemon that offers libfprint functionality ++ over the D-Bus interprocess communication bus. By adding this ++ daemon layer above libfprint, various problems related to multiple ++ applications simultaneously competing for fingerprint readers get ++ solved.</p> ++ ++ <p>This package provides a PAM module for fingerprint-based ++ authentication via fprintd.</p> ++ </description> ++ <url type="homepage">https://www.freedesktop.org/wiki/Software/fprint/fprintd</url> ++ <provides> ++ <modalias>usb:v147Ep2020d*</modalias> ++ </provides> ++</component> diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..42e8b1a --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +1000-appstream-metainfo.patch -- Happy hacking Petter Reinholdtsen