]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
desktop: install AppStream metadata 590/head
authorDarafei Praliaskouski <me@komzpa.net>
Thu, 7 May 2026 20:45:48 +0000 (00:45 +0400)
committerDarafei Praliaskouski <me@komzpa.net>
Fri, 8 May 2026 11:19:36 +0000 (15:19 +0400)
Makefile.am
data/mtr.desktop [new file with mode: 0644]
data/mtr.metainfo.xml [new file with mode: 0644]
img/mtr.png [new file with mode: 0644]

index a74cb20f2c4e63223c2142957ac1a3ce3322ff13..63b3c2adac1275a2dc7426e183ef44131738f6b7 100644 (file)
@@ -2,8 +2,8 @@ EXTRA_DIST = \
        BSDCOPYING \
        SECURITY \
        build-aux/mtr.bat \
-       img/mtr_icon.xpm
-       $(TEST_FILES)
+       img/mtr_icon.xpm \
+       img/mtr.png
 
 sbin_PROGRAMS = mtr mtr-packet
 TESTS = \
@@ -171,5 +171,16 @@ if BUILD_BASH_COMPLETION
 dist_bashcompletion_DATA = bash-completion/mtr
 endif
 
+if WITH_GTK
+desktopdir = $(datadir)/applications
+dist_desktop_DATA = data/mtr.desktop
+
+appstreamdir = $(datadir)/metainfo
+dist_appstream_DATA = data/mtr.metainfo.xml
+
+icondir = $(datadir)/icons/hicolor/48x48/apps
+dist_icon_DATA = img/mtr.png
+endif
+
 dist-hook:
        $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
diff --git a/data/mtr.desktop b/data/mtr.desktop
new file mode 100644 (file)
index 0000000..ca2bd57
--- /dev/null
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=My Traceroute
+Comment=Trace packet routes between network hosts
+Exec=mtr --gtk
+Icon=mtr
+Terminal=false
+Type=Application
+Categories=GTK;Network;Monitor;
+Keywords=network;trace;traceroute;ping;
diff --git a/data/mtr.metainfo.xml b/data/mtr.metainfo.xml
new file mode 100644 (file)
index 0000000..65b9284
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop-application">
+  <id>nl.bitwizard.mtr.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-2.0-only</project_license>
+  <name>My Traceroute</name>
+  <summary>Trace packet routes between network hosts</summary>
+  <description>
+    <p>
+      My Traceroute combines the functionality of traceroute and ping in a
+      single network diagnostic tool. It shows the route packets take to a
+      network host together with latency and packet loss statistics for each
+      hop.
+    </p>
+  </description>
+  <launchable type="desktop-id">mtr.desktop</launchable>
+  <url type="homepage">https://www.bitwizard.nl/mtr/</url>
+  <provides>
+    <binary>mtr</binary>
+  </provides>
+</component>
diff --git a/img/mtr.png b/img/mtr.png
new file mode 100644 (file)
index 0000000..79dcc61
Binary files /dev/null and b/img/mtr.png differ