richardlehane / siegfried

signature-based file format identification
http://www.itforarchivists.com/siegfried
Apache License 2.0
217 stars 30 forks source link

How to create a .sig with multiple identifiers that give only strong results? #173

Closed ghost closed 2 years ago

ghost commented 2 years ago

What I'm trying to achive: all identifiers from deluxe, in a single sig, delivering only strong results.

What I've tried:

  1. sf -update deluxe, which extended default.sig by additional identifiers
  2. roy build -multi positive -name strong -details "Strong identification only" strong.sig, which I assumed would work on the (now extended) default.sig, but sadly stripped away the deluxe identifiers again.

Looking at the Wiki (One signature file, multiple identifiers), it seems I can only add identifiers via the -droid parameter, but how to do so, including the -multi positive, for the deluxe identifiers?

ghost commented 2 years ago

My fault, sorry - had overlooked the correct params. Successful with:

sf -update deluxe
roy build -multi positive combined.sig
roy add -multi positive -name fddstrong -loc combined.sig
roy add -multi positive -name freedesktopstrong -mi freedesktop.org.xml combined.sig
roy add -multi positive -name tikastrong -mi tika-mimetypes.xml combined.sig