[File] [PATCH] Add more MIME types for Gentoo formats
Michał Górny
mgorny at gentoo.org
Tue Nov 29 05:47:24 UTC 2022
---
magic/Magdir/archive | 1 +
magic/Magdir/gentoo | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/magic/Magdir/archive b/magic/Magdir/archive
index 4d15ba26..843b818d 100644
--- a/magic/Magdir/archive
+++ b/magic/Magdir/archive
@@ -2157,6 +2157,7 @@
# https://gitweb.gentoo.org/proj/portage.git/tree/man/xpak.5
-4 string STOP
>-16 string XPAKSTOP Gentoo binary package (XPAK)
+!:mime application/vnd.gentoo.xpak
# From: Joerg Jenderek
# URL: https://kodi.wiki/view/TexturePacker
diff --git a/magic/Magdir/gentoo b/magic/Magdir/gentoo
index 241c7e59..4dbab9dc 100644
--- a/magic/Magdir/gentoo
+++ b/magic/Magdir/gentoo
@@ -44,16 +44,20 @@
0 search/512 EAPI=
>0 regex .*\n[\040\t]*EAPI=["']? Gentoo ebuild
>>&0 regex [[:alnum:]+_.-]+ \b, EAPI %s
+!:mime application/vnd.gentoo.ebuild
0 search/512 @ECLASS:\040 Gentoo eclass
>&0 string x %s
+!:mime application/vnd.gentoo.eclass
# Summary: Gentoo supplementary package and category metadata files
# Reference: https://www.gentoo.org/glep/glep-0068.html
# Submitted by: Michal Gorny <mgorny at gentoo.org>
0 string \<?xml
>0 search/512 \<catmetadata Gentoo category metadata file
+!:mime application/vnd.gentoo.catmetadata+xml
>0 search/512 \<pkgmetadata Gentoo package metadata file
+!:mime application/vnd.gentoo.pkgmetadata+xml
# Summary: Gentoo GLEP 78 binary package
# Reference: https://www.gentoo.org/glep/glep-0078.html
--
2.38.1
More information about the File
mailing list