Resources: Add Logray Freedesktop files

This commit is contained in:
Gerald Combs 2023-01-17 10:55:18 -08:00
parent 4d3d856d8f
commit d3d6db58fe
4 changed files with 120 additions and 0 deletions

View File

@ -3794,6 +3794,31 @@ if(BUILD_wireshark AND QT_FOUND AND NOT APPLE AND (NOT WIN32 OR USE_MSYSTEM))
RENAME org.wireshark.Wireshark.svg)
endif()
if(BUILD_logray AND QT_FOUND AND NOT APPLE AND (NOT WIN32 OR USE_MSYSTEM))
install(FILES resources/freedesktop/org.wireshark.Logray-mime.xml
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/mime/packages"
RENAME org.wireshark.Logray.xml
)
install(FILES resources/freedesktop/org.wireshark.Logray.metainfo.xml
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo"
)
if(BUILD_wireshark AND QT_FOUND)
install(FILES resources/freedesktop/org.wireshark.Logray.desktop
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
endif()
foreach(size 16 24 32 48 64 128 256)
install(FILES resources/icons/lricon${size}.png
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/${size}x${size}/apps"
RENAME org.wireshark.Logray.png)
install(FILES resources/icons/WiresharkDoc-${size}.png
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/${size}x${size}/mimetypes"
RENAME org.wireshark.Logray-mimetype.png)
endforeach()
install(FILES resources/icons/lricon.svg
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps"
RENAME org.wireshark.Logray.svg)
endif()
install(
FILES
"${CMAKE_BINARY_DIR}/wireshark.pc"

View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file allows freedesktop.org-compliant desktops (such as GNOME and
KDE) to know which files should be opened by what program (and what icon
to show for the file in a file browser).
Both magic and file name glob patterns are supported; glob patterns are
preferred since they don't require opening and reading part of
the file to determine its type.
The specification for this file can be found here:
https://standards.freedesktop.org/shared-mime-info-spec/latest/
Note that ideally the MIME types listed here should be IANA-registered:
https://www.iana.org/assignments/media-types/media-types.xhtml
If your file type is not registered then using one of the
(not-really-a-good-idea and deprecated) x- media types is the only option
if you want files to be associated with Wireshark in
freedesktop.org-compliant file browsers.
NOTE: if you do add a MIME type here, don't forget to add it to the list
of MIME types handled by Wireshark in org.wireshark.Logray.desktop.
-->
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-scap">
<comment>Sysdig Capture (scap)</comment>
<generic-icon name="org.wireshark.Logray-mimetype"/>
<magic>
<match type="big32" offset="0" value="0x0a0d0d0a">
<match type="big32" offset="8" value="0x1a2b3c4d"/>
</match>
<match type="little32" offset="0" value="0x0a0d0d0a">
<match type="little32" offset="8" value="0x1a2b3c4d"/>
</match>
</magic>
<glob pattern="*.scap"/>
<glob pattern="*.scap.gz"/>
</mime-type>
</mime-info>

View File

@ -0,0 +1,19 @@
[Desktop Entry]
# The format of this file is specified at
# https://specifications.freedesktop.org/desktop-entry-spec/1.0/
# The entries are in the order they are listed in version 1.0
Type=Application
# This is the version of the spec for this file, not the application version.
Version=1.0
Name=Logray
Name[vi]=Logray
GenericName=Log Analyzer
Comment=Log capture and analysis
Icon=org.wireshark.Logray
TryExec=logray
Exec=logray %f
Terminal=false
MimeType=application/x-scap
# Category entry according to:
# https://specifications.freedesktop.org/menu-spec/1.0/
Categories=System;Monitor;Qt;

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2014 Richard Hughes <richard@hughsie.com>
The specification for this file can be found at
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html
-->
<application>
<id type="desktop">org.wireshark.Logray</id>
<name>Logray</name>
<summary>Logray is a feature-filled log analyzer</summary>
<content_rating type="oars-1.1"/>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0</project_license>
<!-- NOTE: the below description was copied from packaging/rpm/SPECS/wireshark.spec.in -->
<description>
<p>
Logray lets you capture and analyze log data from a variety of sources.
</p>
<p>
It has many powerful features including a rich display filter language
and a number of ways to view log data.
</p>
</description>
<url type="homepage">https://www.wireshark.org</url>
<screenshots>
</screenshots>
<update_contact>wireshark-dev_at_wireshark.org</update_contact>
<releases>
</releases>
</application>