Control: tags -1 + patch
Here is a complete patch implementing the proposal. diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch new file mode 100644 index 0000000..cdb2ea0 --- /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 relevant hardware is + present. +Author: Petter Reinholdtsen +Forwarded: no +Last-Update: 2024-08-18 +--- +Index: hdapsd-salsa/Makefile.am +=================================================================== +--- hdapsd-salsa.orig/Makefile.am 2024-08-18 17:09:35.196486579 +0200 ++++ hdapsd-salsa/Makefile.am 2024-08-18 17:09:35.192486535 +0200 +@@ -1,3 +1,7 @@ + SUBDIRS=src doc misc + doc_DATA = README.md ChangeLog +-EXTRA_DIST = README.md ++EXTRA_DIST = README.md \ ++ com.github.evgeni.hdapsd.metainfo.xml ++ ++dist_metainfo_DATA = com.github.evgeni.hdapsd.metainfo.xml ++metainfodir = $(datarootdir)/metainfo +Index: hdapsd-salsa/com.github.evgeni.hdapsd.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ hdapsd-salsa/com.github.evgeni.hdapsd.metainfo.xml 2024-08-18 17:11:26.309685785 +0200 +@@ -0,0 +1,31 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component> ++ <id>com.github.evgeni.hdapsd</id> ++ <metadata_license>MIT</metadata_license> ++ <name>hdapsd</name> ++ <summary>HDAPS daemon for various laptops with motion sensors</summary> ++ <description> ++ <p>This is a disk protection user-space daemon. It monitors the ++ acceleration values through an interface and automatically ++ initiates disk head parking if a fall or sliding of the laptop is ++ detected.</p> ++ <p>Currently, the following interfaces are supported:</p> ++ <ul> ++ <li>IBM/Lenovo ThinkPad (HDAPS)</li> ++ <li>Apple iBook/PowerBook (AMS)</li> ++ <li>Apple MacBook/MacBook Pro (APPLESMC)</li> ++ <li>HP (HP3D)</li> ++ <li>Dell (FREEFALL)</li> ++ <li>Toshiba (ACPI and HAPS)</li> ++ <li>Acer (INPUT)</li> ++ </ul> ++ <p>On ThinkPads, it is recommended that you use this daemon with ++ the hdaps module provided by tp-smapi rather the one in the ++ kernel, as this will save you a bit of power and will work on a ++ wider range of ThinkPads.</p> ++ </description> ++ <url type="homepage">https://github.com/evgeni/hdapsd</url> ++ <provides> ++ <modalias>dmi:*:pn*:pvrThinkPad*:rvn*</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