[File] [PATCH] of Magdir/os2 for WarpIN Installer *.wpi
Jörg Jenderek
joerg.jen.der.ek at gmx.net
Sun Apr 11 17:21:16 UTC 2021
Hello,
some days ago i handled some OS/2 disks. There i found some files
with WPI file name extension. When in run file command version 5.40
on such OS/2 files i get an output like:
4OS2.WPI: data
EMX0944.WPI: data
EWPSBASE.WPI: data
FAT32IFS.WPI: data
FAXWORKS.WPI: data
firefox-45.5.0.en-us.os2-wpi.wpi: data
IAIUTIL.WPI: data
jripperos2j16_1_02_1.wpi: data
JSim-0.6.0.WPI: data
JVM1003.WPI: data
KLIBCCFG.WPI: data
links-2.9-wpi.wpi: data
nvsn26.wpi: data
OPENSSH.WPI: data
PSIOS2.WPI: data
shisen12.wpi: data
timidity_player_2132_os2_r3.wpi: data
USBDOCK.WPI: data
For comparison reason i run the file format identification utility
TrID ( See https://mark0.net/soft-trid-e.html). This describes most
WPI examples as "WarpIN Installer" by definition ark-wpi.trid.xml
(See appended wpi-trid-v.txt.gz). It also displays used file name
extension "WPI" and a reference URL.
This is now expressed inside Magdir/os2 by additional comment lines like:
# URL: http://warpin.netlabs.org/
# Ref.: http://mark0.net/download/triddefs_xml.7z
# defs/a/ark-wpi.trid.xml
This is not a complete documentation. According to TrID such samples
start with byte sequence 770402BE03000000. Hoping that this is a
magic pattern, this is now used as magic test lines like:
0 ubelong =0x770402BE WarpIN Installer
#>4 ubelong =0x03000000
!:mime application/x-os2-wpi
!:ext wpi
Instead of generic mime type application/octet-stream i show an user
defined one.
At offset 106h i saw in my examples a string like "WIC 1.0.8" or "WIC
1.0.22". Apparently this seems to be often the name of the WIP
packages creating tool wic.exe with a version number. This shown by
line like:
>0x106 string x \b, created by %s
I found only one example like shisen12.wpi where instead word
'reserved' occur.
Some bytes later at offset 146h is saw a string, which is in most
cases 'OS/2 Netlabs'. I found only one example like shisen12.wpi
where instead word 'reserved' occur. So show this information by line
like:
>0x146 string x \b, '%s'
Some bytes later at offset 186h is saw another string, which is in
most cases an URL like http://warpin.netlabs.org. So show this
information by line like:
>0x186 string x \b, URL %s
Again for example like shisen12.wpi i found here another value like N/A.
After applying the above mentioned modifications by patch
file-5.40-os2-wpi.diff then such installer files are now described like:
4OS2.WPI: WarpIN Installer, created by
WIC 1.0.15, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
EMX0944.WPI: WarpIN Installer, created by
WIC 1.0.8, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
EWPSBASE.WPI: WarpIN Installer, created by
WIC 1.0.15, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
FAT32IFS.WPI: WarpIN Installer, created by
WIC 1.0.14, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
FAXWORKS.WPI: WarpIN Installer, created by
WIC 1.0.17, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
firefox-45.5.0.en-us.os2-wpi.wpi: WarpIN Installer, created by
WIC 1.0.22, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
IAIUTIL.WPI: WarpIN Installer, created by
WIC 1.0.18, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
jripperos2j16_1_02_1.wpi: WarpIN Installer, created by
WIC 1.0.19, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
JSim-0.6.0.WPI: WarpIN Installer, created by
WIC 1.0.8, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
JVM1003.WPI: WarpIN Installer, created by
WIC 1.0.16y, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
KLIBCCFG.WPI: WarpIN Installer, created by
WIC 1.0.15, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
links-2.9-wpi.wpi: WarpIN Installer, created by
WIC 1.0.19, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
nvsn26.wpi: WarpIN Installer, created by
WIC 1.0.10, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
OPENSSH.WPI: WarpIN Installer, created by
WIC 1.0.16y, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
PSIOS2.WPI: WarpIN Installer, created by
WIC 1.0.12, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
shisen12.wpi: WarpIN Installer, created by
reserved, 'reserved', URL
N/A
timidity_player_2132_os2_r3.wpi: WarpIN Installer, created by
WIC 1.0.22, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
USBDOCK.WPI: WarpIN Installer, created by
WIC 1.0.18, 'OS/2 Netlabs', URL
http://warpin.netlabs.org
I hope my diff file can be applied in future version of
file utility.
With best wishes
Jörg Jenderek
--
Jörg Jenderek
-------------- next part --------------
--- file-5.40/magic/Magdir/os2.old 2021-02-22 23:49:24 +0000
+++ file-5.40/magic/Magdir/os2 2021-04-10 11:13:57 +0000
@@ -165,3 +165,20 @@
!:mime application/x-os2-ini
!:ext ini
+# From: Joerg Jenderek
+# URL: http://warpin.netlabs.org/
+# Reference: http://mark0.net/download/triddefs_xml.7z/defs/a/ark-wpi.trid.xml
+# Note: called by TrID "WarpIN Installer"
+# probably magic at the beginning
+0 ubelong =0x770402BE WarpIN Installer
+#>4 ubelong =0x03000000
+#!:mime application/octet-stream
+!:mime application/x-os2-wpi
+!:ext wpi
+# creator program name like: "reserved" or "WIC x.y.z"
+>0x106 string x \b, created by %s
+# name like: "reserved" or "OS/2 Netlabs"
+>0x146 string x \b, '%s'
+# name like: "N/A" "http://warpin.netlabs.org"
+>0x186 string x \b, URL %s
+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file-5.40-os2-wpi.diff.sig
Type: application/octet-stream
Size: 95 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20210411/44051672/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wpi-trid-v.txt.gz
Type: application/x-gzip
Size: 811 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20210411/44051672/attachment.bin>
More information about the File
mailing list