summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2023-05-08 01:31:46 +0000
committerChristos Zoulas <christos@zoulas.com>2023-05-08 01:31:46 +0000
commit7e8c339163dec99808751deea519191574c68ca7 (patch)
treeecf7d2284349953e27a964a5fc243314d7a04095
parent3a59122b0f1e64bac1798a5a4699739c1d1f0eae (diff)
downloadfile-git-7e8c339163dec99808751deea519191574c68ca7.tar.gz
Improve Open Virtualization Format (Joerg Jenderek)
-rw-r--r--magic/Magdir/archive23
1 files changed, 20 insertions, 3 deletions
diff --git a/magic/Magdir/archive b/magic/Magdir/archive
index 790a77a6..8968f284 100644
--- a/magic/Magdir/archive
+++ b/magic/Magdir/archive
@@ -1,5 +1,5 @@
#------------------------------------------------------------------------------
-# $File: archive,v 1.190 2023/04/17 16:40:52 christos Exp $
+# $File: archive,v 1.191 2023/05/08 01:31:46 christos Exp $
# archive: file(1) magic for archive formats (see also "msdos" for self-
# extracting compressed archives)
#
@@ -30,9 +30,11 @@
# check for 1st image main name with digits used for sorting
# and for name extension case insensitive like: PNG JPG JPEG TIF TIFF GIF BMP
>>>>>>>>0 regex \^[0-9]{2,4}[.](png|jpg|jpeg|tif|tiff|gif|bmp)
-#foo
>>>>>>>>>0 use tar-cbt
-# if 1st member name without digits and without used image suffix then it is a TAR archive
+# check for 1st member name with ovf suffix
+>>>>>>>>0 regex \^.{1,96}[.](ovf)
+>>>>>>>>>0 use tar-ova
+# if 1st member name without digits and without used image suffix and without *.ovf then it is a TAR archive
>>>>>>>>0 default x
>>>>>>>>>0 use tar-file
# minimal check and then display tar archive information which can also be
@@ -168,6 +170,21 @@
# name[100] probably like: 19.jpg 0001.png 0002.png
# or maybe like ComicInfo.xml
>0 string >\0 \b, 1st image %-.60s
+# Summary: Open Virtualization Format *.OVF with disk images and more packed as TAR archive *.OVA
+# From: Joerg Jenderek
+# URL: https://en.wikipedia.org/wiki/Open_Virtualization_Format
+# http://fileformats.archiveteam.org/wiki/OVF_(Open_Virtualization_Format)
+# Reference: http://mark0.net/download/triddefs_xml.7z/defs/o/ova.trid.xml
+# Note: called "Open Virtualization Format package" by TrID
+# assuming *.ovf comes first
+0 name tar-ova
+>0 string x Open Virtualization Format Archive
+#!:mime application/x-ustar
+# http://extension.nirsoft.net/ova
+!:mime application/x-virtualbox-ova
+!:ext ova
+# assuming name[100] like: DOS-0.9.ovf FreeDOS_1.ovf Win98SE_DE.ovf
+>0 string >\0 \b, with %-.60s
# Incremental snapshot gnu-tar format from:
# https://www.gnu.org/software/tar/manual/html_node/Snapshot-Files.html