From: Darafei Praliaskouski Date: Thu, 7 May 2026 20:45:48 +0000 (+0400) Subject: desktop: install AppStream metadata X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=refs%2Fpull%2F590%2Fhead;p=thirdparty%2Fmtr.git desktop: install AppStream metadata --- diff --git a/Makefile.am b/Makefile.am index a74cb20..63b3c2a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 index 0000000..ca2bd57 --- /dev/null +++ b/data/mtr.desktop @@ -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 index 0000000..65b9284 --- /dev/null +++ b/data/mtr.metainfo.xml @@ -0,0 +1,21 @@ + + + nl.bitwizard.mtr.desktop + CC0-1.0 + GPL-2.0-only + My Traceroute + Trace packet routes between network hosts + +

+ 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. +

+
+ mtr.desktop + https://www.bitwizard.nl/mtr/ + + mtr + +
diff --git a/img/mtr.png b/img/mtr.png new file mode 100644 index 0000000..79dcc61 Binary files /dev/null and b/img/mtr.png differ